Get Amazon checkout information
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.
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
groups 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.
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.
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 optional