VEYNDO
Handbook
docs/reference/customers.mdView source ↗

English source · 18 min

Customers API reference

Customer accounts, sessions, addresses and the merchant customer directory. Contract version 1.0.0, generated from contracts/http/customers.openapi.json. 20 HTTP operations, 9 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 customers API object, method names and argument order are those of the generated SDKs.

Operations

Operation Permission In the docs
GET /store-api/account/addresses public request
POST /store-api/account/addresses public request
DELETE /store-api/account/addresses/{id} public request
PUT /store-api/account/addresses/{id} public request
POST /store-api/account/login public request
POST /store-api/account/logout public request
POST /store-api/account/password public request
GET /store-api/account/profile public request
PUT /store-api/account/profile public request
POST /store-api/account/register public request
GET /api/merchant/customers customers.read request
POST /api/merchant/customers customers.write request
GET /api/merchant/customers/create-context customers.write request
GET /api/merchant/customers/lookup customers.read request
GET /api/merchant/customers/{email} customers.read request
PUT /api/merchant/customers/{email} customers.write request
GET /api/merchant/customers/{email}/addresses customers.read request
POST /api/merchant/customers/{email}/addresses customers.write request
DELETE /api/merchant/customers/{email}/addresses/{id} customers.write request
PUT /api/merchant/customers/{email}/addresses/{id} customers.write request
MCP merchant.customer customers.read, customers.pii request
MCP merchant.customer.address.delete customers.pii, customers.write request
MCP merchant.customer.address.save customers.pii, customers.write request
MCP merchant.customer.addresses customers.read, customers.pii request
MCP merchant.customer.create customers.pii, customers.write request
MCP merchant.customer.creation customers.pii, customers.write request
MCP merchant.customer.lookup customers.read, customers.pii request
MCP merchant.customer.save customers.pii, customers.write request
MCP merchant.customers customers.read, customers.pii request

Public HTTP

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

GET /store-api/account/addresses

Permission: public, no credential. Source: src/accounts/mod.rs. SDK method: getStoreAccountAddresses.

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

curl

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

TypeScript

const result = await client.customers.getStoreAccountAddresses();

Python

result = client.customers.get_store_account_addresses()

Rust

let result = client.customers().get_store_account_addresses(RequestOptions::default()).await?;

POST /store-api/account/addresses

Permission: public, no credential. Source: src/accounts/mod.rs. SDK method: postStoreAccountAddresses.

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

curl

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

TypeScript

const result = await client.customers.postStoreAccountAddresses({ body: {} });

Python

result = client.customers.post_store_account_addresses(body={})

Rust

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

DELETE /store-api/account/addresses/{id}

Permission: public, no credential. Source: src/accounts/mod.rs. SDK method: deleteStoreAccountAddressesById.

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

curl

curl -fsS -X DELETE "$VEYNDO_URL/store-api/account/addresses/<id>" \
  -H "x-tenant: $VEYNDO_SHOP"

TypeScript

const result = await client.customers.deleteStoreAccountAddressesById({ "id": "<id>" });

Python

result = client.customers.delete_store_account_addresses_by_id("<id>")

Rust

let result = client.customers().delete_store_account_addresses_by_id("<id>", RequestOptions::default()).await?;

PUT /store-api/account/addresses/{id}

Permission: public, no credential. Source: src/accounts/mod.rs. SDK method: putStoreAccountAddressesById.

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

curl

curl -fsS -X PUT "$VEYNDO_URL/store-api/account/addresses/<id>" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H 'content-type: application/json' \
  --data '{}'

TypeScript

const result = await client.customers.putStoreAccountAddressesById({ "id": "<id>" }, { body: {} });

Python

result = client.customers.put_store_account_addresses_by_id("<id>", body={})

Rust

let result = client.customers().put_store_account_addresses_by_id("<id>", RequestOptions::json(json!({}))).await?;

POST /store-api/account/login

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

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

curl

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

TypeScript

const result = await client.customers.postStoreAccountLogin({ body: {} });

Python

result = client.customers.post_store_account_login(body={})

Rust

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

POST /store-api/account/logout

Permission: public, no credential. Source: src/accounts/mod.rs. SDK method: postStoreAccountLogout.

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

curl

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

TypeScript

const result = await client.customers.postStoreAccountLogout({ body: {} });

Python

result = client.customers.post_store_account_logout(body={})

Rust

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

POST /store-api/account/password

Permission: public, no credential. Source: src/accounts/mod.rs. SDK method: postStoreAccountPassword.

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

curl

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

TypeScript

const result = await client.customers.postStoreAccountPassword({ body: {} });

Python

result = client.customers.post_store_account_password(body={})

Rust

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

GET /store-api/account/profile

Permission: public, no credential. Source: src/accounts/mod.rs. SDK method: getStoreAccountProfile.

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

curl

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

TypeScript

const result = await client.customers.getStoreAccountProfile();

Python

result = client.customers.get_store_account_profile()

Rust

let result = client.customers().get_store_account_profile(RequestOptions::default()).await?;

PUT /store-api/account/profile

Permission: public, no credential. Source: src/accounts/mod.rs. SDK method: putStoreAccountProfile.

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

curl

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

TypeScript

const result = await client.customers.putStoreAccountProfile({ body: {} });

Python

result = client.customers.put_store_account_profile(body={})

Rust

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

POST /store-api/account/register

Permission: public, no credential. Source: src/accounts/mod.rs. SDK method: postStoreAccountRegister.

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

curl

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

TypeScript

const result = await client.customers.postStoreAccountRegister({ body: {} });

Python

result = client.customers.post_store_account_register(body={})

Rust

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

Merchant HTTP

Each route checks the named permission against your current membership.

GET /api/merchant/customers

Permission: customers.read, personal session or integration key. Source: src/operations/routes.rs. SDK method: getMerchantCustomers.

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

curl

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

TypeScript

const result = await client.customers.getMerchantCustomers();

Python

result = client.customers.get_merchant_customers()

Rust

let result = client.customers().get_merchant_customers(RequestOptions::default()).await?;

POST /api/merchant/customers

Permission: customers.write, personal session or integration key. Source: src/operations/routes.rs. SDK method: postMerchantCustomers.

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

curl

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

TypeScript

const result = await client.customers.postMerchantCustomers({ body: {} });

Python

result = client.customers.post_merchant_customers(body={})

Rust

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

GET /api/merchant/customers/create-context

Permission: customers.write, personal session or integration key. Source: src/operations/routes.rs. SDK method: getMerchantCustomersCreateContext.

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

curl

curl -fsS -X GET "$VEYNDO_URL/api/merchant/customers/create-context" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H "authorization: Bearer $VEYNDO_TOKEN"

TypeScript

const result = await client.customers.getMerchantCustomersCreateContext();

Python

result = client.customers.get_merchant_customers_create_context()

Rust

let result = client.customers().get_merchant_customers_create_context(RequestOptions::default()).await?;

GET /api/merchant/customers/lookup

Permission: customers.read, personal session or integration key. Source: src/operations/routes.rs. SDK method: getMerchantCustomersLookup.

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

curl

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

TypeScript

const result = await client.customers.getMerchantCustomersLookup();

Python

result = client.customers.get_merchant_customers_lookup()

Rust

let result = client.customers().get_merchant_customers_lookup(RequestOptions::default()).await?;

GET /api/merchant/customers/{email}

Permission: customers.read, personal session or integration key. Source: src/operations/routes.rs. SDK method: getMerchantCustomersByEmail.

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

curl

curl -fsS -X GET "$VEYNDO_URL/api/merchant/customers/<email>" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H "authorization: Bearer $VEYNDO_TOKEN"

TypeScript

const result = await client.customers.getMerchantCustomersByEmail({ "email": "<email>" });

Python

result = client.customers.get_merchant_customers_by_email("<email>")

Rust

let result = client.customers().get_merchant_customers_by_email("<email>", RequestOptions::default()).await?;

PUT /api/merchant/customers/{email}

Permission: customers.write, personal session or integration key. Source: src/operations/routes.rs. SDK method: putMerchantCustomersByEmail.

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

curl

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

TypeScript

const result = await client.customers.putMerchantCustomersByEmail({ "email": "<email>" }, { body: {} });

Python

result = client.customers.put_merchant_customers_by_email("<email>", body={})

Rust

let result = client.customers().put_merchant_customers_by_email("<email>", RequestOptions::json(json!({}))).await?;

GET /api/merchant/customers/{email}/addresses

Permission: customers.read, personal session or integration key. Source: src/operations/routes.rs. SDK method: getMerchantCustomersByEmailAddresses.

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

curl

curl -fsS -X GET "$VEYNDO_URL/api/merchant/customers/<email>/addresses" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H "authorization: Bearer $VEYNDO_TOKEN"

TypeScript

const result = await client.customers.getMerchantCustomersByEmailAddresses({ "email": "<email>" });

Python

result = client.customers.get_merchant_customers_by_email_addresses("<email>")

Rust

let result = client.customers().get_merchant_customers_by_email_addresses("<email>", RequestOptions::default()).await?;

POST /api/merchant/customers/{email}/addresses

Permission: customers.write, personal session or integration key. Source: src/operations/routes.rs. SDK method: postMerchantCustomersByEmailAddresses.

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

curl

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

TypeScript

const result = await client.customers.postMerchantCustomersByEmailAddresses({ "email": "<email>" }, { body: {} });

Python

result = client.customers.post_merchant_customers_by_email_addresses("<email>", body={})

Rust

let result = client.customers().post_merchant_customers_by_email_addresses("<email>", RequestOptions::json(json!({}))).await?;

DELETE /api/merchant/customers/{email}/addresses/{id}

Permission: customers.write, personal session or integration key. Source: src/operations/routes.rs. SDK method: deleteMerchantCustomersByEmailAddressesById.

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

curl

curl -fsS -X DELETE "$VEYNDO_URL/api/merchant/customers/<email>/addresses/<id>" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H "authorization: Bearer $VEYNDO_TOKEN"

TypeScript

const result = await client.customers.deleteMerchantCustomersByEmailAddressesById({ "email": "<email>", "id": "<id>" });

Python

result = client.customers.delete_merchant_customers_by_email_addresses_by_id("<email>", "<id>")

Rust

let result = client.customers().delete_merchant_customers_by_email_addresses_by_id("<email>", "<id>", RequestOptions::default()).await?;

PUT /api/merchant/customers/{email}/addresses/{id}

Permission: customers.write, personal session or integration key. Source: src/operations/routes.rs. SDK method: putMerchantCustomersByEmailAddressesById.

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

curl

curl -fsS -X PUT "$VEYNDO_URL/api/merchant/customers/<email>/addresses/<id>" \
  -H "x-tenant: $VEYNDO_SHOP" \
  -H "authorization: Bearer $VEYNDO_TOKEN" \
  -H 'content-type: application/json' \
  --data '{}'

TypeScript

const result = await client.customers.putMerchantCustomersByEmailAddressesById({ "email": "<email>", "id": "<id>" }, { body: {} });

Python

result = client.customers.put_merchant_customers_by_email_addresses_by_id("<email>", "<id>", body={})

Rust

let result = client.customers().put_merchant_customers_by_email_addresses_by_id("<email>", "<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.customer

Read customer details.

Fact Value
Audience merchant
Writes no
Risk medium
Reversibility reversible
Requires approval no
Cost free
Permissions customers.read, customers.pii
Effects none
Conditions none
Data customer, 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.customer", "arguments": {"id": "<string>"}}}'

TypeScript

const result = await client.mcp.call("merchant.customer", {"id": "<string>"});

Python

result = client.mcp.call("merchant.customer", {"id": "<string>"})

Rust

let result = client.mcp().call_raw("merchant.customer", json!({"id": "<string>"})).await?;

merchant.customer.address.delete

Delete customer address with revision.

Fact Value
Audience merchant
Writes yes
Risk medium
Reversibility irreversible
Requires approval yes
Cost standard
Permissions customers.pii, customers.write
Effects none
Conditions none
Data customer · pii
Requires merchant.customer.addresses
Argument Type Required
addressId string yes
id 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.customer.address.delete", "arguments": {"id": "<string>", "addressId": "<string>", "revision": 1}}}'

TypeScript

const result = await client.mcp.call("merchant.customer.address.delete", {"id": "<string>", "addressId": "<string>", "revision": 1});

Python

result = client.mcp.call("merchant.customer.address.delete", {"id": "<string>", "addressId": "<string>", "revision": 1})

Rust

let result = client.mcp().call_raw("merchant.customer.address.delete", json!({"id": "<string>", "addressId": "<string>", "revision": 1})).await?;

merchant.customer.address.save

Create/update customer address and defaults with revision.

Fact Value
Audience merchant
Writes yes
Risk medium
Reversibility reversible
Requires approval no
Cost standard
Permissions customers.pii, customers.write
Effects none
Conditions none
Data customer · pii
Requires none
Argument Type Required
address object yes
addressId string no
defaultBilling boolean no
defaultShipping boolean no
id string yes
revision integer 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.customer.address.save", "arguments": {"id": "<string>", "address": {}}}}'

TypeScript

const result = await client.mcp.call("merchant.customer.address.save", {"id": "<string>", "address": {}});

Python

result = client.mcp.call("merchant.customer.address.save", {"id": "<string>", "address": {}})

Rust

let result = client.mcp().call_raw("merchant.customer.address.save", json!({"id": "<string>", "address": {}})).await?;

merchant.customer.addresses

List owning customer address book.

Fact Value
Audience merchant
Writes no
Risk medium
Reversibility reversible
Requires approval no
Cost free
Permissions customers.read, customers.pii
Effects none
Conditions none
Data customer · 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.customer.addresses", "arguments": {"id": "<string>"}}}'

TypeScript

const result = await client.mcp.call("merchant.customer.addresses", {"id": "<string>"});

Python

result = client.mcp.call("merchant.customer.addresses", {"id": "<string>"})

Rust

let result = client.mcp().call_raw("merchant.customer.addresses", json!({"id": "<string>"})).await?;

merchant.customer.create

Create a tenant customer profile and default addresses without issuing login credentials.

Fact Value
Audience merchant
Writes yes
Risk medium
Reversibility irreversible
Requires approval yes
Cost standard
Permissions customers.pii, customers.write
Effects event
Conditions none
Data customer · pii
Requires merchant.customer.creation
Argument Type Required
additionalAddresses array of object no
billingAddress object yes
customerGroup string yes
email string yes
profile object yes
requestKey string (min length 8, max length 128) yes
shippingAddress object or null 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.customer.create", "arguments": {"email": "<string>", "profile": {}, "customerGroup": "<string>", "billingAddress": {}, "requestKey": "<string>"}}}'

TypeScript

const result = await client.mcp.call("merchant.customer.create", {"email": "<string>", "profile": {}, "customerGroup": "<string>", "billingAddress": {}, "requestKey": "<string>"});

Python

result = client.mcp.call("merchant.customer.create", {"email": "<string>", "profile": {}, "customerGroup": "<string>", "billingAddress": {}, "requestKey": "<string>"})

Rust

let result = client.mcp().call_raw("merchant.customer.create", json!({"email": "<string>", "profile": {}, "customerGroup": "<string>", "billingAddress": {}, "requestKey": "<string>"})).await?;

merchant.customer.creation

Read safe customer-creation groups and countries without granting settings access.

Fact Value
Audience merchant
Writes no
Risk low
Reversibility reversible
Requires approval no
Cost free
Permissions customers.pii, customers.write
Effects none
Conditions none
Data customer, 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.customer.creation", "arguments": {}}}'

TypeScript

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

Python

result = client.mcp.call("merchant.customer.creation", {})

Rust

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

merchant.customer.lookup

Search existing customers by name, email or number.

Fact Value
Audience merchant
Writes no
Risk medium
Reversibility reversible
Requires approval no
Cost free
Permissions customers.read, customers.pii
Effects none
Conditions none
Data customer · pii
Requires none
Argument Type Required
after string no
limit integer (≥ 1, ≤ 100) no
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": "merchant.customer.lookup", "arguments": {"limit": 3}}}'

TypeScript

const result = await client.mcp.call("merchant.customer.lookup", {"limit": 3});

Python

result = client.mcp.call("merchant.customer.lookup", {"limit": 3})

Rust

let result = client.mcp().call_raw("merchant.customer.lookup", json!({"limit": 3})).await?;

merchant.customer.save

Revision-checked customer update.

Fact Value
Audience merchant
Writes yes
Risk medium
Reversibility reversible
Requires approval no
Cost standard
Permissions customers.pii, customers.write
Effects event
Conditions none
Data customer · pii
Requires merchant.customer
Argument Type Required
customer object yes
id 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.customer.save", "arguments": {"id": "<string>", "customer": {}}}}'

TypeScript

const result = await client.mcp.call("merchant.customer.save", {"id": "<string>", "customer": {}});

Python

result = client.mcp.call("merchant.customer.save", {"id": "<string>", "customer": {}})

Rust

let result = client.mcp().call_raw("merchant.customer.save", json!({"id": "<string>", "customer": {}})).await?;

merchant.customers

Search tenant customers.

Fact Value
Audience merchant
Writes no
Risk medium
Reversibility reversible
Requires approval no
Cost free
Permissions customers.read, customers.pii
Effects none
Conditions none
Data customer · pii
Requires none
Argument Type Required
active boolean no
after string no
appFilter string (max length 4096) no
direction "asc" | "desc" no
group string (max length 200) no
guest boolean no
limit integer (≥ 1, ≤ 100) no
query string (max length 200) no
sort "email" | "name" | "created" | "number" 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.customers", "arguments": {"limit": 3}}}'

TypeScript

const result = await client.mcp.call("merchant.customers", {"limit": 3});

Python

result = client.mcp.call("merchant.customers", {"limit": 3})

Rust

let result = client.mcp().call_raw("merchant.customers", json!({"limit": 3})).await?;