{"info":{"_postman_id":"79ce8686-8753-4e7f-bc8c-e831d02c8736","name":"Main API Collection","description":"<html><head></head><body><h2 id=\"authentication\">Authentication</h2>\n<p>All API requests require authentication using a Bearer token in the <code>Authorization</code> header.</p>\n<p><strong>Headers:</strong></p>\n<ul>\n<li><p><code>Authorization: Bearer</code></p>\n</li>\n<li><p><code>Content-Type: application/json</code></p>\n</li>\n<li><p><code>Signature:</code></p>\n</li>\n</ul>\n<h2 id=\"signature-verification\">Signature Verification</h2>\n<p>All requests and responses should be signed using HMAC-SHA256 with your secret key. This ensures the integrity and authenticity of the data exchanged between your system and the API.</p>\n<h3 id=\"generating-a-signature\">Generating a Signature</h3>\n<p>To generate a signature, create an HMAC-SHA256 hash of the request body using your secret key.</p>\n<p>There is a simple piece of PHP code that shows how to generate a signature:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-php\">/** @var \\Psr\\Http\\Message\\RequestInterface $request */\n$signature = hash_hmac(\n  'sha256',\n  $request-&gt;getBody()-&gt;getContents(),\n  $secretKey\n);\n$request-&gt;withHeader('Signature', $signature);\n\n</code></pre>\n<p>Or JavaScript/Node.js:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">const hmac = require('crypto-js/hmac-sha256');\nconst body = {\n    orderId: '123',\n    // ...\n};\nconst signature = hmac(JSON.stringify(body), 'secretKey')\n  .toString();\n// 0a059c58184f388c6fe56bc07bf0b71f941ad85175283b5257fc9490422d9f6e\n\n</code></pre>\n<p>Or Python:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-python\">import hashlib\nimport hmac\nimport json\ndef _signature(data: dict, secret: str) -&gt; str:\n    # IMPORTANT: use separators to remove spaces after : and ,\n    string = json.dumps(data, separators=(\",\", \":\"))\n    secret_key = bytes(secret, \"utf8\")\n    return hmac.new(secret_key, string.encode(), hashlib.sha256).hexdigest()\ndef _gen_headers(payload: dict, api_key: str, secret: str) -&gt; tuple:\n    sign = _signature(payload, secret)\n    headers = {\n        \"Signature\": sign,\n        \"Content-Type\": \"application/json\",\n        \"Authorization\": f\"Bearer {api_key}\"\n    }\n    return headers, payload\n# Example usage:\ndata = {\n    'orderId': '123',\n    'merchantId': 'your_merchant_id',\n    'amount': 1000\n}\nheaders, payload = _gen_headers(data, 'your_api_key', 'your_secret_key')\nprint(headers['Signature'])\n# 0ff2fa58c4811407c4cd5fcb5adef76bf32c4213a579da5b17ebffb61525cb11\n\n</code></pre>\n<h2 id=\"signature-verification-for-callbacks\">Signature Verification for Callbacks</h2>\n<p>Each callback contains a <code>Signature</code> header signed with your secret key. It is important to verify callback signature in order to prevent possible security vulnerabilities.</p>\n<p><strong>Example in JavaScript (verifying callback):</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">const crypto = require('crypto');\n// callbackBody - raw body string received from callback request\nconst signature = callbackHeaders['Signature'];\nconst expectedSignature = crypto.createHmac('sha256', secretKey).update(callbackBody).digest('hex');\nif (signature === expectedSignature) {\n  // Signature is valid - process the callback\n} else {\n  // Signature is invalid - reject the callback\n}\n\n</code></pre>\n<hr>\n<p><strong>Example in PHP (verifying callback):</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-php\">$callbackBody = file_get_contents('php://input');\n$signature = $_SERVER['HTTP_SIGNATURE'] ?? '';\nif($signature === hash_hmac('sha256', $callbackBody, $secretKey))\n{\n  // Signature is valid - you can trust this callback\n}\n\n</code></pre>\n<hr>\n<h3 id=\"error-codes\">Error Codes</h3>\n<p>Below is a summary of error codes that can be returned by the API:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>HTTP Status</th>\n<th>Code</th>\n<th>Message</th>\n<th>Details</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>400</td>\n<td>400</td>\n<td>Invalid amount</td>\n<td>The amount should be between minimum and maximum allowed values.</td>\n</tr>\n<tr>\n<td>400</td>\n<td>40001</td>\n<td>Invalid orderId</td>\n<td>The provided orderId is either malformed or already exists.</td>\n</tr>\n<tr>\n<td>400</td>\n<td>40002</td>\n<td>All requisites are busy / Invoice creation failed</td>\n<td>Unable to create an invoice; all requisites are currently busy or url is not available.</td>\n</tr>\n<tr>\n<td>400</td>\n<td>40003</td>\n<td>Invalid payment method</td>\n<td>The specified payment method is not associated with the merchant or currency mismatch.</td>\n</tr>\n<tr>\n<td>400</td>\n<td>40004</td>\n<td>Insufficient funds</td>\n<td>The merchant does not have sufficient funds to process this payout.</td>\n</tr>\n<tr>\n<td>400</td>\n<td>40008</td>\n<td>Request is being processed</td>\n<td>The request is currently being processed. Please wait before retrying.</td>\n</tr>\n<tr>\n<td>401</td>\n<td>401</td>\n<td>Unauthorized</td>\n<td>No authorization provided and no order_id provided.</td>\n</tr>\n<tr>\n<td>403</td>\n<td>403</td>\n<td>Access denied</td>\n<td>Your IP address is not in the whitelist.</td>\n</tr>\n<tr>\n<td>403</td>\n<td>40301</td>\n<td>User blocked</td>\n<td>This user has been blocked from making payments.</td>\n</tr>\n<tr>\n<td>403</td>\n<td>40302</td>\n<td>Anti-spam protection triggered</td>\n<td>Too many payment requests in a short period. User has been blocked.</td>\n</tr>\n<tr>\n<td>404</td>\n<td>40401</td>\n<td>Merchant not found / Payment not found</td>\n<td>The specified merchantId does not exist or is invalid. / No payment found for the given orderId.</td>\n</tr>\n<tr>\n<td>404</td>\n<td>40402</td>\n<td>Payment method not found / No banks available</td>\n<td>The specified payment method does not exist. / There are no banks available for the specified method or currency.</td>\n</tr>\n<tr>\n<td>404</td>\n<td>40403</td>\n<td>No payment methods found</td>\n<td>The merchant does not have any associated payment methods.</td>\n</tr>\n<tr>\n<td>404</td>\n<td>40404</td>\n<td>Resource not found</td>\n<td>The requested resource was not found.</td>\n</tr>\n<tr>\n<td>409</td>\n<td>40901</td>\n<td>Duplicate payment / Invoice already exists</td>\n<td>Payment with this orderId already exists and has been processed. / An invoice is already associated with this payment.</td>\n</tr>\n<tr>\n<td>422</td>\n<td>422</td>\n<td>Unprocessable Content</td>\n<td>The selected status is invalid.</td>\n</tr>\n<tr>\n<td>500</td>\n<td>50001</td>\n<td>An error occurred / Internal server error</td>\n<td>Internal server error.</td>\n</tr>\n</tbody>\n</table>\n</div><hr>\n<h2 id=\"callbacks\">Callbacks</h2>\n<p>When a payment's status changes, the system can send a callback to the <code>callbackUri</code> provided during payment creation. The callback will include a signed payload similar to the response from the \"<a href=\"#9a8a7412-0b96-46bf-92c7-9a727ae89025\">Get Payment Status</a>\" endpoint. Header has signature.</p>\n<p><strong>Possible state Values:</strong></p>\n<ul>\n<li><p><code>created</code> - payment created without an invoice (no method selected, user is redirected to choose a method)</p>\n</li>\n<li><p><code>pending</code>- <strong>payment successfully created with the chosen method!</strong></p>\n</li>\n<li><p><code>dispute</code>- dispute/appeal</p>\n</li>\n<li><p><code>in_check</code>- payment verification initiated by the user or an active payout in progress.</p>\n</li>\n<li><p><code>finished</code>- payment successfully completed (final status).</p>\n</li>\n<li><p><code>canceled</code>- canceled by the user or the gateway (final status for payouts).</p>\n</li>\n<li><p><code>expired</code>- payment expired.</p>\n</li>\n<li><p><code>failed</code>- payment creation failed; no suitable requisite found (final status)</p>\n</li>\n</ul>\n<hr>\n<hr>\n<h2 id=\"notes\">Notes</h2>\n<ul>\n<li><p><strong>Error Handling:</strong> Always check for <code>status: false</code> in the response to handle errors gracefully.</p>\n</li>\n<li><p><strong>Rate Limiting:</strong> Excessive requests may result in rate limiting. Ensure your application handles HTTP 429 responses.</p>\n</li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"13931884","collectionId":"79ce8686-8753-4e7f-bc8c-e831d02c8736","publishedId":"2sAYQdipUu","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2026-02-11T20:36:59.000Z"},"item":[{"name":"Private","item":[{"name":"Create Payment (payin)","event":[{"listen":"test","script":{"id":"7967be5a-206f-4598-80eb-3959ddb555fb","exec":[""],"type":"text/javascript","packages":{},"requests":{}}},{"listen":"prerequest","script":{"id":"ae56481a-9f4a-4e49-b327-cb642b976543","exec":[""],"type":"text/javascript","packages":{},"requests":{}}}],"id":"0ab32d44-ba67-4732-bb87-fd3f0ae654a8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"payer\": {\n\t\t\"userId\": \"test-user\",\n\t\t\"userIp\": \"127.0.0.1\"\n\t},\n\t\"amount\": \"2430\",\n\t\"method\": \"nspk\",\n\t\"orderId\": \"builder-twesssts-UbsвDssыssHs7sOw2\",\n\t\"currency\": \"RUB\",\n\t\"merchantId\": \"lbjk0tqfpgbqeaainyuq6aye\",\n\t\"callbackUri\": \"https://test.local/callback\"\n}","options":{"raw":{"language":"json"}}},"url":"https://domain.com/api/v2/payments","description":"<h3 id=\"create-payment\">Create Payment</h3>\n<p>This endpoint allows you to create a new payment request.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>orderId</code> (string): The ID of the order.</p>\n</li>\n<li><p><code>merchantId</code> (string): Unique identifier of the merchant.</p>\n</li>\n<li><p><code>amount</code> (number): The amount of the payment.</p>\n</li>\n<li><p><code>assetOrBank</code> (string, optional): Bank or crypto name.</p>\n</li>\n<li><p><code>method</code> (string): The payment method.</p>\n<ul>\n<li><p><code>q_ecom</code> - qvazi ecom, AZN</p>\n</li>\n<li><p><code>p2p</code> - card-number transfer, EUR/USD</p>\n</li>\n<li><p><code>upi</code> - UPI id mail transfer, INR</p>\n</li>\n<li><p><code>intent</code> - UPI Intent transfer (payment via redirect to UPI/banking app using deep link)</p>\n</li>\n<li><p><code>krw</code> - bank account transfer, KRW</p>\n</li>\n<li><p><code>kakaopay</code> - mobile wallet payment, KRW</p>\n</li>\n<li><p><code>mpesa</code> - mobile phone-based transfer, KES</p>\n</li>\n<li><p><code>ars</code> - CVU number transfer, ARS</p>\n</li>\n<li><p><code>c2ckz</code> - card-number transfer, KZT</p>\n</li>\n<li><p><code>c2cuz</code> - mix card-number transfer, UZS</p>\n</li>\n<li><p><code>humo</code> - HUMO card-number transfer, UZS</p>\n</li>\n<li><p><code>uzcard</code> - UZCARD card-number transfer, UZS</p>\n</li>\n<li><p><code>c2caz</code> - card-number transfer, AZN</p>\n</li>\n<li><p><code>kgs</code> - card-number transfer, KGS</p>\n</li>\n<li><p><code>deeplink</code> - one click card-number transfer, KGS</p>\n</li>\n<li><p><code>qris</code> - QRIS payment, IDR</p>\n</li>\n<li><p><code>jz</code> - Jazz Cash JZ, PKR</p>\n</li>\n<li><p><code>ep</code> - Easy Paisa EP, PKR</p>\n</li>\n<li><p><code>nagad</code> - Nagad wallet payment, BDT</p>\n</li>\n<li><p><code>bkash</code> - bKash wallet payment, BDT</p>\n</li>\n<li><p><code>upay</code> - Upay wallet payment, BDT</p>\n</li>\n<li><p><code>c2cv</code> - Bank transfer, VND</p>\n</li>\n<li><p><code>vietqr</code> - VietQR payment, VND</p>\n</li>\n<li><p><code>momo</code> - MoMo wallet payment, VND</p>\n</li>\n<li><p><code>viettel</code> - Viettel wallet/mobile payment, VND</p>\n</li>\n<li><p><code>ewallet</code> - e-wallet payment, VND</p>\n</li>\n<li><p><code>gcash_native</code> - GCash Native payment, PHP</p>\n</li>\n<li><p><code>maya</code> - Maya wallet payment, PHP</p>\n</li>\n<li><p><code>mayab</code> - MayaB payment method, PHP</p>\n</li>\n<li><p><code>alipay</code> - Alipay wallet payment, CNY</p>\n</li>\n<li><p><code>wechat_pay</code> - WeChat Pay wallet payment, CNY</p>\n</li>\n<li><p><code>ecny</code> - e-CNY digital yuan payment, CNY</p>\n</li>\n<li><p><code>c2c</code> - card-number transfer, RUB</p>\n</li>\n<li><p><code>sbp</code> - phone-number transfer via Russia’s Faster Payments System (RUB)</p>\n</li>\n<li><p><code>c2cwt</code> - card-number transfer, RUB (WT)</p>\n</li>\n<li><p><code>sbpwt</code> - phone-number transfer via Russia’s Faster Payments System (RUB) (WT)</p>\n</li>\n<li><p><code>spay</code> - SberPay one-click QR transfer through Sberbank Online (RUB)</p>\n</li>\n<li><p><code>tpay</code> - intrabank phone-number transfer in T-Bank (RUB)</p>\n</li>\n<li><p><code>vpay</code> - intrabank phone-number transfer in VTB (RUB)</p>\n</li>\n<li><p><code>apay</code> - intrabank phone-number transfer in Alfa-Bank (RUB)</p>\n</li>\n<li><p><code>ozon</code> - intrabank phone-number transfer in OZON Bank (RUB)</p>\n</li>\n<li><p><code>psb</code> - intrabank phone-number transfer in PSB (RUB)</p>\n</li>\n<li><p><code>gazprom</code> - intrabank phone-number transfer in Gazprom (RUB)</p>\n</li>\n<li><p><code>abh</code> - cross-border, RUB</p>\n</li>\n<li><p><code>m2ctj</code> - cross-border card transfer to Tajikistan (RUB)</p>\n</li>\n<li><p><code>m2ntj</code> - cross-border phone-number transfer to Tajikistan (RUB)</p>\n</li>\n<li><p><code>m2nam</code> - cross-border phone-number transfer to Armenia (RUB)</p>\n</li>\n<li><p><code>connectc2c</code> - card-number matching, RUB</p>\n</li>\n<li><p><code>connectsbp</code> - phone-number matching via SBP, RUB</p>\n</li>\n<li><p><code>nspk</code> - QR transfer through the Faster Payments System</p>\n</li>\n<li><p><code>ecom</code> - classic 3-DS acquiring</p>\n</li>\n<li><p><code>revo</code> - internal transfer, EUR</p>\n</li>\n<li><p><code>paypal</code> - internal transfer, EUR</p>\n</li>\n<li><p><code>crypto</code> - crypto processing (specify asset in <code>assetOrBank</code>)</p>\n</li>\n</ul>\n</li>\n<li><p><code>currency</code> (string, optional): The currency of the payment (<code>RUB</code>, <code>UZS</code>, <code>KZT</code>,<code>IDR</code>, <code>PKR</code>,<code>BDT</code>,<code>VND</code>,<code>PHP</code>, <code>EUR</code>,etc.)</p>\n</li>\n<li><p><code>callbackUri</code> (string): The URI to which the callback response will be sent.</p>\n</li>\n<li><p><code>successUri</code> (string): The URI to redirect to on successful payment.</p>\n</li>\n<li><p><code>failUri</code> (string): The URI to redirect to on failed payment.</p>\n</li>\n<li><p><code>payer</code> (object): Information about the payer.</p>\n</li>\n</ul>\n<h4 id=\"payer-object-example\">Payer Object Example</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"payer\": {\n    \"userId\": \"u-4095\",\n    \"userIp\": \"188.11.55.10\",\n    \"customerName\": \"Иван Иванов\",\n    \"phone\" : \"37434343434\",\n    \"email\" : \"email@mail.ru\",\n    \"senderBank\": \"sber\", // (string, optional, conditional-required for cross‑border methods) — Identifier of the payer's bank. Used to select FX rate tables, routing rules, and limits for cross‑border payments. Pass a lowercase slug ([a-z0-9_-], max 32 chars), e.g. \"tbank\", \"sber\", \"vtb\", \"alfa\".\n    \"fingerprint\": \"device_id\", // (string, optional) — Device fingerprint for fraud prevention.\n    \"type\": \"trusted\", // (string, optional) ftd/std/trusted\n    \"payments\": {\n      \"successful\": 5,\n      \"expired\": 1\n    }\n  }\n}\n\n</code></pre>\n<ul>\n<li><code>payer.fingerprint</code> (string, required): A unique identifier for the user’s device/session.</li>\n</ul>\n<p><strong>Generation options:</strong></p>\n<ol>\n<li><p><strong>Browser:</strong> a hash of <code>userAgent + screen + timezone</code></p>\n</li>\n<li><p><strong>Mobile app:</strong> <code>device_id</code> (Android ID / IDFV)</p>\n</li>\n<li><p><strong>Server-side integration:</strong> a session UUID or a hash of <code>userId + userAgent</code></p>\n</li>\n</ol>\n<p><strong>Examples of valid values:</strong></p>\n<ul>\n<li><p><code>\"7a3f2b1c\"</code> (hex hash)</p>\n</li>\n<li><p><code>\"550e8400-e29b-41d4-a716-446655440000\"</code> (UUID)</p>\n</li>\n<li><p><code>\"user_123_session_abc\"</code> (arbitrary string)</p>\n</li>\n</ul>\n<p><strong>Maximum length:</strong> 64 characters</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"79ce8686-8753-4e7f-bc8c-e831d02c8736","id":"79ce8686-8753-4e7f-bc8c-e831d02c8736","name":"Main API Collection","type":"collection"}},"urlObject":{"path":["api","v2","payments"],"host":["https://domain.com"],"query":[],"variable":[]}},"response":[{"id":"2350bb3e-e9ea-4745-8a81-39ebd8307cf8","name":"AZN ECOM","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"orderId\": \"testorderid1a\",\n    \"merchantId\": \"lbjk0tqfpgbqeaainyuq6aye\",\n    \"amount\": 13420,\n    \"currency\": \"AZN\",\n    \"method\": \"az_ecom\",\n    \"callbackUri\": \"https://yourdomain.com/callback\",\n    \"successUri\": \"https://yourdomain.com/success\",\n    \"failUri\": \"https://yourdomain.com/fail\",\n    \"payer\": {\n        \"userId\": \"u-40s95\",\n        \"userIp\": \"188.11.55.10\",\n        \"customerName\": \"John Doe\",\n        \"phone\": \"+3734343434\",\n        \"email\": \"email@mail.ru\",\n        \"senderBank\": \"tbank\",\n        \"type\": \"trusted\",\n        \"payments\": {\n            \"successful\": 5,\n            \"expired\": 1\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://domain.com/api/v2/payments"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[{"key":"Server","value":"nginx/1.26.2"},{"key":"Date","value":"Mon, 15 Dec 2025 04:29:17 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"vary","value":"Accept-Encoding"},{"key":"x-powered-by","value":"PHP/8.2.28"},{"key":"cache-control","value":"no-cache, private"},{"key":"access-control-allow-origin","value":"*"},{"key":"access-control-allow-methods","value":"GET, POST, OPTIONS, DELETE, PUT, PATCH"},{"key":"access-control-allow-headers","value":"Authorization, Content-Type, Accept, Origin, X-Requested-With"},{"key":"access-control-allow-credentials","value":"true"},{"key":"content-encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"result\": {\n        \"id\": \"affea489a-d8bc-4bcd-9d78-99ae1a0fa82bg\",\n        \"state\": \"created\",\n        \"method\": \"az_ecom\"\n    },\n    \"url\": \"https://easy2tap.pro/affea489a-d8bc-4bcd-9d78-99ae1a0fa82bg\"\n}"},{"id":"80f3b50d-ca4c-415b-a87f-36a3b5841e90","name":"INR UPI","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <token>","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"orderId\": \"or3d2e23r2Id312\",\n    \"merchantId\": \"merchantId\",\n    \"amount\": 1000,\n    \"method\": \"upi\",\n    \"currency\": \"RUB\",\n    \"userId\": \"123433235226\",\n    \"callbackUri\": \"https://yourdomain.com/callback\",\n    \"successUri\": \"https://yourdomain.com/success\",\n    \"failUri\": \"https://yourdomain.com/fail\"\n}","options":{"raw":{"language":"json"}}},"url":"https://domain.com/api/v2/payments"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"openresty"},{"key":"Date","value":"Wed, 11 Sep 2024 12:17:22 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Authorization"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"result\": {\n        \"id\": \"ae5d4e8df-1aa3-4942-b79a-5acddba8d3f0g\",\n        \"state\": \"pending\",\n        \"address\": \"8986768\",\n        \"bank\": \"indusind\",\n        \"recipient\": \"Namrata Cherian\",\n        \"rate\": 85.26,\n        \"amount\": 1000.00,\n        \"init_amount\": 1000.00,\n        \"bankName\": \"Indusind Bank\"\n    },\n    \"url\": \"https://checkout.com/66dc4b308b78c\"\n}"},{"id":"e383d1bb-269e-4250-b460-496c50d5bd9d","name":"RUB P2P","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <token>","type":"text"},{"key":"Signature","value":"<calculated-signature>","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"orderId\": \"orderId12\",\n    \"merchantId\": \"lbjk0tqfpgbqeaainyuq6aye\",\n    \"amount\": 5500,\n    \"method\": \"c2c\",\n    \"currency\": \"RUB\",\n    \"callbackUri\": \"https://yourdomain.com/callback\",\n    \"successUri\": \"https://yourdomain.com/success\",\n    \"failUri\": \"https://yourdomain.com/fail\",\n    \"payer\": {\n        \"userId\": \"u-4095\",\n        \"userIp\": \"188.11.55.10\",\n        \"customerName\": \"Иван Иванов\",\n        \"senderBank\": \"sber\",\n        \"type\": \"trusted\",\n        \"payments\": {\n            \"successful\": 5,\n            \"expired\": 1\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://domain.com/api/v2/payments"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"openresty"},{"key":"Date","value":"Sat, 07 Sep 2024 12:46:42 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Authorization"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Served-By","value":"rap1dpay.com"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"result\": {\n        \"id\": \"pcafecfdf-b34a-4b33-897b-e081f227a472r\",\n        \"state\": \"pending\",\n        \"address\": \"11111111111\",\n        \"bank\": \"rocketbank\",\n        \"country\": \"RUB\",\n        \"recipient\": \"vasya johnson\",\n        \"rate\": \"80.58\",\n        \"amount\": \"5500.00\",\n        \"init_amount\": \"5500.00\",\n        \"bankName\": \"Рокет Банк\",\n        \"message\": null,\n        \"commission\": \"10.00\",\n        \"usdt_amount\": 61.429635145197324,\n        \"expired_at\": \"2025-11-26T19:08:11.000000Z\",\n        \"method\": \"c2c\"\n    },\n    \"url\": \"https://checkout-flow/pcafecfdf-b34a-4b33-897b-e081f227a472r\"\n}"},{"id":"b958da72-54cd-4374-8bb0-bea42d5bd05d","name":"Invalid amount","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <token>","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"orderId\": \"or3d2e23r2Id312\",\n    \"merchantId\": \"lbjk0tqfpgbqeaainyuq6aye\",\n    \"amount\": 100,\n    \"method\": \"sbp\",\n    \"currency\": \"RUB\",\n    \"callbackUri\": \"https://yourdomain.com/callback\",\n    \"successUri\": \"https://yourdomain.com/success\",\n    \"failUri\": \"https://yourdomain.com/fail\",\n    \"payer\": {\n        \"userId\": \"u-4095\",\n        \"userIp\": \"188.11.55.10\",\n        \"customerName\": \"Иван Иванов\",\n        \"senderBank\": \"sber\",\n        \"type\": \"trusted\",\n        \"payments\": {\n            \"successful\": 5,\n            \"expired\": 1\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://domain.com/api/v2/payments"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"openresty"},{"key":"Date","value":"Wed, 11 Sep 2024 11:42:00 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Authorization"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": {\n        \"code\": 400,\n        \"message\": \"Invalid amount\",\n        \"details\": \"The amount should be between 500 and 300000.\"\n    }\n}"},{"id":"a726dc59-3118-429a-a8ce-b8291668eeb3","name":"Merchant not found","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <token>","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"orderId\": \"or3d2e23r2Id312\",\n    \"merchantId\": \"merchantId\",\n    \"amount\": 1000,\n    \"method\": \"sbp\",\n    \"currency\": \"RUB\",\n    \"callbackUri\": \"https://yourdomain.com/callback\",\n    \"successUri\": \"https://yourdomain.com/success\",\n    \"failUri\": \"https://yourdomain.com/fail\",\n    \"payer\": {\n        \"userId\": \"u-4095\",\n        \"userIp\": \"188.11.55.10\",\n        \"customerName\": \"Иван Иванов\",\n        \"senderBank\": \"sber\",\n        \"type\": \"trusted\",\n        \"payments\": {\n            \"successful\": 5,\n            \"expired\": 1\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://domain.com/api/v2/payments"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"openresty"},{"key":"Date","value":"Wed, 11 Sep 2024 12:17:22 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Authorization"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": {\n        \"code\": 40401,\n        \"message\": \"Merchant not found\",\n        \"details\": \"The specified merchantId does not exist or is invalid.\"\n    }\n}"},{"id":"50606db2-436e-4f97-a7bb-658fe18734f9","name":"RUB CrossBoard","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <token>","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"orderId\": \"orderId12\",\n    \"merchantId\": \"lbjk0tqfpgbqeaainyuq6aye\",\n    \"amount\": 5500,\n    \"method\": \"c2c\",\n    \"currency\": \"RUB\",\n    \"callbackUri\": \"https://yourdomain.com/callback\",\n    \"successUri\": \"https://yourdomain.com/success\",\n    \"failUri\": \"https://yourdomain.com/fail\",\n    \"payer\": {\n        \"userId\": \"u-4095\",\n        \"userIp\": \"188.11.55.10\",\n        \"customerName\": \"Иван Иванов\",\n        \"senderBank\": \"sber\",\n        \"type\": \"trusted\",\n        \"payments\": {\n            \"successful\": 5,\n            \"expired\": 1\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://domain.com/api/v2/payments"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"openresty"},{"key":"Date","value":"Wed, 11 Sep 2024 12:17:22 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Authorization"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"result\": {\n        \"id\": \"66dc4b308b78c\",\n        \"state\": \"pending\",\n        \"address\": \"+992200115507\",\n        \"bank\": \"dcitybank\",\n        \"recipient\": \"Иванов Иван Иванович\",\n        \"rate\": 91.93,\n        \"amount\": 1000.00,\n        \"init_amount\": 1000.00,\n        \"bankName\": \"Душанбе Сити Банк\",\n        \"message\": \"Выберите перевод по номеру телефона, введите скопированный номер, выберете банк Душанбе Сити Банк, введите сумму, подтвердите перевод\"\n\n    },\n    \"url\": \"https://checkout.com/66dc4b308b78c\"\n}"},{"id":"0e4b528c-f53d-4f7a-b28a-8e7e503a96f8","name":"Create Payment (payin)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"payer\": {\n\t\t\"userId\": \"test-user\",\n\t\t\"userIp\": \"127.0.0.1\"\n\t},\n\t\"amount\": \"1000\",\n\t\"method\": \"c2c\",\n\t\"orderId\": \"builder-test-UbDH7uOw\",\n\t\"currency\": \"RUB\",\n\t\"merchantId\": \"lbjk0tqfpgbqeaainyuq6aye\",\n\t\"callbackUri\": \"https://test.local/callback\"\n}","options":{"raw":{"language":"json"}}},"url":"https://domain.com/api/v2/payments"},"status":"Bad Request","code":400,"_postman_previewlanguage":null,"header":[{"key":":status","value":400},{"key":"server","value":"nginx"},{"key":"date","value":"Mon, 23 Mar 2026 21:14:49 GMT"},{"key":"content-type","value":"application/json"},{"key":"cache-control","value":"no-cache, private"},{"key":"x-request-id","value":"4e9330b4-30f2-4720-bac8-f8c42fc0c523"},{"key":"access-control-allow-credentials","value":"true"},{"key":"access-control-allow-methods","value":"GET, POST, PUT, PATCH, DELETE, OPTIONS"},{"key":"access-control-allow-headers","value":"Authorization, Content-Type, Accept, Origin, X-Requested-With"},{"key":"vary","value":"Origin"},{"key":"strict-transport-security","value":"max-age=31536000; includeSubDomains"},{"key":"x-content-type-options","value":"nosniff"},{"key":"x-frame-options","value":"SAMEORIGIN"},{"key":"referrer-policy","value":"strict-origin-when-cross-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": {\n        \"code\": 40003,\n        \"message\": \"No available methods\",\n        \"details\": \"No payment methods configured for this merchant and type.\"\n    }\n}"}],"_postman_id":"0ab32d44-ba67-4732-bb87-fd3f0ae654a8"},{"name":"Payout Request","id":"b3e70b5a-1ad6-4e15-85fb-629fe50ff2e1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"orderId\": \"test22t2e2st\",\n    \"merchantId\": \"lbjk0tqfpgbqeaainyuq6aye\",\n    \"method\": \"c2c\",\n    \"amount\": 1200,\n    \"address\": \"1234432112344321\",\n    \"currency\": \"RUB\",\n    \"code\":\"bankcode\",\n    \"recipient\": \"TEST TESTOVICH\",\n    \"assetOrBank\": \"сберыч\",\n    \"callbackUri\": \"https://callback.xyz/callback/pay\",\n    \"userId\": \"u-4095\",\n    \"userIp\": \"188.11.55.10\",\n    \"contactPhone\": \"37434343434\",\n    \"email\": \"email@mail.ru\"\n}","options":{"raw":{"language":"json"}}},"url":"https://domain.com/api/v2/payouts","description":"<p>Creates a payout request to transfer funds to a specified card number.</p>\n<p><strong>Request Body Parameters:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>amount</code></td>\n<td>number</td>\n<td>Yes</td>\n<td>Amount to be transferred.</td>\n</tr>\n<tr>\n<td><code>address</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>Card or Phone(SBP) number of the recipient.</td>\n</tr>\n<tr>\n<td><code>method</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>Payment method code. See <a href=\"#c649e516-9b4c-42d1-8920-856abb532a65\">Payment Methods</a>.</td>\n</tr>\n<tr>\n<td><code>currency</code></td>\n<td>string</td>\n<td>No</td>\n<td>Currency code. Default is <code>RUB</code>.</td>\n</tr>\n<tr>\n<td><code>recipient</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>Name of the recipient.</td>\n</tr>\n<tr>\n<td><code>assetOrBank</code></td>\n<td>string</td>\n<td>No</td>\n<td>Bank of the recipient.</td>\n</tr>\n<tr>\n<td><code>orderId</code></td>\n<td>string</td>\n<td>No</td>\n<td>Unique order ID. If not provided, a unique ID will be generated.</td>\n</tr>\n<tr>\n<td><code>merchantId</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>Unique identifier of the merchant.</td>\n</tr>\n<tr>\n<td><code>callbackUri</code></td>\n<td>string</td>\n<td>No</td>\n<td>URI to which the callback response will be sent.</td>\n</tr>\n<tr>\n<td><code>code</code></td>\n<td>string</td>\n<td>No</td>\n<td>Bank code.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"79ce8686-8753-4e7f-bc8c-e831d02c8736","id":"79ce8686-8753-4e7f-bc8c-e831d02c8736","name":"Main API Collection","type":"collection"}},"urlObject":{"path":["api","v2","payouts"],"host":["https://domain.com"],"query":[],"variable":[]}},"response":[{"id":"7ce02085-9ea9-424e-98bb-fdbbf4bce9e5","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer 39|0fAHOz7weBWHWR2fe5nHqWaS2f32O0K6fPTMkEx4","type":"text","disabled":true},{"key":"Content-Type","value":"application/json","type":"text","disabled":true}],"body":{"mode":"raw","raw":"{\n    \"amount\": 1000,\n    \"address\": \"1234432112344321\",\n    \"method\": \"c2c\",\n    \"currency\": \"RUB\",\n    \"recipient\": \"TEST TESTOVICH\",\n    \"assetOrBank\": \"sber\",\n    \"orderId\": \"test22t2e2st\",\n    \"merchantId\": \"k3lhwhmxue0p650hs6doub4k\",\n    \"callbackUri\": \"https://callback.xyz/callback/fin-pay\"\n}","options":{"raw":{"language":"json"}}},"url":"https://domain.com/api/v2/payouts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Wed, 06 Nov 2024 00:08:31 GMT"},{"key":"server","value":"Apache/2.4.62 (Debian)"},{"key":"x-powered-by","value":"PHP/8.1.30"},{"key":"cache-control","value":"no-cache, private"},{"key":"access-control-allow-credentials","value":"true"},{"key":"access-control-allow-headers","value":"Content-Type, Authorization, X-Requested-With"},{"key":"access-control-allow-methods","value":"GET, POST, OPTIONS, DELETE, PUT, PATCH"},{"key":"vary","value":"Authorization"},{"key":"transfer-encoding","value":"chunked"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"result\": {\n        \"address\": \"1234432112344321\",\n        \"recipient\": \"TEST TESTOVICH\",\n        \"amount\": -3000,\n        \"id\": \"672ab37e402a4\",\n        \"state\": \"pending\"\n    }\n}"},{"id":"59e6e0d1-cb7e-48a2-b489-34306c2be4d8","name":"Insufficient funds","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <token>","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"amount\": 1000,\n    \"address\": \"1234432112344321\",\n    \"method\": \"c2c\",\n    \"currency\": \"RUB\",\n    \"recipient\": \"TEST TESTOVICH\",\n    \"assetOrBank\": \"sber\",\n    \"orderId\": \"test22t2e2st\",\n    \"merchantId\": \"lbjk0tqfpgbqeaainyuq6aye\",\n    \"callbackUri\": \"https://callback.xyz/callback/fin-pay\"\n}","options":{"raw":{"language":"json"}}},"url":"https://domain.com/api/v2/payouts"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"openresty"},{"key":"Date","value":"Wed, 11 Sep 2024 13:04:28 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Authorization"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": {\n        \"code\": 40004,\n        \"message\": \"Insufficient funds\",\n        \"details\": \"The merchant does not have sufficient funds to process this payout.\"\n    }\n}"}],"_postman_id":"b3e70b5a-1ad6-4e15-85fb-629fe50ff2e1"},{"name":"Get Payment Status","id":"9a8a7412-0b96-46bf-92c7-9a727ae89025","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <token>","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"merchantId\": \"lbjk0tqfpgbqeaainyuq6aye\",\n    \"paymentId\": \"a2190182a-a64c-4752-898d-836b8abe9cc6g\"\n}","options":{"raw":{"language":"json"}}},"url":"https://domain.com/api/v2/status","description":"<h3 id=\"api-request-description\">API Request Description</h3>\n<p>This POST request is used to retrieve the status of a payment with the provided merchant ID and payment ID. The request should include the merchant ID and payment ID in the request body.</p>\n<p><strong>Request Body Parameters:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>merchantId</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>Unique identifier of the merchant.</td>\n</tr>\n<tr>\n<td><code>paymentId</code></td>\n<td>string</td>\n<td>No</td>\n<td>The unique payment ID generated by the system.</td>\n</tr>\n<tr>\n<td><code>orderId</code></td>\n<td>string</td>\n<td>No</td>\n<td>The original order ID provided during payment creation.</td>\n</tr>\n<tr>\n<td><code>paymentIds</code></td>\n<td>array</td>\n<td>No</td>\n<td>An array of payment IDs to retrieve multiple statuses.</td>\n</tr>\n<tr>\n<td><code>orderIds</code></td>\n<td>array</td>\n<td>No</td>\n<td>An array of order IDs to retrieve multiple statuses.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"79ce8686-8753-4e7f-bc8c-e831d02c8736","id":"79ce8686-8753-4e7f-bc8c-e831d02c8736","name":"Main API Collection","type":"collection"}},"urlObject":{"path":["api","v2","status"],"host":["https://domain.com"],"query":[],"variable":[]}},"response":[{"id":"1fb41852-2869-4fa1-a691-e59cae6ccb18","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <token>","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"merchantId\": \"ljsf1opu7eqrfoytme7rq8ol\",\n    \"paymentId\": \"66e0d7a228891\"\n}","options":{"raw":{"language":"json"}}},"url":"https://domain.com/api/v2/status"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"openresty"},{"key":"Date","value":"Wed, 11 Sep 2024 13:04:52 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Authorization"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Served-By","value":"rap1dpay.com"}],"cookie":[],"responseTime":null,"body":"{\n    \"datetime\": 1755690497,\n    \"id\": \"a2190182a-b64c-4756-898d-836b8abe9cc6g\",\n    \"orderId\": \"02c4f5da-2000-48b9-af2e-d7a498c95f08\",\n    \"created_at\": \"2025-08-20T11:47:48.000000Z\",\n    \"expired_at\": \"2025-08-20T12:02:48.000000Z\",\n    \"status\": false,\n    \"state\": \"pending\",\n    \"type\": \"payin\",\n    \"userId\": \"19bd3fs4-c8b7-411c-8641-502d2e0b586d81\",\n    \"amount\": \"2182.00\",\n    \"media\": [],\n    \"init_amount\": \"2182.00\",\n    \"amount_commission_less\": 1941.98,\n    \"currency\": \"RUB\",\n    \"rate\": 80.79,\n    \"commission\": 11,\n    \"method\": \"c2c\"\n}"},{"id":"ec730577-9e1b-4fa4-88ac-2e99a799fe84","name":"Success Array","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <token>","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"merchantId\": \"lbjk0tqfpgbqeaainyuq6aye\",\n    \"paymentIds\": [\"66e0d7a228891\"]\n}","options":{"raw":{"language":"json"}}},"url":"https://domain.com/api/v2/status"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Thu, 28 Nov 2024 23:10:51 GMT"},{"key":"server","value":"Apache/2.4.62 (Debian)"},{"key":"x-powered-by","value":"PHP/8.1.31"},{"key":"cache-control","value":"no-cache, private"},{"key":"access-control-allow-credentials","value":"true"},{"key":"access-control-allow-headers","value":"Content-Type, Authorization, X-Requested-With"},{"key":"access-control-allow-methods","value":"GET, POST, OPTIONS, DELETE, PUT, PATCH"},{"key":"vary","value":"Authorization"},{"key":"transfer-encoding","value":"chunked"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"datetime\": 1755690497,\n        \"id\": \"a2190182a-b64c-4756-898d-836b8abe9cc6g\",\n        \"orderId\": \"02c4f5da-2000-48b9-af2e-d7a498c95f08\",\n        \"created_at\": \"2025-08-20T11:47:48.000000Z\",\n        \"expired_at\": \"2025-08-20T12:02:48.000000Z\",\n        \"status\": false,\n        \"state\": \"pending\",\n        \"type\": \"payin\",\n        \"userId\": \"19bd3fs4-c8b7-411c-8641-502d2e0b586d81\",\n        \"amount\": \"2182.00\",\n        \"media\": [],\n        \"init_amount\": \"2182.00\",\n        \"amount_commission_less\": 1941.98,\n        \"currency\": \"RUB\",\n        \"rate\": 80.79,\n        \"commission\": 11,\n        \"method\": \"c2c\"\n    }\n]"}],"_postman_id":"9a8a7412-0b96-46bf-92c7-9a727ae89025"},{"name":"Get Payment Checks","id":"db4dc6b9-e9b9-4972-9326-f592437a8490","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <token>","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"merchantId\": \"lbjk0tqfpgbqeaainyuq6aye\",\n    \"orderId\": \"66e0d7a228891\"\n}","options":{"raw":{"language":"json"}}},"url":"https://domain.com/api/v2/media","description":"<h3 id=\"api-request-description\">API Request Description</h3>\n<p>This POST request is used to retrieve receipt (media) links for a payment using the provided merchant ID and order ID. The request should include the merchant ID and order ID in the request body.</p>\n<h3 id=\"request-body-parameters\">Request Body Parameters:</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>merchantId</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>Unique identifier of the merchant.</td>\n</tr>\n<tr>\n<td><code>orderId</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>The original order ID provided during payment creation.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"79ce8686-8753-4e7f-bc8c-e831d02c8736","id":"79ce8686-8753-4e7f-bc8c-e831d02c8736","name":"Main API Collection","type":"collection"}},"urlObject":{"path":["api","v2","media"],"host":["https://domain.com"],"query":[],"variable":[]}},"response":[{"id":"ff3286e7-d27e-4961-b313-6c06ef8982ec","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <token>","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"merchantId\": \"ljsf1opu7eqrfoytme7rq8ol\",\n    \"orderId\": \"66e0d7a228891\"\n}","options":{"raw":{"language":"json"}}},"url":"https://domain.com/api/v2/media"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"openresty"},{"key":"Date","value":"Wed, 11 Sep 2024 13:04:52 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Authorization"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Served-By","value":"rap1dpay.com"}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": true,\n  \"media\": [\n    \"https://.../check1.jpg\",\n    \"https://.../check2.jpg\"\n  ]\n}"},{"id":"4ea7abeb-4b17-45d0-8c5d-43dafd68c8c7","name":"Success (no checks)","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <token>","type":"text"},{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"merchantId\": \"lbjk0tqfpgbqeaainyuq6aye\",\n    \"orderId\": [\"66e0d7a228891\"]\n}","options":{"raw":{"language":"json"}}},"url":"https://domain.com/api/v2/media"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Thu, 28 Nov 2024 23:10:51 GMT"},{"key":"server","value":"Apache/2.4.62 (Debian)"},{"key":"x-powered-by","value":"PHP/8.1.31"},{"key":"cache-control","value":"no-cache, private"},{"key":"access-control-allow-credentials","value":"true"},{"key":"access-control-allow-headers","value":"Content-Type, Authorization, X-Requested-With"},{"key":"access-control-allow-methods","value":"GET, POST, OPTIONS, DELETE, PUT, PATCH"},{"key":"vary","value":"Authorization"},{"key":"transfer-encoding","value":"chunked"},{"key":"content-type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n  \"status\": true,\n  \"media\": []\n}"}],"_postman_id":"db4dc6b9-e9b9-4972-9326-f592437a8490"},{"name":"Get Rate (Commission)","id":"fdee2131-d6fc-4406-8815-7e2f794e4f1c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://domain.com/api/v2/rate","description":"<h3 id=\"get-commissions\">Get Commissions</h3>\n<p><strong>Query Parameters:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>method_code</code></td>\n<td>string</td>\n<td>No</td>\n<td>Filter by payment method code.</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Response:</strong></p>\n<p><strong>Error Responses:</strong></p>\n<ul>\n<li>{ \"status\": false, \"error\": { \"code\": 40403, \"message\": \"No payment methods found\", \"details\": \"The merchant does not have any associated payment methods.\" }}</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"79ce8686-8753-4e7f-bc8c-e831d02c8736","id":"79ce8686-8753-4e7f-bc8c-e831d02c8736","name":"Main API Collection","type":"collection"}},"urlObject":{"path":["api","v2","rate"],"host":["https://domain.com"],"query":[],"variable":[]}},"response":[{"id":"b38d1618-cdb6-4954-bcd7-4a4230de0b98","name":"Get Commissions","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer <token>","type":"text"},{"key":"Signature","value":"<calculated-signature>","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://domain.com/api/v2/rate"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"openresty"},{"key":"Date","value":"Sun, 08 Sep 2024 17:55:11 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Authorization"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Served-By","value":"rap1dpay.com"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"code\": \"c2c\",\n            \"currency\": \"RUB\",\n            \"sell\": {\n                \"commission\": 7,\n                \"rate\": 91.23,\n                \"total\": 98.23\n            },\n            \"buy\": {\n                \"commission\": -2,\n                \"rate\": 92.66,\n                \"total\": 90.66\n            }\n        },\n        {\n            \"code\": \"sbp\",\n            \"currency\": \"RUB\",\n            \"sell\": {\n                \"commission\": 7,\n                \"rate\": 91.23,\n                \"total\": 98.23\n            },\n            \"buy\": {\n                \"commission\": -2,\n                \"rate\": 92.66,\n                \"total\": 90.66\n            }\n        },\n        {\n            \"code\": \"spay\",\n            \"currency\": \"RUB\",\n            \"sell\": {\n                \"commission\": 7,\n                \"rate\": 91.23,\n                \"total\": 98.23\n            },\n            \"buy\": {\n                \"commission\": -2,\n                \"rate\": 92.66,\n                \"total\": 90.66\n            }\n        },\n        {\n            \"code\": \"a2a\",\n            \"currency\": \"RUB\",\n            \"sell\": {\n                \"commission\": 6,\n                \"rate\": 91.23,\n                \"total\": 97.23\n            },\n            \"buy\": {\n                \"commission\": -2,\n                \"rate\": 92.66,\n                \"total\": 90.66\n            }\n        }\n    ]\n}"}],"_postman_id":"fdee2131-d6fc-4406-8815-7e2f794e4f1c"},{"name":"Get Asset (Bank)","id":"03be9797-1934-4273-9a3e-376415ad15d2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \n}","options":{"raw":{"language":"json"}}},"url":"https://domain.com/api/v2/banks?currency=RUB&method_code=sbp","description":"<p>Retrieves the list of banks associated with payment methods for a specific currency.</p>\n<p>Attention, it does not give the full list of available banks. Request the list from support.</p>\n<p><strong>Query Parameters:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>currency</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>Currency code (e.g., <code>RUB</code>, <code>USD</code>).</td>\n</tr>\n<tr>\n<td><code>method_code</code></td>\n<td>string</td>\n<td>No</td>\n<td>Filter by payment method code.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"79ce8686-8753-4e7f-bc8c-e831d02c8736","id":"79ce8686-8753-4e7f-bc8c-e831d02c8736","name":"Main API Collection","type":"collection"}},"urlObject":{"path":["api","v2","banks"],"host":["https://domain.com"],"query":[{"key":"currency","value":"RUB"},{"key":"method_code","value":"sbp"}],"variable":[]}},"response":[{"id":"8e43a008-202c-4a0b-8790-281a43e96f5e","name":"Get Banks for method and currency","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://domain.com/api/v2/banks?currency=RUB&method_code=sbp","host":["https://domain.com"],"path":["api","v2","banks"],"query":[{"key":"currency","value":"RUB"},{"key":"method_code","value":"sbp"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"openresty"},{"key":"Date","value":"Wed, 11 Sep 2024 15:03:14 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Authorization"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Served-By","value":"rap1dpay.com"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"code\": \"sbp\",\n            \"currency\": \"RUB\",\n            \"banks\": {\n                \"banks\": [\n                    {\n                        \"slug\": \"sber\",\n                        \"name\": \"Сбербанк\"\n                    },\n                    {\n                        \"slug\": \"gazprombank\",\n                        \"name\": \"Газпромбанк\"\n                    }\n                ]\n            }\n        }\n    ]\n}"},{"id":"c677d8ad-c49e-4a9f-9507-f6709353e8a1","name":"Get Banks for currency","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://domain.com/api/v2/banks?currency=RUB","host":["https://domain.com"],"path":["api","v2","banks"],"query":[{"key":"currency","value":"RUB"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"openresty"},{"key":"Date","value":"Wed, 11 Sep 2024 15:04:06 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Authorization"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Served-By","value":"rap1dpay.com"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"code\": \"c2c\",\n            \"currency\": \"RUB\",\n            \"banks\": {\n                \"banks\": [\n                    {\n                        \"slug\": \"sber\",\n                        \"name\": \"Сбербанк\"\n                    },\n                    {\n                        \"slug\": \"gazprombank\",\n                        \"name\": \"Газпромбанк\"\n                    }\n                ]\n            }\n        },\n        {\n            \"code\": \"sbp\",\n            \"currency\": \"RUB\",\n            \"banks\": {\n                \"banks\": [\n                    {\n                        \"slug\": \"sber\",\n                        \"name\": \"Сбербанк\"\n                    },\n                    {\n                        \"slug\": \"gazprombank\",\n                        \"name\": \"Газпромбанк\"\n                    }\n                ]\n            }\n        },\n        {\n            \"code\": \"m2c\",\n            \"currency\": \"RUB\",\n            \"banks\": {\n                \"banks\": [\n                    {\n                        \"slug\": \"sber\",\n                        \"name\": \"Сбербанк\"\n                    },\n                    {\n                        \"slug\": \"gazprombank\",\n                        \"name\": \"Газпромбанк\"\n                    }\n                ]\n            }\n        },\n        {\n            \"code\": \"c2cg\",\n            \"currency\": \"RUB\",\n            \"banks\": {\n                \"banks\": [\n                    {\n                        \"slug\": \"sber\",\n                        \"name\": \"Сбербанк\"\n                    },\n                    {\n                        \"slug\": \"gazprombank\",\n                        \"name\": \"Газпромбанк\"\n                    }\n                ]\n            }\n        },\n        {\n            \"code\": \"sbpg\",\n            \"currency\": \"RUB\",\n            \"banks\": {\n                \"banks\": [\n                    {\n                        \"slug\": \"sber\",\n                        \"name\": \"Сбербанк\"\n                    },\n                    {\n                        \"slug\": \"gazprombank\",\n                        \"name\": \"Газпромбанк\"\n                    }\n                ]\n            }\n        },\n        {\n            \"code\": \"spay\",\n            \"currency\": \"RUB\",\n            \"banks\": {\n                \"banks\": [\n                    {\n                        \"slug\": \"sber\",\n                        \"name\": \"Сбербанк\"\n                    },\n                    {\n                        \"slug\": \"gazprombank\",\n                        \"name\": \"Газпромбанк\"\n                    }\n                ]\n            }\n        },\n        {\n            \"code\": \"pc\",\n            \"currency\": \"RUB\",\n            \"banks\": {\n                \"banks\": [\n                    {\n                        \"slug\": \"sber\",\n                        \"name\": \"Сбербанк\"\n                    },\n                    {\n                        \"slug\": \"gazprombank\",\n                        \"name\": \"Газпромбанк\"\n                    }\n                ]\n            }\n        },\n        {\n            \"code\": \"st\",\n            \"currency\": \"RUB\",\n            \"banks\": {\n                \"banks\": [\n                    {\n                        \"slug\": \"sber\",\n                        \"name\": \"Сбербанк\"\n                    },\n                    {\n                        \"slug\": \"gazprombank\",\n                        \"name\": \"Газпромбанк\"\n                    }\n                ]\n            }\n        },\n        {\n            \"code\": \"a2a\",\n            \"currency\": \"RUB\",\n            \"banks\": {\n                \"banks\": [\n                    {\n                        \"slug\": \"sber\",\n                        \"name\": \"Сбербанк\"\n                    },\n                    {\n                        \"slug\": \"gazprombank\",\n                        \"name\": \"Газпромбанк\"\n                    }\n                ]\n            }\n        },\n        {\n            \"code\": \"cf\",\n            \"currency\": \"RUB\",\n            \"banks\": {\n                \"banks\": [\n                    {\n                        \"slug\": \"sber\",\n                        \"name\": \"Сбербанк\"\n                    },\n                    {\n                        \"slug\": \"gazprombank\",\n                        \"name\": \"Газпромбанк\"\n                    }\n                ]\n            }\n        },\n        {\n            \"code\": \"bz\",\n            \"currency\": \"RUB\",\n            \"banks\": {\n                \"banks\": [\n                    {\n                        \"slug\": \"sber\",\n                        \"name\": \"Сбербанк\"\n                    },\n                    {\n                        \"slug\": \"gazprombank\",\n                        \"name\": \"Газпромбанк\"\n                    }\n                ]\n            }\n        },\n        {\n            \"code\": \"pcsbp\",\n            \"currency\": \"RUB\",\n            \"banks\": {\n                \"banks\": [\n                    {\n                        \"slug\": \"sber\",\n                        \"name\": \"Сбербанк\"\n                    },\n                    {\n                        \"slug\": \"gazprombank\",\n                        \"name\": \"Газпромбанк\"\n                    }\n                ]\n            }\n        },\n        {\n            \"code\": \"stsbp\",\n            \"currency\": \"RUB\",\n            \"banks\": {\n                \"banks\": [\n                    {\n                        \"slug\": \"sber\",\n                        \"name\": \"Сбербанк\"\n                    },\n                    {\n                        \"slug\": \"gazprombank\",\n                        \"name\": \"Газпромбанк\"\n                    }\n                ]\n            }\n        },\n        {\n            \"code\": \"bzspb\",\n            \"currency\": \"RUB\",\n            \"banks\": {\n                \"banks\": [\n                    {\n                        \"slug\": \"sber\",\n                        \"name\": \"Сбербанк\"\n                    },\n                    {\n                        \"slug\": \"gazprombank\",\n                        \"name\": \"Газпромбанк\"\n                    }\n                ]\n            }\n        },\n        {\n            \"code\": \"cfspb\",\n            \"currency\": \"RUB\",\n            \"banks\": {\n                \"banks\": [\n                    {\n                        \"slug\": \"sber\",\n                        \"name\": \"Сбербанк\"\n                    },\n                    {\n                        \"slug\": \"gazprombank\",\n                        \"name\": \"Газпромбанк\"\n                    }\n                ]\n            }\n        },\n        {\n            \"code\": \"p2\",\n            \"currency\": \"RUB\",\n            \"banks\": {\n                \"banks\": [\n                    {\n                        \"slug\": \"sber\",\n                        \"name\": \"Сбербанк\"\n                    },\n                    {\n                        \"slug\": \"gazprombank\",\n                        \"name\": \"Газпромбанк\"\n                    }\n                ]\n            }\n        },\n        {\n            \"code\": \"p2sbp\",\n            \"currency\": \"RUB\",\n            \"banks\": {\n                \"banks\": [\n                    {\n                        \"slug\": \"sber\",\n                        \"name\": \"Сбербанк\"\n                    },\n                    {\n                        \"slug\": \"gazprombank\",\n                        \"name\": \"Газпромбанк\"\n                    }\n                ]\n            }\n        },\n        {\n            \"code\": \"lc\",\n            \"currency\": \"RUB\",\n            \"banks\": {\n                \"banks\": [\n                    {\n                        \"slug\": \"sber\",\n                        \"name\": \"Сбербанк\"\n                    },\n                    {\n                        \"slug\": \"gazprombank\",\n                        \"name\": \"Газпромбанк\"\n                    }\n                ]\n            }\n        },\n        {\n            \"code\": \"lcspb\",\n            \"currency\": \"RUB\",\n            \"banks\": {\n                \"banks\": [\n                    {\n                        \"slug\": \"sber\",\n                        \"name\": \"Сбербанк\"\n                    },\n                    {\n                        \"slug\": \"gazprombank\",\n                        \"name\": \"Газпромбанк\"\n                    }\n                ]\n            }\n        }\n    ]\n}"}],"_postman_id":"03be9797-1934-4273-9a3e-376415ad15d2"},{"name":"Get Methods","id":"93735764-6143-44a6-acf2-db98f2745ef8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \"currency\":\"RUB\"\n}","options":{"raw":{"language":"json"}}},"url":"https://domain.com/api/v2/methods","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"79ce8686-8753-4e7f-bc8c-e831d02c8736","id":"79ce8686-8753-4e7f-bc8c-e831d02c8736","name":"Main API Collection","type":"collection"}},"urlObject":{"path":["api","v2","methods"],"host":["https://domain.com"],"query":[],"variable":[]}},"response":[{"id":"cf6c471b-2da9-4498-b807-a2b9d7607e83","name":"Get Methods","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://domain.com/api/v2/methods?currency=RUB&method_code=sbp","host":["https://domain.com"],"path":["api","v2","methods"],"query":[{"key":"currency","value":"RUB"},{"key":"method_code","value":"sbp"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"openresty"},{"key":"Date","value":"Thu, 12 Sep 2024 23:41:54 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Authorization"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Served-By","value":"rap1dpay.com"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"code\": \"sbp\",\n            \"currency\": \"RUB\"\n        }\n    ]\n}"}],"_postman_id":"93735764-6143-44a6-acf2-db98f2745ef8"},{"name":"Get Balance","id":"e4017450-8896-4a14-9a66-caf0baec9dfa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \n}","options":{"raw":{"language":"json"}}},"url":"https://domain.com/api/v2/balance","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"79ce8686-8753-4e7f-bc8c-e831d02c8736","id":"79ce8686-8753-4e7f-bc8c-e831d02c8736","name":"Main API Collection","type":"collection"}},"urlObject":{"path":["api","v2","balance"],"host":["https://domain.com"],"query":[],"variable":[]}},"response":[{"id":"1c146443-0416-4763-ad2a-9a573664a26f","name":"Get Balance","originalRequest":{"method":"GET","header":[],"url":"https://domain.com/api/v2/balance"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"openresty"},{"key":"Date","value":"Wed, 11 Sep 2024 18:17:48 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Authorization"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"X-Served-By","value":"rap1dpay.com"}],"cookie":[],"responseTime":null,"body":"{\n    \"balances\": {\n        \"USDT\": 5.235386122859397,\n        \"RUB\": 0\n    },\n    \"date\": \"2024.09.11 21:17\"\n}"}],"_postman_id":"e4017450-8896-4a14-9a66-caf0baec9dfa"},{"name":"Get Fiat Balance","id":"c4b624d3-bc6d-4963-ba56-649be301dc7d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \n}","options":{"raw":{"language":"json"}}},"url":"https://domain.com/api/v2/fiat_balance","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"79ce8686-8753-4e7f-bc8c-e831d02c8736","id":"79ce8686-8753-4e7f-bc8c-e831d02c8736","name":"Main API Collection","type":"collection"}},"urlObject":{"path":["api","v2","fiat_balance"],"host":["https://domain.com"],"query":[],"variable":[]}},"response":[{"id":"8786638f-235f-434c-9364-2b6e61f673dc","name":"Get Balance","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \n}","options":{"raw":{"language":"json"}}},"url":"https://domain.com/api/v2/fiat_balance"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[{"key":"Server","value":"nginx/1.26.2"},{"key":"Date","value":"Wed, 24 Sep 2025 19:26:51 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"PHP/8.2.29"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Authorization, X-Requested-With"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS, DELETE, PUT, PATCH"},{"key":"Vary","value":"Authorization"}],"cookie":[],"responseTime":null,"body":"{\n    \"balances\": {\n        \"USDT\": 0.000003230336986866127,\n        \"RUB\": 30984.051908\n    },\n    \"date\": \"2025.09.24 22:26\"\n}"}],"_postman_id":"c4b624d3-bc6d-4963-ba56-649be301dc7d"}],"id":"f29f5470-7895-4e4d-a982-149ee0d48685","description":"<p>Privat method api</p>\n","_postman_id":"f29f5470-7895-4e4d-a982-149ee0d48685","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"79ce8686-8753-4e7f-bc8c-e831d02c8736","id":"79ce8686-8753-4e7f-bc8c-e831d02c8736","name":"Main API Collection","type":"collection"}}},{"name":"Public","item":[{"name":"Set Payment Status","id":"0ce1b052-24ba-456a-94e6-29a9ebe5d7ae","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{}},"request":{"auth":{"type":"noauth","isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"status\": \"in_check\",\n    \"utr\":\"123245\",\n    \"reason\":\"subStatus\",\n    \"otp\":\"otp\"\n}","options":{"raw":{"language":"json"}}},"url":"https://domain.com/api/v2/orders/a67ea87133a7f5g/status","description":"<p>Endpoint to update the status of an order. For 'dispute' status, a file can be uploaded.</p>\n<p><strong>Path Parameters:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>order_id</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>Unique identifier of the order.</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Request Body Parameters:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>status</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>New status of the order.</td>\n</tr>\n<tr>\n<td><code>file</code></td>\n<td>file/base64</td>\n<td>Conditional</td>\n<td>Single file to upload. Required for <code>dispute</code> status. Can be sent as multipart/form-data file or base64 string (with optional <code>data:image/png;base64,</code> prefix). Max size: 200KB.</td>\n</tr>\n<tr>\n<td><code>files</code></td>\n<td>array</td>\n<td>No</td>\n<td>Array of base64-encoded file strings (for JSON requests). Each file should be base64 string, optionally prefixed with <code>data:mime/type;base64,</code>. Max size per file: 200KB.</td>\n</tr>\n<tr>\n<td><code>media</code></td>\n<td>array</td>\n<td>No</td>\n<td>Array of files (for multipart/form-data requests). Alternative to <code>files</code> for JSON. Max 3 files per invoice. Max size per file: 200KB.</td>\n</tr>\n<tr>\n<td><code>utr</code></td>\n<td>string</td>\n<td>No</td>\n<td>RRN (Reference Number) for auto-completed payment (INR)</td>\n</tr>\n<tr>\n<td><code>reason</code></td>\n<td>string</td>\n<td>No</td>\n<td>Reason for status change (optional description)</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>File Upload Formats:</strong></p>\n<ol>\n<li><p><strong>Multipart/form-data</strong> (recommended):</p>\n<ul>\n<li><p><code>file</code>: single file upload</p>\n</li>\n<li><p><code>media[]</code>: array of files (multiple file inputs with same name)</p>\n</li>\n<li><p>Content-Type: <code>multipart/form-data</code></p>\n</li>\n</ul>\n</li>\n<li><p><strong>JSON with base64</strong>:</p>\n<ul>\n<li><p><code>file</code>: single base64-encoded string (e.g., <code>\"data:image/png;base64,iVBORw0KGgo...\"</code>)</p>\n</li>\n<li><p><code>files</code>: array of base64-encoded strings</p>\n</li>\n<li><p>Content-Type: <code>application/json</code></p>\n</li>\n</ul>\n</li>\n</ol>\n<p><strong>File Upload Limits:</strong></p>\n<ul>\n<li><p>Maximum file size: 200KB (204800 bytes)</p>\n</li>\n<li><p>Maximum files per invoice: 3</p>\n</li>\n<li><p>File is required for <code>dispute/in_check</code> status</p>\n</li>\n<li><p>Supported formats: images (JPG, PNG, etc.), PDF, and other document types</p>\n</li>\n</ul>\n<p><strong>Possible Status Values:</strong></p>\n<ul>\n<li><p><code>dispute</code>- апеляция (Отправка чека доступна)</p>\n</li>\n<li><p><code>in_check</code>- инициация проверки оплаты от пользователя \"Я оплатил\". (Отправка чека доступна)</p>\n</li>\n<li><p><code>canceled</code>- инициация отмены оплаты от пользователя \"Отменить платеж\". (Отправка чека не доступна)</p>\n</li>\n</ul>\n<p><strong>Response:</strong></p>\n<ul>\n<li>{ \"message\": \"Order status updated successfully.\"}</li>\n</ul>\n<p><strong>Error Responses:</strong></p>\n<ul>\n<li>{ \"message\": \"Payment not found.\"}</li>\n</ul>\n","urlObject":{"path":["api","v2","orders","a67ea87133a7f5g","status"],"host":["https://domain.com"],"query":[],"variable":[]}},"response":[{"id":"f3167cb1-777c-40af-a133-2a51dacdb399","name":"Set Payment Status","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"status\": \"in_check\",\n    \"utr\":\"123245\"\n}","options":{"raw":{"language":"json"}}},"url":"https://domain.com/api/v2/orders/a4beef6f5-9939-4c6d-be0f-18e9e24bbf13g/status"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.26.2"},{"key":"Date","value":"Fri, 16 May 2025 21:29:41 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"vary","value":"Accept-Encoding"},{"key":"x-powered-by","value":"PHP/8.2.28"},{"key":"cache-control","value":"no-cache, private"},{"key":"access-control-allow-origin","value":"*"},{"key":"access-control-allow-methods","value":"GET, POST, OPTIONS, DELETE, PUT, PATCH"},{"key":"access-control-allow-headers","value":"Authorization, Content-Type, Accept, Origin, X-Requested-With"},{"key":"access-control-allow-credentials","value":"true"},{"key":"content-encoding","value":"gzip"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS, DELETE, PUT, PATCH"},{"key":"Access-Control-Allow-Headers","value":"Authorization, Content-Type, Accept, Origin, X-Requested-With"},{"key":"Access-Control-Allow-Credentials","value":"true"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"a4beef6f5-9939-4c6d-be0f-18e9e24bbf13g\",\n        \"order_id\": \"a4beef6f5-9939-4c6d-be0f-18e9e24bbf13g\",\n        \"orderId\": \"65ada1d8-5c9c-4291-8ab1-c3ec24c82989\",\n        \"external_id\": \"65ada1d8-5c9c-4291-8ab1-c3ec24c82989\",\n        \"status\": false,\n        \"state\": \"in_check\",\n        \"type\": \"payin\",\n        \"reason\": null,\n        \"amount\": \"5842.00\",\n        \"init_amount\": \"5842.00\",\n        \"userId\": \"739620040610\",\n        \"invoice\": {\n            \"address\": \"2202208438626294\",\n            \"bank\": {\n                \"code\": \"sber\",\n                \"name\": \"Сбербанк\"\n            },\n            \"message\": null,\n            \"recipient\": \"Дмитрий Игоревич К\",\n            \"method\": {\n                \"name\": \"P2P\",\n                \"logo\": {\n                    \"name\": \"image/c2c.png\",\n                    \"url\": \"https://domain.com/image/c2c.png\"\n                },\n                \"currency\": \"RUB\"\n            },\n            \"media\": [],\n            \"created_at\": \"2025-05-17T00:07:47.000000Z\",\n            \"updated_at\": \"2025-05-17T00:22:54.000000Z\"\n        },\n        \"success_uri\": null,\n        \"fail_uri\": null,\n        \"currency\": \"RUB\",\n        \"created_at\": \"2025-05-17T00:07:46.000000Z\",\n        \"updated_at\": \"2025-05-16T21:29:41.000000Z\"\n    },\n    \"status\": true,\n    \"message\": \"Payment status updated successfully.\"\n}"},{"id":"b03b6693-0723-4569-b0b1-7259ea60b8de","name":"200 in_check utr","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"status\": \"in_check\",\n    \"utr\":\"123245\"\n}","options":{"raw":{"language":"json"}}},"url":"https://domain.com/api/v2/orders/acfc86e61-f7e3-4754-9453-484789b05fe5g/status"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.26.2"},{"key":"Date","value":"Fri, 16 May 2025 10:42:11 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"vary","value":"Accept-Encoding"},{"key":"x-powered-by","value":"PHP/8.2.28"},{"key":"cache-control","value":"no-cache, private"},{"key":"access-control-allow-origin","value":"*"},{"key":"access-control-allow-methods","value":"GET, POST, OPTIONS, DELETE, PUT, PATCH"},{"key":"access-control-allow-headers","value":"Authorization, Content-Type, Accept, Origin, X-Requested-With"},{"key":"access-control-allow-credentials","value":"true"},{"key":"content-encoding","value":"gzip"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS, DELETE, PUT, PATCH"},{"key":"Access-Control-Allow-Headers","value":"Authorization, Content-Type, Accept, Origin, X-Requested-With"},{"key":"Access-Control-Allow-Credentials","value":"true"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": \"a4beef6f5-9939-4c6d-be0f-18e9e24bbf13g\",\n        \"order_id\": \"a4beef6f5-9939-4c6d-be0f-18e9e24bbf13g\",\n        \"orderId\": \"65ada1d8-5c9c-4291-8ab1-c3ec24c82989\",\n        \"external_id\": \"65ada1d8-5c9c-4291-8ab1-c3ec24c82989\",\n        \"status\": false,\n        \"state\": \"in_check\",\n        \"type\": \"payin\",\n        \"reason\": null,\n        \"amount\": \"5842.00\",\n        \"init_amount\": \"5842.00\",\n        \"userId\": \"739620040610\",\n        \"invoice\": {\n            \"address\": \"2202208438626294\",\n            \"bank\": {\n                \"code\": \"sber\",\n                \"name\": \"Сбербанк\"\n            },\n            \"message\": null,\n            \"recipient\": \"Дмитрий Игоревич К\",\n            \"method\": {\n                \"name\": \"P2P\",\n                \"logo\": {\n                    \"name\": \"image/c2c.png\",\n                    \"url\": \"https://domain.com/image/c2c.png\"\n                },\n                \"currency\": \"RUB\"\n            },\n            \"media\": [],\n            \"created_at\": \"2025-05-17T00:07:47.000000Z\",\n            \"updated_at\": \"2025-05-17T00:22:54.000000Z\"\n        },\n        \"success_uri\": null,\n        \"fail_uri\": null,\n        \"currency\": \"RUB\",\n        \"created_at\": \"2025-05-17T00:07:46.000000Z\",\n        \"updated_at\": \"2025-05-16T21:29:41.000000Z\"\n    },\n    \"status\": true,\n    \"message\": \"Payment status updated successfully.\"\n}"},{"id":"bf088ea9-72c8-46a4-9291-6b2aacdb1bec","name":"422 Unprocessable Content","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"status\": \"finished\" //\"in_check\", \"dispute\"\n}","options":{"raw":{"language":"json"}}},"url":"https://domain.com/api/v2/orders/a67ea87133a7f5g/status"},"status":"Unprocessable Content","code":422,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.26.2"},{"key":"Date","value":"Mon, 31 Mar 2025 13:08:17 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-powered-by","value":"PHP/8.2.28"},{"key":"cache-control","value":"no-cache, private"},{"key":"access-control-allow-origin","value":"*"},{"key":"access-control-allow-methods","value":"GET, POST, OPTIONS, DELETE, PUT, PATCH"},{"key":"access-control-allow-headers","value":"Authorization, Content-Type, Accept, Origin, X-Requested-With"},{"key":"access-control-allow-credentials","value":"true"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS, DELETE, PUT, PATCH"},{"key":"Access-Control-Allow-Headers","value":"Authorization, Content-Type, Accept, Origin, X-Requested-With"},{"key":"Access-Control-Allow-Credentials","value":"true"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The selected status is invalid.\",\n    \"errors\": {\n        \"status\": [\n            \"The selected status is invalid.\"\n        ]\n    }\n}"}],"_postman_id":"0ce1b052-24ba-456a-94e6-29a9ebe5d7ae"},{"name":"Get Order by ID","id":"98cecb9e-efe2-4228-b0f6-0c52ac408cb5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"https://domain.com/api/v2/orders/:order_id","description":"<p>Получает информацию о платеже по его order_id.</p>\n","urlObject":{"path":["api","v2","orders",":order_id"],"host":["https://domain.com"],"query":[],"variable":[{"type":"any","value":"6755c96cdfab3","key":"order_id"}]}},"response":[{"id":"091af60f-3bea-447c-9860-e82c29ac2ac3","name":"Get Order by ID","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer <token>","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://domain.com/api/v2/orders/6755c96cdfab3"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 08 Dec 2024 16:35:15 GMT"},{"key":"Server","value":"Apache/2.4.54 (Unix) mod_fastcgi/mod_fastcgi-SNAP-0910052141 OpenSSL/1.0.2u mod_wsgi/3.5 Python/2.7.18"},{"key":"X-Powered-By","value":"PHP/8.2.0"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Authorization, X-Requested-With"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS, DELETE, PUT, PATCH"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"order_id\": \"6755c96cdfab3\",\n        \"status\": null,\n        \"state\": \"created\",\n        \"amount\": \"1000.00\",\n        \"terminal_user_id\": \"123qweds1ss2dsыdsss342\",\n        \"merchant\": {\n            \"id\": 42,\n            \"name\": \"TesterTester\",\n            \"code\": \"ljsf1opu7eqrfoytme7rq8ol\",\n            \"created_at\": \"2024-02-02T07:27:16.000000Z\",\n            \"updated_at\": \"2024-11-09T06:52:16.000000Z\"\n        },\n        \"callback_uri\": \"https://yourdomain.com/callback\",\n        \"success_uri\": \"https://yourdomain.com/success\",\n        \"fail_uri\": \"https://yourdomain.com/fail\",\n        \"currency\": \"RUB\",\n        \"created_at\": \"2024-12-08T16:29:32.000000Z\",\n        \"updated_at\": \"2024-12-08T16:29:32.000000Z\"\n    }\n}"}],"_postman_id":"98cecb9e-efe2-4228-b0f6-0c52ac408cb5"},{"name":"Get Order Banks","id":"ee2cd365-eaa8-42c1-810d-2d9a823b3056","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"https://domain.com/api/v2/orders/:order_id/banks","description":"<p>Возвращает список доступных банков для данного платежа (order_id). Можно также использовать фильтры <code>method_code</code> и <code>currency</code>.</p>\n","urlObject":{"path":["api","v2","orders",":order_id","banks"],"host":["https://domain.com"],"query":[{"disabled":true,"key":"method_code","value":""},{"disabled":true,"key":"currency","value":""}],"variable":[{"type":"any","value":"6755c96cdfab3","key":"order_id"}]}},"response":[{"id":"7af72da5-60f5-40a2-8745-bd8c7ee60491","name":"Get Order Banks","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer <token>","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://domain.com/api/v2/orders/:order_id/banks","host":["https://domain.com"],"path":["api","v2","orders",":order_id","banks"],"query":[{"key":"method_code","value":"","disabled":true},{"key":"currency","value":"","disabled":true}],"variable":[{"key":"order_id","value":"6755c96cdfab3"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 08 Dec 2024 16:35:43 GMT"},{"key":"Server","value":"Apache/2.4.54 (Unix) mod_fastcgi/mod_fastcgi-SNAP-0910052141 OpenSSL/1.0.2u mod_wsgi/3.5 Python/2.7.18"},{"key":"X-Powered-By","value":"PHP/8.2.0"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Access-Control-Allow-Headers","value":"Content-Type, Authorization, X-Requested-With"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, OPTIONS, DELETE, PUT, PATCH"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"name\": \"P2P\",\n            \"code\": \"c2c\",\n            \"type\": \"CARD\",\n            \"logo\": {\n                \"name\": \"image/c2c.png\",\n                \"url\": \"https://domain.com/image/c2c.png\"\n            },\n            \"currency\": \"RUB\",\n            \"banks\": []\n        },\n        {\n            \"name\": \"СБП\",\n            \"code\": \"sbp\",\n            \"type\": \"PHONE\",\n            \"logo\": {\n                \"name\": \"image/sbp.png\",\n                \"url\": \"https://domain.com/image/sbp.png\"\n            },\n            \"currency\": \"RUB\",\n            \"banks\": []\n        }\n    ]\n}"}],"_postman_id":"ee2cd365-eaa8-42c1-810d-2d9a823b3056"},{"name":"Get Order Methods","id":"bebc823b-b99f-492b-b527-df274e68b6cd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"https://domain.com/api/v2/orders/:order_id/methods","description":"<p>Возвращает список доступных методов оплаты для указанного order_id. Можно фильтровать по <code>method_code</code> и <code>currency</code>.</p>\n","urlObject":{"path":["api","v2","orders",":order_id","methods"],"host":["https://domain.com"],"query":[{"disabled":true,"key":"method_code","value":""},{"disabled":true,"key":"currency","value":""}],"variable":[{"type":"any","value":"6755c96cdfab3","key":"order_id"}]}},"response":[],"_postman_id":"bebc823b-b99f-492b-b527-df274e68b6cd"},{"name":"Create Invoice for Selected Method","id":"8565a104-9b19-4dce-8712-98a14a46e335","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer <token>","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"method\": \"az_ecom\",\n    \"card\": {\n        \"number\": \"4111111111111111\",\n        \"cvv\": \"123\",\n        \"expiry\": \"12/25\",\n        \"holder\": \"JOHN DOE\"\n    },\n    \"payer\": {\n        \"userIp\": \"188.11.55.10\",\n        \"customerName\": \"John Doe\",\n        \"phone\": \"+3734343434\",\n        \"email\": \"email@mail.ru\",\n        \"fingerprint\": \"device_id\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://domain.com/api/v2/orders/aefe805d8-939d-4138-b93e-b852a92f2cfcg/payments","description":"<p>Creates an invoice for the payment after the user selects a payment method.</p>\n<p><strong>Path Parameters:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>order_id</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>Payment identifier returned from Create Payment.</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Request Body Parameters:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>method</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>Payment method code (e.g., <code>ecom</code>, <code>c2c</code>, <code>sbp</code>).</td>\n</tr>\n<tr>\n<td><code>include_commission</code></td>\n<td>boolean</td>\n<td>No</td>\n<td>If true, commission will be added to the payment amount.</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Card Data (H2H Flow):</strong></p>\n<p>For methods that require card data (e.g., <code>ecom</code>), you can pass card details directly. This is used for Host-to-Host integrations where card data is collected on your side.</p>\n<p><strong>Option 1 - Flat structure:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>card_number</code></td>\n<td>string</td>\n<td>Yes*</td>\n<td>Card number (13-19 digits).</td>\n</tr>\n<tr>\n<td><code>cvv</code></td>\n<td>string</td>\n<td>Yes*</td>\n<td>CVV/CVC code (3-4 digits).</td>\n</tr>\n<tr>\n<td><code>expiry_date</code></td>\n<td>string</td>\n<td>Yes*</td>\n<td>Expiration date in MM/YY or MMYY format.</td>\n</tr>\n<tr>\n<td><code>holder</code></td>\n<td>string</td>\n<td>No</td>\n<td>Cardholder name.</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Option 2 - Nested <code>card</code> object:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>card.number</code></td>\n<td>string</td>\n<td>Yes*</td>\n<td>Card number (13-19 digits).</td>\n</tr>\n<tr>\n<td><code>card.cvv</code></td>\n<td>string</td>\n<td>Yes*</td>\n<td>CVV/CVC code (3-4 digits).</td>\n</tr>\n<tr>\n<td><code>card.expiry</code></td>\n<td>string</td>\n<td>Yes*</td>\n<td>Expiration date in MM/YY or MMYY format.</td>\n</tr>\n<tr>\n<td><code>card.holder</code></td>\n<td>string</td>\n<td>No</td>\n<td>Cardholder name.</td>\n</tr>\n</tbody>\n</table>\n</div><p>*Required only for H2H card payment methods.</p>\n<p><strong>Example with card data:</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"method\": \"ecom\",\n    \"card\": {\n        \"number\": \"4111111111111111\",\n        \"cvv\": \"123\",\n        \"expiry\": \"12/25\",\n        \"holder\": \"JOHN DOE\"\n    }\n}\n</code></pre>\n<p><strong>Response:</strong></p>\n<p>Returns payment details with invoice information including address, bank, rate, etc.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"79ce8686-8753-4e7f-bc8c-e831d02c8736","id":"79ce8686-8753-4e7f-bc8c-e831d02c8736","name":"Main API Collection","type":"collection"}},"urlObject":{"path":["api","v2","orders","aefe805d8-939d-4138-b93e-b852a92f2cfcg","payments"],"host":["https://domain.com"],"query":[],"variable":[]}},"response":[{"id":"02241a8c-27e8-4f82-9312-55f237f5a530","name":"Success (P2P method)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"method\": \"c2c\"\n}","options":{"raw":{"language":"json"}}},"url":"https://domain.com/api/v2/orders/a71de0e7d-b38f-4c63-9116-cf0e46390bc2g/payments"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"result\": {\n        \"id\": \"a71de0e7d-b38f-4c63-9116-cf0e46390bc2g\",\n        \"state\": \"pending\",\n        \"address\": \"2202208438626294\",\n        \"bank\": \"sber\",\n        \"recipient\": \"Иван Иванович И\",\n        \"rate\": 92.50,\n        \"amount\": \"5000.00\",\n        \"init_amount\": \"5000.00\",\n        \"bankName\": \"Сбербанк\",\n        \"commission\": 7,\n        \"method\": \"c2c\"\n    },\n    \"url\": \"https://checkout.example.com/a71de0e7d-b38f-4c63-9116-cf0e46390bc2g\"\n}"},{"id":"f40edf39-17ba-4b14-a345-b56358ba3ab3","name":"Success (ECOM with card data)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"method\": \"ecom\",\n    \"card\": {\n        \"number\": \"4111111111111111\",\n        \"cvv\": \"123\",\n        \"expiry\": \"12/25\",\n        \"holder\": \"JOHN DOE\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://domain.com/api/v2/orders/a71de0e7d-b38f-4c63-9116-cf0e46390bc2g/payments"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": true,\n    \"result\": {\n        \"id\": \"a71de0e7d-b38f-4c63-9116-cf0e46390bc2g\",\n        \"state\": \"pending\",\n        \"rate\": 92.50,\n        \"amount\": \"5000.00\",\n        \"init_amount\": \"5000.00\",\n        \"commission\": 5,\n        \"method\": \"ecom\"\n    },\n    \"url\": \"https://3ds-acs.example.com/verify?id=abc123\"\n}"},{"id":"70dfd8ac-a845-4f43-a8d3-d381e061403c","name":"Invoice already exists","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"method\": \"c2c\"\n}","options":{"raw":{"language":"json"}}},"url":"https://domain.com/api/v2/orders/a71de0e7d-b38f-4c63-9116-cf0e46390bc2g/payments"},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"error\": {\n        \"code\": 40901,\n        \"message\": \"Invoice already exists\",\n        \"details\": \"An invoice is already associated with this payment.\"\n    }\n}"}],"_postman_id":"8565a104-9b19-4dce-8712-98a14a46e335"}],"id":"a9ea1108-4d3d-4e29-b720-477a4f479594","_postman_id":"a9ea1108-4d3d-4e29-b720-477a4f479594","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"79ce8686-8753-4e7f-bc8c-e831d02c8736","id":"79ce8686-8753-4e7f-bc8c-e831d02c8736","name":"Main API Collection","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]}},"event":[{"listen":"prerequest","script":{"id":"f64bf6a0-cba7-419f-a871-a1f051cc56cd","type":"text/javascript","packages":{},"requests":{},"exec":["// Получаем тело запроса в сыром виде","let rawBody = pm.request.body.raw;","let body = pm.variables.replaceIn(rawBody);","","// Проверим, что тело запроса не пустое и является строкой","if (!body) {","    postman.setNextRequest(null); // Остановить выполнение запроса","} else if (typeof body !== 'string') {","    // Если тело запроса не является строкой, преобразуем его в строку JSON","    body = JSON.stringify(body);","}","","","// Получаем secretKey из окружения","var secretKey = pm.collectionVariables.get(\"secretKey\")","","// Проверка наличия секретного ключа","if (!secretKey) {","    postman.setNextRequest(null); // Остановить выполнение запроса, если ключ не определен","}","","// Генерируем HMAC-SHA256 подпись","try {","    const signature = CryptoJS.HmacSHA256(body, secretKey).toString(CryptoJS.enc.Hex);","    console.log(\"Signature:\", signature); // Отладочное сообщение","","    // Добавляем заголовок 'Signature'","    pm.request.headers.add({ key: 'Signature', value: signature });","} catch (error) {","    postman.setNextRequest(null); // Остановить выполнение запроса при ошибке","}",""]}},{"listen":"test","script":{"id":"ad36c388-b357-423c-bb80-fc4ac4d5d7b7","type":"text/javascript","packages":{},"requests":{},"exec":[""]}}],"variable":[{"key":"baseUrl","value":"https://domain.com"},{"key":"merchantId","value":"lbjk0tqfpgbqeaainyuq6aye"},{"key":"secretKey","value":"fb1235b1-6899-4d10-bcf3-61b12d90fc8e"}]}