Menu
Create Points Expiration Export
Export Loyalty Campaign Point Expiration
POST
/v1/loyalties/{campaignId}/points-expiration/exportUse it in a workflow
- Add a step and choose the Voucherify connector.
- Pick the Create Points Expiration Export action (under Loyalties).
- Fill in the fields below, then reference the result from later steps as
{{createPointsExpirationExport.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"parameters": {
"order": "expires_at",
"fields": [
"id"
],
"filters": {
"junction": "and",
"voucher_id": {
"conditions": {
"$in": [
"string"
],
"$not_in": [
"string"
],
"$is": "string",
"$is_not": "string"
}
},
"campaign_id": {
"conditions": {
"$in": [
"string"
],
"$not_in": [
"string"
],
"$is": "string",
"$is_not": "string"
}
}
}
}
}
Response
Returns 200 with an object. Read it in later steps with {{createPointsExpirationExport.response.data.<field>}}.
{
"id": "exp_FFfp9o7daWuJqJCKp5xqqli4",
"object": "export",
"created_at": "2022-04-28T11:23:20.922Z",
"status": "SCHEDULED",
"channel": "API",
"exported_object": "points_expiration",
"parameters": {
"order": "expires_at",
"fields": [
"id"
],
"filters": {
"junction": "and",
"voucher_id": {
"conditions": {
"$in": [
"string"
],
"$not_in": [
"string"
],
"$is": "string",
"$is_not": "string"
}
},
"campaign_id": {
"conditions": {
"$in": [
"string"
],
"$not_in": [
"string"
],
"$is": "string",
"$is_not": "string"
}
}
}
},
"result": {},
"user_id": "user_g24UoRO3Caxu7FCT4n5tpYEa3zUG0Fr"
}
Need more? See the Voucherify guide for connection setup and behaviour shared by every action.
Was this page helpful?