Skip to content

Create Cost Account Import Job

Request

This operation is used for creating a job for Cost Accounts Import. The payload for this endpoint is an empty JSON object {} because it does not require any additional data to be sent in the request body. jobID and url is returned in the response where user can upload csv file containing cost accounts. Download the sample-cost-accounts-import file.

Security
bearerAuth
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 POST \
  https://api-sandbox.sendpro360.pitneybowes.com/costaccountmgmt/api/v1/costAccounts/importUrl \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'X-PB-Developer-Partner-ID: string'

Responses

Cost Account Added Successfully

Bodyapplication/json
jobIDstring

This is the system generated Job Id.

Example:"L86wbedwBon"
urlstring

This is url to which csv file would be uploaded for importing cost accounts

Example:"https://225934331380-sp360-shared-services-iad-qa.s3.amazonaws.com/CostAccount/import/upload/sac9f07/L86wbedwBon/import-costaccount-5a907730-10a0-4e5
Response
{ "jobID": "L86wbedwBon", "url": "https://225934331380-sp360-shared-services-iad-qa.s3.amazonaws.com/CostAccount/import/upload/sac9f07/L86wbedwBon/import-costaccount-5a907730-10a0-4e52-a193-d50a0c8a3d0c.csv?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIATJGV4JX2F6MDPCWY%2F20230819%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230819T114328Z&X-Amz-Expires=3600&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEOz%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSJHMEUCIQDIoH3r4%2FoDb99MmVOIxECmLjIGc9lFQ8mIgp75wpd0TgIgGqrcq2A%2FJJDVvv3lQlDZo9Eodt7Cg8%2B9MnN3zyzu2p" }