ONE checkout:link
← Receivers

checkout:link

checkout family

mcp

Get a buy link for one of your product prices, to send to a buyer: card on your own Stripe account; crypto only where your shop's rails allow it. Returns { url, qr, shortCode, rails } — rails names the ways the buyer can pay on it. Owner-only

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.
Reversible
no
This cannot be undone. Dry-run it first where the contract allows.

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:link \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "slug": <string>, "ppid": <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.

  • slug string required Your shop's workspace slug. Names the shop; the attested caller must control it (refused forbidden)
  • ppid string required The product price id — products_create returns it, products_list shows every price's ppid
  • chain string optional 'SUI' or 'EVM' to pin the crypto chain; anything else is ignored and the link offers what the shop takes
  • network string optional 'mainnet' or 'testnet'; anything else is ignored and pay.one.ie applies its default
  • via string optional The channel you will send it through (whatsapp, sms, email…), so the sale is counted by channel. An unknown name drops the label, never the link
  • bookingId string optional Make it a deposit link for a PENDING booking in this shop (refused booking_not_pending otherwise)

Response

What comes back from the call.

  • url string The buy link to send
  • qr string
  • shortCode string
  • rails string[] How the buyer can pay on this link: card, crypto
  • error string A refusal by name: 'slug and ppid required' · forbidden · booking_not_pending · the mint's own reason (store closed, price not live)

Traffic

Every call to checkout:link, 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:link, 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 6
  • one.ie/web/src/lib/home/home-copy.ts:215
  • one.ie/web/src/lib/home/home-path.ts:37
  • one.ie/web/src/lib/home/sell/make.ts:98
  • one.ie/web/src/lib/pay/agent-pay.ts:8
  • one.ie/web/src/lib/receiver-index.generated.ts:110
  • one.ie/web/src/lib/storefront/sell-with-mcp.ts:81
Agent runtime 1
  • channels/src/tools/commerce.ts:103
Workflow 1
  • one.ie/web/src/lib/workflow-templates.ts:584
CLI 1
  • packages/cli/src/lib/money-receivers.ts:16
Docs 2
  • one.ie/web/src/content/docs/agent-path.md:1164
  • one.ie/web/src/content/docs/payments.md:73
→

Answered by

checkout:link one.ie/web/src/lib/resolvers/commerce.ts:1053 Dispatched through POST /api/ask/checkout:link, after the envelope validates the payload.
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "slug": {
      "type": "string",
      "description": "Your shop's workspace slug. Names the shop; the attested caller must control it (refused forbidden)"
    },
    "ppid": {
      "type": "string",
      "description": "The product price id — products_create returns it, products_list shows every price's ppid"
    },
    "chain": {
      "description": "'SUI' or 'EVM' to pin the crypto chain; anything else is ignored and the link offers what the shop takes",
      "type": "string"
    },
    "network": {
      "description": "'mainnet' or 'testnet'; anything else is ignored and pay.one.ie applies its default",
      "type": "string"
    },
    "via": {
      "description": "The channel you will send it through (whatsapp, sms, email…), so the sale is counted by channel. An unknown name drops the label, never the link",
      "type": "string"
    },
    "bookingId": {
      "description": "Make it a deposit link for a PENDING booking in this shop (refused booking_not_pending otherwise)",
      "type": "string"
    }
  },
  "required": [
    "slug",
    "ppid"
  ],
  "additionalProperties": {}
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "url": {
      "description": "The buy link to send",
      "type": "string"
    },
    "qr": {
      "type": "string"
    },
    "shortCode": {
      "type": "string"
    },
    "rails": {
      "description": "How the buyer can pay on this link: card, crypto",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "error": {
      "description": "A refusal by name: 'slug and ppid required' · forbidden · booking_not_pending · the mint's own reason (store closed, price not live)",
      "type": "string"
    }
  }
}