Spend Back
Get history of spend backs by user token
This GET endpoint is used to retrieve the history of spendbacks for a specific user token. <br> You can use this endpoint to help manage your payment operations and track the usage of funds by your users. <br> To use this endpoint, you need to provide the user_token as a parameter in the URL Path. <br> The endpoint will then return a list of all the historical spendbacks for the provided user token. The response will contain a JSON array with details for each spendback transaction.
get/payout/spendback/{user_token}
Headers
Idempotency-Keystring
Unique key to prevent duplicate processing
Response
Succesful operation.
Example response
[
{
"spendback_token": "spnd_bk_4275f2-bae1-488d-9d6f-20af1cd83574",
"time_of_spendback": "2019-07-07T23:03:05",
"client_spendback_id": "aEjn345",
"source_token": "123e4567-e89b-12d3-a456-426614174000",
"wallet_token": "123e4567-e89b-12d3-a456-426614174000",
"amount": 100.5,
"source_currency_code": "USD",
"notes": "Commission payment for July",
"metadata": {
"group_id": 541
}
}
]