Shared APIs
/Cost Account APIs
//
Create Cost Account Impor...
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
- Sandbox Serverhttps://api-sandbox.sendpro360.pitneybowes.com/costaccountmgmt/api/v1/costAccounts/importUrl
- Production Server (uses live data)https://api.sendpro360.pitneybowes.com/costaccountmgmt/api/v1/costAccounts/importUrl
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'Cost Account Added Successfully
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" }