Skip to main content
POST
Purchase prepaid funds for the caller.
Purchase $5.00$500.00 of prepaid funds by sending a decimal USD string:
The response is 200 if payment has already completed or 202 while it is pending. Funds are not spendable until the status is paid.

Authorizations

Authorization
string
header
required

A Droyd API key in the Authorization Bearer slot.

Headers

Idempotency-Key
string
required
Required string length: 8 - 120
Pattern: ^[A-Za-z0-9][A-Za-z0-9._:-]{7,119}$

Body

application/json
amount_usd
string
required
Pattern: ^(?:[5-9]|[1-9][0-9]|[1-4][0-9]{2}|500)(?:\.[0-9]{1,2})?$

Response

Successful response.

ok
any
required