Skip to main content
Read amounts from the *_money fields in this command’s output, such as total_amount_money, items[].price_money and agent_spt_params.max_amount_money. Each carries value in minor units with its decimal_places: divide value by 10 ** decimal_places, or show display. To mint a Shared Payment Token, pass agent_spt_params.max_amount_money.value unchanged. The older total_amount and items[].price are deprecated and hold major units; the deprecated agent_spt_params.max_amount holds minor units. See Money & prices.
Finalize a trip for payment. Use it once the trip is set and traveler details are filled in, for example after the user picks a Paris to Tokyo round trip and adds a hotel for the stay. The response carries two payment paths: checkout_url is what a human opens in a browser to pay, and agent_spt_params (max amount, currency, profile) is what an agent uses to mint a Shared Payment Token and pay programmatically via agent-pay submit.

Usage

Options