What is a Trade Item?
Atrade item in the TrustStack is anything that can be priced and sold within a supply chain. This could be anything from wheat, livestock, canned products, fresh produce, and so forth.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Trade items are products that can be priced and sold within a supply chain.
trade item in the TrustStack is anything that can be priced and sold within a supply chain. This could be anything from wheat, livestock, canned products, fresh produce, and so forth.
import {TrustStack} from "@truststack/sdk";
const truststack = new TrustStack({
apiKey: "your-api-key",
});
const tradeItem = await truststack.masterData.tradeItems.create(
{
name: "Wheat",
},
{
organizationId: "org_123",
}
);
console.log(tradeItem);
{
"id": "trade-item-id",
"name": "Wheat"
}