API

.mdOpenAPI

Orders

Retrieve an order

GET/api/orders/{id}Optional key

The order in the same shape as when it was created; each call while it's open also checks the chain.

While an order is open, each call also checks the chain for its payment and delivery (at most once every 3 seconds per order), so polling every 2 to 3 seconds sees progress within seconds. Orders nobody polls are processed by a background job.

Watch stage for progress and status for detail, both in the order lifecycle. payments lists every transfer into the deposit address with how it was matched (kind: counted, extra or foreign), and refunds every amount sent back.

Path parameters

idstringRequired
The order id: ord_ and 8 to 32 lowercase letters or digits.

Errors

HTTPerrorWhen
404not_foundNo order (or transaction) with that id.
429rate_limitedToo many calls (per IP, or per key with a key). Wait for Retry-After seconds.

Every error is {"error": "<code>", "message": "<text>"}. All error codes.

Rate limits

  • Without a key: 120 at once, then 1 per second, per IP.
  • With an API key: 600 at once, then 5 per second, per key.