Skip to content

Create Account Code

Request

Creates a new Account Code record. The code should be unique per tenant.

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

This is the Developer Partner ID. When the developer is the only partner, this field is not required.

Bodyapplication/jsonrequired
codestringrequired

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

Example:"278001"
descriptionstring

Human-readable description for the Account Code.

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

Responses

Account Code has been generated successfully.

Bodyapplication/json
idstring

System-generated identifier of the created Account Code.

Example:"d8WpwWzlMgYO"
Response
{ "id": "d8WpwWzlMgYO" }