This is the documentation for the Ratepay invoice webhooks. The webhooks are still in development and subject to change. This documentation will evolve as the development of the webhooks progresses.
Invoice webhooks OpenAPI specification (version)
Download OpenAPI description
Overview
URL
Ratepay
Languages
Servers
https://docs.ratepay.com/
Headers
Bodyapplication/jsonrequiredthe hashed (SHA-512) payload
Example: 1be8ca419d1969085fba97228a5eeb55683cc5442cb475ffd9d8a40419ead40d3d82bea3209b6f4fdcce51c9ce6eb43a025faaf05b09bb90e4cb3c143143adec
For each request, a valid access token must be provided in the Authorization header. See Authentication API for obtaining a valid token.
The order ID generated by the shop. This ID must be known to the buyer and is used for buyer communication, e.g. emails and buyer support.
Example: "shop-transaction-id-1234"
Reference to be indicated in the bank transfer (generated by Ratepay).
Example: "GD1234567890"
The URL to fetch the email document.
Example: "https://api.ratepay.com/api/order/123/correspondences/invoices/456/eml"
https://docs.ratepay.com/webhook-invoice(to be defined)
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://docs.ratepay.com/webhook-invoice(to%20be%20defined)' \
-H 'Authorization: string' \
-H 'Content-Type: application/json' \
-H 'x-signature: 1be8ca419d1969085fba97228a5eeb55683cc5442cb475ffd9d8a40419ead40d3d82bea3209b6f4fdcce51c9ce6eb43a025faaf05b09bb90e4cb3c143143adec' \
-d '{
"id": 92,
"shop_transaction_id": "shop-transaction-id-1234",
"ratepay_payment_reference": "GD1234567890",
"ratepay_transaction_id": "32-201411251340634",
"invoice_id": "DG0627731Z7-001",
"eml_url": "https://api.ratepay.com/api/order/123/correspondences/invoices/456/eml",
"pdf_url": "https://api.ratepay.com/api/order/123/correspondences/invoices/456/pdf"
}'