Get Pay Later status for one order
Pay Later OpenAPI specification (version 1)
Pay Later allows shoppers to postpone the due date of an open invoice transaction between 14 and 150 days. Shoppers may use Pay Later to prevent getting dunned. It gives them the ability to plan their payments more individually. Charges apply when using this feature.
The Pay Later API enables sellers to integrate this functionality into their frontends. The Pay Later API offers endpoints to check the Pay Later status of a purchase order and to book a Pay Later option. By using the Pay Later API shops can offer their customers greater payment flexibility when paying by open invoice while keeping them inside their own frontends.
Booked Pay Later options can be withdraw within 14 days. Therefore the shopper can use one of the channels referenced in Ratepay Pay Later Terms of Use.
For each request, a valid access token must be provided in the Authorization header. See Authentication API for obtaining a valid token.
- Production environmenthttps://api.ratepay.com/order/paylater/v1/{transaction_id}/status
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://api.ratepay.com/order/paylater/v1/12-34567890123456789/status \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json'Returns Pay Later status for the given transaction_id.
Pay Later status for the current order. Possible values:
- AVAILABLE = Pay Later can be booked for the current order
- NOT_AVAILABLE = Pay Later cannot be booked for the current order
- ALREADY_BOOKED = Pay Later has been booked for the current order and cannot be booked again
- ALREADY_WITHDRAWN = Pay Later was booked and withdrawn for the current order and cannot be booked again
{ "transaction_id": "12-34567890123456789", "pay_later_status": "ALREADY_WITHDRAWN", "booking": { "fee": 1.95, "currency": "EUR", "delta_due_date": 14, "original_due_date": "2020-02-01", "updated_due_date": "2020-02-15", "booking_timestamp": "2020-02-05T16:42:59.974067+01:00", "withdrawal_date": "2020-02-06" } }
For each request, a valid access token must be provided in the Authorization header. See Authentication API for obtaining a valid token.
- Production environmenthttps://api.ratepay.com/order/paylater/v1/{transaction_id}/offers
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://api.ratepay.com/order/paylater/v1/12-34567890123456789/offers \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json'{ "transaction_id": "12-34567890123456789", "current_due_date": "2020-03-14", "pay_Later_offers": [ { … } ] }
For each request, a valid access token must be provided in the Authorization header. See Authentication API for obtaining a valid token.
- Production environmenthttps://api.ratepay.com/order/paylater/v1/{transaction_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.ratepay.com/order/paylater/v1/12-34567890123456789 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json;charset=UTF-8' \
-d '{
"offer_id": "payl-1"
}'Is returned if Pay Later has been successfully booked. The response contains the details of the booked Pay Later offer and the booking timestamp.
The amount of days that the due date of the current order is postponed, i.e. the delta that comes on top of original_due_date (e.g. 14 days). Unit: days.
The currency of the Pay Later fee, e.g. EUR (ISO 4217 alphabetic currency code, 3 chars).
The original due date before Pay Later had been booked for the current order (ISO 8601, YYYY-MM-DD).
The new due date after booking Pay Later (ISO 8601, YYYY-MM-DD). This is original_due_date + delta_due_date.
{ "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" }