English source · 9 min
Pricing API reference
Money, price calculation, discounts, currencies, taxes and customer groups. Contract version 1.0.0, generated from contracts/http/pricing.openapi.json. 7 HTTP operations, 7 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 pricing API object, method names and argument order are those of the generated SDKs.
Operations
| Operation | Permission | In the docs |
|---|---|---|
GET /store-api/currencies |
public | Try it |
GET /api/merchant/currencies/price-jobs |
catalog.read | request |
POST /api/merchant/currencies/price-jobs |
catalog.write | request |
GET /api/merchant/currencies/price-jobs/{id} |
catalog.read | request |
POST /api/merchant/currencies/rates/refresh |
catalog.write | request |
GET /api/merchant/customer-groups |
settings.read | request |
POST /api/merchant/quote |
catalog.read | request |
MCP currency.list |
shopper | request |
MCP currency.select |
shopper | request |
MCP merchant.currencies.generate |
catalog.write | request |
MCP merchant.currencies.job |
catalog.read | request |
MCP merchant.currencies.jobs |
catalog.read | request |
MCP merchant.currencies.refresh |
settings.write | request |
MCP merchant.customer.groups |
customers.read | request |
Public HTTP
Anonymous storefront, discovery and protocol routes. Name the shop with x-tenant.
GET /store-api/currencies
Permission: public, no credential. Source: src/currencies/routes.rs. SDK method: getStoreCurrencies.
curl
curl -fsS -X GET "$VEYNDO_URL/store-api/currencies" \
-H "x-tenant: $VEYNDO_SHOP"
TypeScript
const result = await client.pricing.getStoreCurrencies();
Python
result = client.pricing.get_store_currencies()
Rust
let result = client.pricing().get_store_currencies(RequestOptions::default()).await?;
Merchant HTTP
Each route checks the named permission against your current membership.
GET /api/merchant/currencies/price-jobs
Permission: catalog.read, personal session or integration key. Source: src/currencies/routes.rs. SDK method: getMerchantCurrenciesPriceJobs.
Needs a merchant credential. Run it against your own private sandbox.
curl
curl -fsS -X GET "$VEYNDO_URL/api/merchant/currencies/price-jobs" \
-H "x-tenant: $VEYNDO_SHOP" \
-H "authorization: Bearer $VEYNDO_TOKEN"
TypeScript
const result = await client.pricing.getMerchantCurrenciesPriceJobs();
Python
result = client.pricing.get_merchant_currencies_price_jobs()
Rust
let result = client.pricing().get_merchant_currencies_price_jobs(RequestOptions::default()).await?;
POST /api/merchant/currencies/price-jobs
Permission: catalog.write, personal session or integration key. Source: src/currencies/routes.rs. SDK method: postMerchantCurrenciesPriceJobs.
Not executed from the docs. Try it in a private sandbox.
curl
curl -fsS -X POST "$VEYNDO_URL/api/merchant/currencies/price-jobs" \
-H "x-tenant: $VEYNDO_SHOP" \
-H "authorization: Bearer $VEYNDO_TOKEN" \
-H 'content-type: application/json' \
--data '{}'
TypeScript
const result = await client.pricing.postMerchantCurrenciesPriceJobs({ body: {} });
Python
result = client.pricing.post_merchant_currencies_price_jobs(body={})
Rust
let result = client.pricing().post_merchant_currencies_price_jobs(RequestOptions::json(json!({}))).await?;
GET /api/merchant/currencies/price-jobs/{id}
Permission: catalog.read, personal session or integration key. Source: src/currencies/routes.rs. SDK method: getMerchantCurrenciesPriceJobsById.
Needs a merchant credential. Run it against your own private sandbox.
curl
curl -fsS -X GET "$VEYNDO_URL/api/merchant/currencies/price-jobs/<id>" \
-H "x-tenant: $VEYNDO_SHOP" \
-H "authorization: Bearer $VEYNDO_TOKEN"
TypeScript
const result = await client.pricing.getMerchantCurrenciesPriceJobsById({ "id": "<id>" });
Python
result = client.pricing.get_merchant_currencies_price_jobs_by_id("<id>")
Rust
let result = client.pricing().get_merchant_currencies_price_jobs_by_id("<id>", RequestOptions::default()).await?;
POST /api/merchant/currencies/rates/refresh
Permission: catalog.write, personal session or integration key. Source: src/currencies/routes.rs. SDK method: postMerchantCurrenciesRatesRefresh.
Not executed from the docs. Try it in a private sandbox.
curl
curl -fsS -X POST "$VEYNDO_URL/api/merchant/currencies/rates/refresh" \
-H "x-tenant: $VEYNDO_SHOP" \
-H "authorization: Bearer $VEYNDO_TOKEN" \
-H 'content-type: application/json' \
--data '{}'
TypeScript
const result = await client.pricing.postMerchantCurrenciesRatesRefresh({ body: {} });
Python
result = client.pricing.post_merchant_currencies_rates_refresh(body={})
Rust
let result = client.pricing().post_merchant_currencies_rates_refresh(RequestOptions::json(json!({}))).await?;
GET /api/merchant/customer-groups
Permission: settings.read, personal session or integration key. Source: src/operations/routes.rs. SDK method: getMerchantCustomerGroups.
Needs a merchant credential. Run it against your own private sandbox.
curl
curl -fsS -X GET "$VEYNDO_URL/api/merchant/customer-groups" \
-H "x-tenant: $VEYNDO_SHOP" \
-H "authorization: Bearer $VEYNDO_TOKEN"
TypeScript
const result = await client.pricing.getMerchantCustomerGroups();
Python
result = client.pricing.get_merchant_customer_groups()
Rust
let result = client.pricing().get_merchant_customer_groups(RequestOptions::default()).await?;
POST /api/merchant/quote
Permission: catalog.read, personal session or integration key. Source: src/routes.rs. SDK method: postMerchantQuote.
Not executed from the docs. Try it in a private sandbox.
curl
curl -fsS -X POST "$VEYNDO_URL/api/merchant/quote" \
-H "x-tenant: $VEYNDO_SHOP" \
-H "authorization: Bearer $VEYNDO_TOKEN" \
-H 'content-type: application/json' \
--data '{}'
TypeScript
const result = await client.pricing.postMerchantQuote({ body: {} });
Python
result = client.pricing.post_merchant_quote(body={})
Rust
let result = client.pricing().post_merchant_quote(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.
currency.list
Read currencies and FX context.
| Fact | Value |
|---|---|
| Audience | shopper |
| Writes | no |
| Risk | low |
| Reversibility | reversible |
| Requires approval | no |
| Cost | free |
| Permissions | none |
| Effects | none |
| Conditions | none |
| Data | currency · money |
| Requires | none |
Input: no arguments.
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": "currency.list", "arguments": {}}}'
TypeScript
const result = await client.mcp.call("currency.list", {});
Python
result = client.mcp.call("currency.list", {})
Rust
let result = client.mcp().call_raw("currency.list", json!({})).await?;
currency.select
Select open-cart currency with revision.
| Fact | Value |
|---|---|
| Audience | shopper |
| Writes | yes |
| Risk | low |
| Reversibility | reversible |
| Requires approval | no |
| Cost | standard |
| Permissions | none |
| Effects | none |
| Conditions | none |
| Data | cart, currency · money |
| Requires | none |
| Argument | Type | Required |
|---|---|---|
currency |
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 'content-type: application/json' \
--data '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "currency.select", "arguments": {"currency": "<string>", "revision": 1}}}'
TypeScript
const result = await client.mcp.call("currency.select", {"currency": "<string>", "revision": 1});
Python
result = client.mcp.call("currency.select", {"currency": "<string>", "revision": 1})
Rust
let result = client.mcp().call_raw("currency.select", json!({"currency": "<string>", "revision": 1})).await?;
merchant.currencies.generate
Queue fixed-price generation.
| Fact | Value |
|---|---|
| Audience | merchant |
| Writes | yes |
| Risk | medium |
| Reversibility | reversible |
| Requires approval | no |
| Cost | batch |
| Permissions | catalog.write |
| Effects | backgroundJob |
| Conditions | none |
| Data | currency, product · money |
| Requires | none |
| Argument | Type | Required |
|---|---|---|
currency |
string | yes |
overwrite |
boolean | no |
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.currencies.generate", "arguments": {"currency": "<string>", "revision": 1}}}'
TypeScript
const result = await client.mcp.call("merchant.currencies.generate", {"currency": "<string>", "revision": 1});
Python
result = client.mcp.call("merchant.currencies.generate", {"currency": "<string>", "revision": 1})
Rust
let result = client.mcp().call_raw("merchant.currencies.generate", json!({"currency": "<string>", "revision": 1})).await?;
merchant.currencies.job
Read currency job.
| Fact | Value |
|---|---|
| Audience | merchant |
| Writes | no |
| Risk | low |
| Reversibility | reversible |
| Requires approval | no |
| Cost | free |
| Permissions | catalog.read |
| Effects | none |
| Conditions | none |
| Data | currency |
| Requires | merchant.currencies.generate |
| 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.currencies.job", "arguments": {"id": "<string>"}}}'
TypeScript
const result = await client.mcp.call("merchant.currencies.job", {"id": "<string>"});
Python
result = client.mcp.call("merchant.currencies.job", {"id": "<string>"})
Rust
let result = client.mcp().call_raw("merchant.currencies.job", json!({"id": "<string>"})).await?;
merchant.currencies.jobs
List currency jobs.
| Fact | Value |
|---|---|
| Audience | merchant |
| Writes | no |
| Risk | low |
| Reversibility | reversible |
| Requires approval | no |
| Cost | free |
| Permissions | catalog.read |
| Effects | none |
| Conditions | none |
| Data | currency |
| 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.currencies.jobs", "arguments": {}}}'
TypeScript
const result = await client.mcp.call("merchant.currencies.jobs", {});
Python
result = client.mcp.call("merchant.currencies.jobs", {})
Rust
let result = client.mcp().call_raw("merchant.currencies.jobs", json!({})).await?;
merchant.currencies.refresh
Refresh ECB rates.
| Fact | Value |
|---|---|
| Audience | merchant |
| Writes | yes |
| Risk | low |
| Reversibility | reversible |
| Requires approval | no |
| Cost | provider |
| Permissions | settings.write |
| Effects | externalCall |
| Conditions | none |
| Data | currency · money |
| Requires | none |
| Argument | Type | Required |
|---|---|---|
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.currencies.refresh", "arguments": {"revision": 1}}}'
TypeScript
const result = await client.mcp.call("merchant.currencies.refresh", {"revision": 1});
Python
result = client.mcp.call("merchant.currencies.refresh", {"revision": 1})
Rust
let result = client.mcp().call_raw("merchant.currencies.refresh", json!({"revision": 1})).await?;
merchant.customer.groups
Read configured customer groups and their pricing basis.
| Fact | Value |
|---|---|
| Audience | merchant |
| Writes | no |
| Risk | low |
| Reversibility | reversible |
| Requires approval | no |
| Cost | free |
| Permissions | customers.read |
| Effects | none |
| Conditions | none |
| Data | customer, settings · money |
| 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.groups", "arguments": {}}}'
TypeScript
const result = await client.mcp.call("merchant.customer.groups", {});
Python
result = client.mcp.call("merchant.customer.groups", {})
Rust
let result = client.mcp().call_raw("merchant.customer.groups", json!({})).await?;