Factuarea APIDevelopers

List all promotions

List the promotions of the company with cursor-based pagination, oldest first, each one with its items. - Filter by status (scheduled, active, ended or cancelled), channel (documents or web), starts_at[gte|lte], ends_at[gte|lte] and updated[gte]. - Dates are ISO 8601; a day without time is read in the company time zone. - GET /promotions?status=active&channel=web returns what a web shop shows today.

GET
/companies/{company}/promotions

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

Promotion status today: scheduled, active, ended (by date) or cancelled. Exact match on status.

Value in"scheduled" | "active" | "ended" | "cancelled"
channel?string

Sales channel the promotion applies to: documents or web. Exact match on channel.

Value in"documents" | "web"
starts_at[gte]?string

First instant of the promotion (ISO 8601). A day without time is read in the company time zone. Greater than or equal to the given value.

Formatdate-time
starts_at[lte]?string

First instant of the promotion (ISO 8601). A day without time is read in the company time zone. Less than or equal to the given value.

Formatdate-time
ends_at[gte]?string

Last included instant of the promotion (ISO 8601). A day without time is read in the company time zone. Greater than or equal to the given value.

Formatdate-time
ends_at[lte]?string

Last included instant of the promotion (ISO 8601). A day without time is read in the company time zone. Less than or equal to the given value.

Formatdate-time
updated[gte]?string

Last update date (ISO 8601). Greater than or equal to the given value.

Formatdate-time

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