ONE checkout:status
← Receivers

checkout:status

checkout family

Did this checkout pay? Reads the order by session id (card, ACP, pay request), the same cart settled on the escrow rail (cid), a Shopify checkout, a crypto checkout link, then Stripe for a card session with no order yet. paid is true (paid or refunded), false only for a definite not-paid (an open card session, an unclaimed link), null for anything it cannot verify. A session of another shop reads unknown, never a refusal

Effect
ask
Awaits an outcome — the call returns the response below.
Caller
owner
The class of authority the caller must already hold, decided from the attested context with no round trip.
Cost
free
What one call costs, so you can budget before acting.
Reversible
yes
The effect can be undone by a later call.
Idempotent
yes
Safe to retry as-is.

Send it with your agent

One click hands your coding agent a prompt that registers the substrate, reads this contract, and makes the call. Launch opens the app; the others copy the prompt.

Claude Code
Codex
Cursor
Gemini CLI
Claude Desktop
ChatGPT
curl -X POST https://one.ie/api/ask/checkout:status \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "sessionId": <string> }}'

The key is never in a link. npx -y @oneie/cli login writes it to ~/.config/oneie/key on your machine.

Request

Validated before dispatch — an invalid payload is refused with the fix, never half-applied.

  • sessionId string required The id checkout:started carried: a card cs_live_/cs_test_ session, a crypto link hash, a pay request id, or shopify:<id>. Up to 256 characters
  • cid string optional The cart id checkout:started carried, so a cart paid on the escrow rail reads paid even while its card session stays open. Up to 128 characters
  • workspace string optional Names the shop; omit for your own. A shop you do not control reads not_found

Response

What comes back from the call.

  • ok boolean
  • sessionId string
  • workspace string
  • state paid | refunded | processing | …
  • paid boolean | null true = paid or refunded · false = definitely not paid · null = could not verify (processing or unknown)
  • orderId string
  • error string no_db · bad_request (no sessionId, or too long) · not_found (no attested caller, or a shop you do not control)

Traffic

Every call to checkout:status, counted where it is dispatched — over HTTP or in-process alike. Aggregate only — no actor, no payload, no workspace.

Counting…

Wiring

Every place in the open source that names checkout:status, and the file that answers it. Read from the tree at build time — a receiver is reached by NAME through one door, so there is no import edge to follow and a grep is the honest shape of the question. Structure, not volume — the count is in Traffic above.

Called from

API route 2
  • one.ie/web/src/lib/receiver-index.generated.ts:127
  • one.ie/web/src/lib/resolvers/commerce-email.ts:131
Workflow 1
  • one.ie/web/src/lib/workflow-templates.ts:1921
CLI 2
  • packages/cli/src/lib/receivers-index.generated.ts:129
  • packages/cli/src/lib/receivers.generated.ts:129
→

Answered by

checkout:status one.ie/web/src/lib/resolvers/commerce-email.ts:303 Dispatched through POST /api/ask/checkout:status, after the envelope validates the payload.
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "sessionId": {
      "type": "string",
      "description": "The id checkout:started carried: a card cs_live_/cs_test_ session, a crypto link hash, a pay request id, or shopify:<id>. Up to 256 characters"
    },
    "cid": {
      "description": "The cart id checkout:started carried, so a cart paid on the escrow rail reads paid even while its card session stays open. Up to 128 characters",
      "type": "string"
    },
    "workspace": {
      "description": "Names the shop; omit for your own. A shop you do not control reads not_found",
      "type": "string"
    }
  },
  "required": [
    "sessionId"
  ]
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "sessionId": {
      "type": "string"
    },
    "workspace": {
      "type": "string"
    },
    "state": {
      "type": "string",
      "enum": [
        "paid",
        "refunded",
        "processing",
        "unpaid",
        "unknown"
      ]
    },
    "paid": {
      "description": "true = paid or refunded · false = definitely not paid · null = could not verify (processing or unknown)",
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ]
    },
    "orderId": {
      "type": "string"
    },
    "error": {
      "description": "no_db · bad_request (no sessionId, or too long) · not_found (no attested caller, or a shop you do not control)",
      "type": "string"
    }
  },
  "required": [
    "ok"
  ]
}