Skip to main content
GET
/
api
/
v1
/
orders
JavaScript
import CheckoutIntents from 'checkout-intents';

const client = new CheckoutIntents({
  apiKey: process.env['CHECKOUT_INTENTS_API_KEY'], // This is the default and can be omitted
});

// Automatically fetches more pages as needed.
for await (const order of client.orders.list()) {
  console.log(order.id);
}
{
  "data": [
    {
      "id": "<string>",
      "checkoutIntentId": "ci_aaa8af5c5aae4c0e8ef0172c26c65c13",
      "createdAt": "2026-03-25T00:00:00Z",
      "updatedAt": "2026-03-27T00:00:00Z"
    }
  ],
  "pageInfo": {
    "hasPreviousPage": true,
    "hasNextPage": true,
    "endCursor": "<string>",
    "startCursor": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Rye API key

Query Parameters

limit
integer<int32>

Maximum number of results to return (default 100)

Required range: 1 <= x <= 100
after
string
before
string

Response

Paginated list of orders

data
object[]
required
pageInfo
object
required