Factuarea APIDevelopers

List purchase orders a purchase invoice can be linked to

List up to ten purchase orders of the invoice supplier it could be linked to, those whose reference matches the invoice first, each with whether it can be matched now (eligible, ineligible_reason), its receipts, what is received and not invoiced, what is pending to receive and, when eligible, a preview of the match.

  • Nothing is saved. - Needs the READ scope of the PURCHASE ORDER. - Only for an invoice that can still be edited: any other answers 422 business_rule_violation with subcode purchase_invoice_not_editable_in_current_state.
  • An invoice of another company answers 404.
GET
/companies/{company}/purchase-invoices/{purchase_invoice}/match/candidates

Authorization

AuthorizationBearer <token>

Your API key as a bearer token: fact_live_… in production, fact_test_… in sandbox. See the authentication guide.

In: header

Path Parameters

company*string

Public identifier (UUID v7) of the company. Get it from GET /v1/me (data.scope[].id).

Formatuuid
purchase_invoice*string

Public identifier (UUID v7) of the purchase invoice.

Formatuuid

Headers

Factuarea-Version?string

Pin the API version (YYYY-MM-DD, Stripe-style date versioning) for this request; omit to use the key's pinned version, or the latest if none. Unsupported version → 400 unsupported_api_version; malformed → 400 parameter_invalid_format. The effective version is echoed in the Factuarea-Version response header. See the Versioning guide.

Formatdate

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json