Skip to content

Get Import Cost Account Job Status

Request

This operation retrieves the status of an existing Batch identified by {jobID}. The response will provide information about its current status and whether the job has been completed. In case of error, an error CSV file will be generated with details of the error.

Security
bearerAuth
Path
jobIDstringrequired

This is the jobID which system generated in response of Import Cost Account API

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

Responses

Cost Account Added Successfully

Bodyapplication/json
statusstring

It shows the status of the Job- Completed or Failed

Example:"Completed"
jobIDstring

It shows the JobID of the import cost account

Example:"L86wbedwBon"
RecordCountsobject
errorFileURLobject

It would only be visible when status is Failed

Response
{ "status": "Completed", "jobID": "L86wbedwBon", "RecordCounts": { "total": 0, "success": 0, "failed": 0 }, "errorFileURL": { "csv": "https://225934331380-sp360-shared-services-iad-qa.s3.amazonaws.com/CostAccount/import/error/sac9f07/L86wbedwBon/Error-import-costaccount-5a907730-10a0-4e52-a193-d50a0c8a3d0c.csv?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIATJGV4JX2K7OIRQGI%2F20230819%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230819T115234Z&X-Amz-Expires=900&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEOz%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLWVhc3QtMSJHMEUCIEg6jXh8GVV82wgPUv9NINpspM42vrB2zVWsqr3%2BbmXlAiEAgBxvyeN7fJzMXF40NzFhzTnGur8mfcPkKpAO56kBIPAqxQUIpP%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FARACGgwyMjU5MzQzMz" } }