BSV DocsBSV Docs

Get an order

GET/orders/{id}

Path Parameters

idstringrequired

The order ID.

Response

The order.

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

Missing or invalid API key.

errorobject
Show error properties
codestring
messagestring

No order with this ID.

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