The Order Status API enables merchants to provide their customers and service agents with Ratepay's payment details at any customer contact point. This allows the merchant to remain the face to customers while gaining additional supplier services. The Order Status API is built around RESTful principles. It is HTTPS-based and uses JSON as the request and response format. It delivers standard HTTP response types.
Order Status OpenAPI specification (version 1)
http://api.ratepay.com/
Comma separated list of strings. Each string identifies one block of information (e.g. basket information) that should be included in the response. If this parameter is missing, only basic order information are returned.
Allowed values are (use comma to request more than one):
payment_statuspayment_methoddunning_statusbasketall= include all available data
For each request, a valid access token must be provided in the Authorization header. See Authentication API for obtaining a valid token.
- Production environment
http://api.ratepay.com/order/status/v2/transactions/{transaction-id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'http://api.ratepay.com/order/status/v2/transactions/12-3456789123456789?include=all' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json'{ "general_order_information": { "transaction_id": "12-3456789123456789", "shop_order_id": "test-shop-order-id", "order_creation_date": "2020-03-10T18:06:52.438+01:00", "shop_buyer_id": "test-shop-buyer-id", "currency": "EUR" }, "basket": { "initial_order_amount_gross": 170, "current_order_amount_gross": 145, "last_updated": "2020-03-12T18:06:52.438+01:00", "current_items": [ … ], "current_special_items": { … } }, "payment_information": { "maximum_processing_offset_in_hours": 0, "payment_method": { … }, "payment_status": { … }, "dunning_status": { … } } }
Request
This endpoint allows you to get correspondence
Source of information
All parameters needed for the request can be obtained via webhooks. This is a service that is only available for registered merchants. The service informs the merchant when a new transaction has been made and further information such as invoices are available for retrieval. How to activate this service can be found at the following link: Subscription webhooks
Receivable information and its format
As you can see, the successful response does not contain information in form of a JSON structure. All the information that can be received is received in form of an invoice file. You can choose whether to receive the invoices as pdf, html or via e-mail depending on your request. This information to access the different formats is contained in the payload of the webhook.
The transaction id of the order for which the correspondence is requested
For each request, a valid access token must be provided in the Authorization header. See Authentication API for obtaining a valid token.
- Production environment
http://api.ratepay.com/api/order/{transaction_id}/correspondences/invoices/{correspondence_id}/{format}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'http://api.ratepay.com/api/order/12-34567890123456789/correspondences/invoices/{correspondence_id}/eml' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json'