Download OpenAPI specification:Download
RozetkaPay API enables you to integrate online payments into your platform, providing a seamless and secure transaction experience for your users.
Main type of authorization is BasicAuth which is always required. To perform payment requests on behalf of another login, you have to provide it in onBehalfOf header. If you would like to receive customer's information with RID auth token - add customerAuth to your request.
Basic Auth consists of login and password combined into a header field in the following form:
Authorization: Basic <credentials>
where <credentials> is the Base64 encoding of login and password joined by a single colon :.
You should be provided with login and password by our support team.
Otherwise, if you have already been using other RozetkaPay online payments API,
you can reuse previously provided API_KEY and API_SECRET for X-API-AUTH header
as login and password respectively to authorize into API Gateway.
User's personal access token allows to find or/and authorize user in
You can also see the X-CUSTOMER-RID header. Is a DEPRECATED way to use endpoints with a raw rid for not user-initiated actions like calls from admin panel or background processing. Please, use X-CUSTOMER-AUTH with a special type of access token (authorization_flow = processing) instead.
If you need additional details about "processing" access token, please ask details in RozetkaPay ID Team.
X-CUSTOMER-AUTHRozetkaPay applies rate limit for its APIs.
API client should handle rate limiting gracefully. It is recommended to watch for 429 status codes and build in a retry mechanism with an exponential backoff schedule. Some randomness could be added into the backoff to avoid a thundering herd effect. X-RATELIMIT-RESET header (time in seconds, after which requests are allowed again) could be used as a basis for retry mechanism.
Example of headers for 1000 requests/second rate limit (after first request):
| Header field name | Description | Example |
|---|---|---|
X-RATELIMIT-LIMIT |
Allowed requests per second |
X-RATELIMIT-LIMIT: 1000 |
X-RATELIMIT-RESET |
Time to reset in seconds |
X-RATELIMIT-RESET: 0 |
X-RATELIMIT-REMAINING |
Number of left requests |
X-RATELIMIT-REMAINING: 999 |
A callback is considered successful when the receiving endpoint returns an HTTP 200 status code. All other status codes are treated as a failure. If a status code other than 200 is received, the system will attempt to resend the callback at predefined intervals.
Each callback sent by RozetkaPay is signed using the merchant's password used for the payment operation.
The signature is included with the callback and can be found in the X-ROZETKAPAY-SIGNATURE header.
This header allows you to verify that the callback is from RozetkaPay.
signature=base64url_encode(sha1($password + base64url_encode($json_body) + $password))
import base64
import hashlib
def webhook_signature(password: str, data: str, encoding: str = 'UTF-8') -> str:
"""
Generate a webhook signature for verification.
Args:
password (str): Password used for the payment operation.
data (str): String representation of the callback content.
encoding (str, optional): Encoding to be used. Defaults to 'UTF-8'.
Returns:
str: Generated signature.
"""
base64_data = base64.urlsafe_b64encode(data.encode(encoding)).decode(encoding)
signature_data = password + base64_data + password
signature = base64.urlsafe_b64encode(
hashlib.sha1(signature_data.encode(encoding)).digest()
).decode(encoding)
return signature
# Body received from callback
callback_body = '{"name": "john", "age": 21}'
# Result signature
print(webhook_signature('your_password', callback_body))
Note: Do not remove the = padding during base64 URL-safe encoding, or the signature will be incorrectly calculated.
If you wish to provide your customers a better experience, we support online payments with Apple Pay & Google Pay. You have two options to integrate those payment methods:
To add the Apple Pay entitlement to your website or mobile application, you need to have:
To integrate Apple Pay to your mobile application, follow the instruction.
To integrate Apple Pay to your website, follow the instruction.
After you completed the integration with Apple Pay for any of your environment (mobile or web), you should receive the following kind of JSON object as a result of Apple Pay call:
{
"version": "EC_v1",
"data": "zTMZDPumdE7h8oY/+31VMZd60dMaxB...",
"signature": "MIAGCSqGSIb3DQEHA...",
"header": {
"ephemeralPublicKey": "MFkwEwYHKoZIzj0C...",
"publicKeyHash": "3AKqH/wPWdQIBpGIv1PC4uDTbGouPgWbmUlFGiHopig=",
"transactionId": "d6e63976191fdf051f7cb95e0e5da70a19c99a5576ececbfc0fd65ad2a7f2f74"
}
}
This payload should be encoded to Base64 and passed
in customer.payment_method.apple_pay.token field on Create payment operation.
Firstly please review the following documentation in order to get familiar with the integration process:
The gateway parameter in the script should have the constant value of evopay.
The value of the gatewayMerchantId parameter should be a unique identifier which can be provided via our Support team.
In response, Google shall return the PaymentData item, and the field paymentMethodData.tokenizationData.token shall contain a safely encrypted Google Pay Token (a string of characters).
This string should be encoded to Base64 and passed
in customer.payment_method.google_pay.token field on Create payment operation.
In order to smoothly collect customer's card details, you have to use our Widget Checkout. It might be embedded into your web page and should provide smooth and secure credit card tokenization flow.
Include script tag into your website: <script src="https://cdn.rozetkapay.com/widget.js" async></script>
The script is loaded asynchronously.
init() method receive parameters:let initParams = {
/* Widget key issued by RozetkaPay */
key: 'hQ8aqcm/RG1RF7MaImmzZUsThYhAVDG6R7kazf9+r7zuoWo6',
/* Optional amount */
amount: 350.5,
/* Currently, only 'inline' mode is supported */
mode: 'inline',
/* Optional user language */
lang: 'uk',
/* Optional predefined custom style */
style: 'evo',
/* Optional widget type */
type: 'full_card',
/* Optional customer ip */
customer_ip: '127.0.0.1',
/* Optional customer id */
customer_id: '123',
/* Optional customer email */
customer_email: '[email protected]',
/* Optional customer country */
customer_country: 'UA',
/* Optional customer city */
customer_city: 'Kyiv',
/* Identifier of HTML element (for 'inline' mode only) */
selector: 'widget-checkout',
/* Handler for receiving token data */
onToken: function(tokenData) {
/*
It is guaranteed that`tokenData` will have the following fields:
{
"token": "String(<=128)",
"expires_at": "ISO-8601 DateTime",
"card_mask": "String(13-19)"
}
*/
}
};
let widget = RPayCardWidget.init(initParams)
RPayCardWidget#init parameters:| Parameter | Type | Required | Description |
|---|---|---|---|
key |
String | ✅ | Widget key issued by RozetkaPay. |
mode |
String | ✅ | Should be equal to inline. |
selector |
String | ✅ | Identifier of HTML element (e.g. div id={payform-holder}) where the widget will be mounted (for inline mode). |
onToken |
Function | ✅ | Callback to invoke when the checkout process is complete. |
amount |
Number | Optional amount to be shown in widget for UX purposes. | |
locale |
Object | Locale customization | |
lang |
String | Preferred widget localization. Currently supported languages: en, uk, pl. |
|
style |
String | Optional predefined custom style | |
type |
String | Optional widget type. Available options: full_card(default) - collect all card credentials (payments), pan_only - tokenize only card number (payouts). |
|
template |
String | Optional custom template. Currently supported templates: line |
|
customer_ip |
String | Optional customer IP address. | |
customer_id |
String | Optional customer identifier in merchant's system (required in case of External tokenization). | |
customer_email |
String | Optional customer email (required in case of External tokenization). | |
customer_country |
String | Optional customer country. | |
customer_city |
String | Optional customer city. | |
locale |
Object | Optional object to set text for widget elements. |
locale object example{
"uk": {
"cardNumber": "Номер карти",
"expiryDate": "Строк дії",
"cvv": "CVV",
"submit": "Сплатити",
"yy": "ГГ",
"mm": "ММ",
"hints": {
"cvvHint": "Код міститься на зворотній стороні карти"
},
"errors": {
"cardnumber": "Неправильний номер карти",
"expiryDate": "Строк дії карти закінчився",
"cvv": "Некорректний CVV/CVC2 код"
}
}
}
#onToken parameters:| Parameter | Type | Required | Description |
|---|---|---|---|
token |
String(≤128) | ✅ | Token issued by RozetkaPay. Acceptable for payments via direct mode. |
expires_at |
String(26) | ✅ | ISO-8601 timestamp (yyyy-mm-ddThh:mm:ss). End of token life. Example: 2099-12-31T00:00:00. |
card_mask |
String(13-19) | ✅ | Mask of tokenized card. Example: 424242******4242. |
RPayCardWidget#init return special control object with the following API methods:
| Method | Parameter | Description |
|---|---|---|
widget.open() |
none | Render widget |
widget.close() |
none | Force close widget |
// Eagerly initialize widget
function __onWidgetReady() {
let widget = RPayCardWidget.init({
key: 'hQ8aqcm/RG1RF7MaImmzZUsThYhAVDG6R7kazf9+r7zuoWo6',
amount: 350.5,
mode: 'inline',
lang: 'uk',
selector: 'widget-checkout',
/* Handler for receiving token data */
onToken: function(tokenData) {
/* Handle token data. For example, create direct payment or add card to wallet */
backend.submitPayment(orderId, tokenData);
}
});
}
const payButton = document.getElementById('btn-pay');
// Open widget on action
payButton.addEventListener('click', function(e) {
e.preventDefault();
widget.open();
});
After internal form submission, RozetkaPay token token will be sent in response to onToken function.
If script was loaded asynchronously, you should wrap init() method in function wrapper: __onWidgetReady
// Create widget entity on button click (for example, radio button option)
function __onWidgetReady() {
document
.getElementById('btn-pay')
.addEventListener('click', function(e) {
e.preventDefault();
RPayCardWidget
.init({
key: 'hQ8aqcm/RG1RF7MaImmzZUsThYhAVDG6R7kazf9+r7zuoWo6',
amount: 350.5,
mode: 'inline',
lang: 'uk',
selector: 'widget-checkout',
/* Handler for receiving token data */
onToken: function(tokenData) {
// Handle token data. For example, create direct payment or add card to wallet.
backend.submitToken(orderId, tokenData);
}
})
.open();
}
);
}
function __onWidgetReady() {
RPayCardWidget.init({ ... }).open();
}
document.addEventListener('widget-init-ready', () => {
widget.open();
})
document.addEventListener('widget-init-error', (e) => {
console.error('error', e.detail.id, e.detail.message)
});
After widget is successfully initiated, widget-init-ready event is dispatched. Otherwise, in case of error, widget will dispatch widget-init-error error.
You can add event listener to this events.
| Card number | Expiration date | CVV | 3D Secure | Result |
|---|---|---|---|---|
| 4242 4242 4242 4242 | any | any | yes | success |
| 5454 5454 5454 5454 | any | any | yes | success |
| 4111 1111 1111 1111 | any | any | no | success |
| 5555 5555 5555 4444 | any | any | no | success |
| 4200 0000 0000 0000 | any | any | yes | rejected |
| 5105 1051 0510 5100 | any | any | yes | rejected |
| 4444 3333 2222 1111 | any | any | no | rejected |
| 5100 0000 2000 2000 | any | any | no | rejected |
| 4000 0000 0000 0044 | any | any | no | insufficient-funds |
| Phone number | Confirmation | Result |
|---|---|---|
| +380930000001 | Webpage | success |
| +380930000002 | Webpage | success |
| +380930000003 | None | success |
| +380930000004 | None | success |
| +380930000007 | Webpage | rejected |
| +380930000008 | Webpage | rejected |
| +380930000009 | None | rejected |
| +380930000010 | None | rejected |
Creates payment and performs desired operation.
When mode is set to direct - customer field becomes required.
| amount required | number |
| callback_url | string <url> |
| result_url | string <url> URL where the user will be redirected after the payment is completed.
If the payment requires 3-D Secure, the user will be redirected to this URL after completing the 3DS flow.
If |
| confirm | boolean Default: true If |
| currency required | string |
object (CustomerRequestUserDetails) | |
| description | string |
| external_id required | string You can use |
| unified_external_id | string Unified external id. |
| payload | string |
| init_recurrent_payment | boolean |
Array of objects (Product) | |
object (RecipientRequestUserDetails) | |
| mode required | string (PaymentMode) Enum: "direct" "hosted" "express_checkout" Describes the way of the integration:
|
| checkout_ttl | number Checkout TTL allows to configure how long the checkout will be available (in minutes). |
| subscription_id | string |
| campaign_name | string (CampaignName) Enum: "r_card" "diia_card"
|
{- "amount": 0,
- "callback_url": "string",
- "result_url": "string",
- "confirm": true,
- "currency": "string",
- "customer": {
- "color_mode": "white",
- "locale": "UK",
- "account_number": "string",
- "ip_address": "192.168.0.1",
- "address": "string",
- "city": "string",
- "country": "string",
- "external_id": "string",
- "first_name": "string",
- "last_name": "string",
- "patronym": "string",
- "phone": "string",
- "postal_code": "string",
- "payment_method": {
- "cc": {
- "cvv": "string",
- "exp_month": 1,
- "exp_year": 0,
- "number": "string",
- "use_3ds_flow": true
}, - "cc_token": {
- "token": "string",
- "use_3ds_flow": true,
- "save_to_wallet": false
}, - "type": "cc_token",
- "wallet": {
- "option_id": "ab22e710-5ce4-4e7e-a3db-bd6fdad8fe36",
- "use_3ds_flow": true
}, - "apple_pay": {
- "token": "string",
- "use_3ds_flow": true
}, - "google_pay": {
- "token": "string",
- "use_3ds_flow": true
}, - "decrypted_apple_pay": {
- "application_primary_account_number": "string",
- "application_expiration_date": "string",
- "online_payment_cryptogram": "string",
- "currency_code": "string",
- "device_manufacturer_identifier": "string",
- "transaction_id": "string",
- "ephemeral_public_key": "string",
- "public_key_hash": "string",
- "eci_indicator": "string",
- "use_3ds_flow": true
}, - "decrypted_google_pay": {
- "pan": "string",
- "exp_month": 0,
- "exp_year": 0,
- "cryptogram": "string",
- "eci_indicator": "string",
- "auth_method": "string",
- "gateway_merchant_id": "string",
- "message_id": "string",
- "message_expiration": "string",
- "payment_method": "string",
- "protocol_version": "string",
- "use_3ds_flow": true
}
}, - "fingerprint": {
- "browser_accept_header": "string",
- "browser_color_depth": "string",
- "browser_ip_address": "string",
- "browser_java_enabled": "string",
- "browser_language": "string",
- "browser_screen_height": "string",
- "browser_screen_width": "string",
- "browser_time_zone": "string",
- "browser_time_zone_offset": "string",
- "browser_user_agent": "string"
}
}, - "description": "string",
- "external_id": "string",
- "unified_external_id": "string",
- "payload": "string",
- "init_recurrent_payment": true,
- "products": [
- {
- "category": "string",
- "currency": "string",
- "description": "string",
- "id": "string",
- "image": "string",
- "name": "string",
- "net_amount": "0",
- "quantity": "string",
- "url": "string",
- "vat_amount": "0",
- "tax_group": 0
}
], - "recipient": {
- "address": "string",
- "city": "string",
- "country": "string",
- "external_id": "string",
- "first_name": "string",
- "last_name": "string",
- "patronym": "string",
- "phone": "string",
- "postal_code": "string",
- "rid": "string",
- "tin": "string",
- "payment_method": {
- "type": "iban",
- "iban": {
- "iban": "string"
}, - "cc_token": {
- "token": "string"
}, - "wallet": {
- "option_id": "ab22e710-5ce4-4e7e-a3db-bd6fdad8fe36"
}, - "cc_number": {
- "number": "string"
}
}
}, - "mode": "direct",
- "checkout_ttl": 0,
- "subscription_id": "string",
- "campaign_name": "r_card"
}{- "action": {
- "type": "url",
- "value": "string"
}, - "action_required": true,
- "details": {
- "amount": "0",
- "billing_order_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "currency": "string",
- "description": "string",
- "gateway_order_id": "string",
- "payload": "string",
- "payment_id": "string",
- "processed_at": "2019-08-24T14:15:22Z",
- "rrn": "string",
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "transaction_id": "string",
- "operation_id": "string",
- "auth_code": "string",
- "fee": {
- "amount": "0",
- "currency": "string"
}, - "terminal_name": "string",
- "bank_name": "string",
- "method": "string",
- "recurrent_id": "string",
- "mid": "string",
- "tid": "string",
- "recipient_iban": "string",
- "subscription_id": "string",
- "fiscalization": {
- "fiscal_id": "string",
- "fiscal_url": "string",
- "status": "Pending",
- "status_code": 0,
- "status_description": "string"
}
}, - "external_id": "string",
- "unified_external_id": "string",
- "batch_external_id": "string",
- "id": "0",
- "project_id": "string",
- "is_success": true,
- "receipt_url": "string",
- "payment_method": {
- "cc_token": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "saved_card": true,
- "bin_country": "string"
}, - "apple_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "google_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "type": "cc_token"
}, - "customer": {
- "browser_user_agent": "string",
- "external_id": "string",
- "first_name": "string",
- "ip_address": "string",
- "last_name": "string",
- "patronym": "string",
- "phone": "string"
}, - "operation": "payment"
}{- "action": {
- "type": "url",
- "value": "string"
}, - "action_required": true,
- "details": {
- "amount": "0",
- "billing_order_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "currency": "string",
- "description": "string",
- "gateway_order_id": "string",
- "payload": "string",
- "payment_id": "string",
- "processed_at": "2019-08-24T14:15:22Z",
- "rrn": "string",
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "transaction_id": "string",
- "operation_id": "string",
- "auth_code": "string",
- "fee": {
- "amount": "0",
- "currency": "string"
}, - "terminal_name": "string",
- "bank_name": "string",
- "method": "string",
- "recurrent_id": "string",
- "mid": "string",
- "tid": "string",
- "recipient_iban": "string",
- "subscription_id": "string",
- "fiscalization": {
- "fiscal_id": "string",
- "fiscal_url": "string",
- "status": "Pending",
- "status_code": 0,
- "status_description": "string"
}
}, - "external_id": "string",
- "unified_external_id": "string",
- "batch_external_id": "string",
- "id": "0",
- "project_id": "string",
- "is_success": true,
- "receipt_url": "string",
- "payment_method": {
- "cc_token": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "saved_card": true,
- "bin_country": "string"
}, - "apple_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "google_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "type": "cc_token"
}, - "customer": {
- "browser_user_agent": "string",
- "external_id": "string",
- "first_name": "string",
- "ip_address": "string",
- "last_name": "string",
- "patronym": "string",
- "phone": "string"
}, - "operation": "payment"
}Creates payment and performs desired operation.
| recurrent_id required | string |
| external_id required | string |
| unified_external_id | string Unified external id. |
| amount required | number |
| callback_url | string <url> |
| payload | string |
| delegate_api_key | string <uuid> If a |
| subscription_id | string |
| confirm | boolean Default: true If |
{- "recurrent_id": "string",
- "external_id": "string",
- "unified_external_id": "string",
- "amount": 0,
- "callback_url": "string",
- "payload": "string",
- "delegate_api_key": "bb039837-c4b7-4c69-91da-9d72ca8bc66c",
- "subscription_id": "string",
- "confirm": true
}{- "action": {
- "type": "url",
- "value": "string"
}, - "action_required": true,
- "details": {
- "amount": "0",
- "billing_order_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "currency": "string",
- "description": "string",
- "gateway_order_id": "string",
- "payload": "string",
- "payment_id": "string",
- "processed_at": "2019-08-24T14:15:22Z",
- "rrn": "string",
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "transaction_id": "string",
- "operation_id": "string",
- "auth_code": "string",
- "fee": {
- "amount": "0",
- "currency": "string"
}, - "terminal_name": "string",
- "bank_name": "string",
- "method": "string",
- "recurrent_id": "string",
- "mid": "string",
- "tid": "string",
- "recipient_iban": "string",
- "subscription_id": "string",
- "fiscalization": {
- "fiscal_id": "string",
- "fiscal_url": "string",
- "status": "Pending",
- "status_code": 0,
- "status_description": "string"
}
}, - "external_id": "string",
- "unified_external_id": "string",
- "batch_external_id": "string",
- "id": "0",
- "project_id": "string",
- "is_success": true,
- "receipt_url": "string",
- "payment_method": {
- "cc_token": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "saved_card": true,
- "bin_country": "string"
}, - "apple_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "google_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "type": "cc_token"
}, - "customer": {
- "browser_user_agent": "string",
- "external_id": "string",
- "first_name": "string",
- "ip_address": "string",
- "last_name": "string",
- "patronym": "string",
- "phone": "string"
}, - "operation": "payment"
}{- "action": {
- "type": "url",
- "value": "string"
}, - "action_required": true,
- "details": {
- "amount": "0",
- "billing_order_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "currency": "string",
- "description": "string",
- "gateway_order_id": "string",
- "payload": "string",
- "payment_id": "string",
- "processed_at": "2019-08-24T14:15:22Z",
- "rrn": "string",
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "transaction_id": "string",
- "operation_id": "string",
- "auth_code": "string",
- "fee": {
- "amount": "0",
- "currency": "string"
}, - "terminal_name": "string",
- "bank_name": "string",
- "method": "string",
- "recurrent_id": "string",
- "mid": "string",
- "tid": "string",
- "recipient_iban": "string",
- "subscription_id": "string",
- "fiscalization": {
- "fiscal_id": "string",
- "fiscal_url": "string",
- "status": "Pending",
- "status_code": 0,
- "status_description": "string"
}
}, - "external_id": "string",
- "unified_external_id": "string",
- "batch_external_id": "string",
- "id": "0",
- "project_id": "string",
- "is_success": true,
- "receipt_url": "string",
- "payment_method": {
- "cc_token": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "saved_card": true,
- "bin_country": "string"
}, - "apple_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "google_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "type": "cc_token"
}, - "customer": {
- "browser_user_agent": "string",
- "external_id": "string",
- "first_name": "string",
- "ip_address": "string",
- "last_name": "string",
- "patronym": "string",
- "phone": "string"
}, - "operation": "payment"
}Confirm two-step payment.
| external_id required | string External ID of a payment, passed from your side on create. |
| amount | number |
| callback_url | string <url> |
| currency | string |
| payload | string |
Array of objects (Product) List of confirmed products. Required in case of partial confirm for projects with enabled fiscalization. For full confirm products would be taken from create request. |
{- "external_id": "string",
- "amount": 0,
- "callback_url": "string",
- "currency": "string",
- "payload": "string",
- "products": [
- {
- "category": "string",
- "currency": "string",
- "description": "string",
- "id": "string",
- "image": "string",
- "name": "string",
- "net_amount": "0",
- "quantity": "string",
- "url": "string",
- "vat_amount": "0",
- "tax_group": 0
}
]
}{- "action": {
- "type": "url",
- "value": "string"
}, - "action_required": true,
- "details": {
- "amount": "0",
- "billing_order_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "currency": "string",
- "description": "string",
- "gateway_order_id": "string",
- "payload": "string",
- "payment_id": "string",
- "processed_at": "2019-08-24T14:15:22Z",
- "rrn": "string",
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "transaction_id": "string",
- "operation_id": "string",
- "auth_code": "string",
- "fee": {
- "amount": "0",
- "currency": "string"
}, - "terminal_name": "string",
- "bank_name": "string",
- "method": "string",
- "recurrent_id": "string",
- "mid": "string",
- "tid": "string",
- "recipient_iban": "string",
- "subscription_id": "string",
- "fiscalization": {
- "fiscal_id": "string",
- "fiscal_url": "string",
- "status": "Pending",
- "status_code": 0,
- "status_description": "string"
}
}, - "external_id": "string",
- "unified_external_id": "string",
- "batch_external_id": "string",
- "id": "0",
- "project_id": "string",
- "is_success": true,
- "receipt_url": "string",
- "payment_method": {
- "cc_token": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "saved_card": true,
- "bin_country": "string"
}, - "apple_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "google_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "type": "cc_token"
}, - "customer": {
- "browser_user_agent": "string",
- "external_id": "string",
- "first_name": "string",
- "ip_address": "string",
- "last_name": "string",
- "patronym": "string",
- "phone": "string"
}, - "operation": "payment"
}{- "action": {
- "type": "url",
- "value": "string"
}, - "action_required": true,
- "details": {
- "amount": "0",
- "billing_order_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "currency": "string",
- "description": "string",
- "gateway_order_id": "string",
- "payload": "string",
- "payment_id": "string",
- "processed_at": "2019-08-24T14:15:22Z",
- "rrn": "string",
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "transaction_id": "string",
- "operation_id": "string",
- "auth_code": "string",
- "fee": {
- "amount": "0",
- "currency": "string"
}, - "terminal_name": "string",
- "bank_name": "string",
- "method": "string",
- "recurrent_id": "string",
- "mid": "string",
- "tid": "string",
- "recipient_iban": "string",
- "subscription_id": "string",
- "fiscalization": {
- "fiscal_id": "string",
- "fiscal_url": "string",
- "status": "Pending",
- "status_code": 0,
- "status_description": "string"
}
}, - "external_id": "string",
- "unified_external_id": "string",
- "batch_external_id": "string",
- "id": "0",
- "project_id": "string",
- "is_success": true,
- "receipt_url": "string",
- "payment_method": {
- "cc_token": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "saved_card": true,
- "bin_country": "string"
}, - "apple_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "google_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "type": "cc_token"
}, - "customer": {
- "browser_user_agent": "string",
- "external_id": "string",
- "first_name": "string",
- "ip_address": "string",
- "last_name": "string",
- "patronym": "string",
- "phone": "string"
}, - "operation": "payment"
}Cancel two-step payment
| external_id required | string External ID of a payment, passed from your side on create. |
| amount | number |
| callback_url | string <url> |
| currency | string |
| payload | string |
Array of objects (Product) List of products for refund. Required in case of partial refund for projects with enabled fiscalization. For full refund products would be taken from create request. |
{- "external_id": "string",
- "amount": 0,
- "callback_url": "string",
- "currency": "string",
- "payload": "string",
- "products": [
- {
- "category": "string",
- "currency": "string",
- "description": "string",
- "id": "string",
- "image": "string",
- "name": "string",
- "net_amount": "0",
- "quantity": "string",
- "url": "string",
- "vat_amount": "0",
- "tax_group": 0
}
]
}{- "action": {
- "type": "url",
- "value": "string"
}, - "action_required": true,
- "details": {
- "amount": "0",
- "billing_order_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "currency": "string",
- "description": "string",
- "gateway_order_id": "string",
- "payload": "string",
- "payment_id": "string",
- "processed_at": "2019-08-24T14:15:22Z",
- "rrn": "string",
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "transaction_id": "string",
- "operation_id": "string",
- "auth_code": "string",
- "fee": {
- "amount": "0",
- "currency": "string"
}, - "terminal_name": "string",
- "bank_name": "string",
- "method": "string",
- "recurrent_id": "string",
- "mid": "string",
- "tid": "string",
- "recipient_iban": "string",
- "subscription_id": "string",
- "fiscalization": {
- "fiscal_id": "string",
- "fiscal_url": "string",
- "status": "Pending",
- "status_code": 0,
- "status_description": "string"
}
}, - "external_id": "string",
- "unified_external_id": "string",
- "batch_external_id": "string",
- "id": "0",
- "project_id": "string",
- "is_success": true,
- "receipt_url": "string",
- "payment_method": {
- "cc_token": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "saved_card": true,
- "bin_country": "string"
}, - "apple_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "google_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "type": "cc_token"
}, - "customer": {
- "browser_user_agent": "string",
- "external_id": "string",
- "first_name": "string",
- "ip_address": "string",
- "last_name": "string",
- "patronym": "string",
- "phone": "string"
}, - "operation": "payment"
}{- "action": {
- "type": "url",
- "value": "string"
}, - "action_required": true,
- "details": {
- "amount": "0",
- "billing_order_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "currency": "string",
- "description": "string",
- "gateway_order_id": "string",
- "payload": "string",
- "payment_id": "string",
- "processed_at": "2019-08-24T14:15:22Z",
- "rrn": "string",
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "transaction_id": "string",
- "operation_id": "string",
- "auth_code": "string",
- "fee": {
- "amount": "0",
- "currency": "string"
}, - "terminal_name": "string",
- "bank_name": "string",
- "method": "string",
- "recurrent_id": "string",
- "mid": "string",
- "tid": "string",
- "recipient_iban": "string",
- "subscription_id": "string",
- "fiscalization": {
- "fiscal_id": "string",
- "fiscal_url": "string",
- "status": "Pending",
- "status_code": 0,
- "status_description": "string"
}
}, - "external_id": "string",
- "unified_external_id": "string",
- "batch_external_id": "string",
- "id": "0",
- "project_id": "string",
- "is_success": true,
- "receipt_url": "string",
- "payment_method": {
- "cc_token": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "saved_card": true,
- "bin_country": "string"
}, - "apple_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "google_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "type": "cc_token"
}, - "customer": {
- "browser_user_agent": "string",
- "external_id": "string",
- "first_name": "string",
- "ip_address": "string",
- "last_name": "string",
- "patronym": "string",
- "phone": "string"
}, - "operation": "payment"
}Refund one-step payment after withdrawal, or two-step payment after confirmation.
| external_id required | string External ID of a payment, passed from your side on create. |
| amount | number |
| callback_url | string <url> |
| currency | string |
| payload | string |
Array of objects (Product) List of products for refund. Required in case of partial refund for projects with enabled fiscalization. For full refund products would be taken from create request. |
{- "external_id": "string",
- "amount": 0,
- "callback_url": "string",
- "currency": "string",
- "payload": "string",
- "products": [
- {
- "category": "string",
- "currency": "string",
- "description": "string",
- "id": "string",
- "image": "string",
- "name": "string",
- "net_amount": "0",
- "quantity": "string",
- "url": "string",
- "vat_amount": "0",
- "tax_group": 0
}
]
}{- "action": {
- "type": "url",
- "value": "string"
}, - "action_required": true,
- "details": {
- "amount": "0",
- "billing_order_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "currency": "string",
- "description": "string",
- "gateway_order_id": "string",
- "payload": "string",
- "payment_id": "string",
- "processed_at": "2019-08-24T14:15:22Z",
- "rrn": "string",
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "transaction_id": "string",
- "operation_id": "string",
- "auth_code": "string",
- "fee": {
- "amount": "0",
- "currency": "string"
}, - "terminal_name": "string",
- "bank_name": "string",
- "method": "string",
- "recurrent_id": "string",
- "mid": "string",
- "tid": "string",
- "recipient_iban": "string",
- "subscription_id": "string",
- "fiscalization": {
- "fiscal_id": "string",
- "fiscal_url": "string",
- "status": "Pending",
- "status_code": 0,
- "status_description": "string"
}
}, - "external_id": "string",
- "unified_external_id": "string",
- "batch_external_id": "string",
- "id": "0",
- "project_id": "string",
- "is_success": true,
- "receipt_url": "string",
- "payment_method": {
- "cc_token": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "saved_card": true,
- "bin_country": "string"
}, - "apple_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "google_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "type": "cc_token"
}, - "customer": {
- "browser_user_agent": "string",
- "external_id": "string",
- "first_name": "string",
- "ip_address": "string",
- "last_name": "string",
- "patronym": "string",
- "phone": "string"
}, - "operation": "payment"
}{- "action": {
- "type": "url",
- "value": "string"
}, - "action_required": true,
- "details": {
- "amount": "0",
- "billing_order_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "currency": "string",
- "description": "string",
- "gateway_order_id": "string",
- "payload": "string",
- "payment_id": "string",
- "processed_at": "2019-08-24T14:15:22Z",
- "rrn": "string",
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "transaction_id": "string",
- "operation_id": "string",
- "auth_code": "string",
- "fee": {
- "amount": "0",
- "currency": "string"
}, - "terminal_name": "string",
- "bank_name": "string",
- "method": "string",
- "recurrent_id": "string",
- "mid": "string",
- "tid": "string",
- "recipient_iban": "string",
- "subscription_id": "string",
- "fiscalization": {
- "fiscal_id": "string",
- "fiscal_url": "string",
- "status": "Pending",
- "status_code": 0,
- "status_description": "string"
}
}, - "external_id": "string",
- "unified_external_id": "string",
- "batch_external_id": "string",
- "id": "0",
- "project_id": "string",
- "is_success": true,
- "receipt_url": "string",
- "payment_method": {
- "cc_token": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "saved_card": true,
- "bin_country": "string"
}, - "apple_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "google_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "type": "cc_token"
}, - "customer": {
- "browser_user_agent": "string",
- "external_id": "string",
- "first_name": "string",
- "ip_address": "string",
- "last_name": "string",
- "patronym": "string",
- "phone": "string"
}, - "operation": "payment"
}If merchant's balance is not enough to process refund, this refund will be deferred and retried automatically
for some period until it fails for some reason, or balance became enough to process it. If the refund retrying
is timed out, the transaction will became failed with refund_is_cancelled_by_system status.
This endpoint allows to retry refund transaction manually if it has pending status.
| external_id required | string External ID of a payment, passed from your side on create. |
{- "external_id": "string"
}{- "action": {
- "type": "url",
- "value": "string"
}, - "action_required": true,
- "details": {
- "amount": "0",
- "billing_order_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "currency": "string",
- "description": "string",
- "gateway_order_id": "string",
- "payload": "string",
- "payment_id": "string",
- "processed_at": "2019-08-24T14:15:22Z",
- "rrn": "string",
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "transaction_id": "string",
- "operation_id": "string",
- "auth_code": "string",
- "fee": {
- "amount": "0",
- "currency": "string"
}, - "terminal_name": "string",
- "bank_name": "string",
- "method": "string",
- "recurrent_id": "string",
- "mid": "string",
- "tid": "string",
- "recipient_iban": "string",
- "subscription_id": "string",
- "fiscalization": {
- "fiscal_id": "string",
- "fiscal_url": "string",
- "status": "Pending",
- "status_code": 0,
- "status_description": "string"
}
}, - "external_id": "string",
- "unified_external_id": "string",
- "batch_external_id": "string",
- "id": "0",
- "project_id": "string",
- "is_success": true,
- "receipt_url": "string",
- "payment_method": {
- "cc_token": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "saved_card": true,
- "bin_country": "string"
}, - "apple_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "google_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "type": "cc_token"
}, - "customer": {
- "browser_user_agent": "string",
- "external_id": "string",
- "first_name": "string",
- "ip_address": "string",
- "last_name": "string",
- "patronym": "string",
- "phone": "string"
}, - "operation": "payment"
}{- "action": {
- "type": "url",
- "value": "string"
}, - "action_required": true,
- "details": {
- "amount": "0",
- "billing_order_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "currency": "string",
- "description": "string",
- "gateway_order_id": "string",
- "payload": "string",
- "payment_id": "string",
- "processed_at": "2019-08-24T14:15:22Z",
- "rrn": "string",
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "transaction_id": "string",
- "operation_id": "string",
- "auth_code": "string",
- "fee": {
- "amount": "0",
- "currency": "string"
}, - "terminal_name": "string",
- "bank_name": "string",
- "method": "string",
- "recurrent_id": "string",
- "mid": "string",
- "tid": "string",
- "recipient_iban": "string",
- "subscription_id": "string",
- "fiscalization": {
- "fiscal_id": "string",
- "fiscal_url": "string",
- "status": "Pending",
- "status_code": 0,
- "status_description": "string"
}
}, - "external_id": "string",
- "unified_external_id": "string",
- "batch_external_id": "string",
- "id": "0",
- "project_id": "string",
- "is_success": true,
- "receipt_url": "string",
- "payment_method": {
- "cc_token": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "saved_card": true,
- "bin_country": "string"
}, - "apple_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "google_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "type": "cc_token"
}, - "customer": {
- "browser_user_agent": "string",
- "external_id": "string",
- "first_name": "string",
- "ip_address": "string",
- "last_name": "string",
- "patronym": "string",
- "phone": "string"
}, - "operation": "payment"
}If merchant's balance is not enough to process refund, this refund will be deferred and retried automatically for some period until it fails or balance became enough to process it. If the refund retrying process is timed out, the transaction will became failed with refund_is_cancelled_by_system status. This endpoint allows to cancel refund transaction manually if it has pending status. In this case the status it will be set to refund_is_cancelled_by_initiator.
| external_id required | string External ID of a payment, passed from your side on create. |
{- "external_id": "string"
}{- "action": {
- "type": "url",
- "value": "string"
}, - "action_required": true,
- "details": {
- "amount": "0",
- "billing_order_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "currency": "string",
- "description": "string",
- "gateway_order_id": "string",
- "payload": "string",
- "payment_id": "string",
- "processed_at": "2019-08-24T14:15:22Z",
- "rrn": "string",
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "transaction_id": "string",
- "operation_id": "string",
- "auth_code": "string",
- "fee": {
- "amount": "0",
- "currency": "string"
}, - "terminal_name": "string",
- "bank_name": "string",
- "method": "string",
- "recurrent_id": "string",
- "mid": "string",
- "tid": "string",
- "recipient_iban": "string",
- "subscription_id": "string",
- "fiscalization": {
- "fiscal_id": "string",
- "fiscal_url": "string",
- "status": "Pending",
- "status_code": 0,
- "status_description": "string"
}
}, - "external_id": "string",
- "unified_external_id": "string",
- "batch_external_id": "string",
- "id": "0",
- "project_id": "string",
- "is_success": true,
- "receipt_url": "string",
- "payment_method": {
- "cc_token": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "saved_card": true,
- "bin_country": "string"
}, - "apple_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "google_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "type": "cc_token"
}, - "customer": {
- "browser_user_agent": "string",
- "external_id": "string",
- "first_name": "string",
- "ip_address": "string",
- "last_name": "string",
- "patronym": "string",
- "phone": "string"
}, - "operation": "payment"
}{- "action": {
- "type": "url",
- "value": "string"
}, - "action_required": true,
- "details": {
- "amount": "0",
- "billing_order_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "currency": "string",
- "description": "string",
- "gateway_order_id": "string",
- "payload": "string",
- "payment_id": "string",
- "processed_at": "2019-08-24T14:15:22Z",
- "rrn": "string",
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "transaction_id": "string",
- "operation_id": "string",
- "auth_code": "string",
- "fee": {
- "amount": "0",
- "currency": "string"
}, - "terminal_name": "string",
- "bank_name": "string",
- "method": "string",
- "recurrent_id": "string",
- "mid": "string",
- "tid": "string",
- "recipient_iban": "string",
- "subscription_id": "string",
- "fiscalization": {
- "fiscal_id": "string",
- "fiscal_url": "string",
- "status": "Pending",
- "status_code": 0,
- "status_description": "string"
}
}, - "external_id": "string",
- "unified_external_id": "string",
- "batch_external_id": "string",
- "id": "0",
- "project_id": "string",
- "is_success": true,
- "receipt_url": "string",
- "payment_method": {
- "cc_token": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "saved_card": true,
- "bin_country": "string"
}, - "apple_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "google_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "type": "cc_token"
}, - "customer": {
- "browser_user_agent": "string",
- "external_id": "string",
- "first_name": "string",
- "ip_address": "string",
- "last_name": "string",
- "patronym": "string",
- "phone": "string"
}, - "operation": "payment"
}Get payment info by id
| external_id required | any External ID (unique identifier) |
{- "action": {
- "type": "url",
- "value": "string"
}, - "action_required": true,
- "amount": "0",
- "amount_canceled": "0",
- "amount_confirmed": "0",
- "amount_refunded": "0",
- "canceled": true,
- "cancellation_details": [
- {
- "amount": "0",
- "billing_order_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "currency": "string",
- "description": "string",
- "gateway_order_id": "string",
- "payload": "string",
- "payment_id": "string",
- "processed_at": "2019-08-24T14:15:22Z",
- "rrn": "string",
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "transaction_id": "string",
- "operation_id": "string",
- "auth_code": "string",
- "fee": {
- "amount": "0",
- "currency": "string"
}, - "terminal_name": "string",
- "bank_name": "string",
- "method": "string",
- "recurrent_id": "string",
- "mid": "string",
- "tid": "string",
- "recipient_iban": "string",
- "subscription_id": "string",
- "fiscalization": {
- "fiscal_id": "string",
- "fiscal_url": "string",
- "status": "Pending",
- "status_code": 0,
- "status_description": "string"
}
}
], - "confirmation_details": [
- {
- "amount": "0",
- "billing_order_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "currency": "string",
- "description": "string",
- "gateway_order_id": "string",
- "payload": "string",
- "payment_id": "string",
- "processed_at": "2019-08-24T14:15:22Z",
- "rrn": "string",
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "transaction_id": "string",
- "operation_id": "string",
- "auth_code": "string",
- "fee": {
- "amount": "0",
- "currency": "string"
}, - "terminal_name": "string",
- "bank_name": "string",
- "method": "string",
- "recurrent_id": "string",
- "mid": "string",
- "tid": "string",
- "recipient_iban": "string",
- "subscription_id": "string",
- "fiscalization": {
- "fiscal_id": "string",
- "fiscal_url": "string",
- "status": "Pending",
- "status_code": 0,
- "status_description": "string"
}
}
], - "confirmed": true,
- "created_at": "2019-08-24T14:15:22Z",
- "currency": "string",
- "external_id": "string",
- "batch_external_id": "string",
- "id": "string",
- "unified_external_id": "string",
- "purchase_details": [
- {
- "amount": "0",
- "billing_order_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "currency": "string",
- "description": "string",
- "gateway_order_id": "string",
- "payload": "string",
- "payment_id": "string",
- "processed_at": "2019-08-24T14:15:22Z",
- "rrn": "string",
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "transaction_id": "string",
- "operation_id": "string",
- "auth_code": "string",
- "fee": {
- "amount": "0",
- "currency": "string"
}, - "terminal_name": "string",
- "bank_name": "string",
- "method": "string",
- "recurrent_id": "string",
- "mid": "string",
- "tid": "string",
- "recipient_iban": "string",
- "subscription_id": "string",
- "fiscalization": {
- "fiscal_id": "string",
- "fiscal_url": "string",
- "status": "Pending",
- "status_code": 0,
- "status_description": "string"
}
}
], - "purchased": true,
- "receipt_url": "string",
- "refund_details": [
- {
- "amount": "0",
- "billing_order_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "currency": "string",
- "description": "string",
- "gateway_order_id": "string",
- "payload": "string",
- "payment_id": "string",
- "processed_at": "2019-08-24T14:15:22Z",
- "rrn": "string",
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "transaction_id": "string",
- "operation_id": "string",
- "auth_code": "string",
- "fee": {
- "amount": "0",
- "currency": "string"
}, - "terminal_name": "string",
- "bank_name": "string",
- "method": "string",
- "recurrent_id": "string",
- "mid": "string",
- "tid": "string",
- "recipient_iban": "string",
- "subscription_id": "string",
- "fiscalization": {
- "fiscal_id": "string",
- "fiscal_url": "string",
- "status": "Pending",
- "status_code": 0,
- "status_description": "string"
}
}
], - "refunded": true,
- "customer": {
- "account_number": "string",
- "external_id": "string",
- "first_name": "string",
- "last_name": "string",
- "patronym": "string",
- "payment_method": {
- "cc_token": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "saved_card": true,
- "bin_country": "string"
}, - "apple_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "google_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "type": "cc_token"
}, - "phone": "string"
}, - "partner_details": {
- "transaction_id": "string"
}, - "delivery_details": {
- "apartment": "string",
- "city": "string",
- "delivery_type": "string",
- "house": "string",
- "provider": "string",
- "street": "string",
- "warehouse_number": "string"
}, - "order_recipient": {
- "phone": "string",
- "name": "string",
- "last_name": "string",
- "middle_name": "string"
}
}Prepares the data about the specified payment of transaction and sends it into callback_url which was provided on the payment step.
If the operation field is not provided the callback will be sent for the last operation.
| external_id required | string |
| operation | string (OperationType) Enum: "payment" "confirm" "refund" "cancel" "lookup" "recurrent" |
{- "external_id": "string",
- "operation": "payment"
}{- "code": "authorization_failed",
- "message": "string",
- "param": "string",
- "payment_id": "string",
- "type": "invalid_request_error",
- "error_id": "string"
}{- "action": {
- "type": "url",
- "value": "string"
}, - "action_required": true,
- "details": {
- "amount": "0",
- "billing_order_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "currency": "string",
- "description": "string",
- "gateway_order_id": "string",
- "payload": "string",
- "payment_id": "string",
- "processed_at": "2019-08-24T14:15:22Z",
- "rrn": "string",
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "transaction_id": "string",
- "operation_id": "string",
- "auth_code": "string",
- "fee": {
- "amount": "0",
- "currency": "string"
}, - "terminal_name": "string",
- "bank_name": "string",
- "method": "string",
- "recurrent_id": "string",
- "mid": "string",
- "tid": "string",
- "recipient_iban": "string",
- "subscription_id": "string",
- "fiscalization": {
- "fiscal_id": "string",
- "fiscal_url": "string",
- "status": "Pending",
- "status_code": 0,
- "status_description": "string"
}
}, - "external_id": "string",
- "unified_external_id": "string",
- "batch_external_id": "string",
- "id": "0",
- "project_id": "string",
- "is_success": true,
- "receipt_url": "string",
- "payment_method": {
- "cc_token": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "saved_card": true,
- "bin_country": "string"
}, - "apple_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "google_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "type": "cc_token"
}, - "customer": {
- "browser_user_agent": "string",
- "external_id": "string",
- "first_name": "string",
- "ip_address": "string",
- "last_name": "string",
- "patronym": "string",
- "phone": "string"
}, - "operation": "payment"
}Starts card confirmation process that allows to use this card for future operations.
Result of the confirmation will be sent via callback.
When mode is set to direct - customer field becomes required.
| callback_url | string <url> |
| result_url | string <url> |
| currency | string |
object (CustomerRequestUserDetails) | |
| description | string |
| payload | string |
| mode required | string (PaymentMode) Enum: "direct" "hosted" "express_checkout" Describes the way of the integration:
|
{- "callback_url": "string",
- "result_url": "string",
- "currency": "string",
- "customer": {
- "address": "string",
- "city": "string",
- "country": "string",
- "external_id": "string",
- "first_name": "string",
- "last_name": "string",
- "patronym": "string",
- "phone": "string",
- "postal_code": "string",
- "payment_method": {
- "cc": {
- "cvv": "string",
- "exp_month": 1,
- "exp_year": 0,
- "number": "string",
- "use_3ds_flow": true
}, - "cc_token": {
- "token": "string",
- "use_3ds_flow": true,
- "save_to_wallet": false
}, - "type": "cc_token",
- "wallet": {
- "option_id": "ab22e710-5ce4-4e7e-a3db-bd6fdad8fe36",
- "use_3ds_flow": true
}, - "apple_pay": {
- "token": "string",
- "use_3ds_flow": true
}, - "google_pay": {
- "token": "string",
- "use_3ds_flow": true
}, - "decrypted_apple_pay": {
- "application_primary_account_number": "string",
- "application_expiration_date": "string",
- "online_payment_cryptogram": "string",
- "currency_code": "string",
- "device_manufacturer_identifier": "string",
- "transaction_id": "string",
- "ephemeral_public_key": "string",
- "public_key_hash": "string",
- "eci_indicator": "string",
- "use_3ds_flow": true
}, - "decrypted_google_pay": {
- "pan": "string",
- "exp_month": 0,
- "exp_year": 0,
- "cryptogram": "string",
- "eci_indicator": "string",
- "auth_method": "string",
- "gateway_merchant_id": "string",
- "message_id": "string",
- "message_expiration": "string",
- "payment_method": "string",
- "protocol_version": "string",
- "use_3ds_flow": true
}
}, - "color_mode": "white",
- "locale": "UK",
- "account_number": "string",
- "ip_address": "192.168.0.1",
- "fingerprint": {
- "browser_accept_header": "string",
- "browser_color_depth": "string",
- "browser_ip_address": "string",
- "browser_java_enabled": "string",
- "browser_language": "string",
- "browser_screen_height": "string",
- "browser_screen_width": "string",
- "browser_time_zone": "string",
- "browser_time_zone_offset": "string",
- "browser_user_agent": "string"
}
}, - "description": "string",
- "payload": "string",
- "mode": "direct"
}{- "action": {
- "type": "url",
- "value": "string"
}, - "action_required": true,
- "details": {
- "amount": "0",
- "billing_order_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "currency": "string",
- "description": "string",
- "gateway_order_id": "string",
- "payload": "string",
- "payment_id": "string",
- "processed_at": "2019-08-24T14:15:22Z",
- "rrn": "string",
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "transaction_id": "string",
- "operation_id": "string",
- "auth_code": "string",
- "fee": {
- "amount": "0",
- "currency": "string"
}, - "terminal_name": "string",
- "bank_name": "string",
- "method": "string",
- "recurrent_id": "string",
- "mid": "string",
- "tid": "string",
- "recipient_iban": "string",
- "subscription_id": "string",
- "fiscalization": {
- "fiscal_id": "string",
- "fiscal_url": "string",
- "status": "Pending",
- "status_code": 0,
- "status_description": "string"
}
}, - "external_id": "string",
- "unified_external_id": "string",
- "batch_external_id": "string",
- "id": "0",
- "project_id": "string",
- "is_success": true,
- "receipt_url": "string",
- "payment_method": {
- "cc_token": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "saved_card": true,
- "bin_country": "string"
}, - "apple_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "google_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "type": "cc_token"
}, - "customer": {
- "browser_user_agent": "string",
- "external_id": "string",
- "first_name": "string",
- "ip_address": "string",
- "last_name": "string",
- "patronym": "string",
- "phone": "string"
}, - "operation": "payment"
}{- "action": {
- "type": "url",
- "value": "string"
}, - "action_required": true,
- "details": {
- "amount": "0",
- "billing_order_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "currency": "string",
- "description": "string",
- "gateway_order_id": "string",
- "payload": "string",
- "payment_id": "string",
- "processed_at": "2019-08-24T14:15:22Z",
- "rrn": "string",
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "transaction_id": "string",
- "operation_id": "string",
- "auth_code": "string",
- "fee": {
- "amount": "0",
- "currency": "string"
}, - "terminal_name": "string",
- "bank_name": "string",
- "method": "string",
- "recurrent_id": "string",
- "mid": "string",
- "tid": "string",
- "recipient_iban": "string",
- "subscription_id": "string",
- "fiscalization": {
- "fiscal_id": "string",
- "fiscal_url": "string",
- "status": "Pending",
- "status_code": 0,
- "status_description": "string"
}
}, - "external_id": "string",
- "unified_external_id": "string",
- "batch_external_id": "string",
- "id": "0",
- "project_id": "string",
- "is_success": true,
- "receipt_url": "string",
- "payment_method": {
- "cc_token": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "saved_card": true,
- "bin_country": "string"
}, - "apple_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "google_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "type": "cc_token"
}, - "customer": {
- "browser_user_agent": "string",
- "external_id": "string",
- "first_name": "string",
- "ip_address": "string",
- "last_name": "string",
- "patronym": "string",
- "phone": "string"
}, - "operation": "payment"
}Get receipt url by id
| external_id required | any External ID (unique identifier) |
{- "project_id": "string",
}Creates batch payment and performs desired operation.
| callback_url | string <url> URL to receive callback after finalization of batch operation. |
| currency required | string Batch payment currency. |
object (BatchCustomerRequestUserDetails) Payer customer data. | |
| mode required | string (BatchPaymentMode) Enum: "direct" "hosted" Describes the way of the integration:
|
| payload | string Additional data transmitted with the batch payment request. One parameter for the entire batch. |
| result_url | string <url> URL where the user will be redirected after the payment is completed.
If the payment requires 3-D Secure, the user will be redirected to this URL after completing the 3DS flow.
If |
| confirm | boolean Default: true If |
required | Array of objects (BatchOrder) <= 10 items List of orders of batch. |
| batch_external_id required | string External identifier from the merchant, one per batch. Unique within the project. |
| checkout_ttl | number [ 5 .. 720 ] Default: 720 Checkout TTL allows to configure how long the checkout will be available (in minutes). This feature is supported only for hosted mode. |
| campaign_name | string (CampaignName) Enum: "r_card" "diia_card"
|
{- "callback_url": "string",
- "currency": "string",
- "customer": {
- "address": "string",
- "city": "string",
- "country": "string",
- "external_id": "string",
- "first_name": "string",
- "last_name": "string",
- "patronym": "string",
- "phone": "string",
- "postal_code": "string",
- "payment_method": {
- "cc": {
- "cvv": "string",
- "exp_month": 1,
- "exp_year": 0,
- "number": "string",
- "use_3ds_flow": true
}, - "cc_token": {
- "token": "string",
- "use_3ds_flow": true,
- "save_to_wallet": false
}, - "type": "cc_token",
- "wallet": {
- "option_id": "ab22e710-5ce4-4e7e-a3db-bd6fdad8fe36",
- "use_3ds_flow": true
}, - "apple_pay": {
- "token": "string",
- "use_3ds_flow": true
}, - "google_pay": {
- "token": "string",
- "use_3ds_flow": true
}, - "decrypted_apple_pay": {
- "application_primary_account_number": "string",
- "application_expiration_date": "string",
- "online_payment_cryptogram": "string",
- "currency_code": "string",
- "device_manufacturer_identifier": "string",
- "transaction_id": "string",
- "ephemeral_public_key": "string",
- "public_key_hash": "string",
- "eci_indicator": "string",
- "use_3ds_flow": true
}, - "decrypted_google_pay": {
- "pan": "string",
- "exp_month": 0,
- "exp_year": 0,
- "cryptogram": "string",
- "eci_indicator": "string",
- "auth_method": "string",
- "gateway_merchant_id": "string",
- "message_id": "string",
- "message_expiration": "string",
- "payment_method": "string",
- "protocol_version": "string",
- "use_3ds_flow": true
}
}, - "locale": "UK",
- "color_mode": "white",
- "fingerprint": {
- "browser_accept_header": "string",
- "browser_color_depth": "string",
- "browser_ip_address": "string",
- "browser_java_enabled": "string",
- "browser_language": "string",
- "browser_screen_height": "string",
- "browser_screen_width": "string",
- "browser_time_zone": "string",
- "browser_time_zone_offset": "string",
- "browser_user_agent": "string"
}
}, - "mode": "direct",
- "payload": "string",
- "result_url": "string",
- "confirm": true,
- "orders": [
- {
- "api_key": "string",
- "amount": 0,
- "description": "string",
- "external_id": "string",
- "unified_external_id": "string",
- "products": [
- {
- "category": "string",
- "currency": "string",
- "description": "string",
- "id": "string",
- "image": "string",
- "name": "string",
- "net_amount": "0",
- "quantity": "string",
- "url": "string",
- "vat_amount": "0",
- "tax_group": 0
}
]
}
], - "batch_external_id": "string",
- "checkout_ttl": 720,
- "campaign_name": "r_card"
}{- "id": "0",
- "action_required": true,
- "action": {
- "type": "url",
- "value": "string"
}, - "batch_details": {
- "amount": "0",
- "auth_code": "string",
- "comment": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "currency": "string",
- "mid": "string",
- "payload": "string",
- "processed_at": "2019-08-24T14:15:22Z",
- "rrn": "string",
- "terminal_name": "string",
- "bank_name": "string",
- "tid": "string"
}, - "payment_method": {
- "cc_token": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "saved_card": true,
- "bin_country": "string"
}, - "apple_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "google_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "type": "cc_token"
}, - "order_details": [
- {
- "external_id": "string",
- "unified_external_id": "string",
- "description": "string",
- "operation_id": "string",
- "transaction_id": "string",
- "recipient_iban": "string",
- "amount": "0",
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "method": "create",
- "fee": {
- "amount": "0",
- "currency": "string"
}
}
], - "batch_external_id": "string",
- "receipt_url": "string"
}{- "action": {
- "type": "url",
- "value": "string"
}, - "action_required": true,
- "details": {
- "amount": "0",
- "billing_order_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "currency": "string",
- "description": "string",
- "gateway_order_id": "string",
- "payload": "string",
- "payment_id": "string",
- "processed_at": "2019-08-24T14:15:22Z",
- "rrn": "string",
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "transaction_id": "string",
- "operation_id": "string",
- "auth_code": "string",
- "fee": {
- "amount": "0",
- "currency": "string"
}, - "terminal_name": "string",
- "bank_name": "string",
- "method": "string",
- "recurrent_id": "string",
- "mid": "string",
- "tid": "string",
- "recipient_iban": "string",
- "subscription_id": "string",
- "fiscalization": {
- "fiscal_id": "string",
- "fiscal_url": "string",
- "status": "Pending",
- "status_code": 0,
- "status_description": "string"
}
}, - "external_id": "string",
- "unified_external_id": "string",
- "batch_external_id": "string",
- "id": "0",
- "project_id": "string",
- "is_success": true,
- "receipt_url": "string",
- "payment_method": {
- "cc_token": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "saved_card": true,
- "bin_country": "string"
}, - "apple_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "google_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "type": "cc_token"
}, - "customer": {
- "browser_user_agent": "string",
- "external_id": "string",
- "first_name": "string",
- "ip_address": "string",
- "last_name": "string",
- "patronym": "string",
- "phone": "string"
}, - "operation": "payment"
}Confirms batch payment and performs desired operation.
| callback_url | string <url> URL to receive callback after finalization of batch operation. |
| currency required | string Batch payment currency. |
| payload | string Additional data transmitted with the batch payment confirmation request. One parameter for the entire confirmation request. |
Array of objects (BatchConfirmOrder) <= 40 items List of orders in batch to confirm. | |
| batch_external_id required | string External identifier from the merchant. Ought to be the same as during batch creation. |
{- "callback_url": "string",
- "currency": "string",
- "payload": "string",
- "orders": [
- {
- "api_key": "string",
- "amount": 0,
- "external_id": "string"
}
], - "batch_external_id": "string"
}{- "id": "0",
- "action_required": true,
- "action": {
- "type": "url",
- "value": "string"
}, - "batch_details": {
- "amount": "0",
- "auth_code": "string",
- "comment": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "currency": "string",
- "mid": "string",
- "payload": "string",
- "processed_at": "2019-08-24T14:15:22Z",
- "rrn": "string",
- "terminal_name": "string",
- "bank_name": "string",
- "tid": "string"
}, - "payment_method": {
- "cc_token": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "saved_card": true,
- "bin_country": "string"
}, - "apple_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "google_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "type": "cc_token"
}, - "order_details": [
- {
- "external_id": "string",
- "unified_external_id": "string",
- "description": "string",
- "operation_id": "string",
- "transaction_id": "string",
- "recipient_iban": "string",
- "amount": "0",
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "method": "create",
- "fee": {
- "amount": "0",
- "currency": "string"
}
}
], - "batch_external_id": "string",
- "receipt_url": "string"
}{- "action": {
- "type": "url",
- "value": "string"
}, - "action_required": true,
- "details": {
- "amount": "0",
- "billing_order_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "currency": "string",
- "description": "string",
- "gateway_order_id": "string",
- "payload": "string",
- "payment_id": "string",
- "processed_at": "2019-08-24T14:15:22Z",
- "rrn": "string",
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "transaction_id": "string",
- "operation_id": "string",
- "auth_code": "string",
- "fee": {
- "amount": "0",
- "currency": "string"
}, - "terminal_name": "string",
- "bank_name": "string",
- "method": "string",
- "recurrent_id": "string",
- "mid": "string",
- "tid": "string",
- "recipient_iban": "string",
- "subscription_id": "string",
- "fiscalization": {
- "fiscal_id": "string",
- "fiscal_url": "string",
- "status": "Pending",
- "status_code": 0,
- "status_description": "string"
}
}, - "external_id": "string",
- "unified_external_id": "string",
- "batch_external_id": "string",
- "id": "0",
- "project_id": "string",
- "is_success": true,
- "receipt_url": "string",
- "payment_method": {
- "cc_token": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "saved_card": true,
- "bin_country": "string"
}, - "apple_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "google_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "type": "cc_token"
}, - "customer": {
- "browser_user_agent": "string",
- "external_id": "string",
- "first_name": "string",
- "ip_address": "string",
- "last_name": "string",
- "patronym": "string",
- "phone": "string"
}, - "operation": "payment"
}Cancels batch payment and performs desired operation.
| callback_url | string <url> URL to receive callback after finalization of batch operation. |
| payload | string Additional data transmitted with the batch payment cancellation request. One parameter for the entire cancellation request. |
| batch_external_id required | string External identifier from the merchant. Ought to be the same as during batch creation. |
{- "callback_url": "string",
- "payload": "string",
- "batch_external_id": "string"
}{- "id": "0",
- "action_required": true,
- "action": {
- "type": "url",
- "value": "string"
}, - "batch_details": {
- "amount": "0",
- "auth_code": "string",
- "comment": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "currency": "string",
- "mid": "string",
- "payload": "string",
- "processed_at": "2019-08-24T14:15:22Z",
- "rrn": "string",
- "terminal_name": "string",
- "bank_name": "string",
- "tid": "string"
}, - "payment_method": {
- "cc_token": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "saved_card": true,
- "bin_country": "string"
}, - "apple_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "google_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "type": "cc_token"
}, - "order_details": [
- {
- "external_id": "string",
- "unified_external_id": "string",
- "description": "string",
- "operation_id": "string",
- "transaction_id": "string",
- "recipient_iban": "string",
- "amount": "0",
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "method": "create",
- "fee": {
- "amount": "0",
- "currency": "string"
}
}
], - "batch_external_id": "string",
- "receipt_url": "string"
}{- "action": {
- "type": "url",
- "value": "string"
}, - "action_required": true,
- "details": {
- "amount": "0",
- "billing_order_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "currency": "string",
- "description": "string",
- "gateway_order_id": "string",
- "payload": "string",
- "payment_id": "string",
- "processed_at": "2019-08-24T14:15:22Z",
- "rrn": "string",
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "transaction_id": "string",
- "operation_id": "string",
- "auth_code": "string",
- "fee": {
- "amount": "0",
- "currency": "string"
}, - "terminal_name": "string",
- "bank_name": "string",
- "method": "string",
- "recurrent_id": "string",
- "mid": "string",
- "tid": "string",
- "recipient_iban": "string",
- "subscription_id": "string",
- "fiscalization": {
- "fiscal_id": "string",
- "fiscal_url": "string",
- "status": "Pending",
- "status_code": 0,
- "status_description": "string"
}
}, - "external_id": "string",
- "unified_external_id": "string",
- "batch_external_id": "string",
- "id": "0",
- "project_id": "string",
- "is_success": true,
- "receipt_url": "string",
- "payment_method": {
- "cc_token": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "saved_card": true,
- "bin_country": "string"
}, - "apple_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "google_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "type": "cc_token"
}, - "customer": {
- "browser_user_agent": "string",
- "external_id": "string",
- "first_name": "string",
- "ip_address": "string",
- "last_name": "string",
- "patronym": "string",
- "phone": "string"
}, - "operation": "payment"
}Creates a payout request with desired payout type.
required | object |
required | object |
required | object (PayoutRecipient) |
{- "order": {
- "callback_url": "string",
- "currency": "string",
- "description": "string",
- "external_id": "string",
- "original_amount": "string"
}, - "payer": {
- "entity_id": "string"
}, - "recipient": {
- "card": {
- "first_name": "string",
- "last_name": "string",
- "middle_name": "string",
- "phone": "+380956664499",
- "rid": "06367b17-91f0-49c2-b4f0-ec544c175798",
- "ipn": "3228412933",
- "external_id": "string",
- "card_data": {
- "number": "string",
- "token": "string",
- "option_id": "string"
}
}, - "cash": {
- "first_name": "string",
- "last_name": "string",
- "middle_name": "string",
- "phone": "+380956664499",
- "rid": "06367b17-91f0-49c2-b4f0-ec544c175798",
- "ipn": "3228412933",
- "external_id": "string"
}, - "payout_type": "card"
}
}{- "currency": "string",
- "description": "string",
- "external_id": "string",
- "fc_id": 0,
- "original_amount": "0",
- "partner_key_id": "string",
- "payer_account": {
- "entity_id": "string"
}, - "payer_amount": "0",
- "payer_outer_fee": "0",
- "payment_type": "string",
- "payout_type": "string",
- "recipient_user": {
- "first_name": "string",
- "last_name": "string",
- "middle_name": "string",
- "phone": "+380956664499",
- "rid": "06367b17-91f0-49c2-b4f0-ec544c175798",
- "ipn": "3228412933",
- "external_id": "string"
}, - "status": "init",
- "status_code": "string",
- "status_code_description": "string",
- "transaction_id": "string"
}{- "transaction_id": "string",
- "partner_key_id": "string",
- "external_id": "string",
- "fc_id": 0,
- "currency": "string",
- "original_amount": "0",
- "payer_amount": "0",
- "payer_outer_fee": "0",
- "recipient_amount": "0",
- "payment_type": "string",
- "payout_type": "string",
- "status": "init",
- "status_code": "string",
- "status_code_description": "string"
}Get payout transaction status
| external_id required | any Identifier of the transaction in your platform |
{- "currency": "string",
- "description": "string",
- "external_id": "string",
- "fc_id": 0,
- "original_amount": "0",
- "partner_key_id": "string",
- "payer_account": {
- "entity_id": "string"
}, - "payer_amount": "0",
- "payer_outer_fee": "0",
- "payment_type": "string",
- "payout_type": "string",
- "recipient_user": {
- "first_name": "string",
- "last_name": "string",
- "middle_name": "string",
- "phone": "+380956664499",
- "rid": "06367b17-91f0-49c2-b4f0-ec544c175798",
- "ipn": "3228412933",
- "external_id": "string"
}, - "status": "init",
- "status_code": "string",
- "status_code_description": "string",
- "transaction_id": "string"
}Returns available and commited balance of the merchant. Useful to track available funds for payout requests.
| merchant_entity_id required | any Merchant entity id |
{- "available_amount": 30523.44,
- "commitment_amount": 199.99
}Resends payout callback
| external_id required | string |
{- "external_id": "string"
}{- "code": "authorization_failed",
- "message": "string",
- "param": "string",
- "payment_id": "string",
- "type": "invalid_request_error",
- "error_id": "string"
}Cancels cash payout
| external_id required | string |
{- "external_id": "string"
}{- "currency": "string",
- "description": "string",
- "external_id": "string",
- "fc_id": 0,
- "original_amount": "0",
- "partner_key_id": "string",
- "payer_account": {
- "entity_id": "string"
}, - "payer_amount": "0",
- "payer_outer_fee": "0",
- "payment_type": "string",
- "payout_type": "string",
- "recipient_user": {
- "first_name": "string",
- "last_name": "string",
- "middle_name": "string",
- "phone": "+380956664499",
- "rid": "06367b17-91f0-49c2-b4f0-ec544c175798",
- "ipn": "3228412933",
- "external_id": "string"
}, - "status": "init",
- "status_code": "string",
- "status_code_description": "string",
- "transaction_id": "string"
}Creates order for payparts using one of the available methods.
For now, only the direct mode is available.
Common response statuses:
success Status Code: contract_was_signed_on_client_side - order was signed on client side, separate confirmation request neededsuccess Status Code: transaction_successful - final success status. Order was confirmed automatically or bank has one stage confirmationpending Status Code: pending - wait for client signingfailure Status Code: any - depends on error| auto_confirm_after_success | boolean Default: false If set to |
| bank_name required | string |
| mode required | string (PayPartsPaymentMode) Enum: "hosted" "direct" Describes the way of the integration:
|
| external_id required | string |
| unified_external_id | string |
| amount required | number >= 1 |
| currency required | string |
| parts_count required | integer Every bank supports different ranges of parts count. Check this values by using the Get banks info endpoint. |
| description required | string Order description can have from 1 to 256 characters. |
| payload | string |
Array of objects (PayPartsProduct) | |
| result_url | string <url> Maximum length is about 2048 characters. Required for bank_name = rozetkapay. |
| callback_url | string <url> |
required | object (PayPartsCustomer) |
Array of objects (PayPartsDelivery) Optional delivery information. |
{- "auto_confirm_after_success": false,
- "bank_name": "string",
- "mode": "hosted",
- "external_id": "string",
- "unified_external_id": "string",
- "amount": 1,
- "currency": "string",
- "parts_count": 0,
- "description": "string",
- "payload": "string",
- "products": [
- {
- "external_id": "string",
- "name": "string",
- "quantity": 0,
- "price": 0,
- "category_name": "string",
- "tax_group": 0
}
], - "result_url": "string",
- "callback_url": "string",
- "customer": {
- "first_name": "string",
- "last_name": "string",
- "phone": "+38XXXXXXXXXX",
- "account_number": "string",
- "fingerprint": {
- "browser_accept_header": "string",
- "browser_color_depth": "string",
- "browser_ip_address": "string",
- "browser_java_enabled": "string",
- "browser_language": "string",
- "browser_screen_height": "string",
- "browser_screen_width": "string",
- "browser_time_zone": "string",
- "browser_time_zone_offset": "string",
- "browser_user_agent": "string"
}, - "payment_method": {
- "type": "card",
- "card": {
- "number": "string",
- "exp_month": 0,
- "exp_year": 0,
- "cvv": "string"
}, - "cc_token": {
- "token": "string",
- "use_3ds_flow": true,
- "save_to_wallet": false
}
}
}, - "deliveries": [
- {
- "method_id": "string",
- "service_id": "641e839f-864e-4cce-98f9-40f6cbb3e9e0",
- "time": "string",
- "city": "string",
- "street": "string",
- "house": "string",
- "flat": "string",
- "is_other_person": true,
- "other_person": {
- "last_name": "string",
- "first_name": "string",
- "middle_name": "string",
- "phone": "string"
}
}
]
}{- "id": "string",
- "external_id": "string",
- "unified_external_id": "string",
- "is_success": true,
- "details": {
- "method": "create",
- "operation_id": "string",
- "transaction_id": "string",
- "billing_order_id": "string",
- "gateway_order_id": "string",
- "rrn": "string",
- "amount": 0,
- "currency": null,
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "processed_at": "2019-08-24T14:15:22Z",
- "payload": "string",
- "auth_code": "string",
- "bank_name": "string",
- "bank_key": "string",
- "fiscalization": {
- "fiscal_id": "string",
- "fiscal_url": "string",
- "status": "Pending",
- "status_code": 0,
- "status_description": "string"
}
}, - "action_required": true,
- "action": {
- "type": "url",
- "value": "string"
}, - "receipt_url": "string"
}{- "id": "string",
- "external_id": "string",
- "unified_external_id": "string",
- "is_success": true,
- "details": {
- "method": "create",
- "operation_id": "string",
- "transaction_id": "string",
- "billing_order_id": "string",
- "gateway_order_id": "string",
- "rrn": "string",
- "amount": 0,
- "currency": null,
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "processed_at": "2019-08-24T14:15:22Z",
- "payload": "string",
- "auth_code": "string",
- "bank_name": "string",
- "bank_key": "string",
- "fiscalization": {
- "fiscal_id": "string",
- "fiscal_url": "string",
- "status": "Pending",
- "status_code": 0,
- "status_description": "string"
}
}, - "action_required": true,
- "action": {
- "type": "url",
- "value": "string"
}, - "receipt_url": "string"
}Confirm payparts order
Common response statuses:
success Status Code: transaction_successful - payparts order was successfully confirmedfailure Status Code: any - depends on error| external_id required | string |
| callback_url | string <url> |
| payload | string |
{- "external_id": "string",
- "callback_url": "string",
- "payload": "string"
}{- "id": "string",
- "external_id": "string",
- "unified_external_id": "string",
- "is_success": true,
- "details": {
- "method": "create",
- "operation_id": "string",
- "transaction_id": "string",
- "billing_order_id": "string",
- "gateway_order_id": "string",
- "rrn": "string",
- "amount": 0,
- "currency": null,
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "processed_at": "2019-08-24T14:15:22Z",
- "payload": "string",
- "auth_code": "string",
- "bank_name": "string",
- "bank_key": "string",
- "fiscalization": {
- "fiscal_id": "string",
- "fiscal_url": "string",
- "status": "Pending",
- "status_code": 0,
- "status_description": "string"
}
}, - "action_required": true,
- "action": {
- "type": "url",
- "value": "string"
}, - "receipt_url": "string"
}{- "id": "string",
- "external_id": "string",
- "unified_external_id": "string",
- "is_success": true,
- "details": {
- "method": "create",
- "operation_id": "string",
- "transaction_id": "string",
- "billing_order_id": "string",
- "gateway_order_id": "string",
- "rrn": "string",
- "amount": 0,
- "currency": null,
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "processed_at": "2019-08-24T14:15:22Z",
- "payload": "string",
- "auth_code": "string",
- "bank_name": "string",
- "bank_key": "string",
- "fiscalization": {
- "fiscal_id": "string",
- "fiscal_url": "string",
- "status": "Pending",
- "status_code": 0,
- "status_description": "string"
}
}, - "action_required": true,
- "action": {
- "type": "url",
- "value": "string"
}, - "receipt_url": "string"
}Cancel payparts order
Common response statuses:
success Status Code: cancel_successful - payparts order was successfully canceledfailure Status Code: any - depends on error| external_id required | string |
| callback_url | string <url> |
| payload | string |
{- "external_id": "string",
- "callback_url": "string",
- "payload": "string"
}{- "id": "string",
- "external_id": "string",
- "unified_external_id": "string",
- "is_success": true,
- "details": {
- "method": "create",
- "operation_id": "string",
- "transaction_id": "string",
- "billing_order_id": "string",
- "gateway_order_id": "string",
- "rrn": "string",
- "amount": 0,
- "currency": null,
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "processed_at": "2019-08-24T14:15:22Z",
- "payload": "string",
- "auth_code": "string",
- "bank_name": "string",
- "bank_key": "string",
- "fiscalization": {
- "fiscal_id": "string",
- "fiscal_url": "string",
- "status": "Pending",
- "status_code": 0,
- "status_description": "string"
}
}, - "action_required": true,
- "action": {
- "type": "url",
- "value": "string"
}, - "receipt_url": "string"
}{- "id": "string",
- "external_id": "string",
- "unified_external_id": "string",
- "is_success": true,
- "details": {
- "method": "create",
- "operation_id": "string",
- "transaction_id": "string",
- "billing_order_id": "string",
- "gateway_order_id": "string",
- "rrn": "string",
- "amount": 0,
- "currency": null,
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "processed_at": "2019-08-24T14:15:22Z",
- "payload": "string",
- "auth_code": "string",
- "bank_name": "string",
- "bank_key": "string",
- "fiscalization": {
- "fiscal_id": "string",
- "fiscal_url": "string",
- "status": "Pending",
- "status_code": 0,
- "status_description": "string"
}
}, - "action_required": true,
- "action": {
- "type": "url",
- "value": "string"
}, - "receipt_url": "string"
}Refund transaction after confirmation.
Common response statuses:
success Status Code: refund_successful - payparts installment was successfully refundedpending Status Code: pending - wait for bank refund, final status will be set via callbackfailure Status Code: any - depends on error| external_id required | string |
| amount | number >= 1 |
| currency | string |
| callback_url | string <url> |
| payload | string |
Array of objects (PayPartsProduct) List of products for refund. Required in case of partial refund for projects with enabled fiscalization. For full refund products would be taken from create request. |
{- "external_id": "string",
- "amount": 1,
- "currency": "string",
- "callback_url": "string",
- "payload": "string",
- "products": [
- {
- "external_id": "string",
- "name": "string",
- "quantity": 0,
- "price": 0,
- "category_name": "string",
- "tax_group": 0
}
]
}{- "id": "string",
- "external_id": "string",
- "unified_external_id": "string",
- "is_success": true,
- "details": {
- "method": "create",
- "operation_id": "string",
- "transaction_id": "string",
- "billing_order_id": "string",
- "gateway_order_id": "string",
- "rrn": "string",
- "amount": 0,
- "currency": null,
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "processed_at": "2019-08-24T14:15:22Z",
- "payload": "string",
- "auth_code": "string",
- "bank_name": "string",
- "bank_key": "string",
- "fiscalization": {
- "fiscal_id": "string",
- "fiscal_url": "string",
- "status": "Pending",
- "status_code": 0,
- "status_description": "string"
}
}, - "action_required": true,
- "action": {
- "type": "url",
- "value": "string"
}, - "receipt_url": "string"
}{- "id": "string",
- "external_id": "string",
- "unified_external_id": "string",
- "is_success": true,
- "details": {
- "method": "create",
- "operation_id": "string",
- "transaction_id": "string",
- "billing_order_id": "string",
- "gateway_order_id": "string",
- "rrn": "string",
- "amount": 0,
- "currency": null,
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "processed_at": "2019-08-24T14:15:22Z",
- "payload": "string",
- "auth_code": "string",
- "bank_name": "string",
- "bank_key": "string",
- "fiscalization": {
- "fiscal_id": "string",
- "fiscal_url": "string",
- "status": "Pending",
- "status_code": 0,
- "status_description": "string"
}
}, - "action_required": true,
- "action": {
- "type": "url",
- "value": "string"
}, - "receipt_url": "string"
}If merchant's balance is not enough to process refund, this refund will be deferred and retried automatically
for some period until it fails for some reason, or balance became enough to process it. If the refund retrying
is timed out, the transaction will became failed with refund_is_cancelled_by_system status.
This endpoint allows to retry refund transaction manually if it has pending status.
| external_id required | string |
{- "external_id": "string"
}{- "id": "string",
- "external_id": "string",
- "unified_external_id": "string",
- "is_success": true,
- "details": {
- "method": "create",
- "operation_id": "string",
- "transaction_id": "string",
- "billing_order_id": "string",
- "gateway_order_id": "string",
- "rrn": "string",
- "amount": 0,
- "currency": null,
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "processed_at": "2019-08-24T14:15:22Z",
- "payload": "string",
- "auth_code": "string",
- "bank_name": "string",
- "bank_key": "string",
- "fiscalization": {
- "fiscal_id": "string",
- "fiscal_url": "string",
- "status": "Pending",
- "status_code": 0,
- "status_description": "string"
}
}, - "action_required": true,
- "action": {
- "type": "url",
- "value": "string"
}, - "receipt_url": "string"
}{- "id": "string",
- "external_id": "string",
- "unified_external_id": "string",
- "is_success": true,
- "details": {
- "method": "create",
- "operation_id": "string",
- "transaction_id": "string",
- "billing_order_id": "string",
- "gateway_order_id": "string",
- "rrn": "string",
- "amount": 0,
- "currency": null,
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "processed_at": "2019-08-24T14:15:22Z",
- "payload": "string",
- "auth_code": "string",
- "bank_name": "string",
- "bank_key": "string",
- "fiscalization": {
- "fiscal_id": "string",
- "fiscal_url": "string",
- "status": "Pending",
- "status_code": 0,
- "status_description": "string"
}
}, - "action_required": true,
- "action": {
- "type": "url",
- "value": "string"
}, - "receipt_url": "string"
}If merchant's balance is not enough to process refund, this refund will be deferred and retried automatically for some period until it fails or balance became enough to process it. If the refund retrying process is timed out, the transaction will became failed with refund_is_cancelled_by_system status. This endpoint allows to cancel refund transaction manually if it has pending status. In this case the status it will be set to refund_is_cancelled_by_initiator.
| external_id required | string |
{- "external_id": "string"
}{- "id": "string",
- "external_id": "string",
- "unified_external_id": "string",
- "is_success": true,
- "details": {
- "method": "create",
- "operation_id": "string",
- "transaction_id": "string",
- "billing_order_id": "string",
- "gateway_order_id": "string",
- "rrn": "string",
- "amount": 0,
- "currency": null,
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "processed_at": "2019-08-24T14:15:22Z",
- "payload": "string",
- "auth_code": "string",
- "bank_name": "string",
- "bank_key": "string",
- "fiscalization": {
- "fiscal_id": "string",
- "fiscal_url": "string",
- "status": "Pending",
- "status_code": 0,
- "status_description": "string"
}
}, - "action_required": true,
- "action": {
- "type": "url",
- "value": "string"
}, - "receipt_url": "string"
}{- "id": "string",
- "external_id": "string",
- "unified_external_id": "string",
- "is_success": true,
- "details": {
- "method": "create",
- "operation_id": "string",
- "transaction_id": "string",
- "billing_order_id": "string",
- "gateway_order_id": "string",
- "rrn": "string",
- "amount": 0,
- "currency": null,
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "processed_at": "2019-08-24T14:15:22Z",
- "payload": "string",
- "auth_code": "string",
- "bank_name": "string",
- "bank_key": "string",
- "fiscalization": {
- "fiscal_id": "string",
- "fiscal_url": "string",
- "status": "Pending",
- "status_code": 0,
- "status_description": "string"
}
}, - "action_required": true,
- "action": {
- "type": "url",
- "value": "string"
}, - "receipt_url": "string"
}Get operation info by external id and operation id
| external_id required | any External ID (unique identifier) |
| operation_id required | any Operation ID (unique identifier) |
{- "id": "string",
- "external_id": "string",
- "unified_external_id": "string",
- "is_success": true,
- "details": {
- "method": "create",
- "operation_id": "string",
- "transaction_id": "string",
- "billing_order_id": "string",
- "gateway_order_id": "string",
- "rrn": "string",
- "amount": 0,
- "currency": null,
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "processed_at": "2019-08-24T14:15:22Z",
- "payload": "string",
- "auth_code": "string",
- "bank_name": "string",
- "bank_key": "string",
- "fiscalization": {
- "fiscal_id": "string",
- "fiscal_url": "string",
- "status": "Pending",
- "status_code": 0,
- "status_description": "string"
}
}, - "action_required": true,
- "action": {
- "type": "url",
- "value": "string"
}, - "receipt_url": "string"
}Get operations info by id
| external_id required | any External ID (unique identifier) |
{- "external_id": "string",
- "unified_external_id": "string",
- "amount": "0",
- "amount_confirmed": "0",
- "amount_canceled": "0",
- "amount_refunded": "0",
- "currency": "string",
- "purchased": true,
- "purchase_details": {
- "method": "create",
- "operation_id": "string",
- "transaction_id": "string",
- "billing_order_id": "string",
- "gateway_order_id": "string",
- "rrn": "string",
- "amount": 0,
- "currency": null,
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "processed_at": "2019-08-24T14:15:22Z",
- "payload": "string",
- "auth_code": "string",
- "bank_name": "string",
- "bank_key": "string",
- "fiscalization": {
- "fiscal_id": "string",
- "fiscal_url": "string",
- "status": "Pending",
- "status_code": 0,
- "status_description": "string"
}
}, - "confirmed": true,
- "confirmation_details": [
- {
- "method": "create",
- "operation_id": "string",
- "transaction_id": "string",
- "billing_order_id": "string",
- "gateway_order_id": "string",
- "rrn": "string",
- "amount": 0,
- "currency": null,
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "processed_at": "2019-08-24T14:15:22Z",
- "payload": "string",
- "auth_code": "string",
- "bank_name": "string",
- "bank_key": "string",
- "fiscalization": {
- "fiscal_id": "string",
- "fiscal_url": "string",
- "status": "Pending",
- "status_code": 0,
- "status_description": "string"
}
}
], - "refunded": true,
- "refund_details": [
- {
- "method": "create",
- "operation_id": "string",
- "transaction_id": "string",
- "billing_order_id": "string",
- "gateway_order_id": "string",
- "rrn": "string",
- "amount": 0,
- "currency": null,
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "processed_at": "2019-08-24T14:15:22Z",
- "payload": "string",
- "auth_code": "string",
- "bank_name": "string",
- "bank_key": "string",
- "fiscalization": {
- "fiscal_id": "string",
- "fiscal_url": "string",
- "status": "Pending",
- "status_code": 0,
- "status_description": "string"
}
}
], - "canceled": true,
- "cancellation_details": [
- {
- "method": "create",
- "operation_id": "string",
- "transaction_id": "string",
- "billing_order_id": "string",
- "gateway_order_id": "string",
- "rrn": "string",
- "amount": 0,
- "currency": null,
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "processed_at": "2019-08-24T14:15:22Z",
- "payload": "string",
- "auth_code": "string",
- "bank_name": "string",
- "bank_key": "string",
- "fiscalization": {
- "fiscal_id": "string",
- "fiscal_url": "string",
- "status": "Pending",
- "status_code": 0,
- "status_description": "string"
}
}
], - "receipt_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "action_required": true,
- "action": {
- "type": "url",
- "value": "string"
}, - "customer": {
- "first_name": "string",
- "last_name": "string",
- "phone": "string",
- "ip_address": "string",
- "browser_user_agent": "string"
}, - "delivery_details": {
- "apartment": "string",
- "city": "string",
- "delivery_type": "string",
- "house": "string",
- "provider": "string",
- "street": "string",
- "warehouse_number": "string"
}, - "order_recipient": {
- "phone": "string",
- "name": "string",
- "last_name": "string",
- "middle_name": "string"
}
}Get banks info which includes bank name and available periods
| include_fees | any Include fees |
[- {
- "name": "string",
- "available_periods": [
- 0
], - "limits": {
- "min_amount": 0,
- "max_amount": 0
}, - "logo_url": "string",
- "product_name": "string",
- "periods": [
- {
- "fee": 0,
- "period": 0
}
]
}
]Prepares the data about the specified payment of transaction and sends it into callback_url which was provided on the payment step.
If the operation field is not provided the callback will be sent for the last operation.
| external_id required | string |
| operation | string (OperationType) Enum: "payment" "confirm" "refund" "cancel" "lookup" "recurrent" |
{- "external_id": "string",
- "operation": "payment"
}{- "code": "authorization_failed",
- "message": "string",
- "param": "string",
- "payment_id": "string",
- "type": "invalid_request_error",
- "error_id": "string"
}Creates alternative payment
| provider required | string (AlternativePaymentProvider) Enum: "imoje" "leaselink" "santander" "przelewy24" Available providers where the payment can be created. |
| external_id required | string |
| unified_external_id | string |
| amount required | number >= 1 |
| currency required | string
|
| description required | string Order description can have from 1 to 256 characters. |
| payload | string |
required | Array of objects (AlternativePaymentProduct) Products are required if provider value is one of the following: |
| result_url | string <url> Maximum length is about 2048 characters. |
| callback_url | string <url> |
required | object (AlternativePaymentCustomerDetails) |
{- "provider": "imoje",
- "external_id": "string",
- "unified_external_id": "string",
- "amount": 1,
- "currency": "string",
- "description": "string",
- "payload": "string",
- "products": [
- {
- "name": "string",
- "quantity": 0,
- "price": 0,
- "category": "string",
- "net_amount": 0,
- "tax_category": "string",
- "vat_amount": 0
}
], - "result_url": "string",
- "callback_url": "string",
- "customer": {
- "external_id": "string",
- "first_name": "string",
- "last_name": "string",
- "phone": "string",
- "ip_address": "string",
- "country": "string",
- "payment_method": {
- "blik": {
- "blik_code": "string"
}, - "type": "blik"
}
}
}{- "id": "string",
- "external_id": "string",
- "unified_external_id": "string",
- "details": {
- "method": "create",
- "operation_id": "string",
- "transaction_id": "string",
- "billing_order_id": "string",
- "gateway_order_id": "string",
- "rrn": "string",
- "amount": 0,
- "currency": null,
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "processed_at": "2019-08-24T14:15:22Z",
- "payload": "string",
- "auth_code": "string",
- "bank_name": "string",
- "action": {
- "type": "url",
- "value": "string"
}, - "action_required": true,
- "receipt_url": "string",
- "payment_method_type": "string",
- "one_stage": true
}
}Refund transaction after confirmation.
Common response statuses:
success Status Code: refund_successful - alternative payment installment was successfully refundedpending Status Code: pending - wait for bank refund, final status will be set via callbackfailure Status Code: any - depends on error| external_id required | string |
| amount | number >= 1 |
| currency | string |
| callback_url | string <url> |
| payload | string |
Array of objects (PayPartsProduct) List of products for refund. Required in case of partial refund for projects with enabled fiscalization. For full refund products would be taken from create request. |
{- "external_id": "string",
- "amount": 1,
- "currency": "string",
- "callback_url": "string",
- "payload": "string",
- "products": [
- {
- "external_id": "string",
- "name": "string",
- "quantity": 0,
- "price": 0,
- "category_name": "string",
- "tax_group": 0
}
]
}{- "id": "string",
- "external_id": "string",
- "unified_external_id": "string",
- "details": {
- "method": "create",
- "operation_id": "string",
- "transaction_id": "string",
- "billing_order_id": "string",
- "gateway_order_id": "string",
- "rrn": "string",
- "amount": 0,
- "currency": null,
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "processed_at": "2019-08-24T14:15:22Z",
- "payload": "string",
- "auth_code": "string",
- "bank_name": "string",
- "action": {
- "type": "url",
- "value": "string"
}, - "action_required": true,
- "receipt_url": "string",
- "payment_method_type": "string",
- "one_stage": true
}
}{- "id": "string",
- "external_id": "string",
- "unified_external_id": "string",
- "is_success": true,
- "details": {
- "method": "create",
- "operation_id": "string",
- "transaction_id": "string",
- "billing_order_id": "string",
- "gateway_order_id": "string",
- "rrn": "string",
- "amount": 0,
- "currency": null,
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "processed_at": "2019-08-24T14:15:22Z",
- "payload": "string",
- "auth_code": "string",
- "bank_name": "string",
- "bank_key": "string",
- "fiscalization": {
- "fiscal_id": "string",
- "fiscal_url": "string",
- "status": "Pending",
- "status_code": 0,
- "status_description": "string"
}
}, - "action_required": true,
- "action": {
- "type": "url",
- "value": "string"
}, - "receipt_url": "string"
}Get operation info by external id and operation id
| external_id required | any External ID (unique identifier) |
| operation_id required | any Operation ID (unique identifier) |
{- "id": "string",
- "external_id": "string",
- "unified_external_id": "string",
- "details": {
- "method": "create",
- "operation_id": "string",
- "transaction_id": "string",
- "billing_order_id": "string",
- "gateway_order_id": "string",
- "rrn": "string",
- "amount": 0,
- "currency": null,
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "processed_at": "2019-08-24T14:15:22Z",
- "payload": "string",
- "auth_code": "string",
- "bank_name": "string",
- "action": {
- "type": "url",
- "value": "string"
}, - "action_required": true,
- "receipt_url": "string",
- "payment_method_type": "string",
- "one_stage": true
}
}Get operations info by id
| external_id required | any External ID (unique identifier) |
{- "id": "string",
- "external_id": "string",
- "unified_external_id": "string",
- "amount": "0",
- "amount_refunded": "0",
- "purchased": true,
- "purchase_details": [
- {
- "method": "create",
- "operation_id": "string",
- "transaction_id": "string",
- "billing_order_id": "string",
- "gateway_order_id": "string",
- "rrn": "string",
- "amount": 0,
- "currency": null,
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "processed_at": "2019-08-24T14:15:22Z",
- "payload": "string",
- "auth_code": "string",
- "bank_name": "string",
- "action": {
- "type": "url",
- "value": "string"
}, - "action_required": true,
- "receipt_url": "string",
- "payment_method_type": "string",
- "one_stage": true
}
], - "refunded": true,
- "refund_details": [
- {
- "method": "create",
- "operation_id": "string",
- "transaction_id": "string",
- "billing_order_id": "string",
- "gateway_order_id": "string",
- "rrn": "string",
- "amount": 0,
- "currency": null,
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "processed_at": "2019-08-24T14:15:22Z",
- "payload": "string",
- "auth_code": "string",
- "bank_name": "string",
- "action": {
- "type": "url",
- "value": "string"
}, - "action_required": true,
- "receipt_url": "string",
- "payment_method_type": "string",
- "one_stage": true
}
], - "customer": {
- "first_name": "string",
- "last_name": "string",
- "phone": "string",
- "ip_address": "string",
- "browser_user_agent": "string"
}
}Prepares the data about the specified payment of transaction and sends it into callback_url which was provided on the payment step.
If the operation field is not provided the callback will be sent for the last operation.
| external_id required | string |
| operation | string Enum: "create" "refund" |
{- "external_id": "string",
- "operation": "create"
}{- "code": "authorization_failed",
- "message": "string",
- "param": "string",
- "payment_id": "string",
- "type": "invalid_request_error",
- "error_id": "string"
}Creates payment instructions.
This endpoint allows you to create multiple payment instructions in a single batch.
Processing Types:
cardpay - Process instructions via CardPayppay - Process instructions via PayParts| processing_type required | string Enum: "cardpay" "ppay" Processing type to use |
| method required | string Enum: "auth" "purchase" Payment method |
| currency required | string^[A-Z]{3}$ Currency code (ISO 4217) |
| batch_external_id | string External batch identifier |
object Payer information | |
required | Array of objects (PaymentInstructionOrder) non-empty |
{- "processing_type": "cardpay",
- "method": "auth",
- "currency": "string",
- "batch_external_id": "string",
- "payer": {
- "tin": "string",
- "first_name": "string",
- "last_name": "string",
- "patronym": "string"
}, - "orders": [
- {
- "api_key": "7f819f8f-8220-4dcd-b7e3-37c81ead8b7a",
- "amount": 100.5,
- "external_id": "string",
- "description": "Payment for order 001"
}
]
}{- "code": "authorization_failed",
- "message": "string",
- "param": "string",
- "payment_id": "string",
- "type": "invalid_request_error",
- "error_id": "string"
}Declines a payment instruction and redirects to the declined payment page.
This endpoint is used to decline payment instructions that are still pending. The endpoint does not require authentication and can be called directly from payment links.
Important Notes:
| project_id required | string <uuid> Project ID that owns the payment instruction |
| payment_instruction_id required | string <uuid> Payment instruction ID to decline |
{- "code": "authorization_failed",
- "message": "string",
- "param": "string",
- "payment_id": "string",
- "type": "invalid_request_error",
- "error_id": "string"
}Deletes customer payment method from wallet. Either X-CUSTOMER-AUTH header or external_id param is required.
| external_id | any customer id in your platform |
| option_id required | string <uuid> Card identifier in wallet |
| type required | any Value: "card" |
{- "option_id": "ab22e710-5ce4-4e7e-a3db-bd6fdad8fe36",
- "type": "card"
}{- "delete": true,
- "option_id": "ab22e710-5ce4-4e7e-a3db-bd6fdad8fe36",
- "type": "cc_token"
}Returns customer details including payment methods, if saved. Either X-CUSTOMER-AUTH header or external_id param is required.
| external_id | any customer id in your platform |
{- "address": "string",
- "city": "string",
- "country": "string",
- "external_id": "string",
- "first_name": "string",
- "last_name": "string",
- "patronym": "string",
- "phone": "string",
- "postal_code": "string",
- "rid": "06367b17-91f0-49c2-b4f0-ec544c175798",
- "wallet": [
- {
- "card": {
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "token": "string",
- "full_number": "string",
- "bank_short_name": "string",
- "payment_system": "string"
}, - "option_id": "ab22e710-5ce4-4e7e-a3db-bd6fdad8fe36",
- "is_default": true,
- "name": "string",
- "type": "card"
}
]
}Adds new payment method to wallet. Either X-CUSTOMER-AUTH header or external_id param is required.
| external_id | any customer id in your platform |
| callback_url | string <url> URL where callback will be sent in case of successful or unsuccessful card confirmation Required for |
required | object Based on your choice in the Required for |
| result_url | string <url> URL where user will be redirected from the checkout in case if mode set to |
| make_default | boolean Default: false Automatically set new payment method as default in wallet, if it was confirmed. |
| mode required | string (PaymentMode) Enum: "direct" "hosted" "express_checkout" Describes the way of the integration:
|
object (BrowserFingerprint) |
{- "callback_url": "string",
- "payment_method": {
- "cc_token": {
- "token": "string",
- "mask": "string",
- "expires_at": "2027-01-02T15:04:05",
- "use_3ds_flow": true
}, - "encrypted_cc_token": {
- "data": "string",
- "use_3ds_flow": true
}, - "type": "cc_token"
}, - "result_url": "string",
- "make_default": false,
- "mode": "direct",
- "fingerprint": {
- "browser_accept_header": "string",
- "browser_color_depth": "string",
- "browser_ip_address": "string",
- "browser_java_enabled": "string",
- "browser_language": "string",
- "browser_screen_height": "string",
- "browser_screen_width": "string",
- "browser_time_zone": "string",
- "browser_time_zone_offset": "string",
- "browser_user_agent": "string"
}
}{- "action": {
- "type": "url",
- "value": "string"
}, - "action_required": true,
- "created_at": "2019-08-24T14:15:22Z",
- "payment_method": {
- "card": {
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "token": "string",
- "full_number": "string",
- "bank_short_name": "string",
- "payment_system": "string"
}, - "option_id": "ab22e710-5ce4-4e7e-a3db-bd6fdad8fe36",
- "is_default": true,
- "name": "string",
- "type": "card"
}, - "status": "init",
- "operation": "add_payment_method",
- "customer": {
- "external_id": "string"
}
}{- "action": {
- "type": "url",
- "value": "string"
}, - "action_required": true,
- "created_at": "2019-08-24T14:15:22Z",
- "payment_method": {
- "card": {
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "token": "string",
- "full_number": "string",
- "bank_short_name": "string",
- "payment_system": "string"
}, - "option_id": "ab22e710-5ce4-4e7e-a3db-bd6fdad8fe36",
- "is_default": true,
- "name": "string",
- "type": "card"
}, - "status": "init",
- "operation": "add_payment_method",
- "customer": {
- "external_id": "string"
}
}Returns customer wallet item. Either X-CUSTOMER-AUTH header or external_id param is required.
| external_id | any customer id in your platform |
| option_id | any option id of your payment |
{- "card": {
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "token": "string",
- "full_number": "string",
- "bank_short_name": "string",
- "payment_system": "string"
}, - "option_id": "ab22e710-5ce4-4e7e-a3db-bd6fdad8fe36",
- "is_default": true,
- "name": "string",
- "type": "card"
}Returns confirmation status of the payment method is wallet. Either X-CUSTOMER-AUTH header or external_id param is required.
| external_id | any customer id in your platform |
| option_id required | any id of the payment method in wallet |
{- "card": {
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "token": "string",
- "full_number": "string",
- "bank_short_name": "string",
- "payment_system": "string"
}, - "option_id": "ab22e710-5ce4-4e7e-a3db-bd6fdad8fe36",
- "is_confirmed": true,
- "type": "card",
- "status": "init"
}Set default payment method in wallet. Either X-CUSTOMER-AUTH header or external_id param is required.
| external_id | any customer id in your platform |
| option_id required | string <uuid> |
| type required | string Value: "card" |
{- "option_id": "ab22e710-5ce4-4e7e-a3db-bd6fdad8fe36",
- "type": "card"
}{- "option_id": "ab22e710-5ce4-4e7e-a3db-bd6fdad8fe36",
- "type": "card",
- "success": true
}Get plans for the platform.
| plan_id | string <uuid> Example: plan_id=ce1b5835-74f7-43f9-8ec2-621ff1ecb487 Plan identifier. |
[- {
- "created_at": "2025-07-14T12:00:03Z",
- "currency": "UAH",
- "description": "My plan description",
- "end_date": "2026-02-13T00:00:00Z",
- "frequency_type": "weekly",
- "frequency": 4,
- "duration_periods": 6,
- "id": "69b2e00f-b837-4cda-a0d8-2ae3ba431409",
- "state": "active",
- "name": "My plan name.",
- "platforms": [
- "e4b10684-51fa-4206-8ce5-547e3764fc59",
- "080e373e-468a-489d-a611-572dd5da4529"
], - "price": 30,
- "start_date": "2025-07-14T00:00:00Z",
- "updated_at": "2025-07-14T12:00:03Z"
}
]Create a subscription plan.
| name required | string Plan name. |
| description | string Description for the plan. |
| price required | integer <decimal> Plan price in main currency units. For example, value of 30 equals 30 UAH plan price. |
Array of objects (PlanCallbackRequest) A list of api keys and URLs for subscription update callbacks. | |
| currency required | string Currency in ISO 4217 format. |
| platforms | Array of strings <uuid> [ items <uuid > ] A list of other platforms that can access this plan. |
| frequency_type required | string <string> (PlanFrequencyType) Enum: "daily" "weekly" "monthly" "yearly" The time interval type of a plan period. For example, to set a plan period for 4 weeks use frequency=4 and frequency_type=weekly. |
| frequency required | integer The number of frequency_types in a single plan payment period. For example, to set a plan payment period for 4 weeks use frequency=4 and frequency_type=weekly. |
| duration_periods required | integer The number of frequency_types in a plan duration period. For example, to set a plan duration period for 6 months use frequency=1, frequency_type=monthly, duration_periods=6. |
| start_date required | string <date-time> Plan start date-time in RFC3339 format. |
| end_date | string <date-time> Optional end date-time for the plan in RFC3339 format. |
{- "name": "My plan name.",
- "description": "My plan description",
- "price": 30,
- "callbacks": [
], - "currency": "UAH",
- "platforms": [
- "e4b10684-51fa-4206-8ce5-547e3764fc59",
- "080e373e-468a-489d-a611-572dd5da4529"
], - "frequency_type": "weekly",
- "frequency": 4,
- "duration_periods": 6,
- "start_date": "2025-07-16T12:00:03Z",
- "end_date": "2026-02-13T17:50:02Z"
}{- "created_at": "2025-07-14T12:00:03Z",
- "currency": "UAH",
- "description": "My plan description",
- "end_date": "2026-02-13T00:00:00Z",
- "frequency_type": "weekly",
- "frequency": 4,
- "duration_periods": 6,
- "id": "69b2e00f-b837-4cda-a0d8-2ae3ba431409",
- "state": "active",
- "name": "My plan name.",
- "platforms": [
- "e4b10684-51fa-4206-8ce5-547e3764fc59",
- "080e373e-468a-489d-a611-572dd5da4529"
], - "price": 30,
- "start_date": "2025-07-14T00:00:00Z",
- "updated_at": "2025-07-14T12:00:03Z"
}Deactivate a target plan.
| plan_id required | string <uuid> Example: ce1b5835-74f7-43f9-8ec2-621ff1ecb487 Plan identifier. |
{- "message": "string"
}Get a target plan by id.
| plan_id required | string <uuid> Example: ce1b5835-74f7-43f9-8ec2-621ff1ecb487 Plan identifier. |
{- "created_at": "2025-07-14T12:00:03Z",
- "currency": "UAH",
- "description": "My plan description",
- "end_date": "2026-02-13T00:00:00Z",
- "frequency_type": "weekly",
- "frequency": 4,
- "duration_periods": 6,
- "id": "69b2e00f-b837-4cda-a0d8-2ae3ba431409",
- "state": "active",
- "name": "My plan name.",
- "platforms": [
- "e4b10684-51fa-4206-8ce5-547e3764fc59",
- "080e373e-468a-489d-a611-572dd5da4529"
], - "price": 30,
- "start_date": "2025-07-14T00:00:00Z",
- "updated_at": "2025-07-14T12:00:03Z"
}Update target plan by ID.
| plan_id required | string <uuid> Example: ce1b5835-74f7-43f9-8ec2-621ff1ecb487 Plan identifier. |
| description | string New plan description. |
| name | string New plan name. |
Array of objects (PlanCallbackRequest) New list of api keys and URLs for subscription update callbacks. Overrides currently stored list. |
{- "description": "My new plan description",
- "name": "My new plan name.",
- "callbacks": [
]
}{- "message": "string"
}Create subscription
| X-CUSTOMER-AUTH | string <jwt> User access token. |
| auto_renew | boolean Controls whether the subscription should automatically renew after the due date. |
| callback_url | string <url> The URL where asynchronous subscription updates will be sent. |
required | object (CustomerRequestUserDetails) |
| delegate_api_key | string <uuid> Project API key to delegate recurrent payments to. |
| description | string Description for the subscription. |
| external_id | string Identifier to link the subscription within partner system. Currently used by Rozetka only. |
| external_premium_id | string Identifier to link the subscription within partner system. Currently used by Rozetka only. |
| plan_id required | string <uuid> The corresponding plan identifier. |
| price | integer <decimal> Subscription price in main currency units. For example, value of 30 equals 30 UAH subscription price. In case the price is not specified or has value of 0, plan price will be used instead. |
| recurrent_id | string <number> The recurrent id for the subscription payments. |
| result_url required | string <url> The URL where user will be redirected after successful payment. |
| start_date required | string <date-time> The start date of the subscription. Date-time should be specified in RFC3339 format, UTC timezone. |
| trial_periods | number <integer> The amount of trial periods assigned to the subscription. |
| trial_periodic_payments | boolean Specifies, whether to apply periodic payments for trial subscription instead of single initial payment in case trial_periods value is more than one. |
| unified_external_id | string Identifier to link the subscription within partner system. Currently used by Rozetka only. |
| use_plan_price_on_auto_renew | boolean Controls whether the subscription should use the plan price instead the of the price provided in subscription data when the automatic subscription renew is performed. |
| gifted_periods | number <integer> The amount of gifted periods assigned to the subscription. |
{- "auto_renew": true,
- "customer": {
- "address": "string",
- "city": "string",
- "country": "string",
- "external_id": "string",
- "first_name": "string",
- "last_name": "string",
- "patronym": "string",
- "phone": "string",
- "postal_code": "string",
- "payment_method": {
- "cc": {
- "cvv": "string",
- "exp_month": 1,
- "exp_year": 0,
- "number": "string",
- "use_3ds_flow": true
}, - "cc_token": {
- "token": "string",
- "use_3ds_flow": true,
- "save_to_wallet": false
}, - "type": "cc_token",
- "wallet": {
- "option_id": "ab22e710-5ce4-4e7e-a3db-bd6fdad8fe36",
- "use_3ds_flow": true
}, - "apple_pay": {
- "token": "string",
- "use_3ds_flow": true
}, - "google_pay": {
- "token": "string",
- "use_3ds_flow": true
}, - "decrypted_apple_pay": {
- "application_primary_account_number": "string",
- "application_expiration_date": "string",
- "online_payment_cryptogram": "string",
- "currency_code": "string",
- "device_manufacturer_identifier": "string",
- "transaction_id": "string",
- "ephemeral_public_key": "string",
- "public_key_hash": "string",
- "eci_indicator": "string",
- "use_3ds_flow": true
}, - "decrypted_google_pay": {
- "pan": "string",
- "exp_month": 0,
- "exp_year": 0,
- "cryptogram": "string",
- "eci_indicator": "string",
- "auth_method": "string",
- "gateway_merchant_id": "string",
- "message_id": "string",
- "message_expiration": "string",
- "payment_method": "string",
- "protocol_version": "string",
- "use_3ds_flow": true
}
}, - "color_mode": "white",
- "locale": "UK",
- "account_number": "string",
- "ip_address": "192.168.0.1",
- "fingerprint": {
- "browser_accept_header": "string",
- "browser_color_depth": "string",
- "browser_ip_address": "string",
- "browser_java_enabled": "string",
- "browser_language": "string",
- "browser_screen_height": "string",
- "browser_screen_width": "string",
- "browser_time_zone": "string",
- "browser_time_zone_offset": "string",
- "browser_user_agent": "string"
}
}, - "delegate_api_key": "5c226db4-c088-43f5-8d7a-809ac3718d66",
- "description": "My subscription description",
- "external_id": "9i8h7g6f5e4d",
- "external_premium_id": "1a2b3c4d5e",
- "plan_id": "d38bdf4e-cbd8-46f5-87fa-538dd7618731",
- "price": 3000,
- "recurrent_id": "593292035525113984",
- "start_date": "2025-07-14T10:12:04Z",
- "trial_periods": 2,
- "trial_periodic_payments": true,
- "unified_external_id": "5e4d3c2b1a",
- "use_plan_price_on_auto_renew": true,
- "gifted_periods": 2
}{- "payment": {
- "details": {
- "amount": 3000,
- "created_at": "2025-07-12T12:00:03Z",
- "currency": "UAH",
- "description": "My payment description",
- "transaction_id": "2bd9de2f-6b97-490d-bcd0-283d00c65966",
- "next_processing_date": "2025-07-12T12:00:03Z",
- "processed_at": "2025-07-12T12:00:03Z",
- "retry_count": 2,
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "Transaction successful.",
- "updated_at": "2025-07-14T12:00:03Z",
- "meta": {
- "payment_method": {
- "type": "cc_token",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "bank_short_name": "string"
}
}, - "rrn": "string",
- "auth_code": "string",
- "terminal_name": "string",
- "bank_name": "string",
- "mid": "string",
- "tid": "string",
- "recipient_iban": "string"
}, - "id": "a62a18e6-d44f-4a50-bc10-34853e109fe3",
- "subscription_id": "9aed5896-a829-400f-bd3b-5b6f8508de6b",
- "user_action": {
- "type": "url",
- "value": "string"
}
}, - "subscription": {
- "auto_renew": true,
- "auto_renew_locked_until": "2026-02-14T12:00:03Z",
- "callback_url": "string",
- "created_at": "2025-07-14T12:00:03Z",
- "currency": "UAH",
- "customer_id": "0ee67270-297d-4ed4-993c-5b4ba95c4daf",
- "delegate_api_key": "5c226db4-c088-43f5-8d7a-809ac3718d66",
- "description": "My subscription description",
- "due_date": "2025-09-14T00:00:00Z",
- "external_id": "9i8h7g6f5e4d",
- "external_premium_id": "1a2b3c4d5e",
- "id": "9aed5896-a829-400f-bd3b-5b6f8508de6b",
- "is_retrying": false,
- "final_expiration_date": "2026-02-14T12:00:03Z",
- "next_notification_date": "2025-09-13T00:00:00Z",
- "next_payment_date": "2025-09-14T00:00:00Z",
- "plan_id": "d38bdf4e-cbd8-46f5-87fa-538dd7618731",
- "price": 3000,
- "project_id": "d38bdf4e-cbd8-46f5-87fa-538dd7618731",
- "recurrent_id": "573299035525213784",
- "start_date": "2025-07-14T00:00:00Z",
- "state": "init",
- "time_of_day": "0001-01-01T12:00:03Z",
- "trial_periods": 2,
- "trial_periodic_payments": true,
- "trial_until": "2025-09-14T12:00:03Z",
- "unified_external_id": "5e4d3c2b1a",
- "updated_at": "2025-07-14T12:01:12Z",
- "use_plan_price_on_auto_renew": true,
- "gifted": true,
- "gifted_from": "2025-07-14T00:00:00Z",
- "gifted_until": "2025-07-14T00:00:00Z",
- "gifted_unified_external_id": "5e4d3c2b1a"
}
}{- "event": "payment.processed",
- "subscription": {
- "auto_renew": true,
- "auto_renew_locked_until": "2026-02-14T12:00:03Z",
- "callback_url": "string",
- "created_at": "2025-07-14T12:00:03Z",
- "currency": "UAH",
- "customer_id": "0ee67270-297d-4ed4-993c-5b4ba95c4daf",
- "delegate_api_key": "5c226db4-c088-43f5-8d7a-809ac3718d66",
- "description": "My subscription description",
- "due_date": "2025-09-14T00:00:00Z",
- "external_id": "9i8h7g6f5e4d",
- "external_premium_id": "1a2b3c4d5e",
- "id": "9aed5896-a829-400f-bd3b-5b6f8508de6b",
- "is_retrying": false,
- "final_expiration_date": "2026-02-14T12:00:03Z",
- "next_notification_date": "2025-09-13T00:00:00Z",
- "next_payment_date": "2025-09-14T00:00:00Z",
- "plan_id": "d38bdf4e-cbd8-46f5-87fa-538dd7618731",
- "price": 3000,
- "project_id": "d38bdf4e-cbd8-46f5-87fa-538dd7618731",
- "recurrent_id": "573299035525213784",
- "start_date": "2025-07-14T00:00:00Z",
- "state": "init",
- "time_of_day": "0001-01-01T12:00:03Z",
- "trial_periods": 2,
- "trial_periodic_payments": true,
- "trial_until": "2025-09-14T12:00:03Z",
- "unified_external_id": "5e4d3c2b1a",
- "updated_at": "2025-07-14T12:01:12Z",
- "use_plan_price_on_auto_renew": true,
- "gifted": true,
- "gifted_from": "2025-07-14T00:00:00Z",
- "gifted_until": "2025-07-14T00:00:00Z",
- "gifted_unified_external_id": "5e4d3c2b1a"
}, - "payment": {
- "details": {
- "amount": 3000,
- "created_at": "2025-07-12T12:00:03Z",
- "currency": "UAH",
- "description": "My payment description",
- "transaction_id": "2bd9de2f-6b97-490d-bcd0-283d00c65966",
- "next_processing_date": "2025-07-12T12:00:03Z",
- "processed_at": "2025-07-12T12:00:03Z",
- "retry_count": 2,
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "Transaction successful.",
- "updated_at": "2025-07-14T12:00:03Z",
- "meta": {
- "payment_method": {
- "type": "cc_token",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "bank_short_name": "string"
}
}, - "rrn": "string",
- "auth_code": "string",
- "terminal_name": "string",
- "bank_name": "string",
- "mid": "string",
- "tid": "string",
- "recipient_iban": "string"
}, - "id": "a62a18e6-d44f-4a50-bc10-34853e109fe3",
- "subscription_id": "9aed5896-a829-400f-bd3b-5b6f8508de6b",
- "user_action": {
- "type": "url",
- "value": "string"
}
}, - "payment_method": {
- "cc_token": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "saved_card": true,
- "bin_country": "string"
}, - "apple_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "google_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "type": "cc_token"
}, - "customer": {
- "browser_user_agent": "string",
- "external_id": "string",
- "first_name": "string",
- "ip_address": "string",
- "last_name": "string",
- "patronym": "string",
- "phone": "string"
}
}Get customer subscriptions
| external_id | string User ID in external system |
| X-CUSTOMER-AUTH | string <jwt> User access token. |
| X-CUSTOMER-RID | string <uuid> Deprecated Example: 8ba5dd43-496e-4432-9c8a-74fdc74139fe User RID identifier. RID header will be used if both are set.
There is a deprecated way to call the endpoint.
Please use access token with |
[- {
- "auto_renew": true,
- "auto_renew_locked_until": "2026-02-14T12:00:03Z",
- "callback_url": "string",
- "created_at": "2025-07-14T12:00:03Z",
- "currency": "UAH",
- "customer_id": "0ee67270-297d-4ed4-993c-5b4ba95c4daf",
- "delegate_api_key": "5c226db4-c088-43f5-8d7a-809ac3718d66",
- "description": "My subscription description",
- "due_date": "2025-09-14T00:00:00Z",
- "external_id": "9i8h7g6f5e4d",
- "external_premium_id": "1a2b3c4d5e",
- "id": "9aed5896-a829-400f-bd3b-5b6f8508de6b",
- "is_retrying": false,
- "final_expiration_date": "2026-02-14T12:00:03Z",
- "next_notification_date": "2025-09-13T00:00:00Z",
- "next_payment_date": "2025-09-14T00:00:00Z",
- "plan_id": "d38bdf4e-cbd8-46f5-87fa-538dd7618731",
- "price": 3000,
- "project_id": "d38bdf4e-cbd8-46f5-87fa-538dd7618731",
- "recurrent_id": "573299035525213784",
- "start_date": "2025-07-14T00:00:00Z",
- "state": "init",
- "time_of_day": "0001-01-01T12:00:03Z",
- "trial_periods": 2,
- "trial_periodic_payments": true,
- "trial_until": "2025-09-14T12:00:03Z",
- "unified_external_id": "5e4d3c2b1a",
- "updated_at": "2025-07-14T12:01:12Z",
- "use_plan_price_on_auto_renew": true,
- "gifted": true,
- "gifted_from": "2025-07-14T00:00:00Z",
- "gifted_until": "2025-07-14T00:00:00Z",
- "gifted_unified_external_id": "5e4d3c2b1a"
}
]Deactivate a target subscription.
| subscription_id required | string <uuid> Example: 73a1e8d6-e4e9-4401-aa80-eeca85b830f7 Subscription identifier. |
| external_id | string User ID in external system |
| X-CUSTOMER-RID | string <uuid> Deprecated Example: 8ba5dd43-496e-4432-9c8a-74fdc74139fe User RID identifier. RID header will be used if both are set.
There is a deprecated way to call the endpoint.
Please use access token with |
| X-CUSTOMER-AUTH | string <jwt> User access token. |
{- "message": "string"
}Get a target subscription.
| subscription_id required | string <uuid> Example: 73a1e8d6-e4e9-4401-aa80-eeca85b830f7 Subscription identifier. |
| external_id | string User ID in external system |
| X-CUSTOMER-AUTH | string <jwt> User access token. |
| X-CUSTOMER-RID | string <uuid> Deprecated Example: 8ba5dd43-496e-4432-9c8a-74fdc74139fe User RID identifier. RID header will be used if both are set.
There is a deprecated way to call the endpoint.
Please use access token with |
{- "auto_renew": true,
- "auto_renew_locked_until": "2026-02-14T12:00:03Z",
- "callback_url": "string",
- "created_at": "2025-07-14T12:00:03Z",
- "currency": "UAH",
- "customer_id": "0ee67270-297d-4ed4-993c-5b4ba95c4daf",
- "delegate_api_key": "5c226db4-c088-43f5-8d7a-809ac3718d66",
- "description": "My subscription description",
- "due_date": "2025-09-14T00:00:00Z",
- "external_id": "9i8h7g6f5e4d",
- "external_premium_id": "1a2b3c4d5e",
- "id": "9aed5896-a829-400f-bd3b-5b6f8508de6b",
- "is_retrying": false,
- "final_expiration_date": "2026-02-14T12:00:03Z",
- "next_notification_date": "2025-09-13T00:00:00Z",
- "next_payment_date": "2025-09-14T00:00:00Z",
- "plan_id": "d38bdf4e-cbd8-46f5-87fa-538dd7618731",
- "price": 3000,
- "project_id": "d38bdf4e-cbd8-46f5-87fa-538dd7618731",
- "recurrent_id": "573299035525213784",
- "start_date": "2025-07-14T00:00:00Z",
- "state": "init",
- "time_of_day": "0001-01-01T12:00:03Z",
- "trial_periods": 2,
- "trial_periodic_payments": true,
- "trial_until": "2025-09-14T12:00:03Z",
- "unified_external_id": "5e4d3c2b1a",
- "updated_at": "2025-07-14T12:01:12Z",
- "use_plan_price_on_auto_renew": true,
- "gifted": true,
- "gifted_from": "2025-07-14T00:00:00Z",
- "gifted_until": "2025-07-14T00:00:00Z",
- "gifted_unified_external_id": "5e4d3c2b1a"
}Update a target subscription.
| subscription_id required | string <uuid> Example: 1d85591b-891b-4b10-9d60-2078940d8e74 Subscription identifier. |
| external_id | string User ID in external system |
| X-CUSTOMER-AUTH | string <jwt> User access token. |
| X-CUSTOMER-RID | string <uuid> Deprecated Example: 8ba5dd43-496e-4432-9c8a-74fdc74139fe User RID identifier. RID header will be used if both are set.
There is a deprecated way to call the endpoint.
Please use access token with |
| auto_renew | boolean Controls whether the subscription should automatically renew after the due date. |
| gifted_until | string New end date of the gift period. The date cannot be earlier than tomorrow's date and less than the start date of the gift period. Cannot update if subscription hasn't gifted_from date. |
{- "auto_renew": true,
- "gifted_until": "2025-12-11"
}{- "message": "string"
}Temporary endpoint to create a gifted subscription. The initial payment will be skipped for a gifted subscription and subscription will become active immediately after the successful response. In case the customer already has an active subscription for the same plan - no gifted subscription will be created, error response will be returned. Only recurrent_id payment option is supported.
| X-CUSTOMER-RID | string <uuid> Example: 8ba5dd43-496e-4432-9c8a-74fdc74139fe User RID identifier. RID header will be used first if both are set. This is a suggested way of authorization for the current endpoint. |
| X-CUSTOMER-AUTH | string <jwt> User access token. |
| auto_renew | boolean Controls whether the subscription should automatically renew after the due date. |
| callback_url | string <url> The URL where asynchronous subscription updates will be sent. |
required | object (CustomerRequestUserDetails) |
| delegate_api_key | string <uuid> Project API key to delegate recurrent payments to. |
| description | string Description for the subscription. |
| external_id | string Identifier to link the subscription within partner system. Currently used by Rozetka only. |
| external_premium_id | string Identifier to link the subscription within partner system. Currently used by Rozetka only. |
| plan_id required | string <uuid> The corresponding plan identifier. |
| price | integer <decimal> Subscription price in main currency units. For example, value of 30 equals 30 UAH subscription price. In case the price is not specified or has value of 0, plan price will be used instead. |
| recurrent_id required | string <number> The recurrent id for the subscription payments. |
| result_url required | string <url> The URL where user will be redirected after successful payment. |
| start_date required | string <date-time> The start date of the subscription. Date-time should be specified in RFC3339 format, UTC timezone. |
| trial_periods | number <integer> Deprecated The amount of trial periods assigned to the subscription. Currently not in use and automatically reassigned to gifted_periods |
| unified_external_id | string Identifier to link the subscription within partner system. Currently used by Rozetka only. |
| gifted_unified_external_id | string Identifier to link the gifted subscription within partner system. |
| use_plan_price_on_auto_renew | boolean Controls whether the subscription should use the plan price instead the of the price provided in subscription data when the automatic subscription renew is performed. |
| gifted_periods | number <integer> The amount of gifted periods assigned to the subscription. |
{- "auto_renew": true,
- "customer": {
- "address": "string",
- "city": "string",
- "country": "string",
- "external_id": "string",
- "first_name": "string",
- "last_name": "string",
- "patronym": "string",
- "phone": "string",
- "postal_code": "string",
- "payment_method": {
- "cc": {
- "cvv": "string",
- "exp_month": 1,
- "exp_year": 0,
- "number": "string",
- "use_3ds_flow": true
}, - "cc_token": {
- "token": "string",
- "use_3ds_flow": true,
- "save_to_wallet": false
}, - "type": "cc_token",
- "wallet": {
- "option_id": "ab22e710-5ce4-4e7e-a3db-bd6fdad8fe36",
- "use_3ds_flow": true
}, - "apple_pay": {
- "token": "string",
- "use_3ds_flow": true
}, - "google_pay": {
- "token": "string",
- "use_3ds_flow": true
}, - "decrypted_apple_pay": {
- "application_primary_account_number": "string",
- "application_expiration_date": "string",
- "online_payment_cryptogram": "string",
- "currency_code": "string",
- "device_manufacturer_identifier": "string",
- "transaction_id": "string",
- "ephemeral_public_key": "string",
- "public_key_hash": "string",
- "eci_indicator": "string",
- "use_3ds_flow": true
}, - "decrypted_google_pay": {
- "pan": "string",
- "exp_month": 0,
- "exp_year": 0,
- "cryptogram": "string",
- "eci_indicator": "string",
- "auth_method": "string",
- "gateway_merchant_id": "string",
- "message_id": "string",
- "message_expiration": "string",
- "payment_method": "string",
- "protocol_version": "string",
- "use_3ds_flow": true
}
}, - "color_mode": "white",
- "locale": "UK",
- "account_number": "string",
- "ip_address": "192.168.0.1",
- "fingerprint": {
- "browser_accept_header": "string",
- "browser_color_depth": "string",
- "browser_ip_address": "string",
- "browser_java_enabled": "string",
- "browser_language": "string",
- "browser_screen_height": "string",
- "browser_screen_width": "string",
- "browser_time_zone": "string",
- "browser_time_zone_offset": "string",
- "browser_user_agent": "string"
}
}, - "delegate_api_key": "5c226db4-c088-43f5-8d7a-809ac3718d66",
- "description": "My subscription description",
- "external_id": "9i8h7g6f5e4d",
- "external_premium_id": "1a2b3c4d5e",
- "plan_id": "d38bdf4e-cbd8-46f5-87fa-538dd7618731",
- "price": 3000,
- "recurrent_id": "593292035525113984",
- "start_date": "2025-07-14T10:12:04Z",
- "trial_periods": 2,
- "unified_external_id": "5e4d3c2b1a",
- "gifted_unified_external_id": "5e4d3c2b1a",
- "use_plan_price_on_auto_renew": true,
- "gifted_periods": 2
}{- "payment": {
- "details": {
- "amount": 3000,
- "created_at": "2025-07-12T12:00:03Z",
- "currency": "UAH",
- "description": "My payment description",
- "transaction_id": "2bd9de2f-6b97-490d-bcd0-283d00c65966",
- "next_processing_date": "2025-07-12T12:00:03Z",
- "processed_at": "2025-07-12T12:00:03Z",
- "retry_count": 2,
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "Transaction successful.",
- "updated_at": "2025-07-14T12:00:03Z",
- "meta": {
- "payment_method": {
- "type": "cc_token",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "bank_short_name": "string"
}
}, - "rrn": "string",
- "auth_code": "string",
- "terminal_name": "string",
- "bank_name": "string",
- "mid": "string",
- "tid": "string",
- "recipient_iban": "string"
}, - "id": "a62a18e6-d44f-4a50-bc10-34853e109fe3",
- "subscription_id": "9aed5896-a829-400f-bd3b-5b6f8508de6b",
- "user_action": {
- "type": "url",
- "value": "string"
}
}, - "subscription": {
- "auto_renew": true,
- "auto_renew_locked_until": "2026-02-14T12:00:03Z",
- "callback_url": "string",
- "created_at": "2025-07-14T12:00:03Z",
- "currency": "UAH",
- "customer_id": "0ee67270-297d-4ed4-993c-5b4ba95c4daf",
- "delegate_api_key": "5c226db4-c088-43f5-8d7a-809ac3718d66",
- "description": "My subscription description",
- "due_date": "2025-09-14T00:00:00Z",
- "external_id": "9i8h7g6f5e4d",
- "external_premium_id": "1a2b3c4d5e",
- "id": "9aed5896-a829-400f-bd3b-5b6f8508de6b",
- "is_retrying": false,
- "final_expiration_date": "2026-02-14T12:00:03Z",
- "next_notification_date": "2025-09-13T00:00:00Z",
- "next_payment_date": "2025-09-14T00:00:00Z",
- "plan_id": "d38bdf4e-cbd8-46f5-87fa-538dd7618731",
- "price": 3000,
- "project_id": "d38bdf4e-cbd8-46f5-87fa-538dd7618731",
- "recurrent_id": "573299035525213784",
- "start_date": "2025-07-14T00:00:00Z",
- "state": "init",
- "time_of_day": "0001-01-01T12:00:03Z",
- "trial_periods": 2,
- "trial_periodic_payments": true,
- "trial_until": "2025-09-14T12:00:03Z",
- "unified_external_id": "5e4d3c2b1a",
- "updated_at": "2025-07-14T12:01:12Z",
- "use_plan_price_on_auto_renew": true,
- "gifted": true,
- "gifted_from": "2025-07-14T00:00:00Z",
- "gifted_until": "2025-07-14T00:00:00Z",
- "gifted_unified_external_id": "5e4d3c2b1a"
}
}{- "event": "payment.processed",
- "subscription": {
- "auto_renew": true,
- "auto_renew_locked_until": "2026-02-14T12:00:03Z",
- "callback_url": "string",
- "created_at": "2025-07-14T12:00:03Z",
- "currency": "UAH",
- "customer_id": "0ee67270-297d-4ed4-993c-5b4ba95c4daf",
- "delegate_api_key": "5c226db4-c088-43f5-8d7a-809ac3718d66",
- "description": "My subscription description",
- "due_date": "2025-09-14T00:00:00Z",
- "external_id": "9i8h7g6f5e4d",
- "external_premium_id": "1a2b3c4d5e",
- "id": "9aed5896-a829-400f-bd3b-5b6f8508de6b",
- "is_retrying": false,
- "final_expiration_date": "2026-02-14T12:00:03Z",
- "next_notification_date": "2025-09-13T00:00:00Z",
- "next_payment_date": "2025-09-14T00:00:00Z",
- "plan_id": "d38bdf4e-cbd8-46f5-87fa-538dd7618731",
- "price": 3000,
- "project_id": "d38bdf4e-cbd8-46f5-87fa-538dd7618731",
- "recurrent_id": "573299035525213784",
- "start_date": "2025-07-14T00:00:00Z",
- "state": "init",
- "time_of_day": "0001-01-01T12:00:03Z",
- "trial_periods": 2,
- "trial_periodic_payments": true,
- "trial_until": "2025-09-14T12:00:03Z",
- "unified_external_id": "5e4d3c2b1a",
- "updated_at": "2025-07-14T12:01:12Z",
- "use_plan_price_on_auto_renew": true,
- "gifted": true,
- "gifted_from": "2025-07-14T00:00:00Z",
- "gifted_until": "2025-07-14T00:00:00Z",
- "gifted_unified_external_id": "5e4d3c2b1a"
}, - "payment": {
- "details": {
- "amount": 3000,
- "created_at": "2025-07-12T12:00:03Z",
- "currency": "UAH",
- "description": "My payment description",
- "transaction_id": "2bd9de2f-6b97-490d-bcd0-283d00c65966",
- "next_processing_date": "2025-07-12T12:00:03Z",
- "processed_at": "2025-07-12T12:00:03Z",
- "retry_count": 2,
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "Transaction successful.",
- "updated_at": "2025-07-14T12:00:03Z",
- "meta": {
- "payment_method": {
- "type": "cc_token",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "bank_short_name": "string"
}
}, - "rrn": "string",
- "auth_code": "string",
- "terminal_name": "string",
- "bank_name": "string",
- "mid": "string",
- "tid": "string",
- "recipient_iban": "string"
}, - "id": "a62a18e6-d44f-4a50-bc10-34853e109fe3",
- "subscription_id": "9aed5896-a829-400f-bd3b-5b6f8508de6b",
- "user_action": {
- "type": "url",
- "value": "string"
}
}, - "payment_method": {
- "cc_token": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "saved_card": true,
- "bin_country": "string"
}, - "apple_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "google_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "type": "cc_token"
}, - "customer": {
- "browser_user_agent": "string",
- "external_id": "string",
- "first_name": "string",
- "ip_address": "string",
- "last_name": "string",
- "patronym": "string",
- "phone": "string"
}
}Return all payments of the target subscription.
| subscription_id required | string <uuid> Example: 1d85591b-891b-4b10-9d60-2078940d8e74 Subscription identifier. |
| external_id | string User ID in external system |
| X-CUSTOMER-AUTH | string <jwt> User access token. |
| X-CUSTOMER-RID | string <uuid> Deprecated Example: 8ba5dd43-496e-4432-9c8a-74fdc74139fe User RID identifier. RID header will be used if both are set.
There is a deprecated way to call the endpoint.
Please use access token with |
[- {
- "details": {
- "amount": 3000,
- "created_at": "2025-07-12T12:00:03Z",
- "currency": "UAH",
- "description": "My payment description",
- "transaction_id": "2bd9de2f-6b97-490d-bcd0-283d00c65966",
- "next_processing_date": "2025-07-12T12:00:03Z",
- "processed_at": "2025-07-12T12:00:03Z",
- "retry_count": 2,
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "Transaction successful.",
- "updated_at": "2025-07-14T12:00:03Z",
- "meta": {
- "payment_method": {
- "type": "cc_token",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "bank_short_name": "string"
}
}, - "rrn": "string",
- "auth_code": "string",
- "terminal_name": "string",
- "bank_name": "string",
- "mid": "string",
- "tid": "string",
- "recipient_iban": "string"
}, - "id": "a62a18e6-d44f-4a50-bc10-34853e109fe3",
- "subscription_id": "9aed5896-a829-400f-bd3b-5b6f8508de6b",
- "user_action": {
- "type": "url",
- "value": "string"
}
}
]Cancel a target subscription with optional refund.
| subscription_id required | string <uuid> Example: 1d85591b-891b-4b10-9d60-2078940d8e74 Subscription identifier. |
| external_id | string User ID in external system |
| refund | boolean Example: refund=true Refund option. |
| X-CUSTOMER-AUTH | string <jwt> User access token. |
| X-CUSTOMER-RID | string <uuid> Deprecated Example: 8ba5dd43-496e-4432-9c8a-74fdc74139fe User RID identifier. RID header will be used if both are set.
There is a deprecated way to call the endpoint.
Please use access token with |
{- "message": "string"
}Update payment method in subscription by id
| subscription_id required | string <uuid> Example: 1d85591b-891b-4b10-9d60-2078940d8e74 Subscription identifier. |
| X-CUSTOMER-AUTH | string <jwt> User access token. |
| external_id | string User's external ID (some unique id if rid or access token doesn't passed). |
| result_url | string <url> The URL where user will be redirected after successful payment. |
required | object (SubscriptionPaymentMethod) Based on your choice in |
object (BrowserFingerprint) | |
| auto_renew | boolean Controls whether the subscription should automatically renew after the due date. |
{- "external_id": "string",
- "payment_method": {
- "type": "cc_token",
- "cc_token": {
- "token": "string",
- "use_3ds_flow": true,
- "save_to_wallet": false
}, - "wallet": {
- "option_id": "ab22e710-5ce4-4e7e-a3db-bd6fdad8fe36",
- "use_3ds_flow": true
}, - "apple_pay": {
- "token": "string",
- "use_3ds_flow": true
}, - "google_pay": {
- "token": "string",
- "use_3ds_flow": true
}, - "recurrent_id": {
- "recurrent_id": "593292035525113984"
}
}, - "fingerprint": {
- "browser_accept_header": "string",
- "browser_color_depth": "string",
- "browser_ip_address": "string",
- "browser_java_enabled": "string",
- "browser_language": "string",
- "browser_screen_height": "string",
- "browser_screen_width": "string",
- "browser_time_zone": "string",
- "browser_time_zone_offset": "string",
- "browser_user_agent": "string"
}, - "auto_renew": true
}{- "message": "string"
}{- "event": "payment.processed",
- "subscription": {
- "auto_renew": true,
- "auto_renew_locked_until": "2026-02-14T12:00:03Z",
- "callback_url": "string",
- "created_at": "2025-07-14T12:00:03Z",
- "currency": "UAH",
- "customer_id": "0ee67270-297d-4ed4-993c-5b4ba95c4daf",
- "delegate_api_key": "5c226db4-c088-43f5-8d7a-809ac3718d66",
- "description": "My subscription description",
- "due_date": "2025-09-14T00:00:00Z",
- "external_id": "9i8h7g6f5e4d",
- "external_premium_id": "1a2b3c4d5e",
- "id": "9aed5896-a829-400f-bd3b-5b6f8508de6b",
- "is_retrying": false,
- "final_expiration_date": "2026-02-14T12:00:03Z",
- "next_notification_date": "2025-09-13T00:00:00Z",
- "next_payment_date": "2025-09-14T00:00:00Z",
- "plan_id": "d38bdf4e-cbd8-46f5-87fa-538dd7618731",
- "price": 3000,
- "project_id": "d38bdf4e-cbd8-46f5-87fa-538dd7618731",
- "recurrent_id": "573299035525213784",
- "start_date": "2025-07-14T00:00:00Z",
- "state": "init",
- "time_of_day": "0001-01-01T12:00:03Z",
- "trial_periods": 2,
- "trial_periodic_payments": true,
- "trial_until": "2025-09-14T12:00:03Z",
- "unified_external_id": "5e4d3c2b1a",
- "updated_at": "2025-07-14T12:01:12Z",
- "use_plan_price_on_auto_renew": true,
- "gifted": true,
- "gifted_from": "2025-07-14T00:00:00Z",
- "gifted_until": "2025-07-14T00:00:00Z",
- "gifted_unified_external_id": "5e4d3c2b1a"
}, - "payment": {
- "details": {
- "amount": 3000,
- "created_at": "2025-07-12T12:00:03Z",
- "currency": "UAH",
- "description": "My payment description",
- "transaction_id": "2bd9de2f-6b97-490d-bcd0-283d00c65966",
- "next_processing_date": "2025-07-12T12:00:03Z",
- "processed_at": "2025-07-12T12:00:03Z",
- "retry_count": 2,
- "status": "init",
- "status_code": "authorization_failed",
- "status_description": "Transaction successful.",
- "updated_at": "2025-07-14T12:00:03Z",
- "meta": {
- "payment_method": {
- "type": "cc_token",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "bank_short_name": "string"
}
}, - "rrn": "string",
- "auth_code": "string",
- "terminal_name": "string",
- "bank_name": "string",
- "mid": "string",
- "tid": "string",
- "recipient_iban": "string"
}, - "id": "a62a18e6-d44f-4a50-bc10-34853e109fe3",
- "subscription_id": "9aed5896-a829-400f-bd3b-5b6f8508de6b",
- "user_action": {
- "type": "url",
- "value": "string"
}
}, - "payment_method": {
- "cc_token": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "saved_card": true,
- "bin_country": "string"
}, - "apple_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "google_pay": {
- "bank_short_name": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "mask": "string",
- "payment_system": "string",
- "token": "string",
- "bin_country": "string"
}, - "type": "cc_token"
}, - "customer": {
- "browser_user_agent": "string",
- "external_id": "string",
- "first_name": "string",
- "ip_address": "string",
- "last_name": "string",
- "patronym": "string",
- "phone": "string"
}
}Receive a report for a desired period with paid-out payments. You can both receive payments only for current login or for all possible sources within single business.
| date_from required | string <date> |
| date_to required | string <date> |
| fields | Array of strings By default, all available fields are returned. See response schema for available field names. |
| scope | string Default: "current_login" Enum: "current_login" "all_keys" Regulate how many data you would like to receive. |
| register_type | string Default: "transactions_list" Enum: "transactions_list" "transactions_list_dwh" Version of the registrar. |
{- "date_from": "2019-08-24",
- "date_to": "2019-08-24",
- "fields": [
- "string"
], - "scope": "current_login",
- "register_type": "transactions_list"
}{- "payments": [
- {
- "amount": "0",
- "card_pan": "string",
- "currency": "string",
- "description": "string",
- "external_id": "string",
- "unified_external_id": "string",
- "internal_commission": "0",
- "payer_external_fee": "0",
- "payment_id": "string",
- "payment_method": "string",
- "payment_pay_parts": 0,
- "payment_system": "string",
- "payment_type": "string",
- "payout_amount": "0",
- "payout_date": "string",
- "processing_date": "string",
- "project_name": "string",
- "client_email": "string",
- "client_first_name": "string",
- "client_last_name": "string",
- "client_patronym": "string"
}
]
}Get detailed transactions report. Supports filtering by statuses and operation types. Date range must not exceed 14 days and start date must not be more than 90 days in the past.
| date_from required | string <date> Start date of the period. Must not be more than 90 days in the past. |
| date_to required | string <date> End date of the period. Must not exceed 14 days from start date. |
| register_type | string Default: "transactions_list" Value: "transactions_list" Version of the registrar. |
| operation_types | Array of strings Items Enum: "auth" "void" "purchase" "capture" "refund" "payment" "payout" "p2p" "credit" "create" By default, all available operation types are returned. |
| statuses | Array of strings Items Enum: "Success" "Failed" "Unsuccessful" "Created" "Cancel" "Pending" "Rejected" By default, all available statuses are returned. |
{- "date_from": "2025-05-01",
- "date_to": "2025-05-31",
- "register_type": "transactions_list",
- "operation_types": [
- "auth"
], - "statuses": [
- "Success"
]
}{- "transactions": [
- {
- "order_id": "string",
- "transaction_id": "string",
- "external_id": "string",
- "unified_external_id": "string",
- "operation_type": "string",
- "status": "string",
- "status_code": 0,
- "payment_method": "string",
- "project_name": "string",
- "order_description": "string",
- "payer_card_mask": "string",
- "payer_bank_name": "string",
- "bin_payment_system": "string",
- "bin_country_digit_code": "string",
- "payer_ip": "string",
- "original_amount": "0",
- "payer_amount": "0",
- "currency": "string",
- "payer_fee": "0",
- "merchant_fee": "0",
- "auth_code": "string",
- "rrn": "string",
- "created_at": "string",
- "processed_at": "string"
}
]
}Fetches finmon P2P limits
| recipient_ipn | any IPN of recipient |
{- "recipient_ipn": 123456789,
- "amount_left": 14999.99,
- "total_count_left": 187,
- "card_only_count_left": 23
}