English source · 3 min
Shipping API reference
Delivery methods, destinations, delivery splits and carrier booking. Contract version 1.0.0, generated from contracts/http/shipping.openapi.json. 1 HTTP operations, 1 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 shipping API object, method names and argument order are those of the generated SDKs.
Operations
| Operation | Permission | In the docs |
|---|---|---|
GET /store-api/countries |
public | Try it |
MCP merchant.delivery.split |
orders.write, customers.pii | request |
Public HTTP
Anonymous storefront, discovery and protocol routes. Name the shop with x-tenant.
GET /store-api/countries
Permission: public, no credential. Source: src/routes.rs. SDK method: getStoreCountries.
curl
curl -fsS -X GET "$VEYNDO_URL/store-api/countries" \
-H "x-tenant: $VEYNDO_SHOP"
TypeScript
const result = await client.shipping.getStoreCountries();
Python
result = client.shipping.get_store_countries()
Rust
let result = client.shipping().get_store_countries(RequestOptions::default()).await?;
MCP tools
Called with JSON-RPC tools/call on POST /mcp. The facts come from the typed operations graph; the server validates the input schema before it runs a tool.
merchant.delivery.split
Move a strict subset of open shipment quantities into another package with revision and requestKey.
| Fact | Value |
|---|---|
| Audience | merchant |
| Writes | yes |
| Risk | medium |
| Reversibility | irreversible |
| Requires approval | yes |
| Cost | standard |
| Permissions | orders.write, customers.pii |
| Effects | event |
| Conditions | none |
| Data | order · pii · stock |
| Requires | merchant.order |
| Argument | Type | Required |
|---|---|---|
deliveryIndex |
integer (≥ 0) | yes |
id |
string | yes |
positions |
array of object | yes |
requestKey |
string (min length 8, max length 128) | yes |
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": "merchant.delivery.split", "arguments": {"id": "<string>", "revision": 1, "deliveryIndex": 1, "positions": [], "requestKey": "<string>"}}}'
TypeScript
const result = await client.mcp.call("merchant.delivery.split", {"id": "<string>", "revision": 1, "deliveryIndex": 1, "positions": [], "requestKey": "<string>"});
Python
result = client.mcp.call("merchant.delivery.split", {"id": "<string>", "revision": 1, "deliveryIndex": 1, "positions": [], "requestKey": "<string>"})
Rust
let result = client.mcp().call_raw("merchant.delivery.split", json!({"id": "<string>", "revision": 1, "deliveryIndex": 1, "positions": [], "requestKey": "<string>"})).await?;