Book a Pay Later offer for one order
Content-Type required | string Example: application/json |
Authorization required | string For each request, a valid access token must be provided in the Authorization header. See Authentication API for obtaining a valid token. |
Is returned if Pay Later has been successfully booked. The response contains the details of the booked Pay Later offer and the booking timestamp.
Is returned if the request body contains an unknown offer_id or the offer_id parameter is missing.
Is returned if the transaction_id is unknown.
Is returned if this endpoint is called with a request method other than GET.
Is returned if the request accept header does not specify JSON as an accepted content type for the response.
Is returned if Pay Later is not available, has already been booked or has been withdrawn or the selected offer is not available for the given transaction_id. To avoid this error, check with the Pay Later status endpoint whether Pay Later is available for the order before calling this endpoint.
Is returned if the request is too large, e. g. a very large offer_id is set as the payload. This error cannot happen if an offer_id returned by the Pay Later Offers endpoint is used.
Is returned if the request does not contain content type headers or if the request content type is anything other than JSON.
Is returned in case of a technical server error at Ratepay. Try again later.
{- "offer_id": "payl-1"
}
{- "delta_due_date": 14,
- "fee": 1.95,
- "currency": "EUR",
- "original_due_date": "2020-03-14",
- "new_due_date": "2020-03-28",
- "booking_timestamp": "2020-03-13T16:42:59.974067+01:00"
}