List Async Actions
curl --request GET \
--url https://{cluster}.voucherify.io/v1/async-actions \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'{
"object": "list",
"data_ref": "async_actions",
"async_actions": [
{
"id": "aa_0ba518c55290c6fd62",
"type": "CUSTOMERS.BULK_UPDATE",
"status": "DONE",
"created_at": "2022-09-05T11:40:17.098Z",
"updated_at": "2022-09-05T11:40:17.887Z",
"request_id": "v-0ba518c52bc99858f0",
"progress": 100,
"object": "async_action"
},
{
"id": "aa_0ba50a7ff4d3574568",
"type": "CUSTOMERS.METADATA_UPDATE",
"status": "DONE",
"created_at": "2022-09-05T10:37:56.051Z",
"updated_at": "2022-09-05T10:37:56.862Z",
"request_id": "v-0ba50a7feb49984902",
"progress": 100,
"object": "async_action"
}
]
}{
"code": 400,
"key": "invalid_query_params",
"message": "Invalid query params",
"details": "Property .end_date cannot be recognized as a ISO-8601 compliant date",
"request_id": "v-0c54493e444b0f61a6"
}List Async Actions
Track asynchronous operations scheduled in your project.
The table below lists the possible types of async actions. The types are different for each endpoint generating the async action.
| Types by Context | Endpoint |
|---|---|
| CAMPAIGN | |
| CAMPAIGN.VOUCHERS_IMPORT | POST /campaigns/{campaignId}/import |
| CAMPAIGN.VOUCHERS_IMPORT_CSV | POST /campaigns/{campaignId}/importCSV |
| CAMPAIGN.VOUCHERS_UPDATE | PUT /campaigns/{campaignId} |
| CAMPAIGN.VOUCHERS_DELETE | DELETE /campaigns/{campaignId} |
| CAMPAIGN.VOUCHERS_GENERATE |
|
| CUSTOMERS | |
| CUSTOMERS.IMPORT_CSV | POST /customers/importCSV |
| CUSTOMERS.BULK_UPDATE | POST /customers/bulk/async |
| CUSTOMERS.METADATA_UPDATE | POST /customers/metadata/async |
| PRODUCTS | |
| PRODUCTS.BULK_UPDATE | POST /products/bulk/async |
| PRODUCTS.METADATA_UPDATE | POST /products/metadata/async |
| PRODUCTS.IMPORT_CSV | POST /products/importCSV |
| SKUS.IMPORT_CSV | POST /skus/importCSV |
| VOUCHERS | |
| VOUCHERS.IMPORT | POST /vouchers/import |
| VOUCHERS.IMPORT_CSV | POST /vouchers/importCSV |
| VOUCHERS.BULK_UPDATE | POST /vouchers/bulk/async |
| VOUCHERS.METADATA_UPDATE | POST /vouchers/metadata/async |
| ORDERS | |
| ORDERS.IMPORT | POST /orders/import |
| METADATA KEY PURGE | |
| CAMPAIGNS.METADATA_KEY_PURGE CUSTOMERS.METADATA_KEY_PURGE PRODUCTS.METADATA_KEY_PURGE VOUCHERS.METADATA_KEY_PURGE ORDERS.METADATA_KEY_PURGE | No API endpoint equivalent. You can perform this action through the Dashboard. See Dashboard documentation: Dashboard > Project Settings |
GET
/
v1
/
async-actions
List Async Actions
curl --request GET \
--url https://{cluster}.voucherify.io/v1/async-actions \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'{
"object": "list",
"data_ref": "async_actions",
"async_actions": [
{
"id": "aa_0ba518c55290c6fd62",
"type": "CUSTOMERS.BULK_UPDATE",
"status": "DONE",
"created_at": "2022-09-05T11:40:17.098Z",
"updated_at": "2022-09-05T11:40:17.887Z",
"request_id": "v-0ba518c52bc99858f0",
"progress": 100,
"object": "async_action"
},
{
"id": "aa_0ba50a7ff4d3574568",
"type": "CUSTOMERS.METADATA_UPDATE",
"status": "DONE",
"created_at": "2022-09-05T10:37:56.051Z",
"updated_at": "2022-09-05T10:37:56.862Z",
"request_id": "v-0ba50a7feb49984902",
"progress": 100,
"object": "async_action"
}
]
}{
"code": 400,
"key": "invalid_query_params",
"message": "Invalid query params",
"details": "Property .end_date cannot be recognized as a ISO-8601 compliant date",
"request_id": "v-0c54493e444b0f61a6"
}Authorizations
X-App-Id & X-App-TokenX-Voucherify-OAuth
Scopes
Query Parameters
Response
Returns a list of all scheduled asynchronous actions and detailed information for each scheduled action. Note that a status DONEdoesn't include the result of the completed action. If you need more information about the result, use the ID of the respective async action to call the Get Async Action endpoint.
Response body schema for GET v1/async-actions.

