Skip to main content
POST
/
v1
/
vouchers
Create Voucher Purchase
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
}
'
{
"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"
}
]
}
}

Authorizations

Authorization
string
header
required

Bearer Authentication

Headers

X-BU-PROFILE-ID
string

User profile header

Example:

"BUS_YOK8tp5Zga01qOKEsqp07"

Body

application/json
amount
string
required

decimal value

Example:

"100"

merchant_id
string
required
Example:

"5b7db87c-1447-4651-abbc-3f67d628918a"

source_currency
string<string>
required

A valid currency

Required string length: 1 - 10
Example:

"BTC"

target_currency
string<string>
required

A valid currency

Required string length: 1 - 10
Example:

"BTC"

dry_run
boolean

Response

Default

General response Values

status
enum<string>
required
Available options:
success,
error
Example:

"success"

message
string
required
Example:

"message for success"

data
object
required

A summarized view of a user's voucher, including value, status, and redemption history.