Postback after payment

Postback schema

{ "id": "f1c86ec3-45ff-4bde-a428-37f49bcde530", "status": "paid", "paytype": "cash_on_delivery", "created_at": "2025-03-10T15:56:29.169+02:00", "metadata": { "lol": "kek", "marketing_block_en": "Get bonus with visa card!", "marketing_block_uk": "Оплачуй карткою Visa та отримуй бонус!Оплачуй карткою Visa та отримуй бонус!" }, "client_first_name": "Іван", "client_last_name": "Іваненко", "client_patronymic": "Іванович", "client_phone": "+380111111111", "external_id": null, "amount": 53, "delivery": { "recipient_city": "526b41b7-f344-48ad-becf-17544ff460e5", "recipient_warehouse": "526b41b7-f344-48ad-becf-17544ff460e6", "recipient_phone": "+380222222222", "recipient_last_name": "Андрієнко", "recipient_first_name": "Андрій", "recipient_patronymic": "Андрійович" }, "products": [ { "count": 1, "image": "https://i.pinimg.com/736x/a3/b9/ca/a3b9cab8583db63b6eadcd7e9746cba6.jpg", "price": 17, "description": "Заліпуха" }, { "count": 2, "image": "https://i.pinimg.com/736x/68/e5/24/68e52437158ced28ada0afc77582eb3f.jpg", "price": 18, "description": "Плащ-пальто" } ] }

Parameter values

CodeRequiredDescription
idYesUnique session identifier.
statusYesPayment status are described here (e.g., paid, holded, etc.).
paytypeYesPayment method (cash_on_delivery, card, applepay, etc.).
created_atYesTransaction timestamp in ISO8601 format.
metadataNoAdditional session metadata.
client_first_nameYesClient's first name.
client_last_nameYesClient's last name.
client_patronymicNoClient's middle name.
client_phoneYesClient's phone number.
external_idNoExternal order identifier.
amountYesOrder amount.
deliveryYesDelivery information object.
recipient_cityYesRecipient's city identifier.
recipient_warehouseYesRecipient's warehouse identifier.
recipient_phoneYesRecipient's phone number.
recipient_last_nameYesRecipient's last name.
recipient_first_nameYesRecipient's first name.
recipient_patronymicNoRecipient's middle name.
productsYes (if products exist)List of ordered products.
countYes (if products exist)Quantity of product units.
imageNoURL of the product image.
priceYes (if products exist)Price per unit of product.
descriptionYes (if products exist)Product description.

Postback after creating the express waybill

Postback schema

{ "id": "f1c86ec3-45ff-4bde-a428-37f49bcde530", "status": "paid", "paytype": "cash_on_delivery", "created_at": "2025-03-10T15:56:29.169+02:00", "metadata": { "lol": "kek", "marketing_block_en": "Get bonus with visa card!", "marketing_block_uk": "Оплачуй карткою Visa та отримуй бонус!Оплачуй карткою Visa та отримуй бонус!" }, "client_first_name": "Іван", "client_last_name": "Іваненко", "client_patronymic": "Іванович", "client_phone": "+380111111111", "external_id": null, "amount": 53, "delivery": { "express_waybills": [ "200013123123" ], "recipient_city": "526b41b7-f344-48ad-becf-17544ff460e5", "recipient_warehouse": "526b41b7-f344-48ad-becf-17544ff460e6", "recipient_phone": "+380222222222", "recipient_last_name": "Андрієнко", "recipient_first_name": "Андрій", "recipient_patronymic": "Андрійович" }, "products": [ { "count": 1, "image": "https://i.pinimg.com/736x/a3/b9/ca/a3b9cab8583db63b6eadcd7e9746cba6.jpg", "price": 17, "description": "Заліпуха" }, { "count": 2, "image": "https://i.pinimg.com/736x/68/e5/24/68e52437158ced28ada0afc77582eb3f.jpg", "price": 18, "description": "Плащ-пальто" } ] }

Parameter values

CodeRequiredDescription
idYesUnique session identifier.
statusYesPayment status are described here (e.g., paid, holded, etc.).
paytypeYesPayment method (cash_on_delivery, card, applepay, etc.).
created_atYesTransaction timestamp in ISO8601 format.
metadataNoAdditional session metadata (e.g., marketing messages).
client_first_nameYesClient's first name.
client_last_nameYesClient's last name.
client_patronymicNoClient's middle name.
client_phoneYesClient's phone number.
external_idNoExternal order identifier.
amountYesOrder amount.
deliveryYesDelivery information object.
express_waybillsYesList of express waybill identifiers.
recipient_cityYesRecipient's city identifier.
recipient_warehouseYesRecipient's warehouse identifier.
recipient_phoneYesRecipient's phone number.
recipient_last_nameYesRecipient's last name.
recipient_first_nameYesRecipient's first name.
recipient_patronymicNoRecipient's middle name.
productsYes (if products exist)List of ordered products.
countYes (if products exist)Quantity of product units.
imageNoURL of the product image.
priceYes (if products exist)Price per unit of product.
descriptionYes (if products exist)Product description.

Postback for failed express waybill creation

Postback schema

{ "id": "a975af0f-4ef1-459e-8ff6-ad884ca768f6", "status": "paid", "paytype": "cash_on_delivery", "created_at": "2025-03-12T19:00:25.468+02:00", "metadata": { "lol": "kek", "marketing_block_en": "Get bonus with visa card!", "marketing_block_uk": "Оплачуй карткою Visa та отримуй бонус!Оплачуй карткою Visa та отримуй бонус!", "ew_fail_reason": [ "Warehouse with this Ref is not exist", "Empty RecipientAddressName or ServiceType should be to Doors", "Counterparty creation problem. RecipientName incorrect", "Recipient counterparty person creation problem.", "RecipientsPhone invalid format", "AfterpaymentOnGoodsCost is unavailable" ] }, "client_first_name": "Іван", "client_last_name": "Іваненко", "client_patronymic": "Іванович", "client_phone": "+380111111111", "external_id": null, "amount": 53, "delivery": { "recipient_city": "526b41b7-f344-48ad-becf-17544ff460e5", "recipient_warehouse": "526b41b7-f344-48ad-becf-17544ff460e6", "recipient_phone": "+380222222222", "recipient_last_name": "Андрієнко", "recipient_first_name": "Андрій", "recipient_patronymic": "Андрійович" }, "products": [ { "count": 1, "image": "https://i.pinimg.com/736x/a3/b9/ca/a3b9cab8583db63b6eadcd7e9746cba6.jpg", "price": 17, "description": "Заліпуха" }, { "count": 2, "image": "https://i.pinimg.com/736x/68/e5/24/68e52437158ced28ada0afc77582eb3f.jpg", "price": 18, "description": "Плащ-пальто" } ] }

Parameter values

ParameterRequiredDescription
idYesUnique session identifier.
statusYesPayment status (paid, holded, etc.).
paytypeYesPayment method (cash_on_delivery, card, applepay, etc.).
created_atYesDate and time of transaction creation.
metadataNoAdditional session metadata.
lolNoAdditional value.
marketing_block_enNoMarketing block in English.
marketing_block_ukNoMarketing block in Ukrainian.
ew_fail_reasonNoList of possible delivery failure reasons.
client_first_nameYesClient's first name.
client_last_nameYesClient's last name.
client_patronymicNoClient's patronymic (middle name).
client_phoneYesClient's phone number.
external_idNoExternal order identifier.
amountYesOrder amount.
deliveryYesDelivery information.
recipient_cityYesRecipient's city identifier.
recipient_warehouseYesRecipient's warehouse identifier.
recipient_phoneYesRecipient's phone number.
recipient_last_nameYesRecipient's last name.
recipient_first_nameYesRecipient's first name.
recipient_patronymicNoRecipient's patronymic (middle name).
productsYesList of products in the order.
countYes (if products exist)Quantity of product units.
imageNoProduct image URL.
priceYes (if products exist)Price per unit of product.
descriptionYes (if products exist)Product description.