Skip to content
ndStill is in development. These docs describe the v2 API as designed; the SDKs and the hosted MCP server are previews and not generally available.
Docs

Checkouts API

One agent purchase: the rails offered, the outcome and the receipt.

2 endpointsGenerated from the typed registry

Base URL https://api.ndstill.com/v2. Send Authorization: Bearer with a key, Ndstill-Version: 2026-11-01, and an Idempotency-Key on every POST. Conventions, scopes and errors are in the API overview and Errors and decline reasons. Examples come from the mock backend; the shapes are the TypeScript types in packages/api.

List checkouts#

GET/v2/checkouts
Query parameters all optional
  • statusstring enum
    "open""paid""expired""refunded""failed"
  • cursorstring
  • limitnumber

    1–200, default 50.

  • qstring

    Free-text search over names, ids and descriptors.

  • sortstring

    Sort field, prefix "-" for descending ("-created_at" is the default).

  • created_gteTimestamp

    created_at >= (ISO).

  • created_lteTimestamp

    created_at <= (ISO).

Response list of Checkout

Returns a list envelope: object "list", data[], has_more, next_cursor (pass it back as cursor) and total when cheap to count. Items:

  • idId
  • object"checkout"
  • org_idId
  • created_atTimestamp
  • updated_atTimestampoptional
  • test_modebooleanoptional

    True for test-mode objects (simulations, sandbox).

  • seller_idId
  • priceRef | null

    Small reference used for denormalized names in lists (no N+1 lookups in tables).

    Ref: 2 fields
    • idId
    • namestring
  • buyerobject
    4 fields
    • org_namestring
    • agent_namestring
    • passport_kidstring | null
    • verifiedboolean
  • amountMoney

    An amount: integer minor units + asset.

    Money: 2 fields
    • amountnumber
    • assetAssetCode
      "USD""USDC""EUR""GBP"
  • rails_offeredRail[]
    "card""network_token""checkout_token""stablecoin""bank""ai""cloud"
  • railstring enum
    null"card""network_token""checkout_token""stablecoin""bank""ai""cloud"
  • statusstring enum
    "open""paid""expired""refunded""failed"
  • receipt_idId | null
  • paid_atTimestamp | nulloptional
  • expires_atTimestamp | nulloptional
  • landed_instring | nulloptional

    Where the money landed (always the seller's own account).

  • failure_reasonstring | nulloptional

    Why it failed or expired, in plain language.

  • confirmationPaymentConfirmation | nulloptional

    How ndStill confirmed the payment on its rail before the receipt said "paid".

    PaymentConfirmation: 6 fields
    • methodstring enum
      "ndstill_payment""onchain""stripe""sandbox"
    • refstring

      The payment id, `network:tx_hash`, the Stripe payment id, or the checkout id for sandbox.

    • networkstring | null
    • confirmed_atTimestamp
    • sandboxboolean

      No money moved (test keys).

    • detailstring

      In plain words ("1.50 USDC reached 0xAbC0…0dEf on base.").

Errors
  • 400invalid_request

    A query parameter is invalid.

  • 401authentication

    The key or token is missing, expired or revoked.

  • 403permission

    The key's scopes or the person's role don't allow this.

  • 429rate_limited

    Slow down; retry after the Retry-After header.

Example from the mock backend
Request
curl -X GET "https://api.ndstill.com/v2/checkouts?limit=2" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01"
Response 200
{
  "object": "list",
  "data": [
    {
      "id": "chk_01M81YY8YMTZY2WCXZTGBNH9FS",
      "object": "checkout",
      "org_id": "org_443B247B2FC3D2A13FAC0AEF86",
      "created_at": "2026-11-22T15:45:33.652Z",
      "seller_id": "sel_01M0V5Y1V29PSN366B6JQB651X",
      "price": {
        "id": "price_01M0XRARV280NK6AYYNJSWRHFK",
        "name": "Search call"
      },
      "buyer": {
        "org_name": "Atlas Research",
        "agent_name": "Market scout",
        "passport_kid": null,
        "verified": true
      },
      "amount": {
        "amount": 20000,
        "asset": "USDC"
      },
      "rails_offered": [
        "stablecoin"
      ],
      "rail": "stablecoin",
      "status": "paid",
      "receipt_id": "rcpt_01M81Z03HM7KC9PR4G9DERE8F6",
      "confirmation": {
        "method": "onchain",
        "ref": "base:0xa547a0dd1bf02d3509a6950d3234ee05e21c79dd912bf075b3ead90dcf3dc4c5",
        "network": "base",
        "confirmed_at": "2026-11-22T15:46:33.652Z",
        "sandbox": false,
        "detail": "0.02 USDC in USDC reached the seller's wallet on base."
      },
      "paid_at": "2026-11-22T15:46:13.652Z",
      "expires_at": "2026-11-22T16:00:33.652Z",
      "landed_in": "Base wallet 0xaa9c…4017",
      "failure_reason": null
    },
    {
      "id": "chk_01M81KRT7P8X7W548JH0RP4CH5",
      "object": "checkout",
      "org_id": "org_443B247B2FC3D2A13FAC0AEF86",
      "created_at": "2026-11-22T12:30:20.406Z",
      "seller_id": "sel_01M0V5Y1V29PSN366B6JQB651X",
      "price": {
        "id": "price_01M0XRARV280NK6AYYNJSWRHFK",
        "name": "Search call"
      },
      "buyer": {
        "org_name": "Pine & Co. Accounting",
        "agent_name": "Close assistant",
        "passport_kid": "pine-co-accounting-42fc59",
        "verified": true
      },
      "amount": {
        "amount": 20000,
        "asset": "USDC"
      },
      "rails_offered": [
        "stablecoin"
      ],
      "rail": "stablecoin",
      "status": "paid",
      "receipt_id": "rcpt_01M81KTMTP77T3B3715MRB03JD",
      "confirmation": {
        "method": "onchain",
        "ref": "base:0x90e7ca023fc94a7bdfdf3cd0d446fe6168ef589ea5e115773211b51c0dddc14d",
        "network": "base",
        "confirmed_at": "2026-11-22T12:31:20.406Z",
        "sandbox": false,
        "detail": "0.02 USDC in USDC reached the seller's wallet on base."
      },
      "paid_at": "2026-11-22T12:31:00.406Z",
      "expires_at": "2026-11-22T12:45:20.406Z",
      "landed_in": "Base wallet 0xaa9c…4017",
      "failure_reason": null
    }
  ],
  "has_more": true,
  "next_cursor": "Mg==",
  "total": 190
}
Try it

Runs against the in-browser mock with a test key. Nothing leaves your browser.

Retrieve a checkout#

GET/v2/checkouts/{id}
Path parameters
  • idIdrequired

    A prefixed ID from this org.

Response Checkout

The same Checkout object as List checkouts.

Errors
  • 401authentication

    The key or token is missing, expired or revoked.

  • 403permission

    The key's scopes or the person's role don't allow this.

  • 404not_found

    No object with that id in this org.

  • 429rate_limited

    Slow down; retry after the Retry-After header.

Example from the mock backend
Request
curl -X GET "https://api.ndstill.com/v2/checkouts/chk_01M81YY8YMTZY2WCXZTGBNH9FS" \
  -H "Authorization: Bearer $NDSTILL_API_KEY" \
  -H "Ndstill-Version: 2026-11-01"
Response 200
{
  "id": "chk_01M81YY8YMTZY2WCXZTGBNH9FS",
  "object": "checkout",
  "org_id": "org_443B247B2FC3D2A13FAC0AEF86",
  "created_at": "2026-11-22T15:45:33.652Z",
  "seller_id": "sel_01M0V5Y1V29PSN366B6JQB651X",
  "price": {
    "id": "price_01M0XRARV280NK6AYYNJSWRHFK",
    "name": "Search call"
  },
  "buyer": {
    "org_name": "Atlas Research",
    "agent_name": "Market scout",
    "passport_kid": null,
    "verified": true
  },
  "amount": {
    "amount": 20000,
    "asset": "USDC"
  },
  "rails_offered": [
    "stablecoin"
  ],
  "rail": "stablecoin",
  "status": "paid",
  "receipt_id": "rcpt_01M81Z03HM7KC9PR4G9DERE8F6",
  "confirmation": {
    "method": "onchain",
    "ref": "base:0xa547a0dd1bf02d3509a6950d3234ee05e21c79dd912bf075b3ead90dcf3dc4c5",
    "network": "base",
    "confirmed_at": "2026-11-22T15:46:33.652Z",
    "sandbox": false,
    "detail": "0.02 USDC in USDC reached the seller's wallet on base."
  },
  "paid_at": "2026-11-22T15:46:13.652Z",
  "expires_at": "2026-11-22T16:00:33.652Z",
  "landed_in": "Base wallet 0xaa9c…4017",
  "failure_reason": null
}
Try it

Runs against the in-browser mock with a test key. Nothing leaves your browser.