Skip to main content
Purchase Order Search API

Authentication

All requests require an API key in the request headers. Headers:

Request

Query Parameters

At least one of poNumber or vendorId must be provided.

Code Examples

Success Response

HTTP Status: 200 OK Returns up to 20 purchase orders matching the search criteria, ordered by creation date (newest first). Archived POs are excluded from results. Response Fields:

Response Example

Empty Results

If no purchase orders match the search criteria, an empty array is returned:

Error Responses

Missing Search Parameters

HTTP Status: 400 Bad Request

Authentication Errors

HTTP Status: 401 Unauthorized

Permission Errors

HTTP Status: 403 Forbidden

Internal Error

HTTP Status: 500 Internal Server Error

Best Practices

  • Provide at least one of poNumber or vendorId — the API returns a 400 if neither is supplied
  • poNumber supports partial matching (e.g., searching PO-2024 will match PO-2024-001, PO-2024-002, etc.)
  • vendorId requires an exact match — use the vendor slug returned from the Vendor Creation API or Vendor Search API
  • Results are capped at 20 and sorted newest first — use more specific search terms to narrow results
  • Archived POs are excluded from search results