vendorOrders_getPurchaseOrders
List vendor purchase orders created or changed in a window of at most 7 days, no older than 6 months.
readAmazon Seller (SP-API)sp.vendorOrders
Amazon SP-API · getPurchaseOrders · GET /vendor/orders/v1/purchaseOrders
Call it
In an AI client (MCP)
{
"name": "vendorOrders_getPurchaseOrders",
"arguments": {
"store": "myStore-US"
}
}From code (Tool API)
curl -X POST https://api.sellersheetai.com/api/v1/tools/vendorOrders_getPurchaseOrders \
-H "Authorization: Bearer $SELLERSHEET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"store":"myStore-US"}'Early access — the Tool API is open on request, contact us.
Arguments
| Name | Type | Description |
|---|---|---|
storerequired | string | the store ref `<store>-<CC>` (name-country, e.g. 'myStore-US') — one of get_user_context's store_refs, verbatim. |
created_after | string · date-time | ISO 8601. POs created after this time. |
created_before | string · date-time | ISO 8601. POs created before this time. |
changed_after | string · date-time | ISO 8601. POs changed after this time. |
changed_before | string · date-time | ISO 8601. POs changed before this time. |
purchase_order_state | string | keeps only POs in this state. Allowed: New | Acknowledged | Closed.NewAcknowledgedClosed |
include_details | boolean | True = full PO body, False = PO numbers only (default True).Default: true |
ordering_vendor_code | string | Filter by sellingParty.partyId value. |
limit | integer · 1–100 | Max records returned, 1–100 (Amazon default 100). |
sort_order | string | ASC or DESC.ASCDESC |
po_item_state | string | Cancelled keeps only POs with an item Amazon cancelled (quantity now zero). |
is_po_changed | boolean | True = changed POs only. |
next_token | string | the cursor from the previous call's data.nextToken; omit for the first page. |
Result
Every tool answers {notification, data, human_action}; data carries:
data.orders— list of purchase order dicts.data.count— number of orders in this page.data.nextToken— pass to next call if present.
Workflow
- 1. Call with created_after/created_before for new POs, or changed_after/changed_before for changed POs (window ≤ 7 days). 2. While data.nextToken is present, call again with it as next_token. 3. For each new PO, call vendorOrders_getPurchaseOrder for full item details. 4. Call vendorOrders_submitAcknowledgement to accept/reject items.