VEYNDO
Handbook
docs/reference/b2b.mdView source ↗

English source · 34 min

B2b API reference

Company procurement: organisations, budgets, approvals and quotes. Contract version 1.0.0, generated from contracts/http/b2b.openapi.json. 3 HTTP operations, 32 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 b2b API object, method names and argument order are those of the generated SDKs.

Operations

Operation Permission In the docs
GET /store-api/b2b/units/{unit}/orders/{id}/receipts/{receipt}/pdf public request
POST /store-api/b2b/{operation} public request
POST /api/b2b/{operation} read request
MCP b2b.approval.decide shopper request
MCP b2b.approval.request shopper request
MCP b2b.approvals shopper request
MCP b2b.catalog.save b2b.manage request
MCP b2b.companies b2b.read request
MCP b2b.company b2b.read request
MCP b2b.company.create b2b.manage request
MCP b2b.company.save b2b.manage request
MCP b2b.configuration b2b.read request
MCP b2b.contexts shopper request
MCP b2b.list.apply shopper request
MCP b2b.list.delete shopper request
MCP b2b.list.save shopper request
MCP b2b.lists shopper request
MCP b2b.member.save b2b.manage request
MCP b2b.quick-order shopper request
MCP b2b.quote.accept shopper request
MCP b2b.quote.current shopper request
MCP b2b.quote.get shopper request
MCP b2b.quote.message shopper request
MCP b2b.quote.offer b2b.manage request
MCP b2b.quote.reject shopper request
MCP b2b.quote.release shopper request
MCP b2b.quote.request shopper request
MCP b2b.quote.transition b2b.manage request
MCP b2b.quotes shopper request
MCP b2b.quotes.merchant b2b.manage request
MCP b2b.requisition.import b2b.manage request
MCP b2b.select shopper request
MCP b2b.settings.save settings.write request
MCP b2b.unit.orders shopper request
MCP b2b.unit.save b2b.manage request

Public HTTP

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

GET /store-api/b2b/units/{unit}/orders/{id}/receipts/{receipt}/pdf

Permission: public, no credential. Source: src/b2b/mod.rs. SDK method: getStoreB2bUnitsByUnitOrdersByIdReceiptsByReceiptPdf.

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

curl

curl -fsS -X GET "$VEYNDO_URL/store-api/b2b/units/<unit>/orders/<id>/receipts/<receipt>/pdf" \
  -H "x-tenant: $VEYNDO_SHOP"

TypeScript

const result = await client.b2b.getStoreB2bUnitsByUnitOrdersByIdReceiptsByReceiptPdf({ "unit": "<unit>", "id": "<id>", "receipt": "<receipt>" });

Python

result = client.b2b.get_store_b2b_units_by_unit_orders_by_id_receipts_by_receipt_pdf("<unit>", "<id>", "<receipt>")

Rust

let result = client.b2b().get_store_b2b_units_by_unit_orders_by_id_receipts_by_receipt_pdf("<unit>", "<id>", "<receipt>", RequestOptions::default()).await?;

POST /store-api/b2b/{operation}

Permission: public, no credential. Source: src/b2b/mod.rs. SDK method: postStoreB2bByOperation.

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

curl

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

TypeScript

const result = await client.b2b.postStoreB2bByOperation({ "operation": "<operation>" }, { body: {} });

Python

result = client.b2b.post_store_b2b_by_operation("<operation>", body={})

Rust

let result = client.b2b().post_store_b2b_by_operation("<operation>", RequestOptions::json(json!({}))).await?;

Merchant HTTP

Each route checks the named permission against your current membership.

POST /api/b2b/{operation}

Permission: read, personal session or integration key. Source: src/b2b/mod.rs. SDK method: postB2bByOperation.

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

curl

curl -fsS -X POST "$VEYNDO_URL/api/b2b/<operation>" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H "authorization: Bearer $VEYNDO_TOKEN" \
  -H 'content-type: application/json' \
  --data '{}'

TypeScript

const result = await client.b2b.postB2bByOperation({ "operation": "<operation>" }, { body: {} });

Python

result = client.b2b.post_b2b_by_operation("<operation>", body={})

Rust

let result = client.b2b().post_b2b_by_operation("<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.

b2b.approval.decide

Approve or reject another employee's pending purchase.

Fact Value
Audience shopper
Writes yes
Risk high
Reversibility irreversible
Requires approval yes
Cost standard
Permissions none
Effects event
Conditions none
Data quote, order, company · money
Requires b2b.approval.request
Argument Type Required
cartRevision integer (≥ 0) no
companyId string (max length 100) no
customerId string (max length 100) no
data object no
id string (max length 100) no
lines array of object no
message string (max length 4000) no
parentId string or null no
productIds array of string no
purchaseOrder string (max length 100) no
revision integer (≥ 0) no
state "approved" | "rejected" no
unitId string (max length 100) 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": "b2b.approval.decide", "arguments": {}}}'

TypeScript

const result = await client.mcp.call("b2b.approval.decide", {});

Python

result = client.mcp.call("b2b.approval.decide", {})

Rust

let result = client.mcp().call_raw("b2b.approval.decide", json!({})).await?;

b2b.approval.request

Request approval of a revision-bound native quote.

Fact Value
Audience shopper
Writes yes
Risk low
Reversibility reversible
Requires approval no
Cost standard
Permissions none
Effects event
Conditions none
Data quote, company · money
Requires b2b.quote.get
Argument Type Required
cartRevision integer (≥ 0) no
companyId string (max length 100) no
customerId string (max length 100) no
data object no
id string (max length 100) no
lines array of object no
message string (max length 4000) no
parentId string or null no
productIds array of string no
purchaseOrder string (max length 100) no
revision integer (≥ 0) no
state "approved" | "rejected" no
unitId string (max length 100) 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": "b2b.approval.request", "arguments": {}}}'

TypeScript

const result = await client.mcp.call("b2b.approval.request", {});

Python

result = client.mcp.call("b2b.approval.request", {})

Rust

let result = client.mcp().call_raw("b2b.approval.request", json!({})).await?;

b2b.approvals

Read the employee's unit approval inbox.

Fact Value
Audience shopper
Writes no
Risk medium
Reversibility reversible
Requires approval no
Cost free
Permissions none
Effects none
Conditions none
Data quote, company · money · pii
Requires none
Argument Type Required
cartRevision integer (≥ 0) no
companyId string (max length 100) no
customerId string (max length 100) no
data object no
id string (max length 100) no
lines array of object no
message string (max length 4000) no
parentId string or null no
productIds array of string no
purchaseOrder string (max length 100) no
revision integer (≥ 0) no
state "approved" | "rejected" no
unitId string (max length 100) no

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": "b2b.approvals", "arguments": {}}}'

TypeScript

const result = await client.mcp.call("b2b.approvals", {});

Python

result = client.mcp.call("b2b.approvals", {})

Rust

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

b2b.catalog.save

Revise the purchasing unit product catalog.

Fact Value
Audience merchant
Writes yes
Risk medium
Reversibility reversible
Requires approval no
Cost standard
Permissions b2b.manage
Effects event
Conditions none
Data company, product
Requires none
Argument Type Required
cartRevision integer (≥ 0) no
companyId string (max length 100) no
customerId string (max length 100) no
data object no
id string (max length 100) no
lines array of object no
message string (max length 4000) no
parentId string or null no
productIds array of string no
purchaseOrder string (max length 100) no
revision integer (≥ 0) no
state "approved" | "rejected" no
unitId string (max length 100) 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": "b2b.catalog.save", "arguments": {}}}'

TypeScript

const result = await client.mcp.call("b2b.catalog.save", {});

Python

result = client.mcp.call("b2b.catalog.save", {})

Rust

let result = client.mcp().call_raw("b2b.catalog.save", json!({})).await?;

b2b.companies

List merchant companies.

Fact Value
Audience merchant
Writes no
Risk medium
Reversibility reversible
Requires approval no
Cost free
Permissions b2b.read
Effects none
Conditions none
Data company · pii
Requires none
Argument Type Required
cartRevision integer (≥ 0) no
companyId string (max length 100) no
customerId string (max length 100) no
data object no
id string (max length 100) no
lines array of object no
message string (max length 4000) no
parentId string or null no
productIds array of string no
purchaseOrder string (max length 100) no
revision integer (≥ 0) no
state "approved" | "rejected" no
unitId string (max length 100) 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": "b2b.companies", "arguments": {}}}'

TypeScript

const result = await client.mcp.call("b2b.companies", {});

Python

result = client.mcp.call("b2b.companies", {})

Rust

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

b2b.company

Read company, units and employee grants.

Fact Value
Audience merchant
Writes no
Risk medium
Reversibility reversible
Requires approval no
Cost free
Permissions b2b.read
Effects none
Conditions none
Data company, customer · pii
Requires none
Argument Type Required
cartRevision integer (≥ 0) no
companyId string (max length 100) no
customerId string (max length 100) no
data object no
id string (max length 100) no
lines array of object no
message string (max length 4000) no
parentId string or null no
productIds array of string no
purchaseOrder string (max length 100) no
revision integer (≥ 0) no
state "approved" | "rejected" no
unitId string (max length 100) 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": "b2b.company", "arguments": {}}}'

TypeScript

const result = await client.mcp.call("b2b.company", {});

Python

result = client.mcp.call("b2b.company", {})

Rust

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

b2b.company.create

Create a company with its first purchasing unit and optional existing customer.

Fact Value
Audience merchant
Writes yes
Risk medium
Reversibility reversible
Requires approval no
Cost standard
Permissions b2b.manage
Effects event
Conditions none
Data company, customer · pii
Requires none
Argument Type Required
cartRevision integer (≥ 0) no
companyId string (max length 100) no
customerId string (max length 100) no
data object no
id string (max length 100) no
lines array of object no
message string (max length 4000) no
parentId string or null no
productIds array of string no
purchaseOrder string (max length 100) no
revision integer (≥ 0) no
state "approved" | "rejected" no
unitId string (max length 100) 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": "b2b.company.create", "arguments": {}}}'

TypeScript

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

Python

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

Rust

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

b2b.company.save

Create or revise a merchant company.

Fact Value
Audience merchant
Writes yes
Risk medium
Reversibility reversible
Requires approval no
Cost standard
Permissions b2b.manage
Effects event
Conditions none
Data company · pii
Requires b2b.company
Argument Type Required
cartRevision integer (≥ 0) no
companyId string (max length 100) no
customerId string (max length 100) no
data object no
id string (max length 100) no
lines array of object no
message string (max length 4000) no
parentId string or null no
productIds array of string no
purchaseOrder string (max length 100) no
revision integer (≥ 0) no
state "approved" | "rejected" no
unitId string (max length 100) 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": "b2b.company.save", "arguments": {}}}'

TypeScript

const result = await client.mcp.call("b2b.company.save", {});

Python

result = client.mcp.call("b2b.company.save", {})

Rust

let result = client.mcp().call_raw("b2b.company.save", json!({})).await?;

b2b.configuration

Read shared purchasing configuration without unrelated settings authority.

Fact Value
Audience merchant
Writes no
Risk low
Reversibility reversible
Requires approval no
Cost free
Permissions b2b.read
Effects none
Conditions none
Data settings, company
Requires none
Argument Type Required
cartRevision integer (≥ 0) no
companyId string (max length 100) no
customerId string (max length 100) no
data object no
id string (max length 100) no
lines array of object no
message string (max length 4000) no
parentId string or null no
productIds array of string no
purchaseOrder string (max length 100) no
revision integer (≥ 0) no
state "approved" | "rejected" no
unitId string (max length 100) 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": "b2b.configuration", "arguments": {}}}'

TypeScript

const result = await client.mcp.call("b2b.configuration", {});

Python

result = client.mcp.call("b2b.configuration", {})

Rust

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

b2b.contexts

Discover the signed-in customer's active company units.

Fact Value
Audience shopper
Writes no
Risk low
Reversibility reversible
Requires approval no
Cost free
Permissions none
Effects none
Conditions none
Data company
Requires none
Argument Type Required
cartRevision integer (≥ 0) no
companyId string (max length 100) no
customerId string (max length 100) no
data object no
id string (max length 100) no
lines array of object no
message string (max length 4000) no
parentId string or null no
productIds array of string no
purchaseOrder string (max length 100) no
revision integer (≥ 0) no
state "approved" | "rejected" no
unitId string (max length 100) no

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": "b2b.contexts", "arguments": {}}}'

TypeScript

const result = await client.mcp.call("b2b.contexts", {});

Python

result = client.mcp.call("b2b.contexts", {})

Rust

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

b2b.list.apply

Apply an admitted list to the native cart.

Fact Value
Audience shopper
Writes yes
Risk low
Reversibility reversible
Requires approval no
Cost standard
Permissions none
Effects none
Conditions none
Data cart, list · money
Requires b2b.lists
Argument Type Required
cartRevision integer (≥ 0) no
companyId string (max length 100) no
customerId string (max length 100) no
data object no
id string (max length 100) no
lines array of object no
message string (max length 4000) no
parentId string or null no
productIds array of string no
purchaseOrder string (max length 100) no
revision integer (≥ 0) no
state "approved" | "rejected" no
unitId string (max length 100) 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": "b2b.list.apply", "arguments": {}}}'

TypeScript

const result = await client.mcp.call("b2b.list.apply", {});

Python

result = client.mcp.call("b2b.list.apply", {})

Rust

let result = client.mcp().call_raw("b2b.list.apply", json!({})).await?;

b2b.list.delete

Delete an owned procurement list.

Fact Value
Audience shopper
Writes yes
Risk medium
Reversibility irreversible
Requires approval yes
Cost standard
Permissions none
Effects event
Conditions none
Data list
Requires b2b.lists
Argument Type Required
cartRevision integer (≥ 0) no
companyId string (max length 100) no
customerId string (max length 100) no
data object no
id string (max length 100) no
lines array of object no
message string (max length 4000) no
parentId string or null no
productIds array of string no
purchaseOrder string (max length 100) no
revision integer (≥ 0) no
state "approved" | "rejected" no
unitId string (max length 100) 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": "b2b.list.delete", "arguments": {}}}'

TypeScript

const result = await client.mcp.call("b2b.list.delete", {});

Python

result = client.mcp.call("b2b.list.delete", {})

Rust

let result = client.mcp().call_raw("b2b.list.delete", json!({})).await?;

b2b.list.save

Revise an owned procurement list.

Fact Value
Audience shopper
Writes yes
Risk low
Reversibility reversible
Requires approval no
Cost standard
Permissions none
Effects event
Conditions none
Data list
Requires none
Argument Type Required
cartRevision integer (≥ 0) no
companyId string (max length 100) no
customerId string (max length 100) no
data object no
id string (max length 100) no
lines array of object no
message string (max length 4000) no
parentId string or null no
productIds array of string no
purchaseOrder string (max length 100) no
revision integer (≥ 0) no
state "approved" | "rejected" no
unitId string (max length 100) 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": "b2b.list.save", "arguments": {}}}'

TypeScript

const result = await client.mcp.call("b2b.list.save", {});

Python

result = client.mcp.call("b2b.list.save", {})

Rust

let result = client.mcp().call_raw("b2b.list.save", json!({})).await?;

b2b.lists

Read private or unit-shared procurement lists.

Fact Value
Audience shopper
Writes no
Risk low
Reversibility reversible
Requires approval no
Cost free
Permissions none
Effects none
Conditions none
Data list
Requires none
Argument Type Required
cartRevision integer (≥ 0) no
companyId string (max length 100) no
customerId string (max length 100) no
data object no
id string (max length 100) no
lines array of object no
message string (max length 4000) no
parentId string or null no
productIds array of string no
purchaseOrder string (max length 100) no
revision integer (≥ 0) no
state "approved" | "rejected" no
unitId string (max length 100) no

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": "b2b.lists", "arguments": {}}}'

TypeScript

const result = await client.mcp.call("b2b.lists", {});

Python

result = client.mcp.call("b2b.lists", {})

Rust

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

b2b.member.save

Grant or pause a current customer's unit purchasing rights.

Fact Value
Audience merchant
Writes yes
Risk medium
Reversibility reversible
Requires approval no
Cost standard
Permissions b2b.manage
Effects event
Conditions none
Data company, customer · money · pii
Requires b2b.company
Argument Type Required
cartRevision integer (≥ 0) no
companyId string (max length 100) no
customerId string (max length 100) no
data object no
id string (max length 100) no
lines array of object no
message string (max length 4000) no
parentId string or null no
productIds array of string no
purchaseOrder string (max length 100) no
revision integer (≥ 0) no
state "approved" | "rejected" no
unitId string (max length 100) 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": "b2b.member.save", "arguments": {}}}'

TypeScript

const result = await client.mcp.call("b2b.member.save", {});

Python

result = client.mcp.call("b2b.member.save", {})

Rust

let result = client.mcp().call_raw("b2b.member.save", json!({})).await?;

b2b.quick-order

Resolve SKU lines into a native company cart.

Fact Value
Audience shopper
Writes yes
Risk low
Reversibility reversible
Requires approval no
Cost standard
Permissions none
Effects none
Conditions none
Data cart, product · money
Requires none
Argument Type Required
cartRevision integer (≥ 0) no
companyId string (max length 100) no
customerId string (max length 100) no
data object no
id string (max length 100) no
lines array of object no
message string (max length 4000) no
parentId string or null no
productIds array of string no
purchaseOrder string (max length 100) no
revision integer (≥ 0) no
state "approved" | "rejected" no
unitId string (max length 100) 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": "b2b.quick-order", "arguments": {}}}'

TypeScript

const result = await client.mcp.call("b2b.quick-order", {});

Python

result = client.mcp.call("b2b.quick-order", {})

Rust

let result = client.mcp().call_raw("b2b.quick-order", json!({})).await?;

b2b.quote.accept

Bind an offered quote to its original native cart.

Fact Value
Audience shopper
Writes yes
Risk medium
Reversibility compensatable
Requires approval no
Cost standard
Permissions none
Effects event
Conditions none
Data quote, cart · money
Requires b2b.quote.offer
Argument Type Required
cartRevision integer (≥ 0) no
companyId string (max length 100) no
customerId string (max length 100) no
data object no
id string (max length 100) no
lines array of object no
message string (max length 4000) no
parentId string or null no
productIds array of string no
purchaseOrder string (max length 100) no
revision integer (≥ 0) no
state "approved" | "rejected" no
unitId string (max length 100) 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": "b2b.quote.accept", "arguments": {}}}'

TypeScript

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

Python

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

Rust

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

b2b.quote.current

Read quotes for the current owned company cart.

Fact Value
Audience shopper
Writes no
Risk low
Reversibility reversible
Requires approval no
Cost free
Permissions none
Effects none
Conditions none
Data quote, cart · money
Requires none
Argument Type Required
cartRevision integer (≥ 0) no
companyId string (max length 100) no
customerId string (max length 100) no
data object no
id string (max length 100) no
lines array of object no
message string (max length 4000) no
parentId string or null no
productIds array of string no
purchaseOrder string (max length 100) no
revision integer (≥ 0) no
state "approved" | "rejected" no
unitId string (max length 100) no

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": "b2b.quote.current", "arguments": {}}}'

TypeScript

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

Python

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

Rust

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

b2b.quote.get

Read an owned original-cart quote.

Fact Value
Audience shopper
Writes no
Risk low
Reversibility reversible
Requires approval no
Cost free
Permissions none
Effects none
Conditions none
Data quote, cart · money
Requires none
Argument Type Required
cartRevision integer (≥ 0) no
companyId string (max length 100) no
customerId string (max length 100) no
data object no
id string (max length 100) no
lines array of object no
message string (max length 4000) no
parentId string or null no
productIds array of string no
purchaseOrder string (max length 100) no
revision integer (≥ 0) no
state "approved" | "rejected" no
unitId string (max length 100) no

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": "b2b.quote.get", "arguments": {}}}'

TypeScript

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

Python

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

Rust

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

b2b.quote.message

Continue a scoped quote negotiation.

Fact Value
Audience shopper
Writes yes
Risk medium
Reversibility irreversible
Requires approval yes
Cost standard
Permissions none
Effects event
Conditions none
Data quote
Requires b2b.quote.request
Argument Type Required
cartRevision integer (≥ 0) no
companyId string (max length 100) no
customerId string (max length 100) no
data object no
id string (max length 100) no
lines array of object no
message string (max length 4000) no
parentId string or null no
productIds array of string no
purchaseOrder string (max length 100) no
revision integer (≥ 0) no
state "approved" | "rejected" no
unitId string (max length 100) 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": "b2b.quote.message", "arguments": {}}}'

TypeScript

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

Python

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

Rust

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

b2b.quote.offer

Send a currency-bound merchant offer.

Fact Value
Audience merchant
Writes yes
Risk high
Reversibility irreversible
Requires approval yes
Cost standard
Permissions b2b.manage
Effects event
Conditions none
Data quote · money
Requires b2b.quote.request
Argument Type Required
cartRevision integer (≥ 0) no
companyId string (max length 100) no
customerId string (max length 100) no
data object no
id string (max length 100) no
lines array of object no
message string (max length 4000) no
parentId string or null no
productIds array of string no
purchaseOrder string (max length 100) no
revision integer (≥ 0) no
state "approved" | "rejected" no
unitId string (max length 100) 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": "b2b.quote.offer", "arguments": {}}}'

TypeScript

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

Python

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

Rust

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

b2b.quote.reject

Reject your pending quote.

Fact Value
Audience shopper
Writes yes
Risk medium
Reversibility irreversible
Requires approval yes
Cost standard
Permissions none
Effects event
Conditions none
Data quote
Requires b2b.quote.request
Argument Type Required
cartRevision integer (≥ 0) no
companyId string (max length 100) no
customerId string (max length 100) no
data object no
id string (max length 100) no
lines array of object no
message string (max length 4000) no
parentId string or null no
productIds array of string no
purchaseOrder string (max length 100) no
revision integer (≥ 0) no
state "approved" | "rejected" no
unitId string (max length 100) 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": "b2b.quote.reject", "arguments": {}}}'

TypeScript

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

Python

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

Rust

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

b2b.quote.release

Remove the accepted offer from an open cart.

Fact Value
Audience shopper
Writes yes
Risk low
Reversibility compensatable
Requires approval no
Cost standard
Permissions none
Effects none
Conditions none
Data quote, cart · money
Requires b2b.quote.accept
Argument Type Required
cartRevision integer (≥ 0) no
companyId string (max length 100) no
customerId string (max length 100) no
data object no
id string (max length 100) no
lines array of object no
message string (max length 4000) no
parentId string or null no
productIds array of string no
purchaseOrder string (max length 100) no
revision integer (≥ 0) no
state "approved" | "rejected" no
unitId string (max length 100) 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": "b2b.quote.release", "arguments": {}}}'

TypeScript

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

Python

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

Rust

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

b2b.quote.request

Request a native company cart quote.

Fact Value
Audience shopper
Writes yes
Risk low
Reversibility compensatable
Requires approval no
Cost standard
Permissions none
Effects event
Conditions none
Data quote, cart · money
Requires none
Argument Type Required
cartRevision integer (≥ 0) no
companyId string (max length 100) no
customerId string (max length 100) no
data object no
id string (max length 100) no
lines array of object no
message string (max length 4000) no
parentId string or null no
productIds array of string no
purchaseOrder string (max length 100) no
revision integer (≥ 0) no
state "approved" | "rejected" no
unitId string (max length 100) 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": "b2b.quote.request", "arguments": {}}}'

TypeScript

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

Python

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

Rust

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

b2b.quote.transition

Advance an accepted app-owned quote preparation state.

Fact Value
Audience merchant
Writes yes
Risk medium
Reversibility irreversible
Requires approval yes
Cost standard
Permissions b2b.manage
Effects event
Conditions none
Data quote
Requires b2b.quote.accept
Argument Type Required
action string (max length 32) yes
id string (max length 100) yes
message string (max length 4000) no
revision integer (≥ 1) 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": "b2b.quote.transition", "arguments": {"id": "<string>", "revision": 1, "action": "<string>"}}}'

TypeScript

const result = await client.mcp.call("b2b.quote.transition", {"id": "<string>", "revision": 1, "action": "<string>"});

Python

result = client.mcp.call("b2b.quote.transition", {"id": "<string>", "revision": 1, "action": "<string>"})

Rust

let result = client.mcp().call_raw("b2b.quote.transition", json!({"id": "<string>", "revision": 1, "action": "<string>"})).await?;

b2b.quotes

List your company quote requests.

Fact Value
Audience shopper
Writes no
Risk low
Reversibility reversible
Requires approval no
Cost free
Permissions none
Effects none
Conditions none
Data quote
Requires none
Argument Type Required
cartRevision integer (≥ 0) no
companyId string (max length 100) no
customerId string (max length 100) no
data object no
id string (max length 100) no
lines array of object no
message string (max length 4000) no
parentId string or null no
productIds array of string no
purchaseOrder string (max length 100) no
revision integer (≥ 0) no
state "approved" | "rejected" no
unitId string (max length 100) no

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": "b2b.quotes", "arguments": {}}}'

TypeScript

const result = await client.mcp.call("b2b.quotes", {});

Python

result = client.mcp.call("b2b.quotes", {})

Rust

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

b2b.quotes.merchant

Read merchant quote inbox.

Fact Value
Audience merchant
Writes no
Risk medium
Reversibility reversible
Requires approval no
Cost free
Permissions b2b.manage
Effects none
Conditions none
Data quote, company · money · pii
Requires none
Argument Type Required
cartRevision integer (≥ 0) no
companyId string (max length 100) no
customerId string (max length 100) no
data object no
id string (max length 100) no
lines array of object no
message string (max length 4000) no
parentId string or null no
productIds array of string no
purchaseOrder string (max length 100) no
revision integer (≥ 0) no
state "approved" | "rejected" no
unitId string (max length 100) 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": "b2b.quotes.merchant", "arguments": {}}}'

TypeScript

const result = await client.mcp.call("b2b.quotes.merchant", {});

Python

result = client.mcp.call("b2b.quotes.merchant", {})

Rust

let result = client.mcp().call_raw("b2b.quotes.merchant", json!({})).await?;

b2b.requisition.import

Import a mapped requisition as a native owned order list.

Fact Value
Audience merchant
Writes yes
Risk low
Reversibility reversible
Requires approval no
Cost standard
Permissions b2b.manage
Effects none
Conditions none
Data list, product
Requires none
Argument Type Required
cartRevision integer (≥ 0) no
companyId string (max length 100) no
customerId string (max length 100) no
data object no
id string (max length 100) no
lines array of object no
message string (max length 4000) no
parentId string or null no
productIds array of string no
purchaseOrder string (max length 100) no
revision integer (≥ 0) no
state "approved" | "rejected" no
unitId string (max length 100) 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": "b2b.requisition.import", "arguments": {}}}'

TypeScript

const result = await client.mcp.call("b2b.requisition.import", {});

Python

result = client.mcp.call("b2b.requisition.import", {})

Rust

let result = client.mcp().call_raw("b2b.requisition.import", json!({})).await?;

b2b.select

Bind an owned native cart to a purchasing unit and purchase-order reference.

Fact Value
Audience shopper
Writes yes
Risk low
Reversibility reversible
Requires approval no
Cost standard
Permissions none
Effects none
Conditions none
Data cart, company
Requires b2b.contexts
Argument Type Required
cartRevision integer (≥ 0) no
companyId string (max length 100) no
customerId string (max length 100) no
data object no
id string (max length 100) no
lines array of object no
message string (max length 4000) no
parentId string or null no
productIds array of string no
purchaseOrder string (max length 100) no
revision integer (≥ 0) no
state "approved" | "rejected" no
unitId string (max length 100) 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": "b2b.select", "arguments": {}}}'

TypeScript

const result = await client.mcp.call("b2b.select", {});

Python

result = client.mcp.call("b2b.select", {})

Rust

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

b2b.settings.save

Configure native B2B features using shared revisioned settings.

Fact Value
Audience merchant
Writes yes
Risk medium
Reversibility reversible
Requires approval no
Cost standard
Permissions settings.write
Effects none
Conditions none
Data settings
Requires none
Argument Type Required
cartRevision integer (≥ 0) no
companyId string (max length 100) no
customerId string (max length 100) no
data object no
id string (max length 100) no
lines array of object no
message string (max length 4000) no
parentId string or null no
productIds array of string no
purchaseOrder string (max length 100) no
revision integer (≥ 0) no
state "approved" | "rejected" no
unitId string (max length 100) 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": "b2b.settings.save", "arguments": {}}}'

TypeScript

const result = await client.mcp.call("b2b.settings.save", {});

Python

result = client.mcp.call("b2b.settings.save", {})

Rust

let result = client.mcp().call_raw("b2b.settings.save", json!({})).await?;

b2b.unit.orders

Read orders admitted by explicit unit-order permission.

Fact Value
Audience shopper
Writes no
Risk medium
Reversibility reversible
Requires approval no
Cost free
Permissions none
Effects none
Conditions none
Data order, company · money · pii
Requires none
Argument Type Required
cartRevision integer (≥ 0) no
companyId string (max length 100) no
customerId string (max length 100) no
data object no
id string (max length 100) no
lines array of object no
message string (max length 4000) no
parentId string or null no
productIds array of string no
purchaseOrder string (max length 100) no
revision integer (≥ 0) no
state "approved" | "rejected" no
unitId string (max length 100) no

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": "b2b.unit.orders", "arguments": {}}}'

TypeScript

const result = await client.mcp.call("b2b.unit.orders", {});

Python

result = client.mcp.call("b2b.unit.orders", {})

Rust

let result = client.mcp().call_raw("b2b.unit.orders", json!({})).await?;

b2b.unit.save

Create or revise a purchasing unit.

Fact Value
Audience merchant
Writes yes
Risk medium
Reversibility reversible
Requires approval no
Cost standard
Permissions b2b.manage
Effects event
Conditions none
Data company
Requires b2b.company
Argument Type Required
cartRevision integer (≥ 0) no
companyId string (max length 100) no
customerId string (max length 100) no
data object no
id string (max length 100) no
lines array of object no
message string (max length 4000) no
parentId string or null no
productIds array of string no
purchaseOrder string (max length 100) no
revision integer (≥ 0) no
state "approved" | "rejected" no
unitId string (max length 100) 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": "b2b.unit.save", "arguments": {}}}'

TypeScript

const result = await client.mcp.call("b2b.unit.save", {});

Python

result = client.mcp.call("b2b.unit.save", {})

Rust

let result = client.mcp().call_raw("b2b.unit.save", json!({})).await?;