Checkout
Accept one exact, unexpired offer and create the PayPal authorize order
Requires the driver's explicit consent (consent: true) and the termsHash the driver saw; tampered or expired
terms are refused. Returns the PayPal approval link. Nothing is authorized or charged until the buyer approves in PayPal.
Request Body
application/json
quoteSetId*string
Length
length <= 64offerId*string
Length
length <= 128termsHash*string
Match
^[0-9a-f]{64}$consent*boolean
Must be true (the driver's explicit consent to these exact terms); any other value is refused.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/api/offers/accept" \ -H "Content-Type: application/json" \ -d '{ "quoteSetId": "string", "offerId": "string", "termsHash": "string", "consent": true }'{ "reservationId": "string", "approveUrl": "string", "providerMode": "PAYPAL_SANDBOX"}Request priced charging offers for one port and night POST
Creates the driver session cookie if absent. Each offer carries exact terms and their SHA-256 `termsHash`, which accept must echo.
PayPal return URL. Authorizes the approved order, then redirects to the reservation GET
PayPal return URL. Authorizes the approved order, then redirects to the reservation.