What is a Trade Item?
A 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.
Trade Item Management
Use the TrustStack SDK or API to manage trade items.
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"
}
Responses are generated using AI and may contain mistakes.