BSV DocsBSV Docs

Create an order

POST/orders

Body application/json

amountintegerrequired

Amount in the smallest currency unit.

currencystringrequired

Three-letter ISO 4217 code.

Response

The created order.

idstring
amountinteger
currencystring
status"pending" | "paid" | "canceled"

Missing or invalid API key.

errorobject
Show error properties
codestring
messagestring
Request
curl -X POST "https://sandbox.api.example.com/v1/orders" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <token>" \
  -d '{
  "amount": 2500,
  "currency": "USD"
}'
Response
{
  "id": "ord_123",
  "amount": 2500,
  "currency": "USD",
  "status": "pending"
}