Checkout

Accept one exact, unexpired offer and create the PayPal authorize order

POST
/api/offers/accept

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
Lengthlength <= 64
offerId*string
Lengthlength <= 128
termsHash*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"}