Pay
A booking that costs money needs a way to pay. This page shows the four ways to send one, and the rule that a booking takes exactly one.
Four ways to pay
You choose how the card reaches the site. Send one of these on POST /v3/bookings, never two.
card (or payment)payment_collection: "link"payment_collection: "link_wallet" with link_wallet.access_tokenauthorize.payment: "account_on_file"A card is typed only at commit. A booking at begin stops at the payment step with no card typed. A card is never sent back in any response.
An order needs a ceiling, authorize.max_total with authorize.currency, whichever way it is paid, and so does a booking on a site whose booking may charge a fee. See Order from a store. A reservation's own card (dining, hotels, classes) needs none. Paying with the person's account always needs one, on any kind of booking.
max_total is in the currency's own units: 128 means $128.00. amount_cents on a booking is in minor units: 12800 is $128.00.
Send a card
Put the card and its billing address in card. The billing address goes here, never in customer. customer.address is where an order ships.
numberexpMM/YYcvvnamestreet_address, address_line2, city, state, postal_code, countrypayment takes the same card under other names: card_number, exp_month, exp_year (a four-digit year is shortened), exp, cvv, name_on_card, address_line1, address_line2, city, state, postal_code, country. If you send both, they are merged field by field and card wins.
The answer is the booking, with no card in it. What an order's answer carries is on Order from a store.
Send a payment link
Use a link when the cardholder should type the card themselves. Send payment_collection: "link" and no card. Nothing is driven yet. You get a page for the cardholder, and the booking starts once they enter the card there.
The answer is 202, a pause that waits for the card:
pay_urlpay_expires_atresumable: falsePOST /v3/bookings/{attempt_id}/continue. There is no code to send.booking_idGET /v3/bookings/{booking_id} for the outcome. While the order is being placed it reads processing.A link is only for a booking at commit, because below commit no card is typed. It is held to the same ceiling a card would be, so an order by link needs authorize.max_total. The pay page accepts at most 15 card submissions from one IP address in 5 minutes.
To pay from the person's Link wallet instead, send payment_collection: "link_wallet", no card, and link_wallet: access_token (the person's Link access token, scope payment_methods.agentic) and optionally test: true for Link's test mode. It is only for commit, and it always needs authorize.max_total and authorize.currency, at most 500 USD: that is the amount the person approves and the one-time card's cap. The answer is a 202 pause with challenge_type: "link_wallet_approval", resumable: false, and Link's approval page in pay_url, live for 32 minutes (pay_expires_at). Give it to the person. Once they approve, the booking is driven with Link's card and reads processing; read GET /v3/bookings/{booking_id} for the outcome.
Pay with the person's account
If the person has connected their own account on the site, the booking can sign in as them and pay with the card that account holds. Connect the account first: see Use a person's own account.
authorize.payment: "account_on_file"authorize.sign_in: trueauthorize.fill_identity: trueend_userauthorize.max_totalaccount_on_file on any kind of booking. The total is checked against it before the order is placed.authorize.currencymax_total, such as USD.On the person's account an order can also press the item's own "Buy Now" (authorize.buy_now). It needs max_commitment: "commit" sent in the request: the default does not count. See Order from a store.
What can go wrong
In every case below, nothing was attempted and no card was typed.
400 card_with_payment_link400 card_with_link_wallet400 field card or payment_collectionaccount_on_file with a card or a link. Send one way to pay.400 field payment_collection"link" or "link_wallet". Send one of those or leave it out.400 field link_wallet or link_wallet.access_tokenlink_wallet without payment_collection: "link_wallet", or "link_wallet" without an access token.400 field authorize.payment"account_on_file".400 field authorize.sign_in, authorize.fill_identity, end_user, authorize.max_total or authorize.currencyaccount_on_file is missing what it needs. It needs all of these on any kind of booking. detail says what to send.400 invalid_inputcommit. Both are only for commit.422 max_total_requiredauthorize.max_total and authorize.currency. See Order from a store.link_wallet_amount_over_limitauthorize.max_total is over Link's 500 USD per purchase. Pay another way.payment_link_expiredlink_wallet_expiredpayment_link_unavailablelink_wallet_unavailableThe account refusal names the missing field:
A failure after the card was typed is a different matter. card_declined means the store declined the card and placed no order. not_confirmed_after_otp and transaction_status_unknown mean it may have booked: never resend, tell the person, and check with the site. For any other code at commit, read GET /v3/bookings/{booking_id} and check with the site before you book again. See Handle errors.
Next: Order from a store.