English source · 27 min
Orders API reference
Order state, fulfilment, receipts, documents and merchant order work. Contract version 1.0.0, generated from contracts/http/orders.openapi.json. 26 HTTP operations, 13 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 orders API object, method names and argument order are those of the generated SDKs.
Operations
Public HTTP
Anonymous storefront, discovery and protocol routes. Name the shop with x-tenant.
GET /store-api/account/downloads
Permission: public, no credential. Source: src/assets/mod.rs. SDK method: getStoreAccountDownloads.
Needs a cart, buyer or object token: run the example against your own shop.
curl
curl -fsS -X GET "$VEYNDO_URL/store-api/account/downloads" \
-H "x-tenant: $VEYNDO_SHOP"
TypeScript
const result = await client.orders.getStoreAccountDownloads();
Python
result = client.orders.get_store_account_downloads()
Rust
let result = client.orders().get_store_account_downloads(RequestOptions::default()).await?;
GET /store-api/account/orders
Permission: public, no credential. Source: src/accounts/mod.rs. SDK method: getStoreAccountOrders.
Needs a cart, buyer or object token: run the example against your own shop.
curl
curl -fsS -X GET "$VEYNDO_URL/store-api/account/orders" \
-H "x-tenant: $VEYNDO_SHOP"
TypeScript
const result = await client.orders.getStoreAccountOrders();
Python
result = client.orders.get_store_account_orders()
Rust
let result = client.orders().get_store_account_orders(RequestOptions::default()).await?;
GET /store-api/account/orders/{id}
Permission: public, no credential. Source: src/accounts/mod.rs. SDK method: getStoreAccountOrdersById.
Needs a cart, buyer or object token: run the example against your own shop.
curl
curl -fsS -X GET "$VEYNDO_URL/store-api/account/orders/<id>" \
-H "x-tenant: $VEYNDO_SHOP"
TypeScript
const result = await client.orders.getStoreAccountOrdersById({ "id": "<id>" });
Python
result = client.orders.get_store_account_orders_by_id("<id>")
Rust
let result = client.orders().get_store_account_orders_by_id("<id>", RequestOptions::default()).await?;
GET /store-api/account/orders/{order}/receipts/{id}/pdf
Permission: public, no credential. Source: src/accounts/mod.rs. SDK method: getStoreAccountOrdersByOrderReceiptsByIdPdf.
Needs a cart, buyer or object token: run the example against your own shop.
curl
curl -fsS -X GET "$VEYNDO_URL/store-api/account/orders/<order>/receipts/<id>/pdf" \
-H "x-tenant: $VEYNDO_SHOP"
TypeScript
const result = await client.orders.getStoreAccountOrdersByOrderReceiptsByIdPdf({ "order": "<order>", "id": "<id>" });
Python
result = client.orders.get_store_account_orders_by_order_receipts_by_id_pdf("<order>", "<id>")
Rust
let result = client.orders().get_store_account_orders_by_order_receipts_by_id_pdf("<order>", "<id>", RequestOptions::default()).await?;
GET /store-api/company
Permission: public, no credential. Source: src/operations/routes.rs. SDK method: getStoreCompany.
Needs a cart, buyer or object token: run the example against your own shop.
curl
curl -fsS -X GET "$VEYNDO_URL/store-api/company" \
-H "x-tenant: $VEYNDO_SHOP"
TypeScript
const result = await client.orders.getStoreCompany();
Python
result = client.orders.get_store_company()
Rust
let result = client.orders().get_store_company(RequestOptions::default()).await?;
GET /store-api/company-logo/{id}
Permission: public, no credential. Source: src/operations/routes.rs. SDK method: getStoreCompanyLogoById.
Needs a cart, buyer or object token: run the example against your own shop.
curl
curl -fsS -X GET "$VEYNDO_URL/store-api/company-logo/<id>" \
-H "x-tenant: $VEYNDO_SHOP"
TypeScript
const result = await client.orders.getStoreCompanyLogoById({ "id": "<id>" });
Python
result = client.orders.get_store_company_logo_by_id("<id>")
Rust
let result = client.orders().get_store_company_logo_by_id("<id>", RequestOptions::default()).await?;
GET /store-api/orders/{order}/downloads/{asset}
Permission: public, no credential. Source: src/assets/mod.rs. SDK method: getStoreOrdersByOrderDownloadsByAsset.
Needs a cart, buyer or object token: run the example against your own shop.
curl
curl -fsS -X GET "$VEYNDO_URL/store-api/orders/<order>/downloads/<asset>" \
-H "x-tenant: $VEYNDO_SHOP"
TypeScript
const result = await client.orders.getStoreOrdersByOrderDownloadsByAsset({ "order": "<order>", "asset": "<asset>" });
Python
result = client.orders.get_store_orders_by_order_downloads_by_asset("<order>", "<asset>")
Rust
let result = client.orders().get_store_orders_by_order_downloads_by_asset("<order>", "<asset>", RequestOptions::default()).await?;
Merchant HTTP
Each route checks the named permission against your current membership.
POST /api/merchant/order-drafts/{operation}
Permission: orders.write, personal session or integration key. Source: src/operations/routes.rs. SDK method: postMerchantOrderDraftsByOperation.
Not executed from the docs. Try it in a private sandbox.
curl
curl -fsS -X POST "$VEYNDO_URL/api/merchant/order-drafts/<operation>" \
-H "x-tenant: $VEYNDO_SHOP" \
-H "authorization: Bearer $VEYNDO_TOKEN" \
-H 'content-type: application/json' \
--data '{}'
TypeScript
const result = await client.orders.postMerchantOrderDraftsByOperation({ "operation": "<operation>" }, { body: {} });
Python
result = client.orders.post_merchant_order_drafts_by_operation("<operation>", body={})
Rust
let result = client.orders().post_merchant_order_drafts_by_operation("<operation>", RequestOptions::json(json!({}))).await?;
GET /api/merchant/order-state-machine
Permission: orders.read, personal session or integration key. Source: src/operations/routes.rs. SDK method: getMerchantOrderStateMachine.
Needs a merchant credential. Run it against your own private sandbox.
curl
curl -fsS -X GET "$VEYNDO_URL/api/merchant/order-state-machine" \
-H "x-tenant: $VEYNDO_SHOP" \
-H "authorization: Bearer $VEYNDO_TOKEN"
TypeScript
const result = await client.orders.getMerchantOrderStateMachine();
Python
result = client.orders.get_merchant_order_state_machine()
Rust
let result = client.orders().get_merchant_order_state_machine(RequestOptions::default()).await?;
PUT /api/merchant/order-state-machine
Permission: settings.write, personal session or integration key. Source: src/operations/routes.rs. SDK method: putMerchantOrderStateMachine.
Not executed from the docs. Try it in a private sandbox.
curl
curl -fsS -X PUT "$VEYNDO_URL/api/merchant/order-state-machine" \
-H "x-tenant: $VEYNDO_SHOP" \
-H "authorization: Bearer $VEYNDO_TOKEN" \
-H 'content-type: application/json' \
--data '{}'
TypeScript
const result = await client.orders.putMerchantOrderStateMachine({ body: {} });
Python
result = client.orders.put_merchant_order_state_machine(body={})
Rust
let result = client.orders().put_merchant_order_state_machine(RequestOptions::json(json!({}))).await?;
GET /api/merchant/orders
Permission: orders.read, personal session or integration key. Source: src/operations/routes.rs. SDK method: getMerchantOrders.
Needs a merchant credential. Run it against your own private sandbox.
curl
curl -fsS -X GET "$VEYNDO_URL/api/merchant/orders" \
-H "x-tenant: $VEYNDO_SHOP" \
-H "authorization: Bearer $VEYNDO_TOKEN"
TypeScript
const result = await client.orders.getMerchantOrders();
Python
result = client.orders.get_merchant_orders()
Rust
let result = client.orders().get_merchant_orders(RequestOptions::default()).await?;
GET /api/merchant/orders/{id}
Permission: orders.read, personal session or integration key. Source: src/operations/routes.rs. SDK method: getMerchantOrdersById.
Needs a merchant credential. Run it against your own private sandbox.
curl
curl -fsS -X GET "$VEYNDO_URL/api/merchant/orders/<id>" \
-H "x-tenant: $VEYNDO_SHOP" \
-H "authorization: Bearer $VEYNDO_TOKEN"
TypeScript
const result = await client.orders.getMerchantOrdersById({ "id": "<id>" });
Python
result = client.orders.get_merchant_orders_by_id("<id>")
Rust
let result = client.orders().get_merchant_orders_by_id("<id>", RequestOptions::default()).await?;
POST /api/merchant/orders/{id}/deliveries/split
Permission: orders.write, personal session or integration key. Source: src/operations/routes.rs. SDK method: postMerchantOrdersByIdDeliveriesSplit.
Not executed from the docs. Try it in a private sandbox.
curl
curl -fsS -X POST "$VEYNDO_URL/api/merchant/orders/<id>/deliveries/split" \
-H "x-tenant: $VEYNDO_SHOP" \
-H "authorization: Bearer $VEYNDO_TOKEN" \
-H 'content-type: application/json' \
--data '{}'
TypeScript
const result = await client.orders.postMerchantOrdersByIdDeliveriesSplit({ "id": "<id>" }, { body: {} });
Python
result = client.orders.post_merchant_orders_by_id_deliveries_split("<id>", body={})
Rust
let result = client.orders().post_merchant_orders_by_id_deliveries_split("<id>", RequestOptions::json(json!({}))).await?;
POST /api/merchant/orders/{id}/notes
Permission: orders.write, personal session or integration key. Source: src/operations/routes.rs. SDK method: postMerchantOrdersByIdNotes.
Not executed from the docs. Try it in a private sandbox.
curl
curl -fsS -X POST "$VEYNDO_URL/api/merchant/orders/<id>/notes" \
-H "x-tenant: $VEYNDO_SHOP" \
-H "authorization: Bearer $VEYNDO_TOKEN" \
-H 'content-type: application/json' \
--data '{}'
TypeScript
const result = await client.orders.postMerchantOrdersByIdNotes({ "id": "<id>" }, { body: {} });
Python
result = client.orders.post_merchant_orders_by_id_notes("<id>", body={})
Rust
let result = client.orders().post_merchant_orders_by_id_notes("<id>", RequestOptions::json(json!({}))).await?;
GET /api/merchant/orders/{id}/receipts
Permission: documents.read, personal session or integration key. Source: src/operations/routes.rs. SDK method: getMerchantOrdersByIdReceipts.
Needs a merchant credential. Run it against your own private sandbox.
curl
curl -fsS -X GET "$VEYNDO_URL/api/merchant/orders/<id>/receipts" \
-H "x-tenant: $VEYNDO_SHOP" \
-H "authorization: Bearer $VEYNDO_TOKEN"
TypeScript
const result = await client.orders.getMerchantOrdersByIdReceipts({ "id": "<id>" });
Python
result = client.orders.get_merchant_orders_by_id_receipts("<id>")
Rust
let result = client.orders().get_merchant_orders_by_id_receipts("<id>", RequestOptions::default()).await?;
POST /api/merchant/orders/{id}/receipts
Permission: documents.create, personal session or integration key. Source: src/operations/routes.rs. SDK method: postMerchantOrdersByIdReceipts.
Not executed from the docs. Try it in a private sandbox.
curl
curl -fsS -X POST "$VEYNDO_URL/api/merchant/orders/<id>/receipts" \
-H "x-tenant: $VEYNDO_SHOP" \
-H "authorization: Bearer $VEYNDO_TOKEN" \
-H 'content-type: application/json' \
--data '{}'
TypeScript
const result = await client.orders.postMerchantOrdersByIdReceipts({ "id": "<id>" }, { body: {} });
Python
result = client.orders.post_merchant_orders_by_id_receipts("<id>", body={})
Rust
let result = client.orders().post_merchant_orders_by_id_receipts("<id>", RequestOptions::json(json!({}))).await?;
POST /api/merchant/orders/{id}/transition
Permission: orders.write, personal session or integration key. Source: src/routes.rs. SDK method: postMerchantOrdersByIdTransition.
Not executed from the docs. Try it in a private sandbox.
curl
curl -fsS -X POST "$VEYNDO_URL/api/merchant/orders/<id>/transition" \
-H "x-tenant: $VEYNDO_SHOP" \
-H "authorization: Bearer $VEYNDO_TOKEN" \
-H 'content-type: application/json' \
--data '{}'
TypeScript
const result = await client.orders.postMerchantOrdersByIdTransition({ "id": "<id>" }, { body: {} });
Python
result = client.orders.post_merchant_orders_by_id_transition("<id>", body={})
Rust
let result = client.orders().post_merchant_orders_by_id_transition("<id>", RequestOptions::json(json!({}))).await?;
GET /api/merchant/receipts/settings
Permission: settings.read, personal session or integration key. Source: src/operations/routes.rs. SDK method: getMerchantReceiptsSettings.
Needs a merchant credential. Run it against your own private sandbox.
curl
curl -fsS -X GET "$VEYNDO_URL/api/merchant/receipts/settings" \
-H "x-tenant: $VEYNDO_SHOP" \
-H "authorization: Bearer $VEYNDO_TOKEN"
TypeScript
const result = await client.orders.getMerchantReceiptsSettings();
Python
result = client.orders.get_merchant_receipts_settings()
Rust
let result = client.orders().get_merchant_receipts_settings(RequestOptions::default()).await?;
PUT /api/merchant/receipts/settings
Permission: settings.write, personal session or integration key. Source: src/operations/routes.rs. SDK method: putMerchantReceiptsSettings.
Not executed from the docs. Try it in a private sandbox.
curl
curl -fsS -X PUT "$VEYNDO_URL/api/merchant/receipts/settings" \
-H "x-tenant: $VEYNDO_SHOP" \
-H "authorization: Bearer $VEYNDO_TOKEN" \
-H 'content-type: application/json' \
--data '{}'
TypeScript
const result = await client.orders.putMerchantReceiptsSettings({ body: {} });
Python
result = client.orders.put_merchant_receipts_settings(body={})
Rust
let result = client.orders().put_merchant_receipts_settings(RequestOptions::json(json!({}))).await?;
GET /api/merchant/receipts/{id}/pdf
Permission: documents.read, personal session or integration key. Source: src/operations/routes.rs. SDK method: getMerchantReceiptsByIdPdf.
Needs a merchant credential. Run it against your own private sandbox.
curl
curl -fsS -X GET "$VEYNDO_URL/api/merchant/receipts/<id>/pdf" \
-H "x-tenant: $VEYNDO_SHOP" \
-H "authorization: Bearer $VEYNDO_TOKEN"
TypeScript
const result = await client.orders.getMerchantReceiptsByIdPdf({ "id": "<id>" });
Python
result = client.orders.get_merchant_receipts_by_id_pdf("<id>")
Rust
let result = client.orders().get_merchant_receipts_by_id_pdf("<id>", RequestOptions::default()).await?;
POST /api/settings/company-logo
Permission: settings.write, personal session or integration key. Source: src/operations/routes.rs. SDK method: postSettingsCompanyLogo.
Not executed from the docs. Try it in a private sandbox.
curl
curl -fsS -X POST "$VEYNDO_URL/api/settings/company-logo" \
-H "x-tenant: $VEYNDO_SHOP" \
-H "authorization: Bearer $VEYNDO_TOKEN" \
-H 'content-type: application/json' \
--data '{}'
TypeScript
const result = await client.orders.postSettingsCompanyLogo({ body: {} });
Python
result = client.orders.post_settings_company_logo(body={})
Rust
let result = client.orders().post_settings_company_logo(RequestOptions::json(json!({}))).await?;
GET /api/settings/company-logo/{id}
Permission: settings.read, personal session or integration key. Source: src/operations/routes.rs. SDK method: getSettingsCompanyLogoById.
Needs a merchant credential. Run it against your own private sandbox.
curl
curl -fsS -X GET "$VEYNDO_URL/api/settings/company-logo/<id>" \
-H "x-tenant: $VEYNDO_SHOP" \
-H "authorization: Bearer $VEYNDO_TOKEN"
TypeScript
const result = await client.orders.getSettingsCompanyLogoById({ "id": "<id>" });
Python
result = client.orders.get_settings_company_logo_by_id("<id>")
Rust
let result = client.orders().get_settings_company_logo_by_id("<id>", RequestOptions::default()).await?;
GET /api/settings/master-data
Permission: settings.read, personal session or integration key. Source: src/operations/routes.rs. SDK method: getSettingsMasterData.
Needs a merchant credential. Run it against your own private sandbox.
curl
curl -fsS -X GET "$VEYNDO_URL/api/settings/master-data" \
-H "x-tenant: $VEYNDO_SHOP" \
-H "authorization: Bearer $VEYNDO_TOKEN"
TypeScript
const result = await client.orders.getSettingsMasterData();
Python
result = client.orders.get_settings_master_data()
Rust
let result = client.orders().get_settings_master_data(RequestOptions::default()).await?;
PUT /api/settings/master-data
Permission: settings.write, personal session or integration key. Source: src/operations/routes.rs. SDK method: putSettingsMasterData.
Not executed from the docs. Try it in a private sandbox.
curl
curl -fsS -X PUT "$VEYNDO_URL/api/settings/master-data" \
-H "x-tenant: $VEYNDO_SHOP" \
-H "authorization: Bearer $VEYNDO_TOKEN" \
-H 'content-type: application/json' \
--data '{}'
TypeScript
const result = await client.orders.putSettingsMasterData({ body: {} });
Python
result = client.orders.put_settings_master_data(body={})
Rust
let result = client.orders().put_settings_master_data(RequestOptions::json(json!({}))).await?;
GET /api/settings/master-data/channels/{id}
Permission: settings.read, personal session or integration key. Source: src/operations/routes.rs. SDK method: getSettingsMasterDataChannelsById.
Needs a merchant credential. Run it against your own private sandbox.
curl
curl -fsS -X GET "$VEYNDO_URL/api/settings/master-data/channels/<id>" \
-H "x-tenant: $VEYNDO_SHOP" \
-H "authorization: Bearer $VEYNDO_TOKEN"
TypeScript
const result = await client.orders.getSettingsMasterDataChannelsById({ "id": "<id>" });
Python
result = client.orders.get_settings_master_data_channels_by_id("<id>")
Rust
let result = client.orders().get_settings_master_data_channels_by_id("<id>", RequestOptions::default()).await?;
PUT /api/settings/master-data/channels/{id}
Permission: settings.write, personal session or integration key. Source: src/operations/routes.rs. SDK method: putSettingsMasterDataChannelsById.
Not executed from the docs. Try it in a private sandbox.
curl
curl -fsS -X PUT "$VEYNDO_URL/api/settings/master-data/channels/<id>" \
-H "x-tenant: $VEYNDO_SHOP" \
-H "authorization: Bearer $VEYNDO_TOKEN" \
-H 'content-type: application/json' \
--data '{}'
TypeScript
const result = await client.orders.putSettingsMasterDataChannelsById({ "id": "<id>" }, { body: {} });
Python
result = client.orders.put_settings_master_data_channels_by_id("<id>", body={})
Rust
let result = client.orders().put_settings_master_data_channels_by_id("<id>", 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.
merchant.company
Read company basis or one sales channel and its inheritance.
| Fact | Value |
|---|---|
| Audience | merchant |
| Writes | no |
| Risk | low |
| Reversibility | reversible |
| Requires approval | no |
| Cost | free |
| Permissions | settings.read |
| Effects | none |
| Conditions | none |
| Data | settings |
| Requires | none |
| Argument | Type | Required |
|---|---|---|
channelId |
string | 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": "merchant.company", "arguments": {}}}'
TypeScript
const result = await client.mcp.call("merchant.company", {});
Python
result = client.mcp.call("merchant.company", {})
Rust
let result = client.mcp().call_raw("merchant.company", json!({})).await?;
merchant.company.save
Revision-bound structured company identity, legal fields, logo and channel overrides.
| Fact | Value |
|---|---|
| Audience | merchant |
| Writes | yes |
| Risk | medium |
| Reversibility | reversible |
| Requires approval | no |
| Cost | standard |
| Permissions | settings.write |
| Effects | publication |
| Conditions | none |
| Data | settings |
| Requires | none |
| Argument | Type | Required |
|---|---|---|
baseRevision |
integer (≥ 0) | no |
channelId |
string | no |
data |
object | yes |
revision |
integer (≥ 0) | 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": "merchant.company.save", "arguments": {"revision": 1, "data": {}}}}'
TypeScript
const result = await client.mcp.call("merchant.company.save", {"revision": 1, "data": {}});
Python
result = client.mcp.call("merchant.company.save", {"revision": 1, "data": {}})
Rust
let result = client.mcp().call_raw("merchant.company.save", json!({"revision": 1, "data": {}})).await?;
merchant.order
Read order detail and activity.
| Fact | Value |
|---|---|
| Audience | merchant |
| Writes | no |
| Risk | medium |
| Reversibility | reversible |
| Requires approval | no |
| Cost | free |
| Permissions | orders.read, customers.pii |
| Effects | none |
| Conditions | none |
| Data | order, customer, payment · money · pii |
| Requires | none |
| Argument | Type | Required |
|---|---|---|
id |
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": "merchant.order", "arguments": {"id": "<string>"}}}'
TypeScript
const result = await client.mcp.call("merchant.order", {"id": "<string>"});
Python
result = client.mcp.call("merchant.order", {"id": "<string>"})
Rust
let result = client.mcp().call_raw("merchant.order", json!({"id": "<string>"})).await?;
merchant.order.complete
Explicit idempotent admin order checkout bound to reviewed revision and exact total.
| Fact | Value |
|---|---|
| Audience | merchant |
| Writes | yes |
| Risk | high |
| Reversibility | irreversible |
| Requires approval | yes |
| Cost | standard |
| Permissions | catalog.read, orders.write, customers.read, customers.pii |
| Effects | event |
| Conditions | none |
| Data | order, customer, cart · money · pii · stock |
| Requires | merchant.order.review |
| Argument | Type | Required |
|---|---|---|
approve |
boolean | yes |
cartToken |
string | yes |
channelId |
string | yes |
customerAcknowledgement |
boolean | yes |
digitalImmediate |
boolean | yes |
locale |
string | yes |
policyVersion |
string | yes |
requestKey |
string (min length 8, max length 128) | yes |
revision |
integer | yes |
terms |
boolean | yes |
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": "merchant.order.complete", "arguments": {"channelId": "<string>", "locale": "<string>", "cartToken": "<string>", "revision": 1, "totalMinor": "<string>", "approve": false, "customerAcknowledgement": false, "policyVersion": "<string>", "terms": false, "digitalImmediate": false, "requestKey": "<string>"}}}'
TypeScript
const result = await client.mcp.call("merchant.order.complete", {"channelId": "<string>", "locale": "<string>", "cartToken": "<string>", "revision": 1, "totalMinor": "<string>", "approve": false, "customerAcknowledgement": false, "policyVersion": "<string>", "terms": false, "digitalImmediate": false, "requestKey": "<string>"});
Python
result = client.mcp.call("merchant.order.complete", {"channelId": "<string>", "locale": "<string>", "cartToken": "<string>", "revision": 1, "totalMinor": "<string>", "approve": False, "customerAcknowledgement": False, "policyVersion": "<string>", "terms": False, "digitalImmediate": False, "requestKey": "<string>"})
Rust
let result = client.mcp().call_raw("merchant.order.complete", json!({"channelId": "<string>", "locale": "<string>", "cartToken": "<string>", "revision": 1, "totalMinor": "<string>", "approve": false, "customerAcknowledgement": false, "policyVersion": "<string>", "terms": false, "digitalImmediate": false, "requestKey": "<string>"})).await?;
merchant.order.context
Read configured manual order context.
| Fact | Value |
|---|---|
| Audience | merchant |
| Writes | no |
| Risk | medium |
| Reversibility | reversible |
| Requires approval | no |
| Cost | free |
| Permissions | catalog.read, orders.write, customers.read, customers.pii |
| Effects | none |
| Conditions | none |
| Data | order, customer, settings · pii |
| Requires | none |
| Argument | Type | Required |
|---|---|---|
channelId |
string | yes |
locale |
string | 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": "merchant.order.context", "arguments": {"channelId": "<string>"}}}'
TypeScript
const result = await client.mcp.call("merchant.order.context", {"channelId": "<string>"});
Python
result = client.mcp.call("merchant.order.context", {"channelId": "<string>"})
Rust
let result = client.mcp().call_raw("merchant.order.context", json!({"channelId": "<string>"})).await?;
merchant.order.note
Append an operational note.
| Fact | Value |
|---|---|
| Audience | merchant |
| Writes | yes |
| Risk | medium |
| Reversibility | irreversible |
| Requires approval | yes |
| Cost | standard |
| Permissions | orders.write, customers.pii |
| Effects | none |
| Conditions | none |
| Data | order · pii |
| Requires | merchant.order |
| Argument | Type | Required |
|---|---|---|
id |
string | yes |
revision |
integer | yes |
text |
string (max length 4000) | 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": "merchant.order.note", "arguments": {"id": "<string>", "revision": 1, "text": "<string>"}}}'
TypeScript
const result = await client.mcp.call("merchant.order.note", {"id": "<string>", "revision": 1, "text": "<string>"});
Python
result = client.mcp.call("merchant.order.note", {"id": "<string>", "revision": 1, "text": "<string>"})
Rust
let result = client.mcp().call_raw("merchant.order.note", json!({"id": "<string>", "revision": 1, "text": "<string>"})).await?;
merchant.order.review
Prepare an actor-private authoritative native order quote.
| Fact | Value |
|---|---|
| Audience | merchant |
| Writes | yes |
| Risk | medium |
| Reversibility | reversible |
| Requires approval | no |
| Cost | standard |
| Permissions | catalog.read, orders.write, customers.read, customers.pii |
| Effects | none |
| Conditions | none |
| Data | cart, order, customer · money · pii |
| Requires | merchant.order.context |
| Argument | Type | Required |
|---|---|---|
channelId |
string | yes |
checkout |
object | yes |
codes |
array of string | no |
currency |
string | yes |
customerId |
string | yes |
items |
array of object | yes |
locale |
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": "merchant.order.review", "arguments": {"channelId": "<string>", "locale": "<string>", "currency": "<string>", "customerId": "<string>", "items": [], "checkout": {}}}}'
TypeScript
const result = await client.mcp.call("merchant.order.review", {"channelId": "<string>", "locale": "<string>", "currency": "<string>", "customerId": "<string>", "items": [], "checkout": {}});
Python
result = client.mcp.call("merchant.order.review", {"channelId": "<string>", "locale": "<string>", "currency": "<string>", "customerId": "<string>", "items": [], "checkout": {}})
Rust
let result = client.mcp().call_raw("merchant.order.review", json!({"channelId": "<string>", "locale": "<string>", "currency": "<string>", "customerId": "<string>", "items": [], "checkout": {}})).await?;
merchant.order.transition
Revision-checked order payment or delivery transition.
| Fact | Value |
|---|---|
| Audience | merchant |
| Writes | yes |
| Risk | high |
| Reversibility | irreversible |
| Requires approval | yes |
| Cost | standard |
| Permissions | orders.write, customers.pii |
| Effects | email, event |
| Conditions | none |
| Data | order, payment · money · pii · stock |
| Requires | merchant.order |
| Argument | Type | Required |
|---|---|---|
action |
string | no |
deliveryIndex |
integer (≥ 0) | no |
id |
string | yes |
kind |
"order" | "payment" | "delivery" |
yes |
requestKey |
string | no |
revision |
integer | yes |
state |
string | yes |
trackingCode |
string | no |
trackingUrl |
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 "authorization: Bearer $VEYNDO_TOKEN" \
-H 'content-type: application/json' \
--data '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "merchant.order.transition", "arguments": {"id": "<string>", "revision": 1, "kind": "order", "state": "<string>"}}}'
TypeScript
const result = await client.mcp.call("merchant.order.transition", {"id": "<string>", "revision": 1, "kind": "order", "state": "<string>"});
Python
result = client.mcp.call("merchant.order.transition", {"id": "<string>", "revision": 1, "kind": "order", "state": "<string>"})
Rust
let result = client.mcp().call_raw("merchant.order.transition", json!({"id": "<string>", "revision": 1, "kind": "order", "state": "<string>"})).await?;
merchant.orders
Read orders; merchant authorization required.
| Fact | Value |
|---|---|
| Audience | merchant |
| Writes | no |
| Risk | medium |
| Reversibility | reversible |
| Requires approval | no |
| Cost | free |
| Permissions | orders.read, customers.pii |
| Effects | none |
| Conditions | none |
| Data | order, customer · money · pii |
| Requires | none |
| Argument | Type | Required |
|---|---|---|
after |
string | no |
appFilter |
string (max length 4096) | no |
channelId |
string (max length 200) | no |
customer |
string (max length 200) | no |
deliveryState |
string (max length 200) | no |
direction |
"asc" | "desc" |
no |
from |
string (max length 200) | no |
limit |
integer (≥ 1, ≤ 100) | no |
paymentState |
string (max length 200) | no |
query |
string (max length 200) | no |
sort |
"created" | "number" | "customer" | "total" | "state" |
no |
state |
string (max length 200) | no |
to |
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": "merchant.orders", "arguments": {"limit": 3}}}'
TypeScript
const result = await client.mcp.call("merchant.orders", {"limit": 3});
Python
result = client.mcp.call("merchant.orders", {"limit": 3})
Rust
let result = client.mcp().call_raw("merchant.orders", json!({"limit": 3})).await?;
merchant.receipt.create
Generate a numbered immutable receipt and PDF.
| Fact | Value |
|---|---|
| Audience | merchant |
| Writes | yes |
| Risk | medium |
| Reversibility | irreversible |
| Requires approval | yes |
| Cost | standard |
| Permissions | customers.pii, documents.create |
| Effects | event |
| Conditions | none |
| Data | document, order · money · pii |
| Requires | merchant.order |
| Argument | Type | Required |
|---|---|---|
deliveryIndex |
integer (≥ 0) | no |
id |
string | yes |
kind |
"invoice" | "delivery_note" | "cancellation" |
yes |
locale |
"en" | "de" | "fr" | "es" |
yes |
referenceId |
string | no |
requestKey |
string | 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": "merchant.receipt.create", "arguments": {"id": "<string>", "revision": 1, "kind": "invoice", "locale": "en", "requestKey": "<string>"}}}'
TypeScript
const result = await client.mcp.call("merchant.receipt.create", {"id": "<string>", "revision": 1, "kind": "invoice", "locale": "en", "requestKey": "<string>"});
Python
result = client.mcp.call("merchant.receipt.create", {"id": "<string>", "revision": 1, "kind": "invoice", "locale": "en", "requestKey": "<string>"})
Rust
let result = client.mcp().call_raw("merchant.receipt.create", json!({"id": "<string>", "revision": 1, "kind": "invoice", "locale": "en", "requestKey": "<string>"})).await?;
merchant.receipts
Read immutable order receipts.
| Fact | Value |
|---|---|
| Audience | merchant |
| Writes | no |
| Risk | medium |
| Reversibility | reversible |
| Requires approval | no |
| Cost | free |
| Permissions | customers.pii, documents.read |
| Effects | none |
| Conditions | none |
| Data | document, order · money · pii |
| Requires | none |
| Argument | Type | Required |
|---|---|---|
id |
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": "merchant.receipts", "arguments": {"id": "<string>"}}}'
TypeScript
const result = await client.mcp.call("merchant.receipts", {"id": "<string>"});
Python
result = client.mcp.call("merchant.receipts", {"id": "<string>"})
Rust
let result = client.mcp().call_raw("merchant.receipts", json!({"id": "<string>"})).await?;
merchant.workflow
Read multilingual state machine and transitions.
| Fact | Value |
|---|---|
| Audience | merchant |
| Writes | no |
| Risk | low |
| Reversibility | reversible |
| Requires approval | no |
| Cost | free |
| Permissions | orders.read |
| Effects | none |
| Conditions | none |
| Data | order, 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": "merchant.workflow", "arguments": {}}}'
TypeScript
const result = await client.mcp.call("merchant.workflow", {});
Python
result = client.mcp.call("merchant.workflow", {})
Rust
let result = client.mcp().call_raw("merchant.workflow", json!({})).await?;
merchant.workflow.save
Revision-bound declarative workflow extension.
| Fact | Value |
|---|---|
| Audience | merchant |
| Writes | yes |
| Risk | medium |
| Reversibility | reversible |
| Requires approval | no |
| Cost | standard |
| Permissions | settings.write |
| Effects | none |
| Conditions | none |
| Data | order, settings |
| Requires | none |
| Argument | Type | Required |
|---|---|---|
data |
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": "merchant.workflow.save", "arguments": {"revision": 1, "data": {}}}}'
TypeScript
const result = await client.mcp.call("merchant.workflow.save", {"revision": 1, "data": {}});
Python
result = client.mcp.call("merchant.workflow.save", {"revision": 1, "data": {}})
Rust
let result = client.mcp().call_raw("merchant.workflow.save", json!({"revision": 1, "data": {}})).await?;