Check out Amazon cart
Input
address optionalThe delivery address as the account lists it: the recipient's name, then the address line (for example Jane Doe, 12 Main Street). It must match exactly one of the account's addresses; otherwise nothing is ordered and the run fails with the list. Omit it to keep Amazon's choice. Pass the same value to the review and to the order.
payment optionalThe last 4 digits of the card to pay with. It must match exactly one card of the account; otherwise nothing is ordered and the run fails with the cards. Omit it to keep Amazon's choice. Pass the same value to the review and to the order.
place_order optionalfalse: order nothing and return the checkout with its review_hash. true: place the order, which needs review_hash.
Default: falsereview_hash optionalRequired with place_order true. The review_hash of the checkout you reviewed. The order is placed only if the checkout still has the same hash (same recipient, address, payment method, items, delivery options and total); otherwise nothing is ordered and the run fails with the checkout as it is now.
delivery_option optionalThe id of a delivery option from delivery_options of a review (for example premium-next-fr), chosen in every delivery group. If a group does not offer it, nothing is ordered and the run fails with the options offered. Omit it to keep Amazon's choice. Pass the same value to the review and to the order.
Output
url requiredCheckout page URL (stage checkout), or the confirmation or payment verification page URL (stage ordered).
stage requiredgroups requiredThe checkout's delivery groups: the items that ship together, with their delivery options.
totals requiredOrder summary lines in page order; the last one is the order total. type is Amazon's own line code (for example ITEMS_TAX_EXCLUSIVE), null for the total.
order_ids requiredOrder numbers created by this purchase (one checkout can split into several orders), as shown in Your Orders. Pass one to Cancel Amazon order.
review_hash requiredHash of the recipient, address, payment method, items, selected delivery options and order total shown. Pass it to place the order: the order is placed only while the checkout has the same hash.
checkout_url requiredURL of the checkout page that was read.
payment_verification_required requiredTrue when the card issuer asked the cardholder to verify the payment (for example in their bank app) instead of showing the confirmation page. The order exists but waits for that approval.
address optionalDelivery address the checkout uses.
payment optionalPayment method the checkout uses, as displayed (for example Paying with Mastercard 1234).
recipient optionalWho receives the order, as the checkout shows it (for example Deliver to Jane Doe).
order_total optionalpurchase_id optionalAmazon's id for the checkout itself; not an order number.
