Skip to main content
Documentation for version v74

Export points transactions

Description

Creates a task to generate a report of transactions for the selected points currency over a specified period. The response returns a task ID that can be used to track the task status.

Request URL

Method: POST

https://example.com/api/v1.1/loyalty/transactions_export

Request parameters

ParameterTypeExampleRequiredDescription
tokenstring"abc123def456"YesAPI token
loyalty_program_idint123YesLoyalty program ID
points_currency_eidstring"bonus_points"Yes, if points_currency_iid is not providedExternal points currency ID
points_currency_iidint1Yes, if points_currency_eid is not providedInternal points currency ID
from_idstring"a1b2c3d4-e5f6-7890-g1h2-i3j4k5l6m7n8"NoTransaction ID (UUID) for pagination; if omitted, export starts from the beginning of the period
date_fromstring (RFC3339)"2023-09-01T00:00:00Z"YesPeriod start date (inclusive)
date_tostring (RFC3339)"2023-09-30T23:59:59Z"YesPeriod end date (inclusive)

Request example

{
"token": "abc123def456",
"loyalty_program_id": 123,
"points_currency_eid": "bonus_points",
"date_from": "2023-09-01T00:00:00Z",
"date_to": "2023-09-30T23:59:59Z",
"from_id": "a1b2c3d4-e5f6-7890-g1h2-i3j4k5l6m7n8"
}

Response example

{
"data": {
"task_id": "task_b2f9fd6a-2499-4a63-b592-f15d4e3b69c5"
},
"error": 0,
"error_text": "Successful operation"
}

Response parameters

ParameterTypeDescription
errorintError code
error_textstringError text
task_idstring (UUID)Export task ID