Skip to main content
POST
/
v1
/
vouchers
/
{code}
/
transactions
/
export
Export Voucher Transactions
curl --request POST \
  --url https://{cluster}.voucherify.io/v1/vouchers/{code}/transactions/export \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-App-Id: <api-key>' \
  --header 'X-App-Token: <api-key>' \
  --data '{
  "parameters": {
    "order": "-created_at",
    "fields": [
      "id",
      "type",
      "source_id",
      "reason",
      "balance",
      "amount",
      "created_at",
      "voucher_id",
      "campaign_id",
      "details",
      "source"
    ]
  }
}'
{
"id": "exp_ARi2UbRjgfrHQJoVcKFrBUgA",
"object": "export",
"created_at": "2023-05-16T08:30:21.496Z",
"status": "SCHEDULED",
"channel": "API",
"exported_object": "voucher_transactions",
"parameters": {
"order": "-created_at",
"fields": [
"id",
"type",
"source_id",
"reason",
"balance",
"amount",
"created_at",
"voucher_id",
"campaign_id",
"details",
"related_transaction_id",
"source"
],
"filters": {
"voucher_id": {
"conditions": {
"$in": [
"HRwc0oHz"
]
}
}
}
},
"result": null,
"user_id": null
}

Authorizations

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

Path Parameters

code
string
required
Example:

Body

application/json
parameters
object

Response

id
string
required
Example:
object
enum<string>
default:export
required
Available options:
export
created_at
string<date-time>
required
Example:
status
enum<string>
default:SCHEDULED
required
Available options:
SCHEDULED
channel
string
default:API
required
exported_object
enum<string>
default:voucher_transactions
required
Available options:
voucher_transactions
parameters
object
required
result
object | null
required
user_id
string | null
required
Example: