Passa al contenuto principale

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​

The Company with this referenceId already existed and was updated. Returns a Company object.