Factuarea APIDevelopers

List all stock transfers

List your stock transfers with cursor-based pagination.

  • Filter by status, by origin or destination warehouse — both by their public id —, by number and by the dispatch and reception dates, search free text over the number and the notes, and sort by creation, number or dispatch date.
  • A date filter given as a plain day covers that whole day.
  • Each transfer comes back with its two warehouses, its moments and its lines, and each line with what it dispatches, what has been received and what is still pending, derived from those two.
GET
/companies/{company}/stock-transfers

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

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

Stock transfer status: draft, dispatched, received or cancelled. A partially received transfer stays dispatched. Exact match on status.

Value in"draft" | "dispatched" | "received" | "cancelled"
status[in]?string

Stock transfer status: draft, dispatched, received or cancelled. A partially received transfer stays dispatched. Comma-separated list. Any of the values matches.

warehouse_id?string

Public ID of a warehouse taking part as origin OR destination. A foreign warehouse yields an empty page; a malformed value is rejected. Exact match on warehouse_id.

Formatuuid
warehouse_id[in]?string

Public ID of a warehouse taking part as origin OR destination. A foreign warehouse yields an empty page; a malformed value is rejected. Comma-separated list. Any of the values matches.

origin_warehouse_id?string

Public ID of the warehouse the goods leave from. A foreign warehouse yields an empty page; a malformed value is rejected. Exact match on origin_warehouse_id.

Formatuuid
origin_warehouse_id[in]?string

Public ID of the warehouse the goods leave from. A foreign warehouse yields an empty page; a malformed value is rejected. Comma-separated list. Any of the values matches.

destination_warehouse_id?string

Public ID of the warehouse that receives the goods, with the same rules as the origin one. Exact match on destination_warehouse_id.

Formatuuid
destination_warehouse_id[in]?string

Public ID of the warehouse that receives the goods, with the same rules as the origin one. Comma-separated list. Any of the values matches.

number?string

Transfer number, unique per company. Not a fiscal number; use search for partial matching. Exact match on number.

number[in]?string

Transfer number, unique per company. Not a fiscal number; use search for partial matching. Comma-separated list. Any of the values matches.

dispatched_at?string

Moment the goods left the origin warehouse (ISO 8601). A bare day matches the whole day; a draft never matches. Exact match on dispatched_at.

Formatdate-time
dispatched_at[gte]?string

Moment the goods left the origin warehouse (ISO 8601). A bare day matches the whole day; a draft never matches. Greater than or equal to the given value.

Formatdate-time
dispatched_at[lte]?string

Moment the goods left the origin warehouse (ISO 8601). A bare day matches the whole day; a draft never matches. Less than or equal to the given value.

Formatdate-time
dispatched_at[gt]?string

Moment the goods left the origin warehouse (ISO 8601). A bare day matches the whole day; a draft never matches. Strictly greater than the given value.

Formatdate-time
dispatched_at[lt]?string

Moment the goods left the origin warehouse (ISO 8601). A bare day matches the whole day; a draft never matches. Strictly less than the given value.

Formatdate-time
received_at?string

Moment the transfer was received in full (ISO 8601), same day semantics. A partially received one has no value. Exact match on received_at.

Formatdate-time
received_at[gte]?string

Moment the transfer was received in full (ISO 8601), same day semantics. A partially received one has no value. Greater than or equal to the given value.

Formatdate-time
received_at[lte]?string

Moment the transfer was received in full (ISO 8601), same day semantics. A partially received one has no value. Less than or equal to the given value.

Formatdate-time
received_at[gt]?string

Moment the transfer was received in full (ISO 8601), same day semantics. A partially received one has no value. Strictly greater than the given value.

Formatdate-time
received_at[lt]?string

Moment the transfer was received in full (ISO 8601), same day semantics. A partially received one has no value. Strictly less than the given value.

Formatdate-time
sort?string

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

Value in"created" | "-created" | "number" | "-number" | "dispatched_at" | "-dispatched_at"
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