cURL
curl --request GET \ --url https://api.sandbox.busha.so/v1/vouchers/{id} \ --header 'Authorization: Bearer <token>'
200
Example
{ "status": "success", "message": "message for success", "data": { "id": "bus_123456789", "merchant_name": "SPAR", "voucher_code": "58556806", "currency": "BTC", "status": "used", "picture": "https://example.com", "current_value": "100", "voucher_value": "100", "expires_at": "2023-10-15T12:15:30Z", "created_at": "2023-10-15T12:15:30Z", "voucher_pin": "<string>", "redemptions": [ { "amount_used": "100", "timestamp": "2023-10-15T12:15:30Z", "point_of_usage": "Gold Cat Wigs Store 1" } ] }}
This fetches a voucher purchase by ID
Bearer Authentication
User profile header
"BUS_YOK8tp5Zga01qOKEsqp07"
"bus_123456789"
Default
General response Values
success
error
"success"
"message for success"
A summarized view of a user's voucher, including value, status, and redemption history.
Show child attributes
A valid id
"SPAR"
"58556806"
A valid currency
1 - 10
"BTC"
pending
used
expired
new
inactive
"used"
A valid url
"https://example.com"
decimal value
"100"
"2023-10-15T12:15:30Z"
History of partial or full voucher redemptions.
"Gold Cat Wigs Store 1"