curl --request POST \
--url 'https://api.stateset.com/api/v1/companies' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"email": null,
"name": "string",
"payment_terms_days": null,
"phone": null,
"reference": null
}'
{
"created_at": "string",
"currency": "string",
"email": null,
"id": "string",
"name": "string",
"payment_terms_days": null,
"reference": null,
"status": "string"
}
Create a companies
Create a companies
POST
/
api
/
v1
/
companies
curl --request POST \
--url 'https://api.stateset.com/api/v1/companies' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"email": null,
"name": "string",
"payment_terms_days": null,
"phone": null,
"reference": null
}'
{
"created_at": "string",
"currency": "string",
"email": null,
"id": "string",
"name": "string",
"payment_terms_days": null,
"reference": null,
"status": "string"
}
Request body
CreateCompanyRequest
string,null
string
required
integer,null (int32)
string,null
string,null
Responses
CompanyResponse
ErrorBody
curl --request POST \
--url 'https://api.stateset.com/api/v1/companies' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"email": null,
"name": "string",
"payment_terms_days": null,
"phone": null,
"reference": null
}'
{
"created_at": "string",
"currency": "string",
"email": null,
"id": "string",
"name": "string",
"payment_terms_days": null,
"reference": null,
"status": "string"
}
⌘I