Verify Status of Purge Jobs

The purge job automatically deletes all the abandoned shopping carts that aren't updated for the specified duration after the abandonment notification.

To check the status of last five purge jobs, call the purgeJob API by running this cURL command or by using a REST API client:

curl -H Authorization: Bearer <accessToken> https://<hostName>/bulk-api/v1/shoppingCart/purgeJob/ -X GET

where:

  • <accessToken> is the OAuth access token for your account.

  • <hostName> is the URL for the CX Industries Framework API Gateway.

The API returns a response with the details of the last five purge jobs.

Here's a sample response payload:

 [
{
"jobId": "8eeb2971-1b03-11eb-941f-657f728923d4",
"jobName": "Purge",
"createdOn": "2020-10-31T04:29:26.156Z",
"startedOn": "2020-10-31T04:29:26.273Z",
"completedOn": "2020-10-31T04:29:26.434Z",
"status": "CompletedError",
"request": "[Updated]='10/02/2020'",
"successfulRecords": {
"count": 3,
"records": [
"35-TLXSUT",
"38-GYU6QU",
"71-OWYGGC"
]
},
"failedRecords": {
"count": 2,
"records": [
{
"shoppingCartId": "96-XALB0G",
"error": "Database Error"
},
{
"shoppingCartId": "29-3AAJ0Y",
"error": "Database Error"
}
]
}
}
]