Create a Company
POST/v1/companys
Creates a Company. With a referenceId, the ID of the Company in your own system, it creates the Company or updates the one that already has it, so a system that keeps its own companies can send each one again without storing its Voucherly ID. Sending the same body twice leaves the same Company.
On an update name renames the Company and joinCode, when passed, replaces its join code. metadata, when passed, is the whole set of fields: a key you leave out is removed, and without metadata the saved fields stay.
Request
Responses
- 200
- 201
- 400
- 409
The Company with this referenceId already existed and was updated. Returns a Company object.
The Company was created. Returns a Company object.
The request was unacceptable, often due to missing a required parameter.
Another Company already has the joinCode. companyId is the ID of that Company.