Skip to main content
Authorization
string
required
Bearer token with marketing:read scope
id
string
required
The voucher ID

Query parameters

type
string
Filter by transaction type: redemption, refund, adjustment
limit
integer
default:"50"
Number of results per page (max 100)
offset
integer
default:"0"
Number of results to skip

Response

data.transactions
array
Array of transaction objects
data.meta
object
Pagination metadata
Request
curl -X GET "https://api.voyantcloud.com/v1/vouchers/voucher_abc123/transactions" \
  -H "Authorization: Bearer $API_KEY"
Response
{
  "data": {
    "transactions": [
      {
        "id": "txn_abc",
        "workspaceId": "ws_xyz",
        "voucherId": "voucher_abc123",
        "type": "refund",
        "amountMinor": 5000,
        "balanceAfterMinor": 7500,
        "currency": "EUR",
        "bookingId": "booking_789",
        "customerId": "cust_456",
        "relatedTransactionId": "txn_xyz",
        "description": "Refund for cancelled Booking #789",
        "createdAt": "2024-07-21T09:00:00Z"
      },
      {
        "id": "txn_xyz",
        "workspaceId": "ws_xyz",
        "voucherId": "voucher_abc123",
        "type": "redemption",
        "amountMinor": -5000,
        "balanceAfterMinor": 2500,
        "currency": "EUR",
        "bookingId": "booking_789",
        "customerId": "cust_456",
        "relatedTransactionId": null,
        "description": "Payment for Booking #789",
        "createdAt": "2024-07-20T14:30:00Z"
      },
      {
        "id": "txn_initial",
        "workspaceId": "ws_xyz",
        "voucherId": "voucher_abc123",
        "type": "adjustment",
        "amountMinor": 10000,
        "balanceAfterMinor": 10000,
        "currency": "EUR",
        "bookingId": null,
        "customerId": null,
        "relatedTransactionId": null,
        "description": "Initial balance",
        "createdAt": "2024-01-15T09:00:00Z"
      }
    ],
    "meta": {
      "total": 3,
      "limit": 50,
      "offset": 0
    }
  }
}
Transactions are returned in reverse chronological order (newest first).