GET
/
orders
curl --request GET \
  --url https://api.cnaught.com/v1/orders \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "Gre28Fc35bt3",
      "order_number": "47726-53238-46633-33562-7433",
      "created_on": "2022-08-01T18:00:00.000000Z",
      "metadata": "Customer metadata",
      "description": "On behalf of Jane Smith",
      "amount_kg": 10.5,
      "state": "fulfilled",
      "price_usd_cents": 2350,
      "certificate_public_url": "https://registry.cnaught.com/orders/Gre28Fc35bt3",
      "certificate_download_public_url": "https://registry.cnaught.com/api/certificates/Gre28Fc35bt3/pdf"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Subaccount-Id
string

If present, scopes the operation to the subaccount with given id. See Subaccounts for more info.

Query Parameters

limit
integer | null
default:
20

Limits the number of orders returned, default is 20, max is 100

Required range: 1 < x < 100
starting_after
string | null

If specified, returns orders submitted before (earlier than) the order with this id, exclusive (order with this id is not included). Only one of starting_after and ending_before can be specified.

ending_before
string | null

If specified, returns orders submitted after (later than) the order with this id, exclusive (order with this id is not included). Only one of starting_after and ending_before can be specified.

Response

200
application/json
List of orders
data
object[]