Factuarea APIDevelopers

List the goods receipts of a purchase order

List the goods receipts registered against one purchase order, taking the order from the path, with cursor-based pagination and a filter by status so you can ask for the posted ones only.

  • It returns exactly the same documents the goods receipt listing returns filtered by that order.
  • It needs the READ scope of the GOODS RECEIPT, not the one of the purchase order: the module that gates receiving goods is the purchase order one, but the scope that authorizes this call is the scope of the receipt.
GET
/companies/{company}/purchase-orders/{purchase_order}/receipts

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_order*string

Public identifier (UUID v7) of the purchase order.

Formatuuid

Query Parameters

limit?integer

Number of objects to return, between 1 and 100 (default 25).

Default25
Range1 <= value <= 100
starting_after?string

Cursor for forward pagination: pass the id of the last object on the previous page (the next_cursor of the previous response).

Formatuuid
ending_before?string

Cursor for backward pagination: pass the id of the first object on the current page.

Formatuuid
status?string

Goods receipt status. The only filter under a purchase order: the order is fixed by the path. Exact match on status.

Value in"created" | "posted" | "cancelled"
status[in]?string

Goods receipt status. The only filter under a purchase order: the order is fixed by the path. Comma-separated list. Any of the values matches.

sort?string

Sort order: received_on, number ascending, or with a - prefix for descending (default -created).

Value in"received_on" | "-received_on" | "number" | "-number"
search?string

Free-text search. Escaped LIKE %term% (case-insensitive, max 80 chars) across the resource's key text columns, combined with the other filters (AND) and compatible with the cursor.

Lengthlength <= 80

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