List purchase offers
get
/api/purchase_offers Retrieves the collection of Purchase Offer resources.
Returns a paginated collection of purchase offers in the current organization.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
expand | string | - | Comma-separated list of relations to embed as full objects instead of IRI strings. Supported values: tax, supplier, 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. |
page | integer | - | The collection page number |
itemsPerPage | integer | - | 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. |
variant | string | - | 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. |
tax | string | - | 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. |
country | string | - | 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. |
supplier | string | - | Filter by the related "supplier", given as an IRI or as an identifier. |
supplier[] | string[] | - | Filter by the related "supplier", given as an IRI or as an identifier. |
status | string | - | Purchase Offer status |
status[] | string[] | - | Purchase Offer status |
startsAt[after] | string | - | Purchase Offer startsAt |
startsAt[before] | string | - | Purchase Offer startsAt |
startsAt[strictly_after] | string | - | Purchase Offer startsAt |
startsAt[strictly_before] | string | - | Purchase Offer startsAt |
endsAt[after] | string | - | Purchase Offer endsAt |
endsAt[before] | string | - | Purchase Offer endsAt |
endsAt[strictly_after] | string | - | Purchase Offer endsAt |
endsAt[strictly_before] | string | - | Purchase Offer endsAt |
createdAt[after] | string | - | Purchase Offer createdAt |
createdAt[before] | string | - | Purchase Offer createdAt |
createdAt[strictly_after] | string | - | Purchase Offer createdAt |
createdAt[strictly_before] | string | - | Purchase Offer createdAt |
updatedAt[after] | string | - | Purchase Offer updatedAt |
updatedAt[before] | string | - | Purchase Offer updatedAt |
updatedAt[strictly_after] | string | - | Purchase Offer updatedAt |
updatedAt[strictly_before] | string | - | Purchase 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[supplier.name] | string | - | Order by translated field "supplier.name" (uses the Flowkiwi-Locale header) |
order[status] | string | - | Purchase Offer order[status] |
order[startsAt] | string | - | Purchase Offer order[startsAt] |
order[endsAt] | string | - | Purchase Offer order[endsAt] |
order[createdAt] | string | - | Purchase Offer order[createdAt] |
order[updatedAt] | string | - | Purchase Offer order[updatedAt] |
Response
200 - Purchase Offer collection
| Property | Type | Required | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
search | object | - | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Show | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Property | Type | Required | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@type | string | - | |||||||||||||||||||||
mapping | object[] | - | |||||||||||||||||||||
Show | |||||||||||||||||||||||
| Property | Type | Required | Description |
|---|---|---|---|
@type | string | - | |
property | string | null | - | |
required | boolean | - | |
variable | string | - |
templatestringvariableRepresentationstringtotalItemsintegerviewobjectShow view fields
| Property | Type | Required | Description |
|---|---|---|---|
@id | string | - | |
@type | string | - | |
first | string | null | - | |
last | string | null | - | |
next | string | null | - | |
previous | string | null | - |
memberPurchase.Offer[]Show member fields
| Property | Type | Required | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@context | string | object | - | |||||||||||||||||||||
@id | string | required | |||||||||||||||||||||
@type | string | required | |||||||||||||||||||||
country | string | Country | null | required | The country resource it belongs to. Requires the instance_params:read scope. Returned null when the scope is missing. | ||||||||||||||||||||
createdAt | string | - | The date and time when the resource was created (ISO 8601 format). | ||||||||||||||||||||
discountPrice | EmbeddedMoneyResource | null | - | The discounted tax-included price, when a discount applies. | ||||||||||||||||||||
Show | |||||||||||||||||||||||
| Property | Type | Required | Description |
|---|---|---|---|
amount | string | required | The monetary amount, as a decimal string. |
currency | string | required | The ISO 4217 currency code (e.g. EUR). |
discountPricePerUnitEmbeddedPricePerUnitResource | nullShow discountPricePerUnit fields
| Property | Type | Required | Description |
|---|---|---|---|
amount | string | required | The monetary amount, as a decimal string. |
currency | string | required | The ISO 4217 currency code (e.g. EUR). |
unit | "ml" | "cl" | "l" | "mg" | "g" | "kg" | "mm" | "cm" | "m" | "m2" | "unit" | required | The reference unit the amount is expressed per. |
value | integer | required | The number of reference units the amount applies to. |
discountTaxExcludedPriceEmbeddedMoneyResource | nullShow discountTaxExcludedPrice fields
| Property | Type | Required | Description |
|---|---|---|---|
amount | string | required | The monetary amount, as a decimal string. |
currency | string | required | The ISO 4217 currency code (e.g. EUR). |
discountTaxExcludedPricePerUnitEmbeddedPricePerUnitResource | nullShow discountTaxExcludedPricePerUnit fields
| Property | Type | Required | Description |
|---|---|---|---|
amount | string | required | The monetary amount, as a decimal string. |
currency | string | required | The ISO 4217 currency code (e.g. EUR). |
unit | "ml" | "cl" | "l" | "mg" | "g" | "kg" | "mm" | "cm" | "m" | "m2" | "unit" | required | The reference unit the amount is expressed per. |
value | integer | required | The number of reference units the amount applies to. |
endsAtstring | nullidstringpriceEmbeddedMoneyResourcetaxExcludedPrice and the referenced Tax rate.Show price fields
| Property | Type | Required | Description |
|---|---|---|---|
amount | string | required | The monetary amount, as a decimal string. |
currency | string | required | The ISO 4217 currency code (e.g. EUR). |
pricePerUnitEmbeddedPricePerUnitResource | nullShow pricePerUnit fields
| Property | Type | Required | Description |
|---|---|---|---|
amount | string | required | The monetary amount, as a decimal string. |
currency | string | required | The ISO 4217 currency code (e.g. EUR). |
unit | "ml" | "cl" | "l" | "mg" | "g" | "kg" | "mm" | "cm" | "m" | "m2" | "unit" | required | The reference unit the amount is expressed per. |
value | integer | required | The number of reference units the amount applies to. |
startsAtstringstatus"/api/statuses/DRAFT" | "/api/statuses/ACTIVE" | "/api/statuses/ARCHIVED"supplierstring | Supplier | nullsuppliers:read scope. Returned null when the scope is missing.taxstring | Tax | nullinstance_params:read scope. Returned null when the scope is missing.taxExcludedPriceEmbeddedMoneyResourceShow taxExcludedPrice fields
| Property | Type | Required | Description |
|---|---|---|---|
amount | string | required | The monetary amount, as a decimal string. |
currency | string | required | The ISO 4217 currency code (e.g. EUR). |
taxExcludedPricePerUnitEmbeddedPricePerUnitResource | nullShow taxExcludedPricePerUnit fields
| Property | Type | Required | Description |
|---|---|---|---|
amount | string | required | The monetary amount, as a decimal string. |
currency | string | required | The ISO 4217 currency code (e.g. EUR). |
unit | "ml" | "cl" | "l" | "mg" | "g" | "kg" | "mm" | "cm" | "m" | "m2" | "unit" | required | The reference unit the amount is expressed per. |
value | integer | required | The number of reference units the amount applies to. |
updatedAtstringvariantstring | Product.Variant | nullproducts:read scope. Returned null when the scope is missing.No properties.
Errors
403 - Access denied. The caller is missing one or more permissions required for this operation.
Content-Type: application/problem+json
| Property | Type | Required | Description |
|---|---|---|---|
@context | string | object | - | |
@id | string | required | |
@type | string | required | |
detail | string | - | |
missingPermissions | string[] | - | Permissions that the caller is missing for this operation. Present only when the 403 is caused by a denied permission. |
status | integer | - | |
title | string | - | |
type | string | - |