Skip to content

Create Company Code

Request

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

Security
bearerAuth
Headers
X-PB-Developer-Partner-IDstring

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

Bodyapplication/jsonrequired
codestringrequired

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

Example:"COMP001"
descriptionstring

Human-readable description for the Company Code.

Example:"This is description for test company code COMP001"
curl -i -X POST \
  https://api-sandbox.sendpro360.pitneybowes.com/costaccountmgmt/api/v1/companyCodes \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'X-PB-Developer-Partner-ID: string' \
  -d '{
    "code": "COMP001",
    "description": "This is description for test company code COMP001"
  }'

Responses

Company Code has been created successfully.

Bodyapplication/json
idstring

System-generated identifier of the created Company Code.

Example:"cmpy12345xyz"
Response
{ "id": "cmpy12345xyz" }