- Preview
- Code

{
"connect_token": "cot_6587fa4362341be5b524de3b",
"route": "payment_history",
"timezone": "America/Denver",
"currency_code": "USD",
"live_mode": true,
"actions": [
"PAYMENT_DETAILS",
"REJOIN_PROGRAMME",
"BACK",
"CLOSE"
],
"programme_status": "LEFT",
"payment_details": {
"type": "CARD",
"brand": "VISA",
"last4": "8453"
},
"support_reference": "AZ01346701301",
"support_email": "help@leap.com",
"transactions": [
{
"id": "txn_8f2a91",
"date": "2025-03-07",
"amount": 146.12,
"status": "PAID"
},
{
"id": "txn_7b4c03",
"date": "2024-12-07",
"amount": 92.04,
"status": "PAID"
},
{
"id": "txn_6a1d55",
"date": "2024-09-07",
"amount": 164.11,
"status": "PAID"
}
]
}
Actions
The following actions are supported when responding to Connect on this route:| Action | Result |
|---|---|
PAYMENT_DETAILS | Routes customer to the payment method flow. |
REJOIN_PROGRAMME | Lets the customer rejoin the programme after leaving. Returned only when rejoining is possible. |
BACK | Returns previous page. If unavailable, returns callback_url. |
CLOSE | Returns callback_url you specified when creating the Connect token. |
Errors
When you POST your response to Connect, the following validation errors may be returned:| Error Code | Error Description |
|---|---|
data_json_invalid | Data does not conform to the JSON schema. |
Transaction statuses
Possible values of thestatus field on each transactions entry:| Status | Description |
|---|---|
PAID | Payment has been settled. |
PENDING | Payment is in progress. |
FAILED | Payment could not be completed. |
REJOIN_PROGRAMME is only returned when programme_status is LEFT. See the VPP Summary page for the full programme_status enum.
