Create Company API Route

This API route allows partners to quickly create companies in their partner accounts.

Body Reference

Field Type Example
name string CompanyName

Body Sample

{name: 'myCompanyName'}

Response Sample

{name: 'myCompanyName', id: 'abc123'}

Error Reference

Code Causes
500 Server Error! If this error code persists, reach out to Phin support.
403 Unauthorized request! Ensure that your access token is correct, the URL contains your correct partnerId, and there are no typos in your request.
400 Bad Request! One or more of the attributes provided in the body of the request were incorrect types or malformed. Double check that there are no typos and that each field follows the reference above.

Response Sample

{status: 500, message: 'Internal Server Error, if this persists please contact Phin Support!'}