Create Company Code

Creates a new Company Code record. The code must be unique per tenant.

SecuritybearerAuth
Request
header Parameters
X-PB-Developer-Partner-ID
string

Developer Partner ID. Not required if the developer is the only partner.

Request Body schema: application/json
code
required
string

Customer-defined Company Code value (must be unique per tenant).

description
string

Human-readable description for the Company Code.

Responses
201

Company Code has been created successfully.

400

Invalid request.

401

The request could not be authorized.

500

The request could not be completed due to an internal error.

post/api/v1/companyCodes
Request samples
application/json
{
  • "code": "COMP001",
  • "description": "This is description for test company code COMP001"
}
Response samples
application/json
{
  • "id": "cmpy12345xyz"
}