Skip to content

List sale offers

View as Markdown
get /api/sale_offers

Retrieves the collection of Sale Offer resources.

Returns a paginated collection of sale offers in the current organization.

Query parameters

NameTypeRequiredDescription
expandstring-Comma-separated list of relations to embed as full objects instead of IRI strings. Supported values: tax, channels, variant, country, product, medias. Tokens are independent; unknown values are silently ignored. product and medias embed the full Product object and the full Media objects on the embedded variant. Must be combined with variant to take visible effect.
pageinteger-The collection page number
itemsPerPageinteger-The number of items per page
properties[]string[]-Allows you to reduce the response to contain only the properties you need. If your desired property is nested, you can address it using nested arrays. Example: properties[]={propertyName}&properties[]={anotherPropertyName}&properties[{nestedPropertyParent}][]={nestedProperty}
id[]string[]-Only the items with one of these ids, each a UUID or the item IRI.
variantstring-Filter by the related "variant", given as an IRI or as an identifier.
variant[]string[]-Filter by the related "variant", given as an IRI or as an identifier.
taxstring-Filter by the related "tax", given as an IRI or as an identifier.
tax[]string[]-Filter by the related "tax", given as an IRI or as an identifier.
countrystring-Filter by the related "country", given as an IRI or as an identifier.
country[]string[]-Filter by the related "country", given as an IRI or as an identifier.
channelsstring-Filter by the related "channels", given as an IRI or as an identifier.
channels[]string[]-Filter by the related "channels", given as an IRI or as an identifier.
statusstring-Sale Offer status
status[]string[]-Sale Offer status
startsAt[after]string-Sale Offer startsAt
startsAt[before]string-Sale Offer startsAt
startsAt[strictly_after]string-Sale Offer startsAt
startsAt[strictly_before]string-Sale Offer startsAt
endsAt[after]string-Sale Offer endsAt
endsAt[before]string-Sale Offer endsAt
endsAt[strictly_after]string-Sale Offer endsAt
endsAt[strictly_before]string-Sale Offer endsAt
createdAt[after]string-Sale Offer createdAt
createdAt[before]string-Sale Offer createdAt
createdAt[strictly_after]string-Sale Offer createdAt
createdAt[strictly_before]string-Sale Offer createdAt
updatedAt[after]string-Sale Offer updatedAt
updatedAt[before]string-Sale Offer updatedAt
updatedAt[strictly_after]string-Sale Offer updatedAt
updatedAt[strictly_before]string-Sale Offer updatedAt
order[taxExcludedPrice]string-Order by "taxExcludedPrice" (compares raw amounts in minor units)
order[price]string-Order by "price" (compares raw amounts in minor units)
taxExcludedPrice[gte]string-Filter "taxExcludedPrice" gte a bound, as a decimal amount in major units ("12.00") - the same form the taxExcludedPrice.amount field is returned in.
taxExcludedPrice[gt]string-Filter "taxExcludedPrice" gt a bound, as a decimal amount in major units ("12.00") - the same form the taxExcludedPrice.amount field is returned in.
taxExcludedPrice[lte]string-Filter "taxExcludedPrice" lte a bound, as a decimal amount in major units ("12.00") - the same form the taxExcludedPrice.amount field is returned in.
taxExcludedPrice[lt]string-Filter "taxExcludedPrice" lt a bound, as a decimal amount in major units ("12.00") - the same form the taxExcludedPrice.amount field is returned in.
price[gte]string-Filter "price" gte a bound, as a decimal amount in major units ("12.00") - the same form the price.amount field is returned in.
price[gt]string-Filter "price" gt a bound, as a decimal amount in major units ("12.00") - the same form the price.amount field is returned in.
price[lte]string-Filter "price" lte a bound, as a decimal amount in major units ("12.00") - the same form the price.amount field is returned in.
price[lt]string-Filter "price" lt a bound, as a decimal amount in major units ("12.00") - the same form the price.amount field is returned in.
order[tax.name]string-Order by translated field "tax.name" (uses the Flowkiwi-Locale header)
order[status]string-Sale Offer order[status]
order[startsAt]string-Sale Offer order[startsAt]
order[endsAt]string-Sale Offer order[endsAt]
order[createdAt]string-Sale Offer order[createdAt]
order[updatedAt]string-Sale Offer order[updatedAt]

Response

200 - Sale Offer collection

PropertyTypeRequiredDescription
searchobject-
Show search fields
PropertyTypeRequiredDescription
@typestring-
mappingobject[]-
Show mapping fields
PropertyTypeRequiredDescription
@typestring-
propertystring | null-
requiredboolean-
variablestring-
templatestring-
variableRepresentationstring-
totalItemsinteger-
viewobject-
Show view fields
PropertyTypeRequiredDescription
@idstring-
@typestring-
firststring | null-
laststring | null-
nextstring | null-
previousstring | null-
memberSale.Offer[]required
Show member fields
PropertyTypeRequiredDescription
@contextstring | object-
@idstringrequired
@typestringrequired
channelsarray-A list of Channel IRIs the sale offer is distributed through. Requires the channels:read scope. Returned empty when the scope is missing.
countrystring | Country | nullrequiredThe country resource it belongs to. Requires the instance_params:read scope. Returned null when the scope is missing.
createdAtstring-The date and time when the resource was created (ISO 8601 format).
discountPriceEmbeddedMoneyResource | null-The discounted tax-included price, when a discount applies.
Show discountPrice fields
PropertyTypeRequiredDescription
amountstringrequiredThe monetary amount, as a decimal string.
currencystringrequiredThe ISO 4217 currency code (e.g. EUR).
discountPricePerUnitEmbeddedPricePerUnitResource | null-The discounted tax-included price per measurement reference unit, when a discount applies.
Show discountPricePerUnit fields
PropertyTypeRequiredDescription
amountstringrequiredThe monetary amount, as a decimal string.
currencystringrequiredThe ISO 4217 currency code (e.g. EUR).
unit"ml" | "cl" | "l" | "mg" | "g" | "kg" | "mm" | "cm" | "m" | "m2" | "unit"requiredThe reference unit the amount is expressed per.
valueintegerrequiredThe number of reference units the amount applies to.
discountTaxExcludedPriceEmbeddedMoneyResource | null-The discounted tax-excluded price, when a discount applies.
Show discountTaxExcludedPrice fields
PropertyTypeRequiredDescription
amountstringrequiredThe monetary amount, as a decimal string.
currencystringrequiredThe ISO 4217 currency code (e.g. EUR).
discountTaxExcludedPricePerUnitEmbeddedPricePerUnitResource | null-The discounted tax-excluded price per measurement reference unit, when a discount applies.
Show discountTaxExcludedPricePerUnit fields
PropertyTypeRequiredDescription
amountstringrequiredThe monetary amount, as a decimal string.
currencystringrequiredThe ISO 4217 currency code (e.g. EUR).
unit"ml" | "cl" | "l" | "mg" | "g" | "kg" | "mm" | "cm" | "m" | "m2" | "unit"requiredThe reference unit the amount is expressed per.
valueintegerrequiredThe number of reference units the amount applies to.
endsAtstring | null-End date of the offer.
idstring-The unique identifier of the sale offer.
priceEmbeddedMoneyResource-The tax-included price, computed from taxExcludedPrice and the referenced Tax rate.
Show price fields
PropertyTypeRequiredDescription
amountstringrequiredThe monetary amount, as a decimal string.
currencystringrequiredThe ISO 4217 currency code (e.g. EUR).
pricePerUnitEmbeddedPricePerUnitResource | null-The tax-included price expressed per measurement reference unit.
Show pricePerUnit fields
PropertyTypeRequiredDescription
amountstringrequiredThe monetary amount, as a decimal string.
currencystringrequiredThe ISO 4217 currency code (e.g. EUR).
unit"ml" | "cl" | "l" | "mg" | "g" | "kg" | "mm" | "cm" | "m" | "m2" | "unit"requiredThe reference unit the amount is expressed per.
valueintegerrequiredThe number of reference units the amount applies to.
startsAtstring-Start date of the offer. Defaults to the current date/time if not provided.
status"/api/statuses/DRAFT" | "/api/statuses/ACTIVE" | "/api/statuses/ARCHIVED"-The status of the offer.
taxstring | Tax | nullrequiredThe tax resource it belongs to. Requires the instance_params:read scope. Returned null when the scope is missing.
taxExcludedPriceEmbeddedMoneyResourcerequiredThe price set for the offer, excluding tax.
Show taxExcludedPrice fields
PropertyTypeRequiredDescription
amountstringrequiredThe monetary amount, as a decimal string.
currencystringrequiredThe ISO 4217 currency code (e.g. EUR).
taxExcludedPricePerUnitEmbeddedPricePerUnitResource | null-The tax-excluded price expressed per measurement reference unit.
Show taxExcludedPricePerUnit fields
PropertyTypeRequiredDescription
amountstringrequiredThe monetary amount, as a decimal string.
currencystringrequiredThe ISO 4217 currency code (e.g. EUR).
unit"ml" | "cl" | "l" | "mg" | "g" | "kg" | "mm" | "cm" | "m" | "m2" | "unit"requiredThe reference unit the amount is expressed per.
valueintegerrequiredThe number of reference units the amount applies to.
updatedAtstring-The date and time when the resource was last modified (ISO 8601 format).
variantstring | Product.Variant | nullrequiredThe variant resource it belongs to. Requires the products:read scope. Returned null when the scope is missing.

Errors

403 - Access denied. The caller is missing one or more permissions required for this operation.

Content-Type: application/problem+json

PropertyTypeRequiredDescription
@contextstring | object-
@idstringrequired
@typestringrequired
detailstring-
missingPermissionsstring[]-Permissions that the caller is missing for this operation. Present only when the 403 is caused by a denied permission.
statusinteger-
titlestring-
typestring-