Creating an order
The method for creating an order
POST /v1/izi/order
Parameters - none
Request
Field name | Description | Type | Requirement status | Additional remarks |
| The data for creating an order | object | Y |
|
| Additional information about an order | string | O |
|
| Identifier of the basket assigned by the Merchant based on which the order is to be created | string | Y |
|
| Currency. Currently, only PLN | string | Y |
|
| The total estimated value of the basket along with the delivery costs | object | Y |
|
| Net | number ($decimal) | Y |
|
| Gross | number ($decimal) | Y | |
| VAT | number ($decimal) | Y | |
| The payment form chosen by the user. Enum forms available: [ CARD, CARD_TOKEN, GOOGLE_PAY, APPLE_PAY, BLIK_CODE, BLIK_TOKEN, PAY_BY_LINK, SHOPPING_LIMIT, DEFERRED_PAYMENT, CASH_ON_DELIVERY ] | string | Y |
|
| Information about the account used | object | Y |
|
| First name | string | Y |
|
| Last name | string | Y |
|
| Telephone number | object | Y |
|
| Prefix | string | Y |
|
| User's phone number | string | Y | |
| If the user logs in to InPost Pay with the use of Apple, the e-mail address of the account includes the hash assigned by Apple, and has the form of, for instance, abc@privaterelay.appleid.com. For the Merchant to communicate with the customers using this address, the Merchant's domain must be added on the InPost account in Apple. Apple limits the number of domains assigned to an account down to 100. Hence, InPost transfers the e-mail address abc@mail.inpostpay.pl to the Merchant with the same hash, but in the mail.inpostpay.pl domain. | string | Y |
|
| User's address | object | Y |
|
| Country code | string | Y |
|
| Address | string | Y | |
| City | string | Y | |
| Postal code | string | Y | |
| An object for transferring an unparsed address | object | O | |
| Street | string | O | |
| Building number | string | O | |
| Apartment number | string | O | |
| Invoice data | object | O |
|
| Legal form Enum: [PERSON, COMPANY] | string | O |
|
| Country code | string | O | |
| Id prefix | string | O | |
| tax identifier | string | O | |
| Company name | string | O | |
| First name | string | O | |
| Last name | string | O | |
| City | string | O | |
| Street | string | O | |
| Building number | string | O | |
| Apartment number | string | O | |
| Postal code | string | O | |
| string | O | ||
| Registration date | string | O | |
| Additional information | string | O | |
| Delivery Information | object | Y |
|
| Delivery method. Enum: [ APM, COURIER ] | string | Y |
|
| Selected delivery options - list | array | O |
|
| If the user logs in to InPost Pay with the use of Apple, the e-mail address of the account includes the hash assigned by Apple, and has the form of, for instance, abc@privaterelay.appleid.com. For the Merchant to communicate with the customers using this address, the Merchant's domain must be added on the InPost account in Apple. Apple limits the number of domains assigned to an account down to 100. Hence, InPost transfers the e-mail address abc@mail.inpostpay.pl to the Merchant with the same hash, but in the mail.inpostpay.pl domain. | string | O |
|
| Telephone number | object | O |
|
| Prefix | string | Y |
|
| Number | string | Y | |
| Automatic parcel locker delivery site | string | O |
|
| Delivery address | object | O |
|
| Name | string | Y |
|
| Country code | string | O |
|
| Address | string | Y |
|
| City | string | Y |
|
| Postal code | string | Y |
|
| Unparsed address | object | O |
|
| Street | string | O |
|
| Building number | string | O | |
| Premises number | string | O | |
| Notes for the courier | string | O |
|
| An object intended to transfer information related to the consents expressed by the customer for a given order | array | Y |
|
| consent Id | string | Y |
|
| Consent version | string | O |
|
| Info, whether or not the consent has been expressed | boolean | Y |
|
Response
Field name | Description | Type | Requirement status | Additional remarks |
| Order details | object | Y |
|
| Comments to an order | string | O |
|
| Order ID assigned by the Merchant | string | Y |
|
| Order ID presented to customer and used for payment. In case of lack of customer_order_id order_id will be used. | string | O |
|
| POS id | string | Y |
|
| The date of creating an order | string($date-time) | Y |
|
| The identifier of the basket, based on which the order has been created | string | Y |
|
| Selected payment type. Enum: [ CARD, CARD_TOKEN, GOOGLE_PAY, APPLE_PAY, BLIK_CODE, BLIK_TOKEN, PAY_BY_LINK, SHOPPING_LIMIT, DEFERRED_PAYMENT, CASH_ON_DELIVERY ] | string | Y |
|
| A descriptive status presented to the customer in the InPost Pay app - each Merchant may provide the status so that the statuses presented in InPost Mobile are compliant with the status presented to the client in the merchant's store. | string | Y |
|
| Order price without the delivery costs | object | Y |
|
| Net | number ($decimal) | Y |
|
| Gross | number ($decimal) | Y | |
| VAT | number ($decimal) | Y | |
| Order price with the delivery costs | object | Y |
|
| Net | number ($decimal) | Y |
|
| Gross | number ($decimal) | Y | |
| VAT | number ($decimal) | Y | |
| Value used discount coupons on order | number($decimal) | Y |
|
| Order's currency (currently, PLN only) | string | Y |
|
| List of the numbers assigned to an order's shipments | array | O |
|
| Information about the account used | object | Y |
|
| First name | string | Y |
|
| Last name | string | Y | |
| Telephone number | object | Y | |
| Prefix | string | Y | |
| User's phone number | string | Y | |
| string | Y |
| |
| User's address | object | Y |
|
| Country code | string | Y |
|
| Address | string | Y | |
| City | string | Y | |
| Postal code | string | Y | |
| Invoice data | object | O |
|
| Legal Form [PERSON, COMPANY] | string | O |
|
| Country code | string | O | |
| Id prefix | string | O | |
| tax identifier | string | O | |
| Company name | string | O | |
| First name | string | O | |
| Last name | string | O | |
| City | string | O | |
| Street | string | O | |
| Building number | string | O | |
| Apartment number | string | O | |
| Postal code | string | O | |
| string | O | ||
| Registration date | string | O | |
| Additional information | string | O | |
| Delivery Information | object | Y |
|
| Delivery method. Enum: [ APM, COURIER ] | string | Y |
|
| Delivery date | string($date-time) | Y |
|
| The options selected for a delivery | array | O |
|
| Name | string | Y |
|
| Option code | string | Y | |
| Delivery option amount | object | Y | |
| Net | number ($decimal) | Y | |
| Gross | number ($decimal) | Y | |
| VAT | number ($decimal) | Y | |
| string | O |
| |
| Telephone number | object | O |
|
| Prefix | string | Y |
|
| Number | string | Y | |
| Automatic parcel locker delivery site | string | O |
|
| Delivery address | object | O |
|
| Name | string | Y |
|
| Country code | string | Y | |
| Address | string | Y | |
| City | string | Y | |
| Postal code | string | Y | |
| Object intended to transfer information related to 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 | |
| Notes for the courier | string | O |
|
| List of the products in an order | array | Y |
|
| Product ID assigned by the merchant | string | Y |
|
| Product category assigned by the merchant | 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 a photograph of the product. Formats preferable: png, jpg (recommendation: png without background) | string | O |
|
| Additional product images. | object | O |
|
| Product image. Preferred size 360 x 352 | string | Y |
|
| Product image. Preferred size 360 x 504 | string | Y |
|
| Product's base price | object | Y |
|
| Net price | number ($decimal) (10,2) | Y |
|
| Gross Price (net + VAT) | number ($decimal) (10,2) | Y | |
| VAT | number ($decimal) (10,2) | Y | |
| Object for reporting the product quantity | object | Y |
|
| product quantity | number ($decimal)
| Y |
|
| 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 | 0 |
|
| Quantity unit of the product | string | O |
|
| Object intended to determine the product's attributes | array | O |
|
| Attribute name | string | Y |
|
| Attribute value | string | Y | |
| Object intended to transfer products' variants. Object currently not used. The functionality shall be implemented in the app's subsequent versions. | object | O |
|
| Version's Id | string | Y |
|
| Version's name | string | Y |
|
| Version's detailed description | string | O |
|
| Version's type | string | O |
|
| Version's value | string | O |
|
| An object intended to transfer information related to the consents expressed by the customer for a given order | array | Y |
|
| consent Id | string | Y |
|
| Consent version | string | Y |
|
| Info, whether or not the consent has been expressed | boolean | Y |
|
Example request
{
"order_details": {
"basket_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"currency": "PLN",
"basket_price": {
"net": 19.51,
"gross": 24,
"vat": 4.49
},
"payment_type": "BLIK_CODE"
},
"account_info": {
"name": "<secret>",
"surname": "<secret>",
"phone_number": {
"country_prefix": "+48",
"phone": "5xxxxxxxx"
},
"mail": "<secret>",
"client_address": {
"country_code": "<secret>",
"address": "<secret>",
"address_details": {
"street": "<secret>",
"building": "<secret>",
"flat": "<secret>"
},
"city": "<secret>",
"postal_code": "<secret>"
}
},
"delivery": {
"delivery_type": ""COURIER"",
"mail": "<secret>",
"phone_number": {
"country_prefix": "+48",
"phone": "5xxxxxxxx"
},
"delivery_address": {
"name": "<secret>",
"country_code": "<secret>",
"address": "<secret>",
"city": "<secret>",
"postal_code": "<secret>",
"address_details": {
"street": "<secret>",
"building": "<secret>",
"flat": "<secret>"
}
},
},
"consents": [
{
"consent_id": "3",
"consent_version": "1",
"is_accepted": true
}
]
}
Response
{
"order_details": {
"order_comments": "",
"order_id": "xxxxxxx",
"pos_id": "xxx",
"order_creation_date": "2023-08-24T09:21:59.809Z",
"basket_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"order_merchant_status_description": "Wstrzymane (oczekujące na płatność)",
"payment_type": "BLIK_CODE",
"order_base_price": {
"net": "11.38",
"gross": "14.00",
"vat": "2.62"
},
"order_final_price": {
"net": "19.51",
"gross": "24.00",
"vat": "4.49"
},
"currency": "PLN",
"delivery_references_list": [
""
]
},
"account_info": {
"name": "<secret>",
"surname": "<secret>",
"phone_number": {
"country_prefix": "+48",
"phone": "5xxxxxxxx"
},
"mail": "<secret>",
"client_address": {
"country_code": "string",
"address": "<secret>",
"address_details": {
"street": "<secret>",
"building": "<secret>",
"flat": "<secret>"
},
"city": "<secret>",
"postal_code": "<secret>"
}
},
"invoice_details": {
"legal_form": null,
"country_code": "<secret>",
"tax_id_prefix": "<secret>",
"tax_id": "<secret>",
"company_name": "<secret>",
"name": "<secret>",
"surname": "<secret>",
"city": "<secret>",
"street": "<secret>",
"building": "<secret>",
"flat": "<secret>",
"postal_code": "<secret>",
"mail": "<secret>",
"registration_data_edited": "<secret>",
"additional_information": ""
},
"delivery": {
"delivery_type": "COURIER",
"delivery_date": "2023-08-25T12:00:00.000Z",
"delivery_options": null
"mail": "<secret>",
"phone_number": {
"country_prefix": "+48",
"phone": "5xxxxxxx"
},
"delivery_point": null,
"delivery_address": {
"name": "<secret>",
"country_code": "<secret>",
"address": "<secret>",
"city": "<secret>",
"postal_code": "<secret>",
"address_details": {
"street": "<secret>",
"building": "<secret>",
"flat": "<secret>"
}
},
"delivery_price": {
"net": "8.13",
"gross": "10.00",
"vat": "1.87"
},
"courier_note": ""
},
"products": [
{
"product_id": "660",
"product_category": "17",
"ean": "0",
"product_name": "Pin Szach - Mat",
"product_description": " \r\n\r\nCzy wiesz, czym jest pin? To hasło, które idealnie do Ciebie pasuje. A czy wiesz, czym różni się pin InPost od kodu PIN do bankomatu?\r\nPinu InPost nie musisz chować przed światem. Nie musisz się bać, że ktoś Ci go zabierze, a potem wykorzysta. Pin InPost możesz nosić w miejscach publicznych i chwalić się nim przypadkowo napotkanym ludziom.\r\nDla kogo jest ten pin?\r\nDla tych, którzy lubią wygrywać, docierać do celu, stawiać na swoim. Dla tych, którzy chcą odnosić sukcesy na tyle sposobów, ile jest kombinacji szachowych.\r\nZ czego zrobiono ten pin? Wytłoczono go z miedzianej blachy i pomalowano lakierami akrylowymi.\r\n\r\nKliknij po pin -- i noś go z dumą!\r\n\r\n \r\n\r\n \r\n\r\n) opakowanie nie zawiera dumy, dumę musisz zorganizować sobie samodzielnie",
"product_link": "https://outofthebox.pl/product/pin-szach-mat/",
"product_image": "https://outofthebox.pl/app/uploads/2022/10/INPOST_packshoty27.jpg",
"base_price": {
"net": "11.38",
"gross": "14.00",
"vat": "2.62"
},
},
"quantity": {
"quantity": 1,
"quantity_type": "DECIMAL",
"quantity_unit": "pcs"
},
"product_attributes": [],
"variants": []
}
],
"consents": [
{
"consent_id": "3",
"consent_version": "1",
"is_accepted": true
}
]
}