English source · 25 min
Pos API reference
Point-of-sale register adapters. Contract version 1.0.0, generated from contracts/http/pos.openapi.json. 2 HTTP operations, 20 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 pos API object, method names and argument order are those of the generated SDKs.
Operations
| Operation | Permission | In the docs |
|---|---|---|
GET /api/pos/channels |
pos.use | request |
POST /api/pos/{channel}/{operation} |
pos.use | request |
MCP pos.accept |
pos.use | request |
MCP pos.cart |
pos.use | request |
MCP pos.catalog |
pos.use | request |
MCP pos.channels |
pos.use | request |
MCP pos.complete |
pos.use | request |
MCP pos.context |
pos.use | request |
MCP pos.coupons |
pos.use | request |
MCP pos.create |
pos.use | request |
MCP pos.currency |
pos.use | request |
MCP pos.customer |
pos.use | request |
MCP pos.customers |
pos.use | request |
MCP pos.detail |
pos.use | request |
MCP pos.discount |
pos.use | request |
MCP pos.held |
pos.use | request |
MCP pos.payment |
pos.use | request |
MCP pos.receipt |
pos.use | request |
MCP pos.reconcile |
pos.use | request |
MCP pos.replace |
pos.use | request |
MCP pos.sales |
pos.use | request |
MCP pos.select |
pos.use | request |
Merchant HTTP
Each route checks the named permission against your current membership.
GET /api/pos/channels
Permission: pos.use, personal session or integration key. Source: src/pos/mod.rs. SDK method: getPosChannels.
Needs a merchant credential. Run it against your own private sandbox.
curl
curl -fsS -X GET "$VEYNDO_URL/api/pos/channels" \
-H "x-tenant: $VEYNDO_SHOP" \
-H "authorization: Bearer $VEYNDO_TOKEN"
TypeScript
const result = await client.pos.getPosChannels();
Python
result = client.pos.get_pos_channels()
Rust
let result = client.pos().get_pos_channels(RequestOptions::default()).await?;
POST /api/pos/{channel}/{operation}
Permission: pos.use, personal session or integration key. Source: src/pos/mod.rs. SDK method: postPosByChannelByOperation.
Not executed from the docs. Try it in a private sandbox.
curl
curl -fsS -X POST "$VEYNDO_URL/api/pos/<channel>/<operation>" \
-H "x-tenant: $VEYNDO_SHOP" \
-H "authorization: Bearer $VEYNDO_TOKEN" \
-H 'content-type: application/json' \
--data '{}'
TypeScript
const result = await client.pos.postPosByChannelByOperation({ "channel": "<channel>", "operation": "<operation>" }, { body: {} });
Python
result = client.pos.post_pos_by_channel_by_operation("<channel>", "<operation>", body={})
Rust
let result = client.pos().post_pos_by_channel_by_operation("<channel>", "<operation>", RequestOptions::json(json!({}))).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.
pos.accept
Record explicit current legal acknowledgements through the shared legal owner.
| Fact | Value |
|---|---|
| Audience | merchant |
| Writes | yes |
| Risk | medium |
| Reversibility | irreversible |
| Requires approval | yes |
| Cost | standard |
| Permissions | pos.use |
| Effects | none |
| Conditions | none |
| Data | legal, cart |
| Requires | pos.create |
| Argument | Type | Required |
|---|---|---|
cartToken |
string (max length 100) | yes |
channelId |
string (max length 100) | yes |
digitalImmediate |
boolean | yes |
policyVersion |
string | yes |
terms |
boolean | 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 "authorization: Bearer $VEYNDO_TOKEN" \
-H 'content-type: application/json' \
--data '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "pos.accept", "arguments": {"channelId": "<string>", "cartToken": "<string>", "terms": false, "digitalImmediate": false, "policyVersion": "<string>"}}}'
TypeScript
const result = await client.mcp.call("pos.accept", {"channelId": "<string>", "cartToken": "<string>", "terms": false, "digitalImmediate": false, "policyVersion": "<string>"});
Python
result = client.mcp.call("pos.accept", {"channelId": "<string>", "cartToken": "<string>", "terms": False, "digitalImmediate": False, "policyVersion": "<string>"})
Rust
let result = client.mcp().call_raw("pos.accept", json!({"channelId": "<string>", "cartToken": "<string>", "terms": false, "digitalImmediate": false, "policyVersion": "<string>"})).await?;
pos.cart
Read an owned POS cart and its authoritative quote.
| Fact | Value |
|---|---|
| Audience | merchant |
| Writes | no |
| Risk | low |
| Reversibility | reversible |
| Requires approval | no |
| Cost | free |
| Permissions | pos.use |
| Effects | none |
| Conditions | none |
| Data | cart · money |
| Requires | pos.create |
| Argument | Type | Required |
|---|---|---|
cartToken |
string (max length 100) | yes |
channelId |
string (max length 100) | yes |
Needs a merchant credential. Run it against your own private sandbox.
curl
curl -fsS -X POST "$VEYNDO_URL/mcp" \
-H "x-tenant: $VEYNDO_SHOP" \
-H "authorization: Bearer $VEYNDO_TOKEN" \
-H 'content-type: application/json' \
--data '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "pos.cart", "arguments": {"channelId": "<string>", "cartToken": "<string>"}}}'
TypeScript
const result = await client.mcp.call("pos.cart", {"channelId": "<string>", "cartToken": "<string>"});
Python
result = client.mcp.call("pos.cart", {"channelId": "<string>", "cartToken": "<string>"})
Rust
let result = client.mcp().call_raw("pos.cart", json!({"channelId": "<string>", "cartToken": "<string>"})).await?;
pos.catalog
Search channel products or resolve a barcode for an authenticated cashier.
| Fact | Value |
|---|---|
| Audience | merchant |
| Writes | no |
| Risk | low |
| Reversibility | reversible |
| Requires approval | no |
| Cost | free |
| Permissions | pos.use |
| Effects | none |
| Conditions | none |
| Data | product · money · stock |
| Requires | none |
| Argument | Type | Required |
|---|---|---|
after |
string (max length 200) | no |
barcode |
string (max length 100) | no |
cartToken |
string (max length 100) | no |
channelId |
string (max length 100) | yes |
query |
string (max length 200) | no |
Needs a merchant credential. Run it against your own private sandbox.
curl
curl -fsS -X POST "$VEYNDO_URL/mcp" \
-H "x-tenant: $VEYNDO_SHOP" \
-H "authorization: Bearer $VEYNDO_TOKEN" \
-H 'content-type: application/json' \
--data '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "pos.catalog", "arguments": {"channelId": "<string>"}}}'
TypeScript
const result = await client.mcp.call("pos.catalog", {"channelId": "<string>"});
Python
result = client.mcp.call("pos.catalog", {"channelId": "<string>"})
Rust
let result = client.mcp().call_raw("pos.catalog", json!({"channelId": "<string>"})).await?;
pos.channels
Discover the tenant POS registers through cashier admission.
| Fact | Value |
|---|---|
| Audience | merchant |
| Writes | no |
| Risk | low |
| Reversibility | reversible |
| Requires approval | no |
| Cost | free |
| Permissions | pos.use |
| Effects | none |
| Conditions | none |
| Data | settings |
| Requires | none |
Input: no arguments.
Needs a merchant credential. Run it against your own private sandbox.
curl
curl -fsS -X POST "$VEYNDO_URL/mcp" \
-H "x-tenant: $VEYNDO_SHOP" \
-H "authorization: Bearer $VEYNDO_TOKEN" \
-H 'content-type: application/json' \
--data '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "pos.channels", "arguments": {}}}'
TypeScript
const result = await client.mcp.call("pos.channels", {});
Python
result = client.mcp.call("pos.channels", {})
Rust
let result = client.mcp().call_raw("pos.channels", json!({})).await?;
pos.complete
Idempotent native POS checkout, cash tender in exact currency minor units.
| Fact | Value |
|---|---|
| Audience | merchant |
| Writes | yes |
| Risk | high |
| Reversibility | irreversible |
| Requires approval | yes |
| Cost | provider |
| Permissions | pos.use |
| Effects | payment, event |
| Conditions | none |
| Data | order, payment, cart · money · stock |
| Requires | pos.select |
| Argument | Type | Required |
|---|---|---|
cartToken |
string (max length 100) | yes |
channelId |
string (max length 100) | yes |
requestKey |
string (min length 8, max length 128) | yes |
revision |
integer | yes |
tenderMinor |
string | no |
totalMinor |
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 "authorization: Bearer $VEYNDO_TOKEN" \
-H 'content-type: application/json' \
--data '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "pos.complete", "arguments": {"channelId": "<string>", "cartToken": "<string>", "revision": 1, "requestKey": "<string>", "totalMinor": "<string>"}}}'
TypeScript
const result = await client.mcp.call("pos.complete", {"channelId": "<string>", "cartToken": "<string>", "revision": 1, "requestKey": "<string>", "totalMinor": "<string>"});
Python
result = client.mcp.call("pos.complete", {"channelId": "<string>", "cartToken": "<string>", "revision": 1, "requestKey": "<string>", "totalMinor": "<string>"})
Rust
let result = client.mcp().call_raw("pos.complete", json!({"channelId": "<string>", "cartToken": "<string>", "revision": 1, "requestKey": "<string>", "totalMinor": "<string>"})).await?;
pos.context
Read POS configuration without creating a cart.
| Fact | Value |
|---|---|
| Audience | merchant |
| Writes | no |
| Risk | low |
| Reversibility | reversible |
| Requires approval | no |
| Cost | free |
| Permissions | pos.use |
| Effects | none |
| Conditions | none |
| Data | settings |
| Requires | none |
| Argument | Type | Required |
|---|---|---|
channelId |
string (max length 100) | yes |
Needs a merchant credential. Run it against your own private sandbox.
curl
curl -fsS -X POST "$VEYNDO_URL/mcp" \
-H "x-tenant: $VEYNDO_SHOP" \
-H "authorization: Bearer $VEYNDO_TOKEN" \
-H 'content-type: application/json' \
--data '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "pos.context", "arguments": {"channelId": "<string>"}}}'
TypeScript
const result = await client.mcp.call("pos.context", {"channelId": "<string>"});
Python
result = client.mcp.call("pos.context", {"channelId": "<string>"})
Rust
let result = client.mcp().call_raw("pos.context", json!({"channelId": "<string>"})).await?;
pos.coupons
Apply coupon codes through the native promotion owner.
| Fact | Value |
|---|---|
| Audience | merchant |
| Writes | yes |
| Risk | low |
| Reversibility | reversible |
| Requires approval | no |
| Cost | standard |
| Permissions | pos.use |
| Effects | none |
| Conditions | none |
| Data | cart · money |
| Requires | pos.create |
| Argument | Type | Required |
|---|---|---|
cartToken |
string (max length 100) | yes |
channelId |
string (max length 100) | yes |
codes |
array of string (max length 64) | 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 "authorization: Bearer $VEYNDO_TOKEN" \
-H 'content-type: application/json' \
--data '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "pos.coupons", "arguments": {"channelId": "<string>", "cartToken": "<string>", "revision": 1, "codes": []}}}'
TypeScript
const result = await client.mcp.call("pos.coupons", {"channelId": "<string>", "cartToken": "<string>", "revision": 1, "codes": []});
Python
result = client.mcp.call("pos.coupons", {"channelId": "<string>", "cartToken": "<string>", "revision": 1, "codes": []})
Rust
let result = client.mcp().call_raw("pos.coupons", json!({"channelId": "<string>", "cartToken": "<string>", "revision": 1, "codes": []})).await?;
pos.create
Create an actor-bound native POS cart.
| Fact | Value |
|---|---|
| Audience | merchant |
| Writes | yes |
| Risk | low |
| Reversibility | reversible |
| Requires approval | no |
| Cost | standard |
| Permissions | pos.use |
| Effects | none |
| Conditions | none |
| Data | cart |
| Requires | none |
| Argument | Type | Required |
|---|---|---|
channelId |
string (max length 100) | 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 "authorization: Bearer $VEYNDO_TOKEN" \
-H 'content-type: application/json' \
--data '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "pos.create", "arguments": {"channelId": "<string>"}}}'
TypeScript
const result = await client.mcp.call("pos.create", {"channelId": "<string>"});
Python
result = client.mcp.call("pos.create", {"channelId": "<string>"})
Rust
let result = client.mcp().call_raw("pos.create", json!({"channelId": "<string>"})).await?;
pos.currency
Select an enabled channel currency through native pricing.
| Fact | Value |
|---|---|
| Audience | merchant |
| Writes | yes |
| Risk | low |
| Reversibility | reversible |
| Requires approval | no |
| Cost | standard |
| Permissions | pos.use |
| Effects | none |
| Conditions | none |
| Data | cart, currency · money |
| Requires | pos.create |
| Argument | Type | Required |
|---|---|---|
cartToken |
string (max length 100) | yes |
channelId |
string (max length 100) | yes |
currency |
string (max length 3) | 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 "authorization: Bearer $VEYNDO_TOKEN" \
-H 'content-type: application/json' \
--data '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "pos.currency", "arguments": {"channelId": "<string>", "cartToken": "<string>", "revision": 1, "currency": "<string>"}}}'
TypeScript
const result = await client.mcp.call("pos.currency", {"channelId": "<string>", "cartToken": "<string>", "revision": 1, "currency": "<string>"});
Python
result = client.mcp.call("pos.currency", {"channelId": "<string>", "cartToken": "<string>", "revision": 1, "currency": "<string>"})
Rust
let result = client.mcp().call_raw("pos.currency", json!({"channelId": "<string>", "cartToken": "<string>", "revision": 1, "currency": "<string>"})).await?;
pos.customer
Revision-checked cashier attachment of an existing customer.
| Fact | Value |
|---|---|
| Audience | merchant |
| Writes | yes |
| Risk | medium |
| Reversibility | reversible |
| Requires approval | no |
| Cost | standard |
| Permissions | pos.use |
| Effects | none |
| Conditions | none |
| Data | cart, customer · pii |
| Requires | pos.create |
| Argument | Type | Required |
|---|---|---|
cartToken |
string (max length 100) | yes |
channelId |
string (max length 100) | yes |
customerId |
string or null (max length 100) | 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 "authorization: Bearer $VEYNDO_TOKEN" \
-H 'content-type: application/json' \
--data '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "pos.customer", "arguments": {"channelId": "<string>", "cartToken": "<string>", "revision": 1, "customerId": "<string>"}}}'
TypeScript
const result = await client.mcp.call("pos.customer", {"channelId": "<string>", "cartToken": "<string>", "revision": 1, "customerId": "<string>"});
Python
result = client.mcp.call("pos.customer", {"channelId": "<string>", "cartToken": "<string>", "revision": 1, "customerId": "<string>"})
Rust
let result = client.mcp().call_raw("pos.customer", json!({"channelId": "<string>", "cartToken": "<string>", "revision": 1, "customerId": "<string>"})).await?;
pos.customers
Search active tenant customers or resolve a customer-number card.
| Fact | Value |
|---|---|
| Audience | merchant |
| Writes | no |
| Risk | medium |
| Reversibility | reversible |
| Requires approval | no |
| Cost | free |
| Permissions | pos.use |
| Effects | none |
| Conditions | none |
| Data | customer · pii |
| Requires | none |
| Argument | Type | Required |
|---|---|---|
barcode |
string (max length 100) | no |
channelId |
string (max length 100) | yes |
query |
string (max length 200) | no |
Needs a merchant credential. Run it against your own private sandbox.
curl
curl -fsS -X POST "$VEYNDO_URL/mcp" \
-H "x-tenant: $VEYNDO_SHOP" \
-H "authorization: Bearer $VEYNDO_TOKEN" \
-H 'content-type: application/json' \
--data '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "pos.customers", "arguments": {"channelId": "<string>"}}}'
TypeScript
const result = await client.mcp.call("pos.customers", {"channelId": "<string>"});
Python
result = client.mcp.call("pos.customers", {"channelId": "<string>"})
Rust
let result = client.mcp().call_raw("pos.customers", json!({"channelId": "<string>"})).await?;
pos.detail
Read native product families and variant prices.
| Fact | Value |
|---|---|
| Audience | merchant |
| Writes | no |
| Risk | low |
| Reversibility | reversible |
| Requires approval | no |
| Cost | free |
| Permissions | pos.use |
| Effects | none |
| Conditions | none |
| Data | product · money · stock |
| Requires | none |
| Argument | Type | Required |
|---|---|---|
after |
string | no |
cartToken |
string (max length 100) | no |
channelId |
string (max length 100) | yes |
productId |
string | yes |
Needs a merchant credential. Run it against your own private sandbox.
curl
curl -fsS -X POST "$VEYNDO_URL/mcp" \
-H "x-tenant: $VEYNDO_SHOP" \
-H "authorization: Bearer $VEYNDO_TOKEN" \
-H 'content-type: application/json' \
--data '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "pos.detail", "arguments": {"channelId": "<string>", "productId": "<string>"}}}'
TypeScript
const result = await client.mcp.call("pos.detail", {"channelId": "<string>", "productId": "<string>"});
Python
result = client.mcp.call("pos.detail", {"channelId": "<string>", "productId": "<string>"})
Rust
let result = client.mcp().call_raw("pos.detail", json!({"channelId": "<string>", "productId": "<string>"})).await?;
pos.discount
Audited exact cashier discount through shared pricing.
| Fact | Value |
|---|---|
| Audience | merchant |
| Writes | yes |
| Risk | medium |
| Reversibility | reversible |
| Requires approval | no |
| Cost | standard |
| Permissions | pos.use |
| Effects | none |
| Conditions | none |
| Data | cart · money |
| Requires | pos.create |
| Argument | Type | Required |
|---|---|---|
cartToken |
string (max length 100) | yes |
channelId |
string (max length 100) | yes |
discount |
any | 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 "authorization: Bearer $VEYNDO_TOKEN" \
-H 'content-type: application/json' \
--data '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "pos.discount", "arguments": {"channelId": "<string>", "cartToken": "<string>", "revision": 1, "discount": {}}}}'
TypeScript
const result = await client.mcp.call("pos.discount", {"channelId": "<string>", "cartToken": "<string>", "revision": 1, "discount": {}});
Python
result = client.mcp.call("pos.discount", {"channelId": "<string>", "cartToken": "<string>", "revision": 1, "discount": {}})
Rust
let result = client.mcp().call_raw("pos.discount", json!({"channelId": "<string>", "cartToken": "<string>", "revision": 1, "discount": {}})).await?;
pos.held
List this cashier's held carts in this sales channel.
| Fact | Value |
|---|---|
| Audience | merchant |
| Writes | no |
| Risk | low |
| Reversibility | reversible |
| Requires approval | no |
| Cost | free |
| Permissions | pos.use |
| Effects | none |
| Conditions | none |
| Data | cart · money |
| Requires | none |
| Argument | Type | Required |
|---|---|---|
channelId |
string (max length 100) | yes |
Needs a merchant credential. Run it against your own private sandbox.
curl
curl -fsS -X POST "$VEYNDO_URL/mcp" \
-H "x-tenant: $VEYNDO_SHOP" \
-H "authorization: Bearer $VEYNDO_TOKEN" \
-H 'content-type: application/json' \
--data '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "pos.held", "arguments": {"channelId": "<string>"}}}'
TypeScript
const result = await client.mcp.call("pos.held", {"channelId": "<string>"});
Python
result = client.mcp.call("pos.held", {"channelId": "<string>"})
Rust
let result = client.mcp().call_raw("pos.held", json!({"channelId": "<string>"})).await?;
pos.payment
Read the owned sale payment and authoritative order.
| Fact | Value |
|---|---|
| Audience | merchant |
| Writes | no |
| Risk | low |
| Reversibility | reversible |
| Requires approval | no |
| Cost | free |
| Permissions | pos.use |
| Effects | none |
| Conditions | none |
| Data | payment, order · money |
| Requires | none |
| Argument | Type | Required |
|---|---|---|
cartToken |
string (max length 100) | yes |
channelId |
string (max length 100) | yes |
Needs a merchant credential. Run it against your own private sandbox.
curl
curl -fsS -X POST "$VEYNDO_URL/mcp" \
-H "x-tenant: $VEYNDO_SHOP" \
-H "authorization: Bearer $VEYNDO_TOKEN" \
-H 'content-type: application/json' \
--data '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "pos.payment", "arguments": {"channelId": "<string>", "cartToken": "<string>"}}}'
TypeScript
const result = await client.mcp.call("pos.payment", {"channelId": "<string>", "cartToken": "<string>"});
Python
result = client.mcp.call("pos.payment", {"channelId": "<string>", "cartToken": "<string>"})
Rust
let result = client.mcp().call_raw("pos.payment", json!({"channelId": "<string>", "cartToken": "<string>"})).await?;
pos.receipt
Read printable lines from an existing immutable issued invoice.
| Fact | Value |
|---|---|
| Audience | merchant |
| Writes | no |
| Risk | low |
| Reversibility | reversible |
| Requires approval | no |
| Cost | free |
| Permissions | pos.use |
| Effects | none |
| Conditions | none |
| Data | document, order · money |
| Requires | none |
| Argument | Type | Required |
|---|---|---|
channelId |
string (max length 100) | yes |
orderId |
string | yes |
receiptId |
string | yes |
Needs a merchant credential. Run it against your own private sandbox.
curl
curl -fsS -X POST "$VEYNDO_URL/mcp" \
-H "x-tenant: $VEYNDO_SHOP" \
-H "authorization: Bearer $VEYNDO_TOKEN" \
-H 'content-type: application/json' \
--data '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "pos.receipt", "arguments": {"channelId": "<string>", "orderId": "<string>", "receiptId": "<string>"}}}'
TypeScript
const result = await client.mcp.call("pos.receipt", {"channelId": "<string>", "orderId": "<string>", "receiptId": "<string>"});
Python
result = client.mcp.call("pos.receipt", {"channelId": "<string>", "orderId": "<string>", "receiptId": "<string>"})
Rust
let result = client.mcp().call_raw("pos.receipt", json!({"channelId": "<string>", "orderId": "<string>", "receiptId": "<string>"})).await?;
pos.reconcile
Reconcile the owned provider attempt through existing durable jobs.
| Fact | Value |
|---|---|
| Audience | merchant |
| Writes | yes |
| Risk | medium |
| Reversibility | reversible |
| Requires approval | no |
| Cost | provider |
| Permissions | pos.use |
| Effects | externalCall, backgroundJob |
| Conditions | none |
| Data | payment, order · money |
| Requires | pos.payment |
| Argument | Type | Required |
|---|---|---|
cartToken |
string (max length 100) | yes |
channelId |
string (max length 100) | yes |
requestKey |
string (min length 8, max length 128) | 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 "authorization: Bearer $VEYNDO_TOKEN" \
-H 'content-type: application/json' \
--data '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "pos.reconcile", "arguments": {"channelId": "<string>", "cartToken": "<string>", "requestKey": "<string>"}}}'
TypeScript
const result = await client.mcp.call("pos.reconcile", {"channelId": "<string>", "cartToken": "<string>", "requestKey": "<string>"});
Python
result = client.mcp.call("pos.reconcile", {"channelId": "<string>", "cartToken": "<string>", "requestKey": "<string>"})
Rust
let result = client.mcp().call_raw("pos.reconcile", json!({"channelId": "<string>", "cartToken": "<string>", "requestKey": "<string>"})).await?;
pos.replace
Revision-checked native POS cart edit.
| Fact | Value |
|---|---|
| Audience | merchant |
| Writes | yes |
| Risk | low |
| Reversibility | reversible |
| Requires approval | no |
| Cost | standard |
| Permissions | pos.use |
| Effects | none |
| Conditions | none |
| Data | cart · money |
| Requires | pos.create |
| Argument | Type | Required |
|---|---|---|
cartToken |
string (max length 100) | yes |
channelId |
string (max length 100) | yes |
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 "authorization: Bearer $VEYNDO_TOKEN" \
-H 'content-type: application/json' \
--data '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "pos.replace", "arguments": {"channelId": "<string>", "cartToken": "<string>", "revision": 1, "items": []}}}'
TypeScript
const result = await client.mcp.call("pos.replace", {"channelId": "<string>", "cartToken": "<string>", "revision": 1, "items": []});
Python
result = client.mcp.call("pos.replace", {"channelId": "<string>", "cartToken": "<string>", "revision": 1, "items": []})
Rust
let result = client.mcp().call_raw("pos.replace", json!({"channelId": "<string>", "cartToken": "<string>", "revision": 1, "items": []})).await?;
pos.sales
Read recent channel orders and cash tender records.
| Fact | Value |
|---|---|
| Audience | merchant |
| Writes | no |
| Risk | low |
| Reversibility | reversible |
| Requires approval | no |
| Cost | free |
| Permissions | pos.use |
| Effects | none |
| Conditions | none |
| Data | order, payment · money |
| Requires | none |
| Argument | Type | Required |
|---|---|---|
channelId |
string (max length 100) | yes |
Needs a merchant credential. Run it against your own private sandbox.
curl
curl -fsS -X POST "$VEYNDO_URL/mcp" \
-H "x-tenant: $VEYNDO_SHOP" \
-H "authorization: Bearer $VEYNDO_TOKEN" \
-H 'content-type: application/json' \
--data '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "pos.sales", "arguments": {"channelId": "<string>"}}}'
TypeScript
const result = await client.mcp.call("pos.sales", {"channelId": "<string>"});
Python
result = client.mcp.call("pos.sales", {"channelId": "<string>"})
Rust
let result = client.mcp().call_raw("pos.sales", json!({"channelId": "<string>"})).await?;
pos.select
Select customer/contact and a configured payment through the shared checkout.
| Fact | Value |
|---|---|
| Audience | merchant |
| Writes | yes |
| Risk | medium |
| Reversibility | reversible |
| Requires approval | no |
| Cost | standard |
| Permissions | pos.use |
| Effects | none |
| Conditions | none |
| Data | cart, customer · pii |
| Requires | pos.create |
| Argument | Type | Required |
|---|---|---|
cartToken |
string (max length 100) | yes |
channelId |
string (max length 100) | yes |
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 "authorization: Bearer $VEYNDO_TOKEN" \
-H 'content-type: application/json' \
--data '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "pos.select", "arguments": {"channelId": "<string>", "cartToken": "<string>", "revision": 1, "checkout": {}}}}'
TypeScript
const result = await client.mcp.call("pos.select", {"channelId": "<string>", "cartToken": "<string>", "revision": 1, "checkout": {}});
Python
result = client.mcp.call("pos.select", {"channelId": "<string>", "cartToken": "<string>", "revision": 1, "checkout": {}})
Rust
let result = client.mcp().call_raw("pos.select", json!({"channelId": "<string>", "cartToken": "<string>", "revision": 1, "checkout": {}})).await?;