Confirming the binding of a basket
This method passes information whether the basket has been linked. If the user successfully confirms that the basket has been linked in the InPost Pay application, in order to complete the process the Merchant must pass the details of the basket in response.
If details of the basket are not passed or incorrect details are passed in the response, the basket will not be linked.
For this method, we require the implementation of all the fields listed in the table, as they make up the entirety of the InPost Pay service. Some of the following fields in the 'Required' column are marked as 'O', i.e. optional, due to the fact that not all products/baskets in online stores have all parameters assigned, so a basket can be created and an order placed without them. However, the implementation/deployment of all fields is REQUIRED from a business perspective.
POST /v1/izi/basket/{basket_id}/confirmation
Parameters
Field name | Description | Type | Requirement status | Additional remarks |
| Basket's unique ID assigned by the Merchant | string | Y |
|
Request
Field name | Description | Type | Requirement status | Additional remarks |
| Authorization status for basket linking by the user in the application
| string | O |
|
| Basket identifier assigned by the InPost Pay app. Value not used by the Merchant. Identifier will ultimately be used by the widget to enable proper redirection from the widget to the InPost Pay app
| string | O |
|
| Information about the user number to which the basket will be linked | object | O |
|
| Prefix | string | Y |
|
| Phone number | string | Y | |
| Browser information | object | O |
|
| Flag indicating whether the browser has been added to trusted | boolean | Y |
|
| The trusted browser ID assigned by InPost Pay. Returned when | string | O | |
| Masked phone number | string | O |
|
| First name of the InPost Pay app user | string | O |
|
| Surname of the InPost Pay app user | string | O |
|
Response
Field name | Description | Type | Requirement status | Additional remarks |
| Object used to provide basic details about the basket | object | Y |
|
| Object used to pass the base price for the basket without delivery costs | object | Y |
|
| Net price | number ($decimal) (10,2) | Y |
|
| Gross price (net + VAT) | number ($decimal) (10,2) | Y | |
| VAT | number ($decimal) (10,2) | Y | |
| An object used to pass the final price of a basket with a promotion and discount code included on the basket, without delivery costs. | object | O |
|
| Net price | number ($decimal) (10,2) | Y |
|
| Gross price (net + VAT) | number ($decimal) (10,2) | Y | |
| VAT | number ($decimal) (10,2) | Y | |
| An object for passing the price of a basket with a promotion included for the basket, but without an applied discount code and without delivery costs. | object | O |
|
| Net price | number ($decimal) (10,2) | Y |
|
| Gross price (net + VAT) | number ($decimal) (10,2) | Y | |
| VAT | number ($decimal) (10,2)
| Y | |
| Functionality using the object available in future versions of the application. | boolean | O |
|
| Basket currency. The only currency currently supported is PLN | string | Y |
|
| Basket expiration/validity date. This is the date after which the basket will be automatically removed from the InPost Pay app (will expire). The date cannot be a past date. | string($date-time) | O |
|
| This field is used to provide additional information about the basket that, from the Merchant's point of view, may be relevant to the customer | string | O |
|
| A mandatory object defining the payment methods for the basket. The merchant passes | array | Y |
|
| Object with additional information about the basket that the Merchant wants to provide to the customer in the InPost Pay app | object | O |
|
| Type of information. There are two types of information based on which the application will present the appropriate format of the message Enum: [
| string | Y |
|
| The contents of the message presented to the customer in the InPost Pay app for the relevant notice.type | string | Y |
|
| An object used to pass additional basket parameters that are saved in the basket details during basket creation/update. The Merchant can use this object, for example, to save parameters that will enable identification/association of the basket with a campaign. Additional parameters are not displayed in the application. | array | O |
|
| Key | string | Y |
|
| Value | string | Y |
|
| An object used to provide information about the preferred delivery options for the relevant basket | array | Y |
|
| Delivery option. Enum:[ APM, COURIER, DIGITAL ]. APM – automated parcel machine, COURIER – InPost courier service | string | Y |
|
| Suggested delivery date | string($date-time) | Y |
|
| An object used to pass information about additional delivery options. Currently, two additional delivery options are available:
If the |
| O |
|
| Name of additional delivery option | string | Y |
|
| Additional delivery option code. Currently, there are two codes available:
| string | Y |
|
| An object used to pass information about the cost of additional delivery option | object | Y |
|
| Net price | number ($decimal) (10,2) | Y |
|
| Gross price (net + VAT) | number ($decimal) (10,2) | Y | |
| VAT | number ($decimal) (10,2) | Y | |
| An object used to provide information about the cost of delivery | object | Y |
|
| Net price | number ($decimal) (10,2) | Y |
|
| Gross price (net + VAT) | number ($decimal) (10,2) | Y | |
| VAT | number ($decimal) (10,2) | Y | |
| Minimum basket value starting from which the cost of delivery will be PLN 0 | number ($decimal) (10,2) | O |
|
| List of promotional codes applied to the basket | array | O |
|
| Code name. This field is not required in the next version of the application. | string | Y |
|
| The type of regulation or restriction to which the promo code is subject. NOTE: Where the promo code is a code within the meaning of the OMNIBUS Directive, then the “OMNIBUS” value should be passed. | string | Y |
|
| Promo code | string | O |
|
| A list of available promo codes that customers can apply to the basket. | array | O |
|
| Code type: ONLY_IN_APP – code available only in the InPost Pay app (ONLY IN APP). | string | Y | |
| Code value, e.g. DELIVERY | string | Y | |
| Code description Max: 60 characters | string | Y | |
| Start date on which the promo code becomes effective | string($date-time) | O | |
| End date on which the promo code becomes ineffective | string($date-time) | O | |
| Code priority | integer | O | |
| Promo code details | object | Y | |
| Link to details of the promo code information in the merchant's store. | string | Y | |
| List used to pass information about products in the basket | array | Y |
|
| Product ID assigned by the Merchant | string | Y |
|
| Product category assigned by the Merchant | string | O |
|
| A non-mandatory field specifying the product type. Assumes value: · PRODUCT - physical product · DIGITAL - digital product. If the value is null, the application implicitly assumes that the product is physical. | string | O |
|
| Ean | string | O |
|
| Product name | string | Y |
|
| Product description | string | O |
|
| Link to the product on the Merchant’s website | string | O |
|
| Link to product photo. Preferred formats: png, jpg (recommendation: png without background) | string | O |
|
| An object used for providing additional product photos (list). The maximum number of photos is 10 (10 objects { "normal_size": "string", "small_size": "string" } ) | object | O |
|
| Product photo. Preferred size 360 x 352 | string | Y |
|
| Product photo. Preferred size 360 x 504 | string | Y |
|
| Base price of the product | object | Y |
|
| Net price | number ($decimal) (10,2) | Y |
|
| Gross price (net + VAT) | number ($decimal) (10,2) | Y | |
| VAT | number ($decimal) (10,2) | Y | |
| Promotional price of the product | object | O |
|
| Net price | number ($decimal) (10,2) | Y |
|
| Gross price (net + VAT) | number ($decimal) (10,2) | Y | |
| VAT | number ($decimal) (10,2) | Y | |
| An object used to pass the lowest price of the product over the last 30 days. Required for compliance with the Omnibus Directive. It is mandatory to pass the object, if the promotional price of the product was passed (promo_price object) and the promo code with "regulation_type": "OMNIBUS" was passed. | object | O |
|
| Net price | number ($decimal) (10,2) | Y |
|
| Gross price (net + VAT) | number ($decimal) (10,2) | Y | |
| VAT | number ($decimal) (10,2) | Y | |
| An object used to pass information about the quantity of the product | object | Y |
|
| Product quantity | number ($decimal) | Y |
|
| Type of quantity field. Available values: [DECIMAL, INTEGER] If the · Example 1) We have 5 shirts at a price of PLN 10 per piece. In this case · Example 2) We have 0.35 kg of flour at a price of PLN 5. In this case, | string | Y |
|
| Product quantity unit | string | O |
|
| Quantity of the product available in the store | number ($decimal) | O |
|
| Functionality using the object available in future versions of the application The minimum quantity of a product that a customer can order, e.g. in a single order | number ($decimal)
| O |
|
| The maximum quantity of a product that a customer can order, e.g. in a single order | number ($decimal) | O |
|
| Functionality using the object available in future versions of the application Quantity jump value when the customer increases/decreases the quantity of the product (e.g. 0.1 or 0.5 or 0.01) | number ($decimal) | O |
|
| An object used to specify product attributes | array | O |
|
| Attribute name | string | Y |
|
| Attribute value | string | Y | |
| An object used to pass information about the available delivery options for a product. If there is no delivery_product object, it means that all delivery options are available | array | O |
|
| Delivery option. Enum:[ APM, COURIER, DIGITAL ]. APM – automated parcel machine, COURIER – InPost courier service | string | O |
|
| Flag indicating whether the type of delivery is available | boolean | O |
|
| An object used to pass a list of suggested products for the relevant basket, which the customer can add from the InPost Pay application | array | O |
|
| Product ID assigned by the Merchant | string | Y |
|
| Product category assigned by the Merchant | string | O |
|
| A non-mandatory field specifying the product type. Assumes value: · PRODUCT - physical product · DIGITAL - digital product. If the value is null, the application implicitly assumes that the product is physical. | string | O |
|
| Ean | string | O |
|
| Product name | string | Y |
|
| Product description | string | O |
|
| Link to the product on the Merchant’s website | string | O |
|
| Link to product photo. Preferred formats: png, jpg (recommendation: png without background) | string |
|
Formats preferable: png, jpg (recommendation: png without background) |
| An object used for providing additional product photos (list). The maximum number of photos is 10 (10 objects { "normal_size": "string", "small_size": "string" } ) | object | O |
|
| product photo. Preferred size 360 x 352 | string | Y |
|
| product photo. Preferred size 360 x 504 | string | Y |
|
| Base price of the product | object | Y |
|
| Net price | number ($decimal) (10,2) | Y |
|
| Gross price (net + VAT) | number ($decimal) (10,2) | Y | |
| VAT | number ($decimal) (10,2) | Y | |
| Promotional price of the product | object | O |
|
| Net price | number ($decimal) (10,2) | Y |
|
| Gross price (net + VAT) | number ($decimal) (10,2) | Y | |
| VAT | number ($decimal) (10,2)
| Y | |
| An object used to pass the lowest price of the product over the last 30 days. Required for compliance with the Omnibus Directive. It is mandatory to pass the object, if the promotional price of the product was passed (promo_price object) and the promo code with "regulation_type": "OMNIBUS" was passed. | object | O |
|
| Net price | number ($decimal) (10,2) | Y |
|
| Gross price (net + VAT) | number ($decimal) (10,2) | Y | |
| VAT | number ($decimal) (10,2)
| Y | |
| An object used to pass information about the quantity of the product | object | Y |
|
| Product quantity | number ($decimal) | Y |
|
| Type of quantity field. Available values: | string | Y |
|
| Product quantity unit | string | O |
|
| Quantity of the product available in the store | number | O |
|
| Functionality using the object available in future versions of the application The minimum quantity of a product that a customer can order, e.g. in a single order | number ($decimal) | O |
|
| The maximum quantity of a product that a customer can order, e.g. in a single order | number | O |
|
| Functionality using the object available in future versions of the application Quantity jump value when the customer increases/decreases the quantity of the product (e.g. 0.1 or 0.5 or 0.01) | number ($decimal) | O |
|
| An object used to specify product attributes | array | O |
|
| Attribute name | string | Y |
|
| Attribute value | string | Y |
|
| An object used to pass information about the available delivery options for a product. If there is no delivery_product object, it means that all delivery options are available | array | O |
|
| Delivery option. Enum:[ APM, COURIER, DIGITAL ]. APM – automated parcel machine, COURIER – InPost courier service | string | O |
|
| Flag indicating whether the type of delivery is available | boolean | O |
|
| A flag indicating whether the customer will have free delivery when the suggested product is added to the basket. Where if_delivery_free=true applies to the relevant suggested product, the customer will be presented with an appropriate message on that product. | boolean | O |
|
| An object used to pass a list of consents for the relevant basket. | array | Y |
|
| Consent ID assigned by the Merchant | string | Y |
|
| A link redirecting to the full wording of the consent, e.g. to the Merchant’s website | string | Y |
|
| Label for the link passed in consent_link, no more than 500 characters | string | O |
|
| An object used to pass an additional link to the consent/regulations | object | O |
|
| Consent ID assigned by the merchant | string | O |
|
| A link redirecting to the full wording of the consent, e.g. to the merchant’s website | string | O |
|
| Label for the link passed in consent_link, no more than 500 characters | string | O |
|
| A description of the consent, not more than 500 characters | string | Y |
|
| Consent version | string | Y |
|
| Consent type. Available values: Enum: [
| string | Y |
|
| An object used to pass the customer's basket cookie to enable the transition from the InPost Pay app to the basket in the merchant's store | object | O |
|
| store URL | string | Y |
|
| An object used to pass cookies | array | Y |
|
| The domain of the cookie file represented by the key-value pair | string | Y |
|
| Cookie key | string | Y |
|
| Cookie value | string | Y |
|
| Cookie path | string | Y |
|
| Cookie expiration time or maxAge | string($date-time) | O |
|
| Information about cookie security | boolean | O |
|
| Cookie http information | boolean | O |
|
| sameSite cookie information [ STRICT, LAX, NONE ] | string | O |
|
| Cookie priority [ LOW, MEDIUM, HIGH ] | string | O |
|
| Maximum cookie time | integer($int32) | O |
|
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": [],
"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"
}
]
}