Skip to content

Update Cost Account

Request

Update Cost Account

Security
bearerAuth
Path
costaccountIdstringrequired
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/json
descriptionstring

this indicates the description of cost account

Example:"description"
statusboolean

this indicates if cost account is active

passwordEnabledboolean

this indicates if password is enabled

passwordCodestring

this defines password set for the cost account

Example:"test"
billableboolean

this indicates if cost account is billable

advanceOptionobject

Additional configuration options for assigning the cost account to a specific hierarchy level (Enterprise, Division, or Location). If no permission is provided, the cost account is assigned to the Enterprise level by default.

Example:
{ "permission": { "permissionByEntity": "D", "permissionByValue": [ "div_auto_sac11be" ] } }
curl -i -X PUT \
  'https://api-sandbox.sendpro360.pitneybowes.com/costaccountmgmt/api/v1/costAccounts/{costaccountId}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'X-PB-Developer-Partner-ID: string' \
  -d '{
    "description": "description",
    "status": true,
    "passwordEnabled": true,
    "passwordCode": "test",
    "billable": true,
    "advanceOption": {
      "permission": {
        "permissionByEntity": "D",
        "permissionByValue": [
          "div_auto_sac11be"
        ]
      }
    }
  }'

Responses

Specified cost account updated successfully.

Response
No content