Skip to content
Stashtab Docs
Esc
↑↓navigate↵open⌘Jpreview

List purchase orders

GET/v1/organizations/{orgId}/purchase-orders
Authorization
AuthorizationBasic auth · headerrequired

Registered confidential integration credentials. Keep the secret server-side.

or
CookieAPI key · headerrequired

Console-managed Vault session cookie; secure cookie naming may vary by environment.

or
AuthorizationBearer token (Vault TEST service token) · headerrequired

Customer- and resource-bound service grant, rechecked on every call. Existing Live opening-feed authority remains narrow; ordinary Test business requests refuse until shared Test composition is available.

or
AuthorizationBearer token (Vault organization API key) · headerrequired

Organization-owned credential with immutable mode and Read-only or Read/write permissions. Only explicitly declared ordinary customer operations accept it. Test business access refuses until shared Test composition is available; no staff, team, key-management or protocol authority is granted.

Path parameters
orgIdstringrequired
min length 1 · max length 128 · matches ^[A-Za-z0-9_-]+$
Query parameters
cursorstring
min length 1 · max length 2048
limitinteger
min 1 · max 100 · default: 50
Responses
200

Success

dataobject[]required
Show properties
Array of object
createdAtstringrequired
declarationRevisionintegerrequired
min -9007199254740991 · max 9007199254740991
expectedDatestring | nullrequired
idstringrequired
kindstringrequired
Allowed:standardplayer_depositunexpected_goodsrestock
orderDatestring | nullrequired
originstringrequired
Allowed:customerstaff_unexpectedreturn_restock
poNumberstringrequired
providerPoRefstring | nullrequired
trackingstring | nullrequired
metaobjectrequired
Show properties
requestIdstringrequired
nextCursorstring | nullrequired
previousCursorstring | nullrequired
default

Error

errorobjectrequired
Show properties
codestringrequired
Allowed:forbiddeninternal_errornot_foundprovider_data_invalidprovider_outcome_unknownprovider_unavailablerate_limitedstate_conflictunauthenticatedvalidation_errorwarehouse_not_ready
fieldsobject[]
Show properties
Array of object
codestringrequired
messagestringrequired
pathstringrequired
messagestringrequired
operationIdstring
metaobjectrequired
Show properties
requestIdstringrequired
Request
curl -X GET '/v1/organizations/string/purchase-orders' \
  -H 'Authorization: Basic YOUR_CREDENTIALS' \
  -H 'Accept: application/json'
Response
{
  "data": [
    {
      "createdAt": "string",
      "declarationRevision": -9007199254740991,
      "expectedDate": "string",
      "id": "string",
      "kind": "standard",
      "orderDate": "string",
      "origin": "customer",
      "poNumber": "string",
      "providerPoRef": "string",
      "tracking": "string"
    }
  ],
  "meta": {
    "requestId": "string",
    "nextCursor": "string",
    "previousCursor": "string"
  }
}

Was this page helpful?