Create, read and update the companies that customer accounts can belong to. Companies can't be deleted through the API.
List companies
Returns the shop's companies, newest first. Deleted companies are not listed.
query Parameters
limitThe number of items to return. Must be a decimal integer; any other value returns 400. There is no page size cap, but large pages take longer: follow the next link to read a long list.
offsetThe number of items to skip. Must be a decimal integer; any other value returns 400.
List companies › Responses
The companies.
Create a company
Creates a company. Fields you omit get their defaults: empty strings and send_order_notify false. Text fields other than name and code accept null and store an empty string.
Create a company › Request Body
nameCan't be null.
codeYour code for the company. The shop doesn't check that it is unique. Can't be null.
vat_numberstreetstreet_extrapostal_codecitycountycountryThe country as free text.
phone_numberemailA valid email address, or an empty string.
orders_emailWhere the shop sends order notifications when send_order_notify is true. The address is not validated.
send_order_notifySend order notifications to orders_email. Can't be null.
extra1extra2extra3extra4extra5Create a company › Responses
The created company.
hrefThe URL of the request.
One company.
Get a company
path Parameters
company-idThe company's ID. A value that is not a number returns 400; an unknown or deleted company returns 404.
Get a company › Responses
The company.
hrefThe URL of the request.
One company.
Update a company
Updates the fields you send and keeps the others. Text fields other than name and code accept null and store an empty string.
path Parameters
company-idThe company's ID. A value that is not a number returns 400; an unknown or deleted company returns 404.
Update a company › Request Body
nameCan't be null.
codeYour code for the company. The shop doesn't check that it is unique. Can't be null.
vat_numberstreetstreet_extrapostal_codecitycountycountryThe country as free text.
phone_numberemailA valid email address, or an empty string.
orders_emailWhere the shop sends order notifications when send_order_notify is true. The address is not validated.
send_order_notifySend order notifications to orders_email. Can't be null.
extra1extra2extra3extra4extra5Update a company › Responses
The updated company.
hrefThe URL of the request.
One company.