Confirming the binding of a basket

The method informs whether or not the basket has been bound. For a successful verification of a basket's binding by the user in the InPost Pay App, to complete the process in the response, the Merchant must pass the details of the basket.

If the details of the basket haven't been transferred or the data in the response are incorrect, the basket will not be bound.

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

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

status

The status of the authorization of a basket's binding by the user in the app Enum:[SUCCESS, REJECT]

SUCCESS - binding successful

REJECT--binding rejected by the customer

string

O

 

inpost_basket_id

The identifier of the basket assigned by the InPost Pay app. The value not to be used by the Merchant. The identifier eventually used by the widget in order to make it possible to correctly redirect from the widget level to the InPost Pay app

 

string

O

 "inpost_basket_id": " 866e5bf6-4e8a-443e-98f5-f9b0c5c149dd"

phone_number

Information on the number of the user the basket will be bound to

object

O

 

country_prefix

Prefix

string

Y

"phone_number":{"country_prefix":"+48","phone":"600000000"}

phone

Telephone number

string

Y

browser

Browser Information

object

O

 

browser_trusted

A flag which informs whether or not the browser has been added to the trusted ones

boolean

Y

"browser":{"browser_trusted":true,"browser_id":"fbfac472-3bcc-4c2c-bd41-968032233e03"}

browser_id

The Id of a trusted browser assigned by InPost Pay. To be returned when browser_trusted=true

string

O

masked_phone_number

Masked phone no.

string

O

"masked_phone_number":"60*****00"

name

InPost Pay app user's first name

string

O

"name":"Piotr"

surname

InPost Pay app user's surname

string

O

"surname":"Nowak"

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 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

An object intended to transfer a basket's price with any promotion taken into account, 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 a 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 case of transferring an empty list, the customer will be presented with a default list of payment methods according to the Merchant's configuration.

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

array

Y

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

summary.basket_notice

An 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 Client of anything significant about the basket, e.g. applying promotional codes, adding a free product etc.

ERROR - To be used if some action cannot be performed on a 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

An object intended to inform of additional delivery options. 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_DELIVER, 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

An 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 amount of a basket from which the delivery cost will be PLN 0

number ($decimal) (10,2)

O

"free_delivery_minimum_gross_price": "100.00"

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"

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.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

($decimal)

"quantity":1

products.quantity.quantity_type

Field type quantity. Available values: [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

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.max_quantity

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

number ($decimal)

O

"max_quantity":26

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.variants

Object intended to transfer products' variants. Object currently not used. The functionality shall be implemented in the app's subsequent versions.

object

O

 

products.variants.variant_id

Version's Id

string

Y

-

products.variants.variant_name

Version's name

string

Y

-

products.variants.variant_description

Version's detailed description

string

O

-

products.variants.variant_type

Version's type

string

O

-

products.variants.variant_values

Version's value

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.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: [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

O

"available_quantity":26

related_products.quantity.max_quantity

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

number

O

"max_quantity":26

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.variants

Object intended to transfer products' variants. Object currently not used. The functionality shall be implemented in the app's subsequent versions.

object

O

 

related_products.variants.variant_id

Version's Id

string

Y

-

related_products.variants.variant_name

Version's name

string

Y

-

related_products.variants.variant_description

Version's detailed description

string

O

-

related_products.variants.variant_type

Version's type

string

O

-

related_products.variants.variant_values

Version's value

string

O

-

consents

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

array

 Y

 

consents.consent_id

Consent Id 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.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 – Optional consent

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"

Example request

{ "status": "SUCCESS", "inpost_basket_id": "xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx", "phone_number": { "country_prefix": "+48", "phone": "5xxxxxxxx" }, "browser": { "browser_trusted": true, "browser_id": "xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx" }, "masked_phone_number": "5x*****xx", "name": "<secret>", "surname": "<secret>" }

 

Response

"summary": { "basket_base_price": { "net": 80.49, "gross": 99.00, "vat": 18.51 }, "basket_final_price": { "net": 80.49, "gross": 99.00, "vat": 18.51 }, "basket_promo_price": { "net": 80.49, "gross": 99.00, "vat": 18.51 }, "currency": "PLN", "basket_expiration_date": "2023-08-25T09:26:01.000Z", "basket_additional_information":"", "payment_type": [ "CARD", "CARD_TOKEN", "APPLE_PAY", "BLIK_CODE", "BLIK_TOKEN", "PAY_BY_LINK", "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": "585", "product_category": "20", "ean": "0", "product_name": "Drewniane bule", "product_description": " \r\n\r\nCo to są bule? Na mieście mówią, że „bule to kule na nudy bóle". To gra, w której zasady są proste, a emocje sięgają 10 piętra. Bule to kule. W tym przypadku -- drewniane, z twardego drewna bukowego. Jedna z nich to świnka zwana prosiaczkiem. Taka kruszynka-wieprzowinka.\r\n\r\nCo trzeba mieć, żeby zagrać w bule? Przynajmniej jednego przyjaciela. Albo przyjaciółkę. Albo sąsiada, wujka, kuzynkę, znajomego, brata, siostrę, kolegę. Trzeba też mieć kawałek trawnika, może być bez trawy. Bule to rzucanie kulami w świnkę. Kto rzuci najbliżej, ten wygrywa. Gra w bule jest prosta, choć kule są okrągłe. Dziwne, co nie?", "product_link": "https://outofthebox.pl/product/drewniane-bule/", "product_image": "https://outofthebox.pl/app/uploads/2022/10/INPOST_aranzacje3-1.jpg", "base_price": { "net": 80.49, "gross": 99.00, "vat": 18.51 }, "promo_price": { "net": 80.49, "gross": 99.00, "vat": 18.51 }, "quantity": { "quantity": 1, "quantity_type": "INTEGER", "quantity_unit": "pcs", "available_quantity": 275, "max_quantity": 275 }, "product_attributes": [], "variants": [] } ], "related_products": [ { "product_id": "567", "product_category": "20", "ean": "0", "product_name": "Mata do ćwiczeń", "product_description": " \r\n\r\nNie wiemy, ile korków wystrzelonych w Sylwestra potrzeba do stworzenia korkowej maty do jogi. Ale wiemy, że dzięki niej możesz zacząć całkiem nowy czas w swoim życiu.\r\n\r\nĆwiczenia na niej to prawdziwy body & soul balance.\r\n\r\nZatem rusz swe "body" po naturalny zastrzyk energii i zadbaj o relaks swojej "soul". Warto wiedzieć, że mata korkowa z naturalnego kauczuku ma najlepsze właściwości antypoślizgowe.", "product_link": "https://outofthebox.pl/product/mata-do-cwiczen/", "product_image": "https://outofthebox.pl/app/uploads/2022/10/INPOST_aranzacje25.jpg", "base_price": { "net": 202.44, "gross": 249.00, "vat": 0.00 }, "promo_price": { "net": 202.44, "gross": 249.00, "vat": 0.00 }, "quantity": { "quantity": 1, "quantity_type": "INTEGER", "quantity_unit": "pcs", "available_quantity": 197485, "max_quantity": 197485 }, "product_attributes": [ { "attribute_name": "Wymiary/Pojemność", "attribute_value": "183x61 cm, 4 mm grubości" }, { "attribute_name": "Materiał", "attribute_value": "Korek i naturalny kauczuk" }, { "attribute_name": "Waga", "attribute_value": "2.6 kg" } ], "variants": [] }, { "product_id": "554", "product_category": "20", "ean": "0", "product_name": "Paryżanka", "product_description": " \r\n\r\nCzy wiesz, co tak naprawdę widzą ludzie, kiedy idziesz sobie z paryżanką?\r\n\r\nWidzą, że jesteś EKO. Nie używasz foliowych woreczków jednorazowego użytku.\r\n\r\nWidzą, że jesteś modna. W końcu Paryż to miejsce, w którym od dawna decyduje się o tym, co warto ze sobą nosić.\r\n\r\nParyżanka nie kryje się z tym, że wygląda rewelacyjnie, kiedy jest wypełniona świeżymi owocami.\r\n\r\nWidzą też, że lubisz naturalne materiały, bo paryżanka wykonana jest w 100 procentach z bawełny.\r\n\r\nI że w swoim życiu działasz zgodnie z zasadą out of the box.\r\nPo swojemu. Jak InPost.", "product_link": "https://outofthebox.pl/product/paryzanka/", "product_image": "https://outofthebox.pl/app/uploads/2022/10/INPOST_aranzacje11-1.jpg", "base_price": { "net": 23.58, "gross": 29.00, "vat": 0.00 }, "promo_price": { "net": 23.58, "gross": 29.00, "vat": 0.00 }, "quantity": { "quantity": 1, "quantity_type": "INTEGER", "quantity_unit": "pcs", "available_quantity": 468, "max_quantity": 468 }, "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" } ] }