pay_order
Charge an unpaid Ozon order and give the next step: pay the amount due, top up the card by any shortfall, then finish at the provided payment URL.
Instructions
[GATED] Ask Ozon to charge an order left in «Ожидаем оплаты», and report
what the user must still do.
The result spells it out: amount_due is the charge, shortfall is set when
the Ozon Card balance does not cover it (top up by that much), and
next_step is the instruction to relay. payment_url is where the payment
is completed — that page signs the account in to Ozon Bank, which is the
owner's step, so this server never finishes the charge itself.
Tell the user plainly: top up by shortfall if present, then finish at
payment_url. Ordering with pay-on-delivery avoids all of it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order | Yes | An order number ("44563249-0877") — the order_number field of a list_orders() entry. Its detail_link is accepted too, since the number is encoded in it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detail | No | ||
| next_step | No | ||
| shortfall | No | ||
| amount_due | No | ||
| payment_url | No | ||
| order_number | Yes | ||
| needs_bank_passcode | No |