get https://api.voucherify.io/v1/async-actions/
Async actions API lets you track asynchronous operations scheduled in your Projects. Using this endpoint you can check the result of a scheduled asynchronous operation.
Response Schema
Response provides detailed information about the async action result.
Response schema type: object
{
"id": "aa_09414733b84a1ed3c4", // string, unique ID of async action
"type": "CAMPAIGN.VOUCHERS_IMPORT_CSV", // string, type of async action is different for each endpoints managed via async actions API
"status": "DONE", // string, status informs if the async action is already completed
"result": { // object, format specific for called async action
"message": "1 voucher(s) imported successfully, 0 failed.", // string, shows how many records were processed successfully and how many failed
"failed": [] // array, if any records failed during the process, it shows the failure details specific for the given async action (reason, row, code, customer's source id/id) .
},
"created_at": "2021-05-18T06:32:44.002Z", // date time of scheduling async action
"object": "async_action"
}
{
"id": "aa_0941a57af5d96ddce7",
"type": "CUSTOMERS.IMPORT_CSV",
"status": "DONE",
"result": {
"message": "0 customer(s) imported successfully, 1 failed.",
"failed": [
{
"source_id": "test_import_id",
"row": 1,
"reason": "Invalid phone format"
}
]
},
"created_at": "2021-05-18T13:24:38.489Z",
"object": "async_action"
}