Factuarea APIDevelopers

Get the price breakdown of a pack

Get how the price of a pack is made up: total, tax breakdown, saving and what each component contributes. - price_list_id, client_id, date and channel price the pack for that context.

  • The list is chosen as in a document: price_list_id wins (null = no list), else the default of client_id if active; an inactive price_list_id answers 422. - With a promotion on that date and channel, price and the shares are the promotion ones and regular_price is the price without it. - warnings[] lists what changes the result.
  • Send If-None-Match to get 304.
GET
/companies/{company}/packs/{pack}/price-breakdown

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

Public identifier (UUID v7) of the pack.

Formatuuid

Query Parameters

price_list_id?|

Price list (UUID v7) to price the components with; null means none. Not sent: the default list of client_id applies. Inactive list: 422.

Formatuuid
client_id?|

Public identifier (UUID v7) of a customer contact of the company, the same one a document carries: price the pack for that customer.

Formatuuid
date?|

Day the price applies to (YYYY-MM-DD, company time zone; default today). It decides the own promotion of the pack.

Formatdate
channel?|

Sales channel: documents (default) or web. It decides which own promotion of the pack applies.

Value in"documents" | "web" | null

Headers

If-None-Match?string

Conditional request: send the ETag you stored from a previous response of this operation (quoted, as received) to get 304 Not Modified without a body when the content has not changed. Omit it to always receive the full response.

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