Skip to main content

Get Document Approval

GET 

/api/approval-requests/for/:documentType/:documentId

The approval state of one document: whether its policy is enabled, the request that currently governs it (the pending one, else the latest approved one) with full detail and your capabilities, every earlier request, and — when there is no current request — a routing preview of where an approval request for the document would go.

Required scope: purchase-orders:read

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Authentication: Requires Bearer token with the purchase-orders scope (read for GET, write for POST/PUT/DELETE).

Response fields:

  • policy_enabled
  • current — full approval request (see Get Approval Request) or null
  • history[] — earlier requests, newest first (capabilities is null and eligible_users empty on these)
  • preview — routing preview (see Preview Approval Routing) when current is null and the policy is enabled, else null

Request​

Responses​

OK

Response Headers
    Content-Type