English source · 2 min
Inventory API reference
Stock, reservations and supply. Contract version 1.0.0, generated from contracts/http/inventory.openapi.json. 2 HTTP operations, 0 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 inventory API object, method names and argument order are those of the generated SDKs.
Operations
| Operation | Permission | In the docs |
|---|---|---|
POST /api/merchant/supply/approve |
settings.write | request |
POST /api/merchant/supply/proposal |
settings.read | request |
Merchant HTTP
Each route checks the named permission against your current membership.
POST /api/merchant/supply/approve
Permission: settings.write, personal session or integration key. Source: src/commerce/supply_proposal.rs. SDK method: postMerchantSupplyApprove.
Not executed from the docs. Try it in a private sandbox.
curl
curl -fsS -X POST "$VEYNDO_URL/api/merchant/supply/approve" \
-H "x-tenant: $VEYNDO_SHOP" \
-H "authorization: Bearer $VEYNDO_TOKEN" \
-H 'content-type: application/json' \
--data '{}'
TypeScript
const result = await client.inventory.postMerchantSupplyApprove({ body: {} });
Python
result = client.inventory.post_merchant_supply_approve(body={})
Rust
let result = client.inventory().post_merchant_supply_approve(RequestOptions::json(json!({}))).await?;
POST /api/merchant/supply/proposal
Permission: settings.read, personal session or integration key. Source: src/commerce/supply_proposal.rs. SDK method: postMerchantSupplyProposal.
Not executed from the docs. Try it in a private sandbox.
curl
curl -fsS -X POST "$VEYNDO_URL/api/merchant/supply/proposal" \
-H "x-tenant: $VEYNDO_SHOP" \
-H "authorization: Bearer $VEYNDO_TOKEN" \
-H 'content-type: application/json' \
--data '{}'
TypeScript
const result = await client.inventory.postMerchantSupplyProposal({ body: {} });
Python
result = client.inventory.post_merchant_supply_proposal(body={})
Rust
let result = client.inventory().post_merchant_supply_proposal(RequestOptions::json(json!({}))).await?;