Factuarea APIDevelopers

List purchase scans

List the documents received by the purchase scanner (upload, API or mailbox) with their lifecycle status, extraction issues and available_actions.

Use filter[status], filter[source] and the documented date/range filters; cursor-based pagination.

GET
/purchase_scans
AuthorizationBearer <token>

In: header

Query Parameters

limit?integer
Range1 <= value <= 100
starting_after?|
Formatuuid
ending_before?|
Formatuuid
search?string
Lengthlength <= 200
sort?string
Value in"received_at" | "-received_at" | "issue_date" | "-issue_date" | "total" | "-total" | "status" | "-status"
filter[status]?string
Value in"received" | "queued" | "processing" | "needs_review" | "duplicate" | "failed" | "auto_created" | "created" | "archived"
filter[source][]?array<>
Value in"upload" | "email" | "api"
filter[supplier_id][]?array<>
Formatuuid
filter[document_kind][]?array<>
Value in"invoice" | "simplified_qualified" | "ticket" | "delivery_note" | "other" | "undetermined"
filter[file_kind][]?array<>
Value in"pdf" | "image"
filter[supplier_link_state][]?array<>
Value in"linked" | "pending_link" | "unidentified"
filter[has_issues]?boolean
filter[sender]?string
Lengthlength <= 254
filter[source]?string

Comma-separated list of scan sources. Allowed values: upload, email, api.

filter[document_kind]?string

Comma-separated list of document kinds. Allowed values: invoice, simplified_qualified, ticket, delivery_note, other, undetermined.

filter[file_kind]?string

Comma-separated list of file kinds. Allowed values: pdf, image.

filter[supplier_link_state]?string

Comma-separated list of supplier link states. Allowed values: linked, pending_link, unidentified.

filter[supplier_id]?string

Comma-separated list of supplier ids (up to 20).

Formatuuid
filter[created][eq]?string
Formatdate
filter[created][gt]?string
Formatdate
filter[created][gte]?string
Formatdate
filter[created][lt]?string
Formatdate
filter[created][lte]?string
Formatdate
filter[issued_on][eq]?string
Formatdate
filter[issued_on][gt]?string
Formatdate
filter[issued_on][gte]?string
Formatdate
filter[issued_on][lt]?string
Formatdate
filter[issued_on][lte]?string
Formatdate
filter[total][eq]?string
Match^-?(?:0|[1-9]\d*)(?:\.\d{1,4})?$
filter[total][gt]?string
Match^-?(?:0|[1-9]\d*)(?:\.\d{1,4})?$
filter[total][gte]?string
Match^-?(?:0|[1-9]\d*)(?:\.\d{1,4})?$
filter[total][lt]?string
Match^-?(?:0|[1-9]\d*)(?:\.\d{1,4})?$
filter[total][lte]?string
Match^-?(?:0|[1-9]\d*)(?:\.\d{1,4})?$

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
X-Active-Profile?string

Operate on behalf of a child company (gestoría master key): pass its public id (UUID v7) and the request runs against that child's data without changing the key's scope, tier or environment (omit to use the key's own company). Invalid UUID → 400 parameter_invalid_uuid; unknown or non-owned id → 404 profile_not_found. See the Acting on behalf guide.

Formatuuid

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json