Basket Update

A Method of Transferring Basket Updates Made by a Customer in the InPost Pay App. In their response to an event informing the Merchant of a change in the basket, the Merchant should submit the whole updated basket.

POST /v1/izi/basket/{basket_id}/event

Parameters

 

Field name

Description

Type

Requirement status

Additional remarks

basket_id

Basket's unique ID assigned by the merchant

string

Y

 

Request

Field name

Description

Type

Requirement status

Additional remarks

event_id

Event's ID

 string

 Y

 

event_data_time

Event's date and time

 string($date-time)

 Y

 

event_type

Event's Type.

Enum:

[PRODUCTS_QUANTITY, PROMO_CODES, RELATED_PRODUCTS]

 

PRODUCTS_QUANTITY - change in product quantity

PROMO_CODES - adding/updating/removing a promotional code

RELATED_PRODUCTS - adding a suggested product

 string

 Y

 

phone_number

The user's number associated with the basket

 object

 O

 

phone_number.country_prefix

Prefix

 string

 Y

 

phone_number.phone

Telephone number

 string

 Y

 

quantity_event_data

Object which returns the event's details PRODUCTS_QUANTITY

 

 O

 

quantity_event_data.product_id

Product ID assigned by the merchant

string

Y

"product_id": 26

quantity_event_data.quantity

Object for reporting the product quantity

object

Y

 

quantity_event_data.quantity.quantity

product quantity

number ($decimal)

Y

"quantity":1

quantity_event_data.quantity.quantity_type

Field type quantity. Available values Enum: [DECIMAL, INTEGER]

If the quantity_type of the product is INTEGER, then the Merchant provides the price for 1 piece. If the quantity_type of the product is DECIMAL, then the Merchant provides the price for the product quantity selected.

  • Example 1) We have 5 pcs of shirts 10 PLN a piece. In such a case, the quantity_type, is INTEGER and the product's price is PLN 10.

  • Example 2) We have 0.35 kg of flour, costing PLN 5. In such a case, the quantity_type, is DECIMAL and the product's price is PLN 5.

string

O

"quantity_type":"INTEGER"

quantity_event_data.quantity.quantity_unit

Quantity unit of the product

string

O

"quantity_unit":"pcs"

quantity_event_data.quantity.available_quantity

The quantity available at the store

number ($decimal)

O

"available_quantity":26

quantity_event_data.quantity.max_quantity

The maximum number of the product a Customer can order e.g. at one order

number ($decimal)

O

"max_quantity":26

promo_codes_event_data

Object which returns the event's details PROMO_CODES

 object

O

 

promo_codes_event_data.name

Code name. In the app's next version the field not required

string

Y

"name ": "Promotion 5%"

promo_codes_event_data.promo_code_value

Promotion code

string

Y

"promo_code_value": "INPOST10"

related_products_event_data

Object which returns the event's details RELATED_PRODUCTS

 object

O

 

related_products_event_data.product_id

Product ID assigned by the merchant

string

Y

"product_id": 26

related_products_event_data.ean

Ean

string

O

"ean":"0"

related_products_event_data.quantity

Object for reporting the product quantity

object

Y

 

related_products_event_data.quantity.quantity

product quantity

number ($decimal)

Y

"quantity":1

related_products_event_data.quantity.quantity_type

Field type quantity. Values available Enum: [DECIMAL, INTEGER]

string

O

"quantity_type":"INTEGER"

related_products_event_data.quantity.quantity_unit

Quantity unit of the product

string

O

"quantity_unit":"pcs"

related_products_event_data.quantity.available_quantity

The quantity available at the store

number ($decimal)

O

"available_quantity":26

related_products_event_data.quantity.max_quantity

The maximum number of the product a Customer can order e.g. at one order

number ($decimal)

O

"max_quantity":26

 

Response

Field name

Description

Type

Requirement status

Additional remarks

summary

Object intended to transfer the basket's key data

object

Y

 

summary.basket_base_price

Object intended to transfer the main price for the basket without the delivery costs

object

Y

 

summary.basket_base_price.net

Net price

number ($decimal) (10,2)

Y

"summary":{"basket_base_price":{"net":"250.00","gross":"307.50","vat":"57.5

summary.basket_base_price.gross

Gross Price (net + VAT)

number ($decimal) (10,2)

Y

summary.basket_base_price.vat

VAT

number ($decimal) (10,2)

Y

summary.basket_final_price

Object intended to transfer the basket's final price with any promotion and discount code taken into account without the delivery costs.
The discount value for products arising out from the application of a code (promotional code that is not regulated by the OMNIBUS directive) displayed in the basket summary will be the difference between the promo_price, and the final_price or the base_price, and the final_price when the products are not promoted.

object

O

 

summary.basket_final_price.net

Net price

number ($decimal) (10,2)

Y

"basket_final_price":{"net":"220.00","gross":"270.60","vat":"50.60"}

summary.basket_final_price.gross

Gross Price (net + VAT)

number ($decimal) (10,2)

Y

summary.basket_final_price.vat

VAT

number ($decimal) (10,2)

Y

summary.basket_promo_price

Object intended to transfer the basket's price taken into account any promotion, but without any rebate code and without the delivery costs.

object

O

 

summary.basket_promo_price.net

Net price

number ($decimal) (10,2)

Y

"basket_promo_price":{"net":"220.00","gross":"270.60","vat":"50.60"}

summary.basket_promo_price.gross

Gross Price (net + VAT)

number ($decimal) (10,2)

Y

summary.basket_promo_price.vat

VAT

number ($decimal) (10,2)

Y

summary.currency

Basket's currency. Currently, the only currency available PLN

string

Y

"currency":"PLN"

summary.basket_expiration_date

Basket's expiration /validity date. This is the date when the basket will be automatically removed from the InPost Pay app (it becomes invalid). The date cannot be backward.

string($date-time)

O

"basket_expiration_date":"2023-09-13T07:40:53.000Z"

summary.basket_additional_information

The field is used to transfer additional information of the basket which, from the merchant's point of view, could be significant for the customer

string

O

"basket_additional_information": "Order today, and receive a discount code for future purchases"

summary.payment_type

Preferable payment methods for the basket. The merchant provides the list of preferred payment forms for the basket from which the customer can choose a payment method in the course of creating an order. In the case of transferring an empty list, the customer will be presented with a default list of payment methods according to the merchnat's configuration.

List with payment types: [CARD, CARD_TOKEN, GOOGLE_PAY, APPLE_PAY, BLIK_CODE, BLIK_TOKEN, PAY_BY_LINK, SHOPPING_LIMIT, DEFERRED_PAYMENT, CASH_ON_DELIVERY]

object

Y

"payment_type":["CARD","CARD_TOKEN","APPLE_PAY","BLIK_CODE","BLIK_TOKEN","PAY_BY_LINK","SHOPPING_LIMIT","DEFERRED_PAYMENT","GOOGLE_PAY"],

summary.basket_notice

Object with additional information of the basket which the merchant wants to transfer to the customer in the InPost Pay App

object

O

 

summary.basket_notice.type

Information Type. We can distinguish two information types, based on which the app presents the relevant Enum message format: [ATTENTION, ERROR]:

ATTENTION - to be used if we want to notify the customer of significant information about the basket, e.g. promotional code, adding a free product etc.

ERROR- to be used if any action couldn't be performed for the basket eg. incorrect discount code or unsuccessful addition of a suggested product.

 

string

Y

"type":"ATTENTION"

summary.basket_notice.description

The message presented to the customer in the InPost Pay app for the given notice.type

string

Y

"description": "the code has been activated"

delivery

Object intended to transfer information related to delivery methods preferred for the given basket

array

Y

 

delivery.delivery_type

Delivery method.. Two forms available Enum:[APM, COURIER]

APM - parcel locker,

COURIER - InPost courier

string

Y

"delivery_type":"APM"

delivery.delivery_date

Suggested delivery date

string($date-time)

Y

"delivery_date":"2023-09-14T12:00:00.000Z"

delivery.delivery_options

Object intended to transfer additional description of the delivery. Currently two additional delivery options available:

PWW- parcel on weekend

COD- cash on delivery. If, for a given basket, the payment_type is CASH_ON_DELIVERY, it is required to enter COD as an additional delivery option

 

O

 

delivery.delivery_options.delivery_name

Name of additional delivery option

string

Y

"delivery_name": "Paczka w Weekend"

delivery.delivery_options.delivery_code_value

Additional delivery option code. Currently available, two codes:

PWW - parcel on weekend

COD - cash on delivery

string

Y

 "delivery_code_value": "PWW"

delivery.delivery_options.delivery_option_price

Object intended to transfer information related to the cost of additional delivery options

object

Y

 

delivery.delivery_options.delivery_option_price.net

Net price

number ($decimal) (10,2)

Y

"delivery_option_price ":{"net":"10.00","gross":"12.30","vat":"2.30"}

delivery.delivery_options.delivery_option_price.gorss

Gross Price (net + VAT)

number ($decimal) (10,2)

Y

delivery.delivery_options.delivery_option_price.vat

VAT

number ($decimal) (10,2)

Y

delivery.delivery_price

Object intended to transfer information related to the cost of delivery

object

Y

 

delivery.delivery_price.net

Net price

number ($decimal) (10,2)

Y

"delivery_price":{"net":"10.00","gross":"12.30","vat":"2.30"}

delivery.delivery_price.gorss

Gross Price (net + VAT)

number ($decimal) (10,2)

Y

delivery.delivery_price.vat

VAT

number ($decimal) (10,2)

Y

free_delivery_minimum_gross_price

The minimum basket value from which the delivery cost will be PLN 0

number ($decimal) (10,2)

O

"free_delivery_minimum_gross_price": "100.00"

delivery.estimate_delivery_time

Functionality using the object will be available in subsequent versions of the application

Object used to provide information about the estimated delivery time in the event that the customer orders goods within a specified time.

array

O

"estimate_delivery_time": [
{
"description": "Kup do 15:00 - dostawa jutro",
"days_available": [
"MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY"
],
"start_hour": "10:00",
"end_hour": "15:00"
}
]
}
],

delivery.estimate_delivery_time.description

Message presented to the customer in application

string

Y

delivery.estimate_delivery_time.days_available

Days of the week on which the message is presented

array

O

delivery.estimate_delivery_time.start_hour

The time from which the message is presented

string

O

delivery.estimate_delivery_time.end_hour

The time until which the message is presented

string

O

promo_codes

List of promotional codes applied for the basket

array

O

 

promo_codes.name

Code name. In the app's next version, the field not required

string

Y

 "name ": "Promotion 5%"

promo_codes.promo_code_value

Promotion code

string

Y

"promo_code_value": "INPOST10"

promo_codes.regulation_type

Specifies the type of regulation or restriction that the promotional code is subject to.
NOTE:  If the promo code is regulated by the Omnibus Directive then pass "OMNIBUS".

string

O

"regulation_type": "OMNIBUS"

promotions_available

An object used to provide a list of available promotions for the cart.

array

O

"promotions_available": [
{
"type": "MERCHANT",
"promo_code_value": "IZI",
"description": "Super promocja -- 20 PLN ",
"start_date": "2024-10-03T07:33:13.942Z",
"end_date": "2024-11-03T07:33:13.942Z",
"priority": 0,
"details": {
"link": " https://inpostpay.pl/ "
}
}
],

promotions_available.type

Code type:
Enum:[ MERCHANT, ONLY_IN_APP ]
 
MERCHANT -  code available in the merchant store and InPost Pay app (KOD SKLEPU)

ONLY_IN_APP - code available only in InPost Pay app (TYLKO W APCE).

string 

Y

promotions_available.promo_code_value

Code value e.g. DOSTAWA

string 

Y

promotions_available.description

Code description

Max: 60 characters

string 

Y

promotions_available.start_date

Start date from which the code is valid

string($date-time)

O

promotions_available.end_date

End date until which the code is valid

string($date-time)

O

promotions_available.priority

Code priority
Priority is used to determine the order in which codes are presented in the cart details (the lowest value has the highest priority).

integer

O

promotions_available.details

Code details

object

Y

promotions_available.details.link

Link to code information details on the merchant's website

string 

Y

products

List for providing information of the products in the basket

array

Y

 

products.product_id

Product ID assigned by the merchant

string

Y

"product_id": 26

products.product_category

Product category assigned by the merchant

string

O

"product_category":20

products.ean

ean

string

O

"ean":"0"

products.product_name

Product name

string

Y

"product_name": "washpapa backpack"

products.product_description

Product description

string

O

"product_description": "  \r\n\r\nSometimes you just want to leave everything, pack your bags and go to Bieszczady? It's a good plan for holidays. And during the year, simply discover your city again.\r\n\r\ Exploration cannot be successful without a reliable backpack with foldable closings and made of high quality materials, such as our.\r\n\r\nThe cotton straps ensure the convenience of carrying, and washpapa will express your devotion to the nature. Remember! Behind each adventure, there is a good backpack."

products.product_link

Link to the product on the merchant's website

string

O

"product_link":"https://test.outofthebox.pl/product/plecak-washpapa/"

products.product_image

Link to a photograph of the product. Formats preferable: png, jpg (recommendation: png without background)

string

O

"product_image":"https://test.outofthebox.pl/img/2022/10/INPOST_aranzacje-z-modelami25-1.jpg"

Formats preferable: png, jpg (recommendation: png without background)

products.additional_product_images

Object to pass additional product images (list)

object

O

-

products.additional_product_images.small_size

Product image.
Preferred size 360 x 352

string

Y

-

products.additional_product_images.normal_size

Product image.
Preferred size 360 x 504

string

Y

-

products.base_price

Product's base price

object

Y

 

products.base_price.net

Net price

number ($decimal) (10,2)

Y

"base_price":{"net":"161.79","gross":"199.00","vat":"37.21"}

products.base_price.gross

Gross Price (net + VAT)

number ($decimal) (10,2)

Y

products.base_price.vat

VAT

number ($decimal) (10,2)

Y

products.promo_price

Promotional price of the product

object

O

 

products.promo_price.net

Net price

number ($decimal) (10,2)

Y

"promo_price":{"net":"160.98","gross":"198.00","vat":"37.02"}

products.promo_price.gorss

Gross Price (net + VAT)

number ($decimal) (10,2)

Y

products.promo_price.vat

VAT

number ($decimal) (10,2)

Y

products.lowest_price

Object intended to transfer the lowest price of the product over the previous 30 days. Required in order to handle the Omibus directive. Object required to be transferred if the product's promotional price was provoded (obiekt promo_price).

object

O

 

products.lowest_price.net

Net price

number ($decimal) (10,2)

Y

"lowest_price ":{"net":"160.98","gross":"198.00","vat":"37.02"}

products.lowest_price.gorss

Gross Price (net + VAT)

number ($decimal) (10,2)

Y

products.lowest_price.vat

VAT

number ($decimal) (10,2)

Y

products.quantity

Object for reporting the product quantity

object

Y

 

products.quantity.quantity

product quantity

number ($decimal)

Y

"quantity":1

products.quantity.quantity_type

Field type quantity. Available values: Enum: [DECIMAL, INTEGER]

 

string

Y

"quantity_type":"INTEGER"

products.quantity.quantity_unit

Quantity unit of the product

string

O

"quantity_unit":"pcs"

products.quantity.available_quantity

The quantity available at the store

number ($decimal)

O

"available_quantity":26

products.quantity.min_quantity 

The minimum number of the product a Customer can order e.g. at one order

number ($decimal) 

 

"min_quantity": 2

products.quantity.max_quantity

The maximum number of the product a Customer can order e.g. at one order

number ($decimal)

O

"max_quantity":26

products.quantity.quantity_jump

The quantity jump value in case of increase/decrease of product quantity by customer (e.g. 0.1 or 0.5 or 0.01)

number ($decimal)    

O

"quantity_jump": 0.5

products.product_attributes

Object intended to determine the product's attributes

array

O

 

products.product_attributes.attribute_name

Attribute name

string

Y

"product_attributes ": [{ "attribute_name ": "Dimensions/Capacity", "attribute_value ":"54 cm x 38 cm x 10 cm "}, { "attribute_name ": "Material", "attribute_value": "Washable paper standard + kodura + woven cotton straps"}]

products.product_attributes.attribute_value

Attribute value

string

Y

products.delivery_product

Object used to provide information about available delivery methods for a product.

If there is no delivery_product object, it means that delivery is available in all types.

object

O

-

products.delivery_product.delivery_type

Delivery type

string

O

-

products.delivery_product.if_delivery_available

Flag indicating whether the delivery type is available.

string

O

-

related_products

Object intended to transfer the list of products suggested for a given basket that the customer can add from the level of the InPost Pay app

array

O

 

related_products.product_id

Product ID assigned by the merchant

string

Y

"product_id": 26

related_products.product_category

Product category assigned by the merchant

string

O

"product_category":20

related_products.ean

Ean

string

O

"ean":"0"

related_products.product_name

Product name

string

Y

"product_name": "washpapa backpack"

related_products.product_description

Product description

string

O

"product_description": "  \r\n\r\nSometimes you just want to leave everything, pack your bags and go to Bieszczady? It's a good plan for holidays. And during the year, simply discover your city again.\r\n\r\ Exploration cannot be successful without a reliable backpack with foldable closings and made of high quality materials, such as our.\r\n\r\nThe cotton straps ensure the convenience of carrying, and washpapa will express your devotion to the nature. Remember! Behind each adventure, there is a good backpack."

related_products.product_link

Link to the product on the merchant's website

string

O

"product_link":"https://test.outofthebox.pl/product/plecak-washpapa/"

related_products.product_image

Link to a photograph of the product. Formats preferable: png, jpg (recommendation: png without background)

 

string

 

"product_image":"https://test.outofthebox.pl/img/2022/10/INPOST_aranzacje-z-modelami25-1.jpg"

Formats preferable: png, jpg (recommendation: png without background)

related_products.additional_product_images

Object to pass additional product images (list)

object

O

-

related_products.additional_product_images.small_size

Product image. Preferred size 360 x 352

string

Y

-

related_products.additional_product_images.normal_size

Product image. Preferred size 360 x 504

string

Y

-

related_products.base_price

Product's base price

object

Y

 

related_products.base_price.net

Net price

number ($decimal) (10,2)

Y

"base_price":{"net":"161.79","gross":"199.00","vat":"37.21"}

related_products.base_price.gross

Gross Price (net + VAT)

number ($decimal) (10,2)

Y

related_products.base_price.vat

VAT

number ($decimal) (10,2)

Y

related_products.promo_price

Promotional price of the product

object

O

 

related_products.promo_price.net

Net price

number ($decimal) (10,2)

Y

"promo_price":{"net":"160.98","gross":"198.00","vat":"37.02"}

related_products.promo_price.gross

Gross Price (net + VAT)

number ($decimal) (10,2)

 

Y

related_products.promo_price.vat

VAT

number ($decimal) (10,2)

 

Y

related_products.lowest_price

Object intended to transfer the lowest price of the product over the previous 30 days. Required in order to handle the Omibus directive. Object required to be transferred if the product's promotional price was provoded (obiekt promo_price).

object

O

 

related_products.lowest_price.net

Net price

number ($decimal) (10,2)

Y

"lowest_price ":{"net":"160.98","gross":"198.00","vat":"37.02"}

related_products.lowest_price.gorss

Gross Price (net + VAT)

number ($decimal) (10,2)

Y

related_products.lowest_price.vat

VAT

number ($decimal) (10,2)

Y

related_products.quantity

Object for reporting the product quantity

object

Y

 

related_products.quantity.quantity

product quantity

number ($decimal)

Y

"quantity":1

related_products.quantity.quantity_type

Field type quantity. Available values: Enum: [DECIMAL, INTEGER]

 

string

Y

"quantity_type":"INTEGER"

related_products.quantity.quantity_unit

Quantity unit of the product

string

O

"quantity_unit":"pcs"

related_products.quantity.available_quantity

The quantity available at the store

number ($decimal)

O

"available_quantity":26

related_products.quantity.min_quantity 

The minimum number of the product a Customer can order e.g. at one order

number ($decimal) 

"min_quantity":2 

related_products.quantity.max_quantity

The maximum number of the product a Customer can order e.g. at one order

number ($decimal)

O

"max_quantity":26

related_products.quantity.quantity_jump

The quantity jump value in case of increase/decrease of product quantity by customer (e.g. 0.1 or 0.5 or 0.01)

number ($decimal)    

O

"quantity_jump": 0.5

related_products.product_attributes

Object intended to determine the product's attributes

array

O

 

related_products.product_attributes.attribute_name

Attribute name

string

Y

"product_attributes ": [{ "attribute_name ": "Dimensions/Capacity", "attribute_value ":"54 cm x 38 cm x 10 cm "}, { "attribute_name ": "Material", "attribute_value": "Washable paper standard + kodura + woven cotton straps"}]

related_products.product_attributes.attribute_value

Attribute value

string

Y

 

related_products.delivery_related_products

Object used to provide information about available delivery methods for a product.

If there is no delivery_product object, it means that delivery is available in all types.

object

O

 

related_products.delivery_related_products.delivery_type

Delivery type

string

O

 

related_products.delivery_related_products.if_delivery_available

Flag indicating whether the delivery type is available.

boolean

O

 

related_products.delivery_related_products.if_delivery_free

Object informing whether the customer will receive free shipping after adding the suggested product to the cart

If if_delivery_free= true is on a given suggested product, the customer will be presented with an appropriate message on that product.

boolean

O

 

consents

Object intended to transfer the list of consents for a given basket

array

 Y

 

consents.consent_id

Consent IDs assigned by the merchant

string

 Y

"consent_id":3

consents.consent_link

The link which redirects to the full content of a consent eg. to the merchant's website

string

 Y

"consent_link":"https://test.outofthebox.pl/zwroty-i-reklamacje/"

consents.label_link

Label to the link passed in consent_link

string

O

"label_link": "Regulaminu",

consents.additional_consent_links

Object used to provide an additional link to the consent/regulations

object

O

 

consents.additional_consent_links.id

Consent ID assigned by the merchant

string

O

"id": "0"

consents.additional_consent_links.consent_link

Link redirecting to the full content, e.g. to the merchant’s website

string

O

"consent_link": "https://uat.outofthebox.pl/privacy-policy/",

consents.additional_consent_links.label_link

Label to the link passed in consent_link

string

O

"label_link": "Polityką prywatności"

consents.consent_description

Description of the consent, not more than 500 characters

string

 Y

"consent_description": "zwroty i reklamacje"

consents.consent_version

Consent version

string

 Y

"consent_version":1

consents.requirement_type

Consent type. Available values: Enum: [OPTIONAL, REQUIRED_ONCE, REQUIRED_ALWAYS]

OPTIONAL-- Consent optional

REQUIRED_ONCE - required once. A consent of such a type and version will be included in the user's profile, with information that the customer has consented, and, in the case of further baskets, will be checked by default.

REQUIRED_ALWAYS - required always. A consent of such a type and version is saved to the user's profile. The customer must consent each time.

string

 Y

"requirement_type":"OPTIONAL"

merchant_store

Object used to pass the customer's shopping cart cookie in order to enable redirection from the application to the shopping cart in the merchant's store.

object

O

-

merchant_store.url

Url of the merchant shop

string

Y

"url": "https://uat.outofthebox.pl/cart/",

merchant_store.cookies

Object used to pass the cookie

array

Y

-

merchant_store.cookies.domain

The cookie domain represented by pair key-value

string

Y

"domain": "uat.outofthebox.pl",

merchant_store.cookies.key

Cookie key

string

Y

"key": "wp_woocommerce_session_f3cd21b400c074e165b59837d7a9d0a4",

merchant_store.cookies.value

Cookie value

string

Y

"value": "t_f13664beda2ec455d97546c1ddab8b%7C%7C1699438060%7C%7C1699434460%7C%7Cf77d310ce1f0440cb4812f5043736989",

merchant_store.cookies.path

Cookie path

string

Y

"path": "/",

merchant_store.cookies.expires

Cookie expiration time or maxAge

string($date-time)

O

"expires": "2025-01-16T14:17:02.486Z",

merchant_store.cookies.secure

Cookie security information

boolean

O

"secure": false,

merchant_store.cookies.http_only

Cookie http information

boolean

O

"http_only": true,

merchant_store.cookies.same_site

Cookie sameSite information [ STRICT, LAX, NONE ]

string

O

"same_site": "LAX",

merchant_store.cookies.priority

Cookie priority [ LOW, MEDIUM, HIGH ]

string

O

"priority": "MEDIUM",

merchant_store.cookies.max_age

Cookie max age

integer($int32)

O

"max_age": 0

Example request

{ "event_id":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "event_data_time":"2023-08-23T11:14:33.973Z", "event_type":"PRODUCTS_QUANTITY", "phone_number": { "country_prefix":"+48", "phone":"5xxxxxxxx" }, "quantity_event_data": [ { "product_id":"549", "quantity": { "quantity":3 } } ] }

Response

{ "summary": { "basket_base_price": { "net":"249.59", "gross":"307.00", "vat":"57.41" }, "basket_final_price": { "net":"242.01", "gross":"297.67", "vat":"55.66" }, "basket_promo_price": { "net":"242.01", "gross":"297.67", "vat":"55.66" }, "currency":"PLN", "basket_expiration_date":"2023-08-25T11:09:29.000Z", "basket_additional_information":"", "payment_type": [ "CARD", "CARD_TOKEN", "APPLE_PAY", "BLIK_CODE", "BLIK_TOKEN", "PAY_BY_LINK", "SHOPPING_LIMIT", "DEFERRED_PAYMENT", "GOOGLE_PAY", "CASH_ON_DELIVERY" ], "basket_notice":null }, "delivery": [ { "delivery_type":"APM", "delivery_date":"2023-08-25T12:00:00.000Z", "delivery_options":[], "delivery_price": { "net":"0.00", "gross":"0.00", "vat":"0.00" } }, { "delivery_type":"COURIER", "delivery_date":"2023-08-25T12:00:00.000Z", "delivery_options":[], "delivery_price": { "net":"0.00", "gross":"0.00", "vat":"0.00" } } ], "promo_codes":[], "products": [ { "product_id":10678, "product_category":53, "ean":"wp-pennant-1", "product_name":"Klocki Paczkomat InPost z samochodem eko", "product_description":" \r\n\r\nA wiesz, że każdy jest kurierem własnego życia? Przecież gdy mówisz, to dostarczasz informacje, a jak się uśmiechasz to... dostarczasz radość. Jeszcze większą radość zobaczysz na twarzy dziecka, gdy dostarczysz mu zestaw klocków: paczkomat wraz z ekobusem.\r\n\r\nTo unikalny zestaw, dzięki któremu dzieci mogą wcielić się w rolę kuriera i poczuć jak to jest, gdy dostarcza się same dobre wiadomości czy prezenty. A co najlepsze, klocki pasują do innych klocków konstrukcyjnych co sprawia, że możliwości zabawy stają się nieograniczone.\r\n\r\nKlocki przeznaczone są dla dzieci od 8 lat, ale potrafią obudzić dziecko w człowieku do 80 lat i więcej. W końcu dobra zabawa nie zna wieku.", "product_link":"https://outofthebox.pl/product/paczkomat-inpost-z-samochodem-eko/", "product_image":"https://outofthebox.pl/app/uploads/2022/11/INPOST_aranzacje-z-modelami18.jpg", "base_price": { "net":"113.01", "gross":"139.00", "vat":"25.99" }, "promo_price": { "net":"113.01", "gross":"139.00", "vat":"25.99" }, "quantity": { "quantity":2, "quantity_type":"INTEGER", "quantity_unit":"pcs", "available_quantity":7507, "max_quantity":7507 }, "product_attributes": [ { "attribute_name":"Wymiary/Pojemność", "attribute_value":"344 cm x 60 cm x 240 cm" } ], "variants":[] }, { "product_id":549, "product_category":20, "ean":"0", "product_name":"Paczkotorba bawełniana", "product_description":" \r\n\r\nTa torba bawełniana lubi być czysta i wyprana. Lubi, bo jest z bawełny, tak jak wiele Twoich ubrań. Dlatego pralka nie robi jej krzywdy.\r\n\r\nTorba polecana jest szczególnie tym, którzy nie chcą za każdym razem wracać z zakupów z toną jednorazowych woreczków foliowych.\r\n\r\nTorba jest szyta lokalnie. W Polsce, a nie na końcu świata.\r\n\r\nMetr kwadratowy materiału, z którego stworzono torbę, waży 280 gramów. Gdyby miała ręce, włożyłaby sobie do środka spory ciężar i nic by się jej nie stało.\r\n\r\nUwaga: torba InPost ma wielkie uszy, żeby można było ją nosić w stylu out of the box.", "product_link":"https://outofthebox.pl/product/paczkotorba-bawelniana/", "product_image":"https://outofthebox.pl/app/uploads/2022/10/INPOST_aranzacje-z-modelami24-1.jpg", "base_price": { "net":"23.58", "gross":"29.00", "vat":"5.42" }, "promo_price": { "net":"15.99", "gross":"19.67", "vat":"3.68" }, "quantity": { "quantity":"1", "quantity_type":"INTEGER", "quantity_unit":"pcs", "available_quantity":240, "max_quantity":240 }, "product_attributes":[], "variants":[] } ], "related_products": [ { "product_id":606, "product_category":17, "ean":"0", "product_name":"Paczkokurtka","product_description":" \r\n\r\nNormalne kurtki są normalne.\r\n\r\nPrzód i tył. Lewy rękaw i prawy rękaw. Kaptur i kieszenie.\r\n\r\nKurtki InPost -- są zawsze out of the box! Oprócz wszystkiego, co ma normalna kurtka -- mają jeszcze ogromną kieszeń, są wodoodporne i wiatroszczelne. Ta kieszeń jest tak duża, że może pomieścić w sobie na przykład paczkę. Albo coś innego, co tylko przyjdzie Ci do głowy.\r\nWierzchni materiał pokryty jest powłoką Water Repellent, dzięki czemu woda skrapla się na jego powierzchni\r\n\r\nBo wszystko, co najlepsze, zaczyna się od głowy.\r\nOd pomysłu, który jest inny.\r\n\r\nKtóry jest Out of the box!\r\n\r\nPaczkokurtka InPost dostępna jest w czterech rozmiarach: S, M, L, XL.", "product_link":"https://outofthebox.pl/product/paczkokurtka-rozm-s/", "product_image":"https://outofthebox.pl/app/uploads/2022/10/INPOST_aranzacje-z-modelami25-1.jpg", "base_price": { "net":"172.07", "gross":"211.65", "vat":"0.00" }, "promo_price": { "net":"172.07", "gross":"211.65", "vat":"0.00" }, "quantity": { "quantity":1, "quantity_type":"INTEGER", "quantity_unit":"pcs", "available_quantity":999, "max_quantity":999 }, "product_attributes":[], "variants":[] }, { "product_id":452, "product_category":53, "ean":"0", "product_name":"Klocki Sortownia", "product_description":"sdadsadsadasdas", "product_link":"https://outofthebox.pl/product/sortownia/", "product_image":"https://outofthebox.pl/app/uploads/2022/10/INPOST_aranzacje-z-modelami17.jpg", "base_price": { "net":"186.18", "gross":"229.00", "vat":"0.00" }, "promo_price": { "net":"186.18", "gross":"229.00", "vat":"0.00" }, "quantity": { "quantity":1, "quantity_type":"INTEGER", "quantity_unit":"pcs", "available_quantity":55844, "max_quantity":55844 }, "product_attributes":[], "variants":[] } ], "consents": [ { "consent_id":3, "consent_link":"https://outofthebox.pl/zwroty-i-reklamacje/", "consent_description":"zwroty i reklamacje", "consent_version":1, "requirement_type":"OPTIONAL" } ] }