VEYNDO
Handbook
docs/reference/checkout.mdView source ↗

English source · 15 min

Checkout API reference

Cart, quote, checkout transaction and order placement. Contract version 1.0.0, generated from contracts/http/checkout.openapi.json. 23 HTTP operations, 8 MCP tools. All components · Build your first app.

Set up a client

Every example below uses these three values. VEYNDO_TOKEN is needed only for merchant operations; keep it on your server.

export VEYNDO_URL=https://api.veyndo.ai
export VEYNDO_SHOP=<your-shop-id>
export VEYNDO_TOKEN=<personal-session-or-integration-key>

curl

curl -fsS "$VEYNDO_URL/health"

TypeScript

import { Auth, VeyndoClient } from "@veyndo/commerce-client";

const client = new VeyndoClient({
  baseUrl: process.env.VEYNDO_URL!,
  tenant: process.env.VEYNDO_SHOP,
  auth: process.env.VEYNDO_TOKEN ? Auth.personalSession(process.env.VEYNDO_TOKEN) : undefined,
});

Python

import os
from veyndo_sdk import Auth, VeyndoClient

token = os.environ.get("VEYNDO_TOKEN")
client = VeyndoClient(os.environ["VEYNDO_URL"], tenant=os.environ["VEYNDO_SHOP"],
                      auth=Auth.personal_session(token) if token else None)

Rust

use serde_json::json;
use veyndo_sdk::{Auth, Client, ClientOptions, RequestOptions};

let client = Client::new(ClientOptions {
    base_url: std::env::var("VEYNDO_URL")?,
    tenant: std::env::var("VEYNDO_SHOP").ok(),
    auth: std::env::var("VEYNDO_TOKEN").ok().map(Auth::PersonalSession),
    ..ClientOptions::default()
});

The checkout API object, method names and argument order are those of the generated SDKs.

Operations

Operation Permission In the docs
GET /checkout public request
GET /store-api/checkout/cart public request
POST /store-api/checkout/cart public request
PUT /store-api/checkout/cart public request
POST /store-api/checkout/cart/line-item public request
GET /store-api/checkout/cart/offer public request
POST /store-api/checkout/cart/preview public request
PUT /store-api/checkout/context public request
PUT /store-api/checkout/coupons public request
PUT /store-api/checkout/currency public request
POST /store-api/checkout/handoff public request
POST /store-api/checkout/handoff/consume public request
POST /store-api/checkout/handoff/recover public request
POST /store-api/checkout/independent/confirm public request
POST /store-api/checkout/independent/create public request
POST /store-api/checkout/offer/verify public request
GET /store-api/checkout/options public request
POST /store-api/checkout/order public request
POST /store-api/checkout/session-access public request
POST /store-api/checkout/session-order public request
POST /store-api/checkout/session-quote public request
POST /store-api/checkout/session-receipt public request
GET /api/policy knowledge.read request
MCP cart.create shopper request
MCP cart.offer shopper request
MCP cart.quote shopper request
MCP cart.replace shopper request
MCP checkout.complete shopper request
MCP checkout.options shopper request
MCP checkout.select shopper request
MCP offer.verify shopper request

Public HTTP

Anonymous storefront, discovery and protocol routes. Name the shop with x-tenant.

GET /checkout

Permission: public, no credential. Source: src/checkout_handoff.rs. SDK method: getCheckout.

Needs a cart, buyer or object token: run the example against your own shop.

curl

curl -fsS -X GET "$VEYNDO_URL/checkout" \
  -H "x-tenant: $VEYNDO_SHOP"

TypeScript

const result = await client.checkout.getCheckout();

Python

result = client.checkout.get_checkout()

Rust

let result = client.checkout().get_checkout(RequestOptions::default()).await?;

GET /store-api/checkout/cart

Permission: public, no credential. Source: src/routes.rs. SDK method: getStoreCheckoutCart.

Needs a cart, buyer or object token: run the example against your own shop.

curl

curl -fsS -X GET "$VEYNDO_URL/store-api/checkout/cart" \
  -H "x-tenant: $VEYNDO_SHOP"

TypeScript

const result = await client.checkout.getStoreCheckoutCart();

Python

result = client.checkout.get_store_checkout_cart()

Rust

let result = client.checkout().get_store_checkout_cart(RequestOptions::default()).await?;

POST /store-api/checkout/cart

Permission: public, no credential. Source: src/routes.rs. SDK method: postStoreCheckoutCart.

Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X POST "$VEYNDO_URL/store-api/checkout/cart" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H 'content-type: application/json' \
  --data '{}'

TypeScript

const result = await client.checkout.postStoreCheckoutCart({ body: {} });

Python

result = client.checkout.post_store_checkout_cart(body={})

Rust

let result = client.checkout().post_store_checkout_cart(RequestOptions::json(json!({}))).await?;

PUT /store-api/checkout/cart

Permission: public, no credential. Source: src/routes.rs. SDK method: putStoreCheckoutCart.

Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X PUT "$VEYNDO_URL/store-api/checkout/cart" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H 'content-type: application/json' \
  --data '{}'

TypeScript

const result = await client.checkout.putStoreCheckoutCart({ body: {} });

Python

result = client.checkout.put_store_checkout_cart(body={})

Rust

let result = client.checkout().put_store_checkout_cart(RequestOptions::json(json!({}))).await?;

POST /store-api/checkout/cart/line-item

Permission: public, no credential. Source: src/routes.rs. SDK method: postStoreCheckoutCartLineItem.

Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X POST "$VEYNDO_URL/store-api/checkout/cart/line-item" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H 'content-type: application/json' \
  --data '{}'

TypeScript

const result = await client.checkout.postStoreCheckoutCartLineItem({ body: {} });

Python

result = client.checkout.post_store_checkout_cart_line_item(body={})

Rust

let result = client.checkout().post_store_checkout_cart_line_item(RequestOptions::json(json!({}))).await?;

GET /store-api/checkout/cart/offer

Permission: public, no credential. Source: src/cognition/signed_offer.rs. SDK method: getStoreCheckoutCartOffer.

Needs a cart, buyer or object token: run the example against your own shop.

curl

curl -fsS -X GET "$VEYNDO_URL/store-api/checkout/cart/offer" \
  -H "x-tenant: $VEYNDO_SHOP"

TypeScript

const result = await client.checkout.getStoreCheckoutCartOffer();

Python

result = client.checkout.get_store_checkout_cart_offer()

Rust

let result = client.checkout().get_store_checkout_cart_offer(RequestOptions::default()).await?;

POST /store-api/checkout/cart/preview

Permission: public, no credential. Source: src/routes.rs. SDK method: postStoreCheckoutCartPreview.

Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X POST "$VEYNDO_URL/store-api/checkout/cart/preview" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H 'content-type: application/json' \
  --data '{}'

TypeScript

const result = await client.checkout.postStoreCheckoutCartPreview({ body: {} });

Python

result = client.checkout.post_store_checkout_cart_preview(body={})

Rust

let result = client.checkout().post_store_checkout_cart_preview(RequestOptions::json(json!({}))).await?;

PUT /store-api/checkout/context

Permission: public, no credential. Source: src/routes.rs. SDK method: putStoreCheckoutContext.

Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X PUT "$VEYNDO_URL/store-api/checkout/context" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H 'content-type: application/json' \
  --data '{}'

TypeScript

const result = await client.checkout.putStoreCheckoutContext({ body: {} });

Python

result = client.checkout.put_store_checkout_context(body={})

Rust

let result = client.checkout().put_store_checkout_context(RequestOptions::json(json!({}))).await?;

PUT /store-api/checkout/coupons

Permission: public, no credential. Source: src/marketing/routes.rs. SDK method: putStoreCheckoutCoupons.

Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X PUT "$VEYNDO_URL/store-api/checkout/coupons" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H 'content-type: application/json' \
  --data '{}'

TypeScript

const result = await client.checkout.putStoreCheckoutCoupons({ body: {} });

Python

result = client.checkout.put_store_checkout_coupons(body={})

Rust

let result = client.checkout().put_store_checkout_coupons(RequestOptions::json(json!({}))).await?;

PUT /store-api/checkout/currency

Permission: public, no credential. Source: src/currencies/routes.rs. SDK method: putStoreCheckoutCurrency.

Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X PUT "$VEYNDO_URL/store-api/checkout/currency" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H 'content-type: application/json' \
  --data '{}'

TypeScript

const result = await client.checkout.putStoreCheckoutCurrency({ body: {} });

Python

result = client.checkout.put_store_checkout_currency(body={})

Rust

let result = client.checkout().put_store_checkout_currency(RequestOptions::json(json!({}))).await?;

POST /store-api/checkout/handoff

Permission: public, no credential. Source: src/checkout_handoff.rs. SDK method: postStoreCheckoutHandoff.

Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X POST "$VEYNDO_URL/store-api/checkout/handoff" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H 'content-type: application/json' \
  --data '{}'

TypeScript

const result = await client.checkout.postStoreCheckoutHandoff({ body: {} });

Python

result = client.checkout.post_store_checkout_handoff(body={})

Rust

let result = client.checkout().post_store_checkout_handoff(RequestOptions::json(json!({}))).await?;

POST /store-api/checkout/handoff/consume

Permission: public, no credential. Source: src/checkout_handoff.rs. SDK method: postStoreCheckoutHandoffConsume.

Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X POST "$VEYNDO_URL/store-api/checkout/handoff/consume" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H 'content-type: application/json' \
  --data '{}'

TypeScript

const result = await client.checkout.postStoreCheckoutHandoffConsume({ body: {} });

Python

result = client.checkout.post_store_checkout_handoff_consume(body={})

Rust

let result = client.checkout().post_store_checkout_handoff_consume(RequestOptions::json(json!({}))).await?;

POST /store-api/checkout/handoff/recover

Permission: public, no credential. Source: src/checkout_handoff.rs. SDK method: postStoreCheckoutHandoffRecover.

Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X POST "$VEYNDO_URL/store-api/checkout/handoff/recover" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H 'content-type: application/json' \
  --data '{}'

TypeScript

const result = await client.checkout.postStoreCheckoutHandoffRecover({ body: {} });

Python

result = client.checkout.post_store_checkout_handoff_recover(body={})

Rust

let result = client.checkout().post_store_checkout_handoff_recover(RequestOptions::json(json!({}))).await?;

POST /store-api/checkout/independent/confirm

Permission: public, no credential. Source: src/checkout/private_browser.rs. SDK method: postStoreCheckoutIndependentConfirm.

Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X POST "$VEYNDO_URL/store-api/checkout/independent/confirm" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H 'content-type: application/json' \
  --data '{}'

TypeScript

const result = await client.checkout.postStoreCheckoutIndependentConfirm({ body: {} });

Python

result = client.checkout.post_store_checkout_independent_confirm(body={})

Rust

let result = client.checkout().post_store_checkout_independent_confirm(RequestOptions::json(json!({}))).await?;

POST /store-api/checkout/independent/create

Permission: public, no credential. Source: src/checkout/private_browser.rs. SDK method: postStoreCheckoutIndependentCreate.

Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X POST "$VEYNDO_URL/store-api/checkout/independent/create" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H 'content-type: application/json' \
  --data '{}'

TypeScript

const result = await client.checkout.postStoreCheckoutIndependentCreate({ body: {} });

Python

result = client.checkout.post_store_checkout_independent_create(body={})

Rust

let result = client.checkout().post_store_checkout_independent_create(RequestOptions::json(json!({}))).await?;

POST /store-api/checkout/offer/verify

Permission: public, no credential. Source: src/cognition/signed_offer.rs. SDK method: postStoreCheckoutOfferVerify.

Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X POST "$VEYNDO_URL/store-api/checkout/offer/verify" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H 'content-type: application/json' \
  --data '{}'

TypeScript

const result = await client.checkout.postStoreCheckoutOfferVerify({ body: {} });

Python

result = client.checkout.post_store_checkout_offer_verify(body={})

Rust

let result = client.checkout().post_store_checkout_offer_verify(RequestOptions::json(json!({}))).await?;

GET /store-api/checkout/options

Permission: public, no credential. Source: src/routes.rs. SDK method: getStoreCheckoutOptions.

Needs a cart, buyer or object token: run the example against your own shop.

curl

curl -fsS -X GET "$VEYNDO_URL/store-api/checkout/options" \
  -H "x-tenant: $VEYNDO_SHOP"

TypeScript

const result = await client.checkout.getStoreCheckoutOptions();

Python

result = client.checkout.get_store_checkout_options()

Rust

let result = client.checkout().get_store_checkout_options(RequestOptions::default()).await?;

POST /store-api/checkout/order

Permission: public, no credential. Source: src/routes.rs. SDK method: postStoreCheckoutOrder.

Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X POST "$VEYNDO_URL/store-api/checkout/order" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H 'content-type: application/json' \
  --data '{}'

TypeScript

const result = await client.checkout.postStoreCheckoutOrder({ body: {} });

Python

result = client.checkout.post_store_checkout_order(body={})

Rust

let result = client.checkout().post_store_checkout_order(RequestOptions::json(json!({}))).await?;

POST /store-api/checkout/session-access

Permission: public, no credential. Source: src/checkout/mod.rs. SDK method: postStoreCheckoutSessionAccess.

Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X POST "$VEYNDO_URL/store-api/checkout/session-access" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H 'content-type: application/json' \
  --data '{}'

TypeScript

const result = await client.checkout.postStoreCheckoutSessionAccess({ body: {} });

Python

result = client.checkout.post_store_checkout_session_access(body={})

Rust

let result = client.checkout().post_store_checkout_session_access(RequestOptions::json(json!({}))).await?;

POST /store-api/checkout/session-order

Permission: public, no credential. Source: src/checkout/mod.rs. SDK method: postStoreCheckoutSessionOrder.

Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X POST "$VEYNDO_URL/store-api/checkout/session-order" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H 'content-type: application/json' \
  --data '{}'

TypeScript

const result = await client.checkout.postStoreCheckoutSessionOrder({ body: {} });

Python

result = client.checkout.post_store_checkout_session_order(body={})

Rust

let result = client.checkout().post_store_checkout_session_order(RequestOptions::json(json!({}))).await?;

POST /store-api/checkout/session-quote

Permission: public, no credential. Source: src/checkout/mod.rs. SDK method: postStoreCheckoutSessionQuote.

Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X POST "$VEYNDO_URL/store-api/checkout/session-quote" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H 'content-type: application/json' \
  --data '{}'

TypeScript

const result = await client.checkout.postStoreCheckoutSessionQuote({ body: {} });

Python

result = client.checkout.post_store_checkout_session_quote(body={})

Rust

let result = client.checkout().post_store_checkout_session_quote(RequestOptions::json(json!({}))).await?;

POST /store-api/checkout/session-receipt

Permission: public, no credential. Source: src/checkout/mod.rs. SDK method: postStoreCheckoutSessionReceipt.

Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X POST "$VEYNDO_URL/store-api/checkout/session-receipt" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H 'content-type: application/json' \
  --data '{}'

TypeScript

const result = await client.checkout.postStoreCheckoutSessionReceipt({ body: {} });

Python

result = client.checkout.post_store_checkout_session_receipt(body={})

Rust

let result = client.checkout().post_store_checkout_session_receipt(RequestOptions::json(json!({}))).await?;

Merchant HTTP

Each route checks the named permission against your current membership.

GET /api/policy

Permission: knowledge.read, personal session or integration key. Source: src/routes.rs. SDK method: getPolicy.

Needs a merchant credential. Run it against your own private sandbox.

curl

curl -fsS -X GET "$VEYNDO_URL/api/policy" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H "authorization: Bearer $VEYNDO_TOKEN"

TypeScript

const result = await client.checkout.getPolicy();

Python

result = client.checkout.get_policy()

Rust

let result = client.checkout().get_policy(RequestOptions::default()).await?;

MCP tools

Called with JSON-RPC tools/call on POST /mcp. The facts come from the typed operations graph; the server validates the input schema before it runs a tool.

cart.create

Create customer cart.

Fact Value
Audience shopper
Writes yes
Risk low
Reversibility reversible
Requires approval no
Cost standard
Permissions none
Effects none
Conditions none
Data cart
Requires none
Argument Type Required
session string no

A write. Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X POST "$VEYNDO_URL/mcp" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H 'content-type: application/json' \
  --data '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "cart.create", "arguments": {}}}'

TypeScript

const result = await client.mcp.call("cart.create", {});

Python

result = client.mcp.call("cart.create", {})

Rust

let result = client.mcp().call_raw("cart.create", json!({})).await?;

cart.offer

Sign the current cart quote so a buying agent can verify it offline.

Fact Value
Audience shopper
Writes no
Risk low
Reversibility reversible
Requires approval no
Cost free
Permissions none
Effects none
Conditions none
Data cart · money
Requires cart.create

Input: no arguments.

A shopper read. Browsers on other origins cannot call POST /mcp (it accepts only the shop's own origin); copy the request into your agent, server or terminal.

curl

curl -fsS -X POST "$VEYNDO_URL/mcp" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H 'content-type: application/json' \
  --data '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "cart.offer", "arguments": {}}}'

TypeScript

const result = await client.mcp.call("cart.offer", {});

Python

result = client.mcp.call("cart.offer", {})

Rust

let result = client.mcp().call_raw("cart.offer", json!({})).await?;

cart.quote

Calculate authoritative cart.

Fact Value
Audience shopper
Writes no
Risk low
Reversibility reversible
Requires approval no
Cost free
Permissions none
Effects none
Conditions none
Data cart · money
Requires cart.create

Input: no arguments.

A shopper read. Browsers on other origins cannot call POST /mcp (it accepts only the shop's own origin); copy the request into your agent, server or terminal.

curl

curl -fsS -X POST "$VEYNDO_URL/mcp" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H 'content-type: application/json' \
  --data '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "cart.quote", "arguments": {}}}'

TypeScript

const result = await client.mcp.call("cart.quote", {});

Python

result = client.mcp.call("cart.quote", {})

Rust

let result = client.mcp().call_raw("cart.quote", json!({})).await?;

cart.replace

Replace cart items using optimistic revision.

Fact Value
Audience shopper
Writes yes
Risk low
Reversibility reversible
Requires approval no
Cost standard
Permissions none
Effects none
Conditions none
Data cart · money
Requires cart.create
Argument Type Required
items array of object yes
revision integer yes

A write. Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X POST "$VEYNDO_URL/mcp" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H 'content-type: application/json' \
  --data '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "cart.replace", "arguments": {"revision": 1, "items": []}}}'

TypeScript

const result = await client.mcp.call("cart.replace", {"revision": 1, "items": []});

Python

result = client.mcp.call("cart.replace", {"revision": 1, "items": []})

Rust

let result = client.mcp().call_raw("cart.replace", json!({"revision": 1, "items": []})).await?;

checkout.complete

Place order with simulated/manual payment and Idempotency-Key.

Fact Value
Audience shopper
Writes yes
Risk high
Reversibility irreversible
Requires approval yes
Cost provider
Permissions none
Effects payment, email, event
Conditions none
Data order, cart, payment, customer · money · pii · stock
Requires cart.create, checkout.select
Argument Type Required
idempotency_key string yes

A write. Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X POST "$VEYNDO_URL/mcp" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H 'content-type: application/json' \
  --data '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "checkout.complete", "arguments": {"idempotency_key": "<string>"}}}'

TypeScript

const result = await client.mcp.call("checkout.complete", {"idempotency_key": "<string>"});

Python

result = client.mcp.call("checkout.complete", {"idempotency_key": "<string>"})

Rust

let result = client.mcp().call_raw("checkout.complete", json!({"idempotency_key": "<string>"})).await?;

checkout.options

Read available shipping and payment methods.

Fact Value
Audience shopper
Writes no
Risk low
Reversibility reversible
Requires approval no
Cost free
Permissions none
Effects none
Conditions none
Data settings, cart · money
Requires none

Input: no arguments.

A shopper read. Browsers on other origins cannot call POST /mcp (it accepts only the shop's own origin); copy the request into your agent, server or terminal.

curl

curl -fsS -X POST "$VEYNDO_URL/mcp" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H 'content-type: application/json' \
  --data '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "checkout.options", "arguments": {}}}'

TypeScript

const result = await client.mcp.call("checkout.options", {});

Python

result = client.mcp.call("checkout.options", {})

Rust

let result = client.mcp().call_raw("checkout.options", json!({})).await?;

checkout.select

Update country, delivery address, shipping and payment with cart revision.

Fact Value
Audience shopper
Writes yes
Risk medium
Reversibility reversible
Requires approval no
Cost standard
Permissions none
Effects none
Conditions none
Data cart · money · pii
Requires cart.create
Argument Type Required
checkout object yes
revision integer yes

A write. Not executed from the docs. Try it in a private sandbox.

curl

curl -fsS -X POST "$VEYNDO_URL/mcp" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H 'content-type: application/json' \
  --data '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "checkout.select", "arguments": {"revision": 1, "checkout": {}}}}'

TypeScript

const result = await client.mcp.call("checkout.select", {"revision": 1, "checkout": {}});

Python

result = client.mcp.call("checkout.select", {"revision": 1, "checkout": {}})

Rust

let result = client.mcp().call_raw("checkout.select", json!({"revision": 1, "checkout": {}})).await?;

offer.verify

Check a signed offer's signature, expiry and whether checkout would still confirm it.

Fact Value
Audience shopper
Writes no
Risk low
Reversibility reversible
Requires approval no
Cost free
Permissions none
Effects none
Conditions none
Data cart · money
Requires cart.offer
Argument Type Required
payloadBase64 string (max length 65536) yes
signature string (max length 256) yes

A shopper read. Browsers on other origins cannot call POST /mcp (it accepts only the shop's own origin); copy the request into your agent, server or terminal.

curl

curl -fsS -X POST "$VEYNDO_URL/mcp" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H 'content-type: application/json' \
  --data '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "offer.verify", "arguments": {"payloadBase64": "<string>", "signature": "<string>"}}}'

TypeScript

const result = await client.mcp.call("offer.verify", {"payloadBase64": "<string>", "signature": "<string>"});

Python

result = client.mcp.call("offer.verify", {"payloadBase64": "<string>", "signature": "<string>"})

Rust

let result = client.mcp().call_raw("offer.verify", json!({"payloadBase64": "<string>", "signature": "<string>"})).await?;