Skip to content

Update Account Code

Request

Update the code and/or description for the specified id. Use this to revise an Account Code record.

Security
bearerAuth
Path
idstringrequired

Unique identifier of the Account Code.

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
codestring

New/updated Account Code value.

Example:"278001"
descriptionstring

Updated description of the Account Code.

Example:"this is description for test codehash278001-u1"
curl -i -X PUT \
  'https://api-sandbox.sendpro360.pitneybowes.com/costaccountmgmt/api/v1/accountCodes/{id}' \
  -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 codehash278001-u1"
  }'

Responses

Specified Account Code has been updated successfully.

Bodyapplication/json
idstring

Identifier of the updated Account Code.

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