get_checkout
Retrieve checkout for selected cart items, showing payment methods, delivery options, shipment details, and totals. If unavailable, it identifies the issue, such as missing item selection.
Instructions
The order being formed from the selected cart items, with everything that
can be changed: payment methods (each with its payment_type), the
pay-on-delivery switch, one entry per destination in deliveries (each with
its shipments in split_keys and its selectable pickup_points), the
shipments with their delivery dates, points choices and the money
breakdown — totals.total is what Ozon charges today (0 ₽ on a fully
deferred order) and totals.order_total is what the order costs.
Pay-on-delivery does not always cover the whole order. pay_after_receipt
.scope is one of "full", "partial" (some items must be paid up front:
prepayment_amount now, post_payment_amount on receipt) or "none", and .note
states it in words. On a partial order pay_now_items and pay_on_receipt_items
name the lines on each side, as Ozon itself splits them, and the shipments
are loaded with their items, each carrying prepaid (null when it holds
items from both sides). shipment_items forces that loading on (true) or off
(false); by default it happens only when scope is "partial".
Forms the checkout itself if Ozon has not yet. If it reports
available=false, reason says what to fix — usually: select cart items.
Change it with configure_checkout, submit with place_order.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| shipment_items | No | Force loading each shipment's items on (true) or off (false); default loads them only when the order is split between prepaid and deferred parts. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| points | No | ||
| reason | No | ||
| totals | No | ||
| available | No | ||
| shipments | No | ||
| deliveries | No | ||
| installment | No | ||
| payment_options | No | ||
| pay_after_receipt | No | ||
| place_order_action | No |