Purchases API
The Purchases API is the buyer-side document retrieval interface for inbound purchase invoices within the Global Unify API v3 surface.
Use this section when you need to:
- retrieve a single inbound purchase invoice by
documentId - poll inbound purchase invoices by date range
- paginate through purchase invoice events with a cursor
- fetch purchase invoice XML and compliance metadata after receipt
How This Fits Within Global Unify API v3
The main Unify API v3 submit flow is designed for outbound seller-side invoice submission and document processing. Purchases cover a different retrieval path:
- purchase invoices are inbound buyer-side documents
- they are stored after receipt and processing
- retrieval and polling happen through
/api/v3/documentswithtype=purchases
That is why purchases are documented as a dedicated subsection under Global Unify API v3.
Available Endpoints
Get a single purchase invoice
Retrieve the full stored purchase invoice, including invoice data, status, validation results, XML, and compliance metadata.
List purchase invoices
Poll purchase invoices by date range and paginate with nextCursor.
Authentication Model
Purchase endpoints use API-key authentication plus client scoping headers:
Authorization: Bearer <YOUR_API_KEY>x-client-id: <YOUR_WORKSPACE_ID>x-api-key-environment: productionormock
These endpoints are designed for authenticated buyer workspaces querying their own purchase invoice data.
Supported Flow
- Receive inbound purchase invoices into your Complyance workspace
- Use webhooks for real-time notification if needed
- Use the Purchases API to fetch the full purchase invoice or poll recent invoices
- Use SDK purchase clients if you prefer language-specific wrappers