Skip to content

Get Cost Account Details by Cost Account ID

Request

This operation gets the Cost account by cost account ID

Security
bearerAuth
Path
costaccountIdstringrequired

Indicates costaccountId.

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/costAccounts/{costaccountId}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'X-PB-Developer-Partner-ID: string'

Responses

Cost Account get successful

Bodyapplication/json
accountIDstring

it indicates unique cost account ID created by system

Example:"absjf878"
namestring

this indicates the name of cost account

Example:"name"
codestring

this indicates the code of cost account

Example:"code"
parentstring

this indicates cost account Id of parent account

Example:""
descriptionstring

this indicates the description you want to provide for cost account

Example:"description"
statusboolean

It indicates if cost account is active or inactive

passwordEnabledboolean

It indicates if password is enabled on cost account

passwordCodestring

It indicates password for the cost account

Example:"test"
billableboolean

It 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" ] } }
Response
{ "accountID": "absjf878", "name": "name", "code": "code", "parent": "", "description": "description", "status": true, "passwordEnabled": true, "passwordCode": "test", "billable": true, "advanceOption": { "permission": { "permissionByEntity": "D", "permissionByValue": [] } } }