Skip to content

Get Account Codes

Request

Returns a list of Account Codes.
Use sortBy to sort results by a supported field and direction.

Security
bearerAuth
Query
sortBystring

Sort by field and direction (e.g., code:asc, code:desc).

Example:sortBy=code:asc
Headers
X-PB-Developer-Partner-IDstring

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

curl -i -X GET \
  'https://api-sandbox.sendpro360.pitneybowes.com/costaccountmgmt/api/v1/accountCodes?sortBy=code%3Aasc' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'X-PB-Developer-Partner-ID: string'

Responses

A list of Account Code has been retrieved successfully.

Bodyapplication/json
Array [
idstring

Unique identifier of the Account Code created by system.

Example:"da5l9bkOMml5"
codestring

Unique Account Code value.

Example:"278001"
descriptionstring

Account Code description.

Example:"This is description for test codehash278001-u1"
]
Response
[ { "id": "da5l9bkOMml5", "code": "278001", "description": "This is description for test codehash278001-u1" } ]