cURL
curl --request POST \ --url https://api.sandbox.busha.so/v1/vouchers \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "amount": "100", "merchant_id": "5b7db87c-1447-4651-abbc-3f67d628918a", "source_currency": "BTC", "target_currency": "BTC", "dry_run": true } '
201
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 creates a voucher purchase
Bearer Authentication
User profile header
"BUS_YOK8tp5Zga01qOKEsqp07"
decimal value
"100"
"5b7db87c-1447-4651-abbc-3f67d628918a"
A valid currency
1 - 10
"BTC"
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
"bus_123456789"
"SPAR"
"58556806"
pending
used
expired
new
inactive
"used"
A valid url
"https://example.com"
"2023-10-15T12:15:30Z"
History of partial or full voucher redemptions.
"Gold Cat Wigs Store 1"