GET /payment-gateways/methods lists the active payment methods, 100 per page.currency to get the methods of one currency.id as payment_method_id below, and pick a method in the reservation currency.POST /car-rental/reservations/confirm:| Field | Meaning |
|---|---|
return_payment_link | 1 to start an online payment. Leave the field out when you do not want one: even the string false starts a payment. |
payment_method_id | The method to pay with. If it does not match an available method, the first available one is used. |
payment_external_redirect | Where the customer goes after paying. |
set_amount_to_pay_online_from_settings | 1 to charge the online amount from your settings instead of the outstanding balance. |
data.transaction with the transaction uuid and the payment_link to send the customer to.data.transaction is missing when no payment method of the branch fits the booking, for example none in the reservation currency.item_type, item_id, payment_method_id, amount and external_redirect (a full URL) are required.payment_gateways_transaction; send the customer to its external_url.amount.GET /payment-gateways/payment-transactions/{uuid}/uuid returns the transaction; its status becomes paid once the payment is approved.Created webhook (see Webhooks).POST /car-rental/reservations/{reservation_id}/payments/charge-credit-card with amount charges a card the customer saved before, for example during an online booking.GET /payment-gateways/credit-cards?contact_type=contacts&contact_id=55 lists the saved cards of contact 55; send one id as preferred_card_id to try it first."success": true even when no card was charged.data.result: payment_approved, payment_declined, or payment_request_sent when you sent send_payment_request=1 and the customer has an email.skip_payment_email and skip_payment_request_email act on presence: any value turns them on, even 0.authorization=1 to the charge-credit-card request to hold amount instead of charging it.skip_* flags it acts on presence: any value, even 0, places a hold, so leave it out to charge.POST /car-rental/reservations/{reservation_id}/payments/online-security-deposit-refund with refunded_amount, the amount to give back.POST /car-rental/reservations/{reservation_id}/payments/{id}/security-deposit-refund with amount_to_refund.POST /car-rental/reservations/{reservation_id}/payments records a cash, bank transfer or other offline payment without charging anything.field_<id> (see Custom fields and item types).send_confirmation_email=1 or 0 to choose whether the customer gets a receipt; without it, your account default applies.GET /car-rental/reservations/{reservation_id}/payments lists every payment of the reservation, including holds and online payments with their transaction.POST /payment-gateways/payment-transactions/{id}/refund with refunded_amount refunds an online payment through its gateway.id from the reservation's payments.metadata as the JSON string {"payment_id": 812} with the id of that payment, so the refund is also recorded on the reservation; without it the card is refunded but the reservation still shows the payment."success": false with the reason in errors.error.POST /car-rental/reservations/{reservation_id}/refunds records a refund made outside HQ.field_<id>; add send_confirmation_email=1 to email the customer.