Skip to main content
POST
/
v1
/
bills
Create Bill Purchase
curl --request POST \
  --url https://api.sandbox.busha.so/v1/bills \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "airtime",
  "target_currency": "BTC",
  "source_currency": "BTC",
  "phone": "+234 8012345678",
  "platform": "<string>",
  "account_id": "<string>",
  "recipient_id": "<string>",
  "amount": "100",
  "dry_run": true
}
'
{
"status": "success",
"message": "message for success",
"data": {
"id": "bus_123456789",
"profile_id": "bus_123456789",
"type": "airtime",
"reference": "bus_123456789",
"amount": "100",
"currency": "BTC",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"platform": "busha",
"fee": "100"
}
}

Authorizations

Authorization
string
header
required

Bearer Authentication

Headers

X-BU-PROFILE-ID
string

User profile header

Example:

"BUS_YOK8tp5Zga01qOKEsqp07"

Body

application/json
type
enum<string>
required
Available options:
airtime,
data,
bet
target_currency
string<string>
required

A valid currency

Required string length: 1 - 10
Example:

"BTC"

source_currency
string<string>
required

A valid currency

Required string length: 1 - 10
Example:

"BTC"

phone
string<phone>
required

A valid phone number. format {{calling_code}} {{number}}

Example:

"+234 8012345678"

platform
string
required
account_id
string
required
recipient_id
string

Optional recipient identifier

amount
string

decimal value

Example:

"100"

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