Skip to content
gist.link ↗

receivePurchaseOrder

Mutation Pay API — POST https://pay.api.gist.link/graphql

ordered -> received. Sets inventory_status = pending and asynchronously adds every line’s quantity to shop inventory (receiveInventory, reference “pay:po:<uuid>”, idempotent; retried on failure). ROLE_ADMIN or ROLE_PAY_MANAGER.

pay:mutation:receivePurchaseOrder

The calling IAM key must hold this permission (or a wildcard that covers it: pay:mutation:* or pay:*) and the access token must have been minted with audience=pay. See Permissions.

type Mutation {
receivePurchaseOrder(id: String!): PurchaseOrder!
}
Argument Type Required Description
id String! Yes —

PurchaseOrder! — see the Pay types reference.

Terminal window
curl https://pay.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation ReceivePurchaseOrder($id: String!) { receivePurchaseOrder(id: $id) { id uuid status currency total created_at updated_at } }",
"variables": {
"id": "example"
}
}
JSON