Skip to content

Update Company Code

Request

Update the code and/or description for the specified id.

Security
bearerAuth
Path
idstringrequired

Unique identifier of the Company Code.

Headers
X-PB-Developer-Partner-IDstring

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

Bodyapplication/jsonrequired
codestring

New or updated Company Code value.

Example:"COMP001"
descriptionstring

Updated description of the Company Code.

Example:"This is description for updated company code COMP001-u1"
curl -i -X PUT \
  'https://api-sandbox.sendpro360.pitneybowes.com/costaccountmgmt/api/v1/companyCodes/{id}' \
  -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 updated company code COMP001-u1"
  }'

Responses

Specified Company Code has been updated successfully.

Bodyapplication/json
idstring

Identifier of the updated Company Code.

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