This is the documentation for the Ratepay Payment API v2. The API is still in development and subject to change. The documentation will evolve as the development of the API progresses.
Payment OpenAPI Specification (version 2)- Copy for LLMCopy page as Markdown for LLMs
- View as MarkdownOpen this page as Markdown
- Open in ChatGPTGet insights from ChatGPT
- Open in ClaudeGet insights from Claude
- Copy for LLMCopy page as Markdown for LLMs
- View as MarkdownOpen this page as Markdown
- Open in ChatGPTGet insights from ChatGPT
- Open in ClaudeGet insights from Claude
https://api-integration.ratepay.com/transaction/management/
https://api.ratepay.com/transaction/management/
Transaction management- Copy for LLMCopy page as Markdown for LLMs
- View as MarkdownOpen this page as Markdown
- Open in ChatGPTGet insights from ChatGPT
- Open in ClaudeGet insights from Claude
- Copy for LLMCopy page as Markdown for LLMs
- View as MarkdownOpen this page as Markdown
- Open in ChatGPTGet insights from ChatGPT
- Open in ClaudeGet insights from Claude
Incremental authorization- Copy for LLMCopy page as Markdown for LLMs
- View as MarkdownOpen this page as Markdown
- Open in ChatGPTGet insights from ChatGPT
- Open in ClaudeGet insights from Claude
- Copy for LLMCopy page as Markdown for LLMs
- View as MarkdownOpen this page as Markdown
- Open in ChatGPTGet insights from ChatGPT
- Open in ClaudeGet insights from Claude
Retrieve all authorizations
- Copy for LLMCopy page as Markdown for LLMs
- View as MarkdownOpen this page as Markdown
- Open in ChatGPTGet insights from ChatGPT
- Open in ClaudeGet insights from Claude
ID of transaction to retrieve. Get an overview of key identifiers used in payment API.
- Ratepay Integration Platform
https://api-integration.ratepay.com/transaction/management/v2/transactions/{ratepay_transaction_id}/authorizations
- Ratepay Production Platform
https://api.ratepay.com/transaction/management/v2/transactions/{ratepay_transaction_id}/authorizations
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api-integration.ratepay.com/transaction/management/v2/transactions/{ratepay_transaction_id}/authorizations' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Prefer: return=representation' \
-H 'X-Partner: string'Authorizations retrieved
Includes only minimal set of attributes generated by Ratepay.
Links related to the resource following specification by IANA.
ID of transaction generated by Ratepay during authorization. A transaction ID is generated for both accepted and declined transactions. Get an overview of key identifiers used in payment API.
{ "_embedded": { "authorizations": [ … ] }, "_links": { "self": { … } }, "ratepay_transaction_id": "scwBgARW-nE93I7_ywhp" }
Incrementally authorize transaction
- Copy for LLMCopy page as Markdown for LLMs
- View as MarkdownOpen this page as Markdown
- Open in ChatGPTGet insights from ChatGPT
- Open in ClaudeGet insights from Claude
ID of transaction to extend with additional authorization. Get an overview of key identifiers used in payment API.
ID generated by client to uniquely identify the request. It is highly recommended to use a UUID version 4. Do not reuse an idempotency key for different calls. See Idempotency for further details.
According to RFC 7240: Provide return=representation if you prefer that the response to a request includes the current state of the resource.
Amount to increase given in currency of original transaction.
Arbitrary ID of partner for the operation. This ID can be displayed in settlement reports. Get an overview of key identifiers used in payment API.
The shop ID generated by the partner or provided upfront by Ratepay. Get an overview of key identifiers used in payment API. This field is required in case of marketplace transaction.
List of special items to add, e.g. shipping costs or discounts.
- Ratepay Integration Platform
https://api-integration.ratepay.com/transaction/management/v2/transactions/{ratepay_transaction_id}/authorizations
- Ratepay Production Platform
https://api.ratepay.com/transaction/management/v2/transactions/{ratepay_transaction_id}/authorizations
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://api-integration.ratepay.com/transaction/management/v2/transactions/{ratepay_transaction_id}/authorizations' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: string' \
-H 'Prefer: return=representation' \
-H 'X-Partner: string' \
-d '{
"gross_amount": 67.6,
"items": [
{
"article_number": "kitchen-utils-1",
"category": "household",
"description": "fruit knife with curved blade, 8 cm",
"gross_total_price": 33.8,
"gross_unit_discount": -1.55,
"gross_unit_price": 18.45,
"name": "fruit knife",
"net_total_price": 28.4,
"net_unit_discount": -1.3,
"net_unit_price": 15.5,
"quantity": 2,
"tax_rate": 19,
"unit": "piece"
}
],
"partner_operation_id": "authorization-id-1234",
"partner_shop_id": "partner-shop-id-1",
"special_items": [
{
"article_number": "kitchen-utils-1",
"category": "household",
"description": "fruit knife with curved blade, 8 cm",
"gross_total_price": 33.8,
"gross_unit_discount": -1.55,
"gross_unit_price": 18.45,
"name": "fruit knife",
"net_total_price": 28.4,
"net_unit_discount": -1.3,
"net_unit_price": 15.5,
"quantity": 2,
"tax_rate": 19,
"type": "RETURN_FEE",
"unit": "piece"
}
],
"vats": [
{
"net_amount": 56.81,
"tax_amount": 10.79,
"tax_rate": 19
}
]
}'Authorization created
Links related to the resource following specification by IANA.
The self relation identifying the authorization resource itself.
Timestamp with offset according to ISO 8601.
ID of confirmed authorization generated by Ratepay. Get an overview of key identifiers used in payment API.
{ "_links": { "self": { … } }, "created": "2019-08-24T14:15:22Z", "ratepay_authorization_id": "9wdn0Fvkb9Zxsfiql5l6" }
Retrieve an authorization
- Copy for LLMCopy page as Markdown for LLMs
- View as MarkdownOpen this page as Markdown
- Open in ChatGPTGet insights from ChatGPT
- Open in ClaudeGet insights from Claude
ID of transaction to retrieve. Get an overview of key identifiers used in payment API.
ID of authorization to retrieve. Get an overview of key identifiers used in payment API.
- Ratepay Integration Platform
https://api-integration.ratepay.com/transaction/management/v2/transactions/{ratepay_transaction_id}/authorizations/{ratepay_authorization_id}
- Ratepay Production Platform
https://api.ratepay.com/transaction/management/v2/transactions/{ratepay_transaction_id}/authorizations/{ratepay_authorization_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api-integration.ratepay.com/transaction/management/v2/transactions/{ratepay_transaction_id}/authorizations/{ratepay_authorization_id}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Prefer: return=representation' \
-H 'X-Partner: string'Authorization retrieved
Includes only minimal set of attributes generated by Ratepay during authorization creation.
Links related to the resource following specification by IANA.
The self relation identifying the authorization resource itself.
Timestamp with offset according to ISO 8601.
ID of confirmed authorization generated by Ratepay. Get an overview of key identifiers used in payment API.
{ "_links": { "self": { … } }, "created": "2019-08-24T14:15:22Z", "ratepay_authorization_id": "9wdn0Fvkb9Zxsfiql5l6" }
Cancellation- Copy for LLMCopy page as Markdown for LLMs
- View as MarkdownOpen this page as Markdown
- Open in ChatGPTGet insights from ChatGPT
- Open in ClaudeGet insights from Claude
- Copy for LLMCopy page as Markdown for LLMs
- View as MarkdownOpen this page as Markdown
- Open in ChatGPTGet insights from ChatGPT
- Open in ClaudeGet insights from Claude
Capture- Copy for LLMCopy page as Markdown for LLMs
- View as MarkdownOpen this page as Markdown
- Open in ChatGPTGet insights from ChatGPT
- Open in ClaudeGet insights from Claude
- Copy for LLMCopy page as Markdown for LLMs
- View as MarkdownOpen this page as Markdown
- Open in ChatGPTGet insights from ChatGPT
- Open in ClaudeGet insights from Claude
Shipping information- Copy for LLMCopy page as Markdown for LLMs
- View as MarkdownOpen this page as Markdown
- Open in ChatGPTGet insights from ChatGPT
- Open in ClaudeGet insights from Claude
- Copy for LLMCopy page as Markdown for LLMs
- View as MarkdownOpen this page as Markdown
- Open in ChatGPTGet insights from ChatGPT
- Open in ClaudeGet insights from Claude
Refund- Copy for LLMCopy page as Markdown for LLMs
- View as MarkdownOpen this page as Markdown
- Open in ChatGPTGet insights from ChatGPT
- Open in ClaudeGet insights from Claude
- Copy for LLMCopy page as Markdown for LLMs
- View as MarkdownOpen this page as Markdown
- Open in ChatGPTGet insights from ChatGPT
- Open in ClaudeGet insights from Claude