Skip to main content
POST
/
v1
/
loyalties
/
{campaignId}
/
points-expiration
/
export
curl --request POST \
--url https://{cluster}.voucherify.io/v1/loyalties/{campaignId}/points-expiration/export \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>' \
--data '{
"parameters": {
"fields": [
"id",
"campaign_id",
"voucher_id",
"status",
"expires_at",
"points"
],
"order": "-expires_at",
"filters": {
"junction": "and",
"voucher_id": {
"conditions": {
"$in": [
"v_0aMj6Mdp0i3zuXrd9NnBKboc7746mlgF",
"v_YLn0WVWXSXbUfDvxgrgUbtfJ3SQIY655"
]
}
}
}
}
}'
{
"id": "exp_zC3eXAFss17XTMzMkkov4KGq",
"object": "export",
"created_at": "2022-11-28T13:00:23.621Z",
"status": "SCHEDULED",
"channel": "API",
"exported_object": "points_expiration",
"parameters": {
"order": "-expires_at",
"fields": [
"id",
"campaign_id",
"voucher_id",
"status",
"expires_at",
"points"
],
"filters": {
"junction": "and",
"voucher_id": {
"conditions": {
"$in": [
"v_0aMj6Mdp0i3zuXrd9NnBKboc7746mlgF",
"v_YLn0WVWXSXbUfDvxgrgUbtfJ3SQIY655"
]
}
}
}
},
"result": null,
"user_id": null
}

Authorizations

X-App-Id
string
header
required
X-App-Token
string
header
required
Authorization
string
header
required

Path Parameters

campaignId
string
required
Example:

Body

application/json
parameters
object

Response

200 - application/json
id
string
Example:
object
enum<string>
default:export
Available options:
export
created_at
string<date-time>
Example:
status
enum<string>
Available options:
SCHEDULED
channel
enum<string>
Available options:
API,
WEBSITE
exported_object
enum<string>
default:points_expiration
Available options:
points_expiration
parameters
object
result
object
user_id
string
Example: