-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathpostman.json
More file actions
1 lines (1 loc) · 430 KB
/
postman.json
File metadata and controls
1 lines (1 loc) · 430 KB
1
{"info":{"_postman_id":"422a8b0d-ed97-46e9-847c-36e147397c00","name":"NOWPayments API","description":"<html><head></head><body><p>NOWPayments is a non-custodial cryptocurrency payment processing platform. Accept payments in a wide range of cryptos and get them instantly converted into a coin of your choice and sent to your wallet. Keeping it simple – no excess.</p>\n<h1 id=\"authentication\">Authentication</h1>\n<p>To use the NOWPayments API you should do the following:</p>\n<ul>\n<li><p>Sign up at <a href=\"https://nowpayments.io\">nowpayments.io</a>;</p>\n</li>\n<li><p>Specify your payout wallet;</p>\n</li>\n<li><p>Generate an API key and IPN secret key;<br> Please note: IPN secret key may be shown fully only upon creation. Make sure to save it after generation.</p>\n</li>\n</ul>\n<h1 id=\"nowpayments-integration-guide\"><strong>NOWPayments Integration Guide</strong></h1>\n<p>For more detailed information on how to integrate and use the NOWPayments API, please refer to our comprehensive <a href=\"https://nowpayments.notion.site/NOWPayments-Integration-Guide-40c516d0d940489d903b61efc002ba47\">NOWPayments Integration Guide.</a> This guide provides step-by-step instructions on setting up and managing payouts, API requests, and other features to help you get started quickly and effectively.</p>\n<h1 id=\"integration-scenarios\"><strong>Integration Scenarios</strong></h1>\n<p>For a deeper understanding of different integration possibilities, check out our <a href=\"https://nowpayments.notion.site/NOWPayments-2-Integration-Scenarios-for-Developers-313b318f4ddb80f28297f3839bc8b911\">Integration Scenarios Guide</a>. This guide outlines possible integration methods, providing practical examples and insights to help you implement the best solution for your business needs.</p>\n<h1 id=\"standard-e-commerce-flow-for-nowpayments-api\">Standard e-commerce flow for NOWPayments API:</h1>\n<ol>\n<li><p>API - Check API availability with the <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#0316fd95-ad58-4d36-82c0-d94455d019ac\">\"GET API status\"</a> method. If required, check the list of available payment currencies with the <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#7bfbe4fb-440f-4e46-966b-2f452a70013c\">\"GET available currencies\"</a> method;</p>\n</li>\n<li><p>UI - Ask a customer to select item/items for purchase to determine the total sum;</p>\n</li>\n<li><p>UI - Ask a customer to select payment currency;</p>\n</li>\n<li><p>API - Get the minimum payment amount for the selected currency pair (payment currency to your payout wallet currency) with the <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#ce3fe3a3-00cd-4df2-bfba-641fde741da7\">\"GET Minimum payment amount\"</a> method;</p>\n</li>\n<li><p>API - Get the estimate of the total amount in crypto with <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#3c86a16e-94ad-4230-a470-4e833766a4c7\">\"GET Estimated price\"</a> and check that it is larger than the minimum payment amount from step 4;</p>\n</li>\n<li><p>API - Call the <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#74c91a83-da39-4e39-b3db-1ed4c5c233f8\">\"POST Create payment\"</a> method to create a payment and get the deposit address (in our example, the generated BTC wallet address is returned from this method);</p>\n</li>\n<li><p>UI - Ask a customer to send the payment to the generated deposit address (in our example, user has to send BTC coins);</p>\n</li>\n<li><p>UI - A customer sends coins, NOWPayments processes and exchanges them (if required), and settles the payment to your payout wallet (in our example, to your ETH address);</p>\n</li>\n<li><p>API - You can get the payment status either via our IPN callbacks or manually, using <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#62a6d281-478d-4927-8cd0-f96d677b8de6\">\"GET Payment Status\"</a> and display it to a customer so that they know when their payment has been processed;</p>\n</li>\n<li><p>API - you call the list of payments made to your account via the <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#c38d2410-1523-4313-8764-0043ba1cb24f\">\"GET List of payments\"</a> method;</p>\n</li>\n<li><p>Additionally, you can see all of this information in your <a href=\"https://account.nowpayments.io/payments\">Account</a> on NOWPayments website;</p>\n</li>\n</ol>\n<h2 id=\"alternative-flow\">Alternative flow</h2>\n<ol>\n<li><p>API - Check API availability with the <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#0316fd95-ad58-4d36-82c0-d94455d019ac\">\"GET API status\"</a> method. If required, check the list of available payment currencies with the <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#7bfbe4fb-440f-4e46-966b-2f452a70013c\">\"GET available currencies\"</a> method;</p>\n</li>\n<li><p>UI - Ask a customer to select item/items for purchase to determine the total sum;</p>\n</li>\n<li><p>UI - Ask a customer to select payment currency;</p>\n</li>\n<li><p>API - Get the minimum payment amount for the selected currency pair (payment currency to your payout wallet currency) with the <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#ce3fe3a3-00cd-4df2-bfba-641fde741da7\">\"GET Minimum payment amount\"</a> method;</p>\n</li>\n<li><p>API - Get the estimate of the total amount in crypto with <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#3c86a16e-94ad-4230-a470-4e833766a4c7\">\"GET Estimated price\"</a> and check that it is larger than the minimum payment amount from step 4;</p>\n</li>\n<li><p>API - Call the <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#f5e4e645-dce2-4b06-b2ca-2a29aaa5e845\">\"POST Create Invoice</a> method to create an invoice. Set \"success_url\" - parameter so that the user will be redirected to your website after successful payment;</p>\n</li>\n<li><p>UI - display the invoice url or redirect the user to the generated link;</p>\n</li>\n<li><p>NOWPayments - the customer completes the payment and is redirected back to your website (only if \"success_url\" parameter is configured correctly!);</p>\n</li>\n<li><p>API - You can get the payment status either via our IPN callbacks or manually, using <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#62a6d281-478d-4927-8cd0-f96d677b8de6\">\"GET Payment Status\"</a> and display it to a customer so that they know when their payment has been processed;</p>\n</li>\n<li><p>API - you call the list of payments made to your account via the <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#c38d2410-1523-4313-8764-0043ba1cb24f\">\"GET List of payments\"</a> method;</p>\n</li>\n<li><p>Additionally, you can see all of this information in your <a href=\"https://account.nowpayments.io/invoices\">Account</a> on NOWPayments website;</p>\n</li>\n</ol>\n<h1 id=\"api-documentation\">API Documentation</h1>\n<h2 id=\"instant-payments-notifications\">Instant Payments Notifications</h2>\n<p>IPN (Instant payment notifications, or callbacks) are used to notify you when transaction status is changed.<br>To use them, you should complete the following steps:</p>\n<ol>\n<li><p>Generate and save the IPN Secret key in Payment Settings tab at the Dashboard;</p>\n</li>\n<li><p>Insert your URL address where you want to get callbacks in create_payment request. The parameter name is ipn_callback_url. You will receive payment updates (statuses) to this URL address.**<br> Please, take note that we cannot send callbacks to your localhost unless it has dedicated IP address.**</p>\n</li>\n<li><p><strong>important</strong> Please make sure that firewall software on your server (i.e. Cloudflare) does allow our requests to come through. It may be required to whitelist our IP addresses on your side to get it. The list of these IP addresses can be requested at <a href=\"https://mailto:partners@nowpayments.io\">partners@nowpayments.io</a>;</p>\n</li>\n<li><p>You will receive all the parameters at the URL address you specified in (2) by POST request;<br> The POST request will contain the <em>x-nowpayments-sig</em> parameter in the header.<br> The body of the request is similiar to a <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#62a6d281-478d-4927-8cd0-f96d677b8de6\">get payment status</a> response body.<br> You can see examples in \"Webhook examples\" section.</p>\n</li>\n<li><p>Sort the POST request by keys and convert it to string using<br> <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify\">JSON.stringify</a> (params, Object.keys(params).sort()) or the same function;</p>\n</li>\n<li><p>Sign a string with an IPN-secret key with HMAC and sha-512 key;</p>\n</li>\n<li><p>Compare the signed string from the previous step with the x-nowpayments-sig , which is stored in the header of the callback request;<br> If these strings are similar, it is a success.<br> Otherwise, contact us on <a href=\"https://mailto:support@nowpayments.io\">support@nowpayments.io</a> to solve the problem.</p>\n</li>\n</ol>\n<p>Example of creating a signed string at Node.JS</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>function sortObject(obj) {\n return Object.keys(obj).sort().reduce(\n (result, key) => {\n result[key] = (obj[key] && typeof obj[key] === 'object') ? sortObject(obj[key]) : obj[key]\n return result\n },\n {}\n )\n}\nconst hmac = crypto.createHmac('sha512', notificationsKey);\nhmac.update(JSON.stringify(sortObject(params)));\nconst signature = hmac.digest('hex');\n\n</code></pre><p>Example of comparing signed strings in PHP</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>function tksort(&$array)\n {\n ksort($array);\n foreach(array_keys($array) as $k)\n {\n if(gettype($array[$k])==\"array\")\n {\n tksort($array[$k]);\n }\n }\n }\nfunction check_ipn_request_is_valid()\n {\n $error_msg = \"Unknown error\";\n $auth_ok = false;\n $request_data = null;\n if (isset($_SERVER['HTTP_X_NOWPAYMENTS_SIG']) && !empty($_SERVER['HTTP_X_NOWPAYMENTS_SIG'])) {\n $recived_hmac = $_SERVER['HTTP_X_NOWPAYMENTS_SIG'];\n $request_json = file_get_contents('php://input');\n $request_data = json_decode($request_json, true);\n tksort($request_data);\n $sorted_request_json = json_encode($request_data, JSON_UNESCAPED_SLASHES);\n if ($request_json !== false && !empty($request_json)) {\n $hmac = hash_hmac(\"sha512\", $sorted_request_json, trim($this->ipn_secret));\n if ($hmac == $recived_hmac) {\n $auth_ok = true;\n } else {\n $error_msg = 'HMAC signature does not match';\n }\n } else {\n $error_msg = 'Error reading POST data';\n }\n } else {\n $error_msg = 'No HMAC signature sent.';\n }\n }\n\n</code></pre><p>Example comparing signed signatures in Python</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-python\">import json \nimport hmac \nimport hashlib\ndef np_signature_check(np_secret_key, np_x_signature, message):\n sorted_msg = json.dumps(message, separators=(',', ':'), sort_keys=True)\n digest = hmac.new(\n str(np_secret_key).encode(), \n f'{sorted_msg}'.encode(),\n hashlib.sha512)\n signature = digest.hexdigest()\n if signature == np_x_signature:\n return\n else:\n print(\"HMAC signature does not match\")\n\n</code></pre>\n<p>Usually you will get a notification per each step of processing payments, withdrawals, or transfers, related to custodial recurring payments.</p>\n<p>The webhook is being sent automatically once the transaction status is changed.</p>\n<p>You also can request an additional IPN notification using your NOWPayments dashboard.</p>\n<p>Please note that you should set up an endpoint which can receive POST requests from our server.</p>\n<p>Before going production we strongly recommend to make a test request to this endpoint to ensure it works properly.</p>\n<h2 id=\"recurrent-payment-notifications\">Recurrent payment notifications</h2>\n<p>If an error is detected, the payment will be flagged and will receive additional recurrent notifications (number of recurrent notifications can be changed in your Payment Settings-> Instant Payment Notifications).</p>\n<p>If an error is received again during the payment processing, recurrent notifications will be initiated again.</p>\n<p>Example: \"Timeout\" is set to 1 minute and \"Number of recurrent notifications\" is set to 3.</p>\n<p>Once an error is detected, you will receive 3 notifications at 1 minute intervals.</p>\n<h2 id=\"webhooks-examples\"><strong>Webhooks Examples:</strong></h2>\n<p>Payments:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n\"payment_id\":123456789,\n\"parent_payment_id\":987654321,\n\"invoice_id\":null,\n\"payment_status\":\"finished\",\n\"pay_address\":\"address\",\n\"payin_extra_id\":null,\n\"price_amount\":1,\n\"price_currency\":\"usd\",\n\"pay_amount\":15,\n\"actually_paid\":15,\n\"actually_paid_at_fiat\":0,\n\"pay_currency\":\"trx\",\n\"order_id\":null,\n\"order_description\":null,\n\"purchase_id\":\"123456789\",\n\"outcome_amount\":14.8106,\n\"outcome_currency\":\"trx\",\n\"payment_extra_ids\":null\n\"fee\": {\n\"currency\":\"btc\",\n\"depositFee\":0.09853637216235617,\n\"withdrawalFee\":0,\n\"serviceFee\":0\n}\n}\n\n</code></pre>\n<p>Withdrawals:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n\"id\":\"123456789\",\n\"batch_withdrawal_id\":\"987654321\",\n\"status\":\"CREATING\",\n\"error\":null,\n\"currency\":\"usdttrc20\",\n\"amount\":\"50\",\n\"address\":\"address\",\n\"fee\":null,\n\"extra_id\":null,\n\"hash\":null,\n\"ipn_callback_url\":\"callback_url\",\n\"created_at\":\"2023-07-27T15:29:40.803Z\",\n\"requested_at\":null,\n\"updated_at\":null\n}\n\n</code></pre>\n<p>Custodial recurring payments:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n\"id\":\"1234567890\",\n\"status\":\"FINISHED\",\n\"currency\":\"trx\",\n\"amount\":\"12.171365564140688\",\n\"ipn_callback_url\":\"callback_url\",\n\"created_at\":\"2023-07-26T14:20:11.531Z\",\n\"updated_at\":\"2023-07-26T14:20:21.079Z\"\n}\n\n</code></pre>\n<h2 id=\"repeated-deposits-and-wrong-asset-deposits\"><strong>Repeated Deposits and Wrong-Asset Deposits</strong></h2>\n<p>This section explains how we handle two specific types of deposits: <strong>repeated deposits (re-deposits)</strong> and <strong>wrong-asset deposits</strong>. These deposits may require special processing or manual intervention, and understanding how they work will help you manage your payments more effectively.</p>\n<ol>\n<li><strong>Repeated Deposits</strong></li>\n</ol>\n<p><strong>Repeated deposits</strong> are additional payments sent to the same deposit address that was previously used by a customer to fully or partially pay an invoice. These deposits are processed at the current exchange rate at the time they are received. They are marked with either the \"Partially paid\" or \"Finished\" status. If you need to clarify your current repeated-deposit settings, please check with your payment provider regarding the default status.</p>\n<p>In the <strong>Payments History</strong> section of the personal account, these payments are labeled as <strong>\"Re-deposit\"</strong>. Additionally, in the payment details, the <strong>Original payment ID</strong> field will display the ID of the original transaction.</p>\n<p><strong>Recommendation</strong>:</p>\n<p>Recommendation: When integrating, we recommend tracking the <strong>'parent_payment_id' parameter</strong> in <strong>Instant Payment Notifications</strong> and being aware that the <strong>total amount of repeated deposits may differ from the expected payment amount</strong>. This helps avoid the risk of providing services in cases of underpayment.<br>We do not recommend configuring your system to automatically provide services or ship goods based on any repeated-deposit status. If you choose to configure it this way, you should be aware of the risk of providing services in cases of underpayment. <strong>For additional risk acceptance please refer to section 6 of our Terms of Service</strong>.</p>\n<p><strong>NB</strong>: Repeated deposits are always converted to the same asset as the original payment.<br><strong>Note:</strong> To review the current flow or change the default status of repeated payments to \"Finished\" or \"Partially paid\", please contact us at <a href=\"https://mailto:support@nowpayments.io\">support@nowpayments.io</a>.</p>\n<p><strong>2. Wrong-Asset Deposits</strong></p>\n<p>Wrong-asset deposits occur when a payment is sent using the wrong network or asset (e.g. a user may mistakenly send <strong>USDTERC20</strong> instead of <strong>ETH)</strong>, and this network and asset are supported by our service.</p>\n<p>These payments will appear in the <strong>Payments History</strong> section with the label <strong>\"Wrong Asset\"</strong> and, by default, will require manual intervention to resolve.</p>\n<p><strong>Recommendation</strong>: When integrating, we recommend configuring your system to check the <strong>amount, asset type</strong> and the '<strong>parent_payment_id' param in Instant Payment Notifications</strong> of the incoming deposit to avoid the risks of providing services in case of insufficient funds.</p>\n<p>If you want wrong-asset deposits to be processed automatically, you can enable the <strong>Wrong-Asset Deposits Auto-Processing</strong> option in your account settings (Settings -> Payment -> Payment details). Before enabling this option, please take into account that <strong>the final sum of the sent deposit may differ from the expected payment amount and by default</strong> these payments always receive \"Finished\" status.</p>\n<p>If needed, we can also provide an option to assign a <strong>\"partially paid\"</strong> status to deposits processed through this feature. For more details, please contact <a href=\"https://mailto:support@nowpayments.io\"><b>support@nowpayments.io</b></a></p>\n<h2 id=\"packages\">Packages</h2>\n<p>Please find our out-of-the box packages for easy integration below:</p>\n<p><a href=\"https://www.npmjs.com/package/@nowpaymentsio/nowpayments-api-js\">JavaScript package</a></p>\n<p>[PHP package]<br>(<a href=\"https://packagist.org/packages/nowpayments/nowpayments-api-php\">https://packagist.org/packages/nowpayments/nowpayments-api-php</a>)</p>\n<p>More coming soon!</p>\n<h2 id=\"payments\">Payments</h2>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Authentication","slug":"authentication"},{"content":"NOWPayments Integration Guide","slug":"nowpayments-integration-guide"},{"content":"Integration Scenarios","slug":"integration-scenarios"},{"content":"Standard e-commerce flow for NOWPayments API:","slug":"standard-e-commerce-flow-for-nowpayments-api"},{"content":"API Documentation","slug":"api-documentation"}],"owner":"7907941","collectionId":"422a8b0d-ed97-46e9-847c-36e147397c00","publishedId":"2s93JusNJt","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"64ACFF"},"publishDate":"2023-04-21T16:32:49.000Z"},"item":[{"name":"Auth and API status","item":[{"name":"Get API status","id":"0316fd95-ad58-4d36-82c0-d94455d019ac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.nowpayments.io/v1/status","description":"<p>This is a method to get information about the current state of the API. If everything is OK, you will receive an \"OK\" message. Otherwise, you'll see some error.</p>\n<h4 id=\"successful-response-fields\">SUCCESSFUL RESPONSE FIELDS</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>message</td>\n<td>String</td>\n<td>Current status of our API.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","status"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"f0974f08-62b4-47a0-86a2-fa6f3f4efb7d","name":"200","originalRequest":{"method":"GET","header":[],"url":"https://api.nowpayments.io/v1/status"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 18 Apr 2019 13:37:08 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"16"},{"key":"Connection","value":"keep-alive"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"Strict-Transport-Security","value":"max-age=15768000"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Vary","value":"Origin"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"4c97081ce9509700-FRA"}],"cookie":[],"responseTime":null,"body":"{\n \"message\": \"OK\"\n}"}],"_postman_id":"0316fd95-ad58-4d36-82c0-d94455d019ac"},{"name":"Authentication","event":[{"listen":"test","script":{"id":"61ce614a-946b-4a7b-afc1-283db7e7bbd2","exec":["const schema = {"," properties: {"," token: {"," type: \"string\","," }"," },"," required: ["," 'token',"," ],","};","","try {"," const jsonData = pm.response.json();"," pm.collectionVariables.set(\"token\", jsonData?.token);","} catch (e) {"," console.warn(e);","}"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"500e25d7-3f95-4a2e-a49a-4b320752c1ad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","description":"<p>(Required) Your authorization token</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n \"email\": \"{{email}}\",\n \"password\": \"{{password}}\" \n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/auth","description":"<p>Authentication method for obtaining a JWT token. You should specify your email and password which you are using for signing in into dashboard.<br />JWT token will be required for using 'Get list of payments' and 'Create payout' endpoints. For security reasons, JWT tokens expire in 5 minutes.</p>\n<p><strong>Please note</strong> that email and password fields in this request are case-sensitive. <a href=\"https://mailto:test@gmail.com\">test@gmail.com</a> does not equal to <a href=\"https://mailto:Test@gmail.com\">Test@gmail.com</a></p>\n<h4 id=\"successful-response-fields\">SUCCESSFUL RESPONSE FIELDS</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>token</td>\n<td>String</td>\n<td>Token that is required to execute certain commands via API.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","auth"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"9511f649-126d-4c8f-a003-7f3495834a8d","name":"200","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n \"email\": \"your_email\",\n \"password\": \"your_password\" \n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.nowpayments.io/v1/auth","protocol":"https","host":["api","nowpayments","io"],"path":["v1","auth"],"query":[{"key":"","value":null,"type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 13 Nov 2020 17:26:24 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"__cfduid=d100179a7e095065cf498b0371b423b7d1605288381; expires=Sun, 13-Dec-20 17:26:21 GMT; path=/; domain=.nowpayments.io; HttpOnly; SameSite=Lax"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"Strict-Transport-Security","value":"max-age=15768000"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Vary","value":"Origin"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"cf-request-id","value":"06643de5b900000022542c9000000001"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=%2BQThCuj3D5DwqKzV%2FPRt15xNxPJ2KeOa0YwY8JeNLCpOzK7WTa%2FAv1csNcLl2Q2ZUnQEt4ITZdXfizJUafHl1f9G3F%2BENJmd%2FOe3NKxoFmN5Cjo%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"5f1a3282cac70022-DME"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjU4MjYyNTkxMTUiLCJpYXQiOjE2MDUyODgzODQsImV4cCI6MTYwNTI4ODY4NH0.bk8B5AjoTt8Qfm1zHJxutAtgaTGW-2j67waGQ2DUHUI\"\n}"}],"_postman_id":"500e25d7-3f95-4a2e-a49a-4b320752c1ad"}],"id":"53226d77-6113-4749-aa58-1e3696120125","description":"<p>This set of methods allows you to check API availability and get a JWT token which is required as a header for some other methods.</p>\n","_postman_id":"53226d77-6113-4749-aa58-1e3696120125"},{"name":"Currencies","item":[{"name":"Get available currencies","id":"7bfbe4fb-440f-4e46-966b-2f452a70013c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"{{api-key}}","description":"<p>(Required) Your NOWPayments API key</p>\n","type":"text"}],"url":"https://api.nowpayments.io/v1/currencies?fixed_rate=true","description":"<p>This is a method for obtaining information about all cryptocurrencies available for payments for your current setup of payout wallets.</p>\n","urlObject":{"path":["v1","currencies"],"host":["https://api.nowpayments.io"],"query":[{"description":{"content":"<p>(Optional) Returns avaliable currencies with minimum and maximum amount of the exchange.</p>\n","type":"text/plain"},"key":"fixed_rate","value":"true"}],"variable":[]}},"response":[{"id":"c19d5f7c-c603-4c6b-9a44-507c59c9404e","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"{{api-key}}","description":"(Required) Your NOWPayments API key","type":"text"}],"url":{"raw":"https://api.nowpayments.io/v1/currencies?fixed_rate=true","protocol":"https","host":["api","nowpayments","io"],"path":["v1","currencies"],"query":[{"key":"fixed_rate","value":"true","type":"text","description":"(Optional) Returns avaliable currencies with minimum and maximum amount of the exchange."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 22 Dec 2020 15:04:03 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-dns-prefetch-control","value":"off"},{"key":"x-frame-options","value":"SAMEORIGIN"},{"key":"strict-transport-security","value":"max-age=15552000; includeSubDomains"},{"key":"strict-transport-security","value":"max-age=15768000"},{"key":"x-download-options","value":"noopen"},{"key":"x-content-type-options","value":"nosniff"},{"key":"x-xss-protection","value":"1; mode=block"},{"key":"vary","value":"Origin"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"cf-request-id","value":"072c9386e7000016693802b000000001"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=njJG9MjxLKmoJsxN0xqpdp0MNZJmkCFhw4c9sIQz%2B97S%2FqQTBHWVp28uW4Hx3i1fWSQdR6w48evOdfYoN6u4o6MrXcV%2FZ5sLPQOQJ9ONwKuu4us%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"605abb84abee1669-ARN"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n \"currencies\": [\n \"btg\",\n \"eth\",\n \"xmr\",\n \"zec\",\n \"xvg\",\n \"ada\",\n \"ltc\",\n \"bch\",\n \"qtum\",\n \"dash\",\n \"xlm\",\n \"xrp\",\n \"xem\",\n \"dgb\",\n \"lsk\",\n \"doge\",\n \"trx\",\n \"kmd\",\n \"rep\",\n \"bat\",\n \"ark\",\n \"waves\",\n \"bnb\",\n \"xzc\",\n \"nano\",\n \"tusd\",\n \"vet\",\n \"zen\",\n \"grs\",\n \"fun\",\n \"neo\",\n \"gas\",\n \"pax\",\n \"usdc\",\n \"ont\",\n \"xtz\",\n \"link\",\n \"rvn\",\n \"bnbmainnet\",\n \"zil\",\n \"bcd\",\n \"usdt\",\n \"usdterc20\",\n \"cro\",\n \"dai\",\n \"ht\",\n \"wabi\",\n \"busd\",\n \"algo\",\n \"usdttrc20\",\n \"gt\",\n \"stpt\",\n \"ava\",\n \"sxp\",\n \"uni\",\n \"okb\",\n \"btc\"\n ]\n}"}],"_postman_id":"7bfbe4fb-440f-4e46-966b-2f452a70013c"},{"name":"Get available currencies (2nd method)","id":"9d17efea-43e8-4316-a67d-1cdef58a36a1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"{{api-key}}","description":"<p>(Required) Your NOWPayments API key</p>\n","type":"text"}],"url":"https://api.nowpayments.io/v1/full-currencies","description":"<p>This is a method to obtain detailed information about all cryptocurrencies available for payments.</p>\n","urlObject":{"path":["v1","full-currencies"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"e15fa847-ebc0-4488-850b-8f34a42545a0","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"{{api-key}}","description":"(Required) Your NOWPayments API key","type":"text"}],"url":"https://api.nowpayments.io/v1/full-currencies"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 22 Dec 2020 15:04:03 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-dns-prefetch-control","value":"off"},{"key":"x-frame-options","value":"SAMEORIGIN"},{"key":"strict-transport-security","value":"max-age=15552000; includeSubDomains"},{"key":"strict-transport-security","value":"max-age=15768000"},{"key":"x-download-options","value":"noopen"},{"key":"x-content-type-options","value":"nosniff"},{"key":"x-xss-protection","value":"1; mode=block"},{"key":"vary","value":"Origin"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"cf-request-id","value":"072c9386e7000016693802b000000001"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=njJG9MjxLKmoJsxN0xqpdp0MNZJmkCFhw4c9sIQz%2B97S%2FqQTBHWVp28uW4Hx3i1fWSQdR6w48evOdfYoN6u4o6MrXcV%2FZ5sLPQOQJ9ONwKuu4us%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"605abb84abee1669-ARN"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"\"currencies\": [\n {\n \"id\": 121,\n \"code\": \"AAVE\",\n \"name\": \"Aave\",\n \"enable\": true,\n \"wallet_regex\": \"^(0x)[0-9A-Fa-f]{40}$\",\n \"priority\": 127,\n \"extra_id_exists\": false,\n \"extra_id_regex\": null,\n \"logo_url\": \"/images/coins/aave.svg\",\n \"track\": true,\n \"cg_id\": \"aave\",\n \"is_maxlimit\": false,\n \"network\": \"eth\",\n \"smart_contract\": null,\n \"network_precision\": null\n }\n]"}],"_postman_id":"9d17efea-43e8-4316-a67d-1cdef58a36a1"},{"name":"Get available checked currencies","id":"72dd35e8-c04f-490c-9cb9-bb14f3f884b7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"{{api-key}}","description":"<p>(Required) Your NOWPayments API key</p>\n","type":"text"}],"url":"https://api.nowpayments.io/v1/merchant/coins","description":"<p>This is a method for obtaining information about the cryptocurrencies available for payments. Shows the coins you set as available for payments in the \"coins settings\" tab on your personal account.</p>\n","urlObject":{"path":["v1","merchant","coins"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"47a187f4-90bb-4908-aad8-9f49c41936ad","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"{{api-key}}","description":"(Required) Your NOWPayments API key","type":"text"}],"url":"https://api.nowpayments.io/v1/merchant/coins"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 22 Dec 2020 15:04:03 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-dns-prefetch-control","value":"off"},{"key":"x-frame-options","value":"SAMEORIGIN"},{"key":"strict-transport-security","value":"max-age=15552000; includeSubDomains"},{"key":"strict-transport-security","value":"max-age=15768000"},{"key":"x-download-options","value":"noopen"},{"key":"x-content-type-options","value":"nosniff"},{"key":"x-xss-protection","value":"1; mode=block"},{"key":"vary","value":"Origin"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"cf-request-id","value":"072c9386e7000016693802b000000001"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=njJG9MjxLKmoJsxN0xqpdp0MNZJmkCFhw4c9sIQz%2B97S%2FqQTBHWVp28uW4Hx3i1fWSQdR6w48evOdfYoN6u4o6MrXcV%2FZ5sLPQOQJ9ONwKuu4us%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"605abb84abee1669-ARN"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n \"currencies\": [\n \"btg\",\n \"eth\",\n \"xmr\",\n \"zec\",\n \"xvg\",\n \"ada\",\n \"ltc\",\n \"bch\",\n \"qtum\",\n \"dash\",\n \"xlm\",\n \"xrp\",\n \"xem\",\n \"dgb\",\n \"lsk\",\n \"doge\",\n \"trx\",\n \"kmd\",\n \"rep\",\n \"bat\",\n \"ark\",\n \"waves\",\n \"bnb\",\n \"xzc\",\n \"nano\",\n \"tusd\",\n \"vet\",\n \"zen\",\n \"grs\",\n \"fun\",\n \"neo\",\n \"gas\",\n \"pax\",\n \"usdc\",\n \"ont\",\n \"xtz\",\n \"link\",\n \"rvn\",\n \"bnbmainnet\",\n \"zil\",\n \"bcd\",\n \"usdt\",\n \"usdterc20\",\n \"cro\",\n \"dai\",\n \"ht\",\n \"wabi\",\n \"busd\",\n \"algo\",\n \"usdttrc20\",\n \"gt\",\n \"stpt\",\n \"ava\",\n \"sxp\",\n \"uni\",\n \"okb\",\n \"btc\"\n ]\n}"}],"_postman_id":"72dd35e8-c04f-490c-9cb9-bb14f3f884b7"}],"id":"0b22b04b-74b3-4678-ad6b-3186928f64c2","_postman_id":"0b22b04b-74b3-4678-ad6b-3186928f64c2","description":""},{"name":"Payments","item":[{"name":"Get the minimum payment amount","id":"ce3fe3a3-00cd-4df2-bfba-641fde741da7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"{{api-key}}","description":"<p>(Required) Your NOWPayments API key</p>\n","type":"text"}],"url":"https://api.nowpayments.io/v1/min-amount?currency_from=eth¤cy_to=trx&fiat_equivalent=usd&is_fixed_rate=False&is_fee_paid_by_user=False","description":"<p>Get the minimum payment amount for a specific pair.</p>\n<p>You can provide both currencies in the pair or just currency_from, and we will calculate the minimum payment amount for currency_from and currency which you have specified as the outcome in the Payment Settings.</p>\n<p>You can also specify one of the fiat currencies in the currency_from. In this case, the minimum payment will be calculated in this fiat currency.</p>\n<p>You can also add field fiat_equivalent (optional field) to get the fiat equivalent of the minimum amount.</p>\n<p>\"is_fixed_rate\", and \"is_fee_paid_by_user\" parameters allows you to see current minimum amounts for corresponsing flows (it may differ from the standard flow!)</p>\n<p>In the case of several outcome wallets we will calculate the minimum amount in the same way we route your payment to a specific wallet.</p>\n<h4 id=\"successful-response-fields\">SUCCESSFUL RESPONSE FIELDS</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>currency_from</td>\n<td>String</td>\n<td>Payin currency</td>\n</tr>\n<tr>\n<td>currency_to</td>\n<td>String</td>\n<td>Outcome currency</td>\n</tr>\n<tr>\n<td>min_amount</td>\n<td>Float</td>\n<td>Minimal amount for payment using mentioned currencies</td>\n</tr>\n<tr>\n<td>fiat_equivalent</td>\n<td>Float</td>\n<td>(Optional) Get the fiat equivalent for calculated minimal amount</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","min-amount"],"host":["https://api.nowpayments.io"],"query":[{"description":{"content":"<p>(Required) Payin currency </p>\n","type":"text/plain"},"key":"currency_from","value":"eth"},{"description":{"content":"<p>(Required) Outcome currency </p>\n","type":"text/plain"},"key":"currency_to","value":"trx"},{"description":{"content":"<p>(Optional) Mentioning ticker of any supported fiat currency you can get fiat equivalent of calculated minimal amount\n </p>\n","type":"text/plain"},"key":"fiat_equivalent","value":"usd"},{"description":{"content":"<p>(Optional) Set this as true if you're using fixed rate flow</p>\n","type":"text/plain"},"key":"is_fixed_rate","value":"False"},{"description":{"content":"<p>(Optional) Set this as true if you're using fee paid by user flow </p>\n","type":"text/plain"},"key":"is_fee_paid_by_user","value":"False"}],"variable":[]}},"response":[{"id":"bfb157e1-bcc8-4ac3-91c1-41202368030c","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"<your_api_key>","type":"text"}],"url":{"raw":"https://api.nowpayments.io/v1/min-amount?currency_from=eth¤cy_to=trx&fiat_equivalent=usd&is_fixed_rate =False&is_fee_paid_by_user=False","protocol":"https","host":["api","nowpayments","io"],"path":["v1","min-amount"],"query":[{"key":"currency_from","value":"eth","description":"(Required) Payin currency"},{"key":"currency_to","value":"trx","description":"(Required) Outcome currency"},{"key":"fiat_equivalent","value":"usd","description":"(Optional) Mentioning ticker of any supported fiat currency you can get fiat equivalent of calculated minimal amount"},{"key":"is_fixed_rate ","value":"False","description":"(Optional) Set this as true if you're using fixed rate flow","type":"text"},{"key":"is_fee_paid_by_user","value":"False","description":"(Optional) Set this as true if you're using fee paid by user flow","type":"text"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 22 Dec 2020 15:05:09 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"Strict-Transport-Security","value":"max-age=15768000"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Vary","value":"Origin"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"cf-request-id","value":"072c94a16a0000166954256000000001"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=JE3EB5TyT0ppi%2B%2FTPlGcGUDcr2ry9EL%2BhHtpB8%2BYtZMjD087RoOl6UD9284JzS7VANH4ZivF8A7jHMl42n8GLxJL1u7fyKvugNSiViphSjgmGKc%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"605abd48af901669-ARN"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n \"currency_from\": \"eth\",\n \"currency_to\": \"trx\",\n \"min_amount\": 0.0078999,\n \"fiat_equivalent\": 35.40626584\n}"}],"_postman_id":"ce3fe3a3-00cd-4df2-bfba-641fde741da7"},{"name":"Create invoice","id":"f5e4e645-dce2-4b06-b2ca-2a29aaa5e845","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-key","value":"{{api-key}}","description":"<p>(Required) Your NOWPayments API key</p>\n","type":"text"},{"key":"Content-Type","value":"application/json","description":"<p>(Required) Your payload has to be JSON object\n </p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n \"price_amount\": 1000,\n \"price_currency\": \"usd\",\n \"order_id\": \"RGDBP-21314\",\n \"order_description\": \"Apple Macbook Pro 2019 x 1\",\n \"ipn_callback_url\": \"https://nowpayments.io\",\n \"success_url\": \"https://nowpayments.io\",\n \"cancel_url\": \"https://nowpayments.io\",\n \"partially_paid_url\": \"https://nowpayments.io\",\n \"is_fixed_rate\": true,\n \"is_fee_paid_by_user\": false\n}\n\n","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/invoice","description":"<p>Creates a payment link. With this method, the customer is required to follow the generated url to complete the payment. <strong>Data must be sent as a JSON-object payload.</strong></p>\n<p>Request fields:</p>\n<ul>\n<li>price_amount (required) - the amount that users have to pay for the order stated in fiat currency. In case you do not indicate the price in crypto, our system will automatically convert this fiat amount into its crypto equivalent. <strong>NOTE: Some of the assets (KISHU, NWC, FTT, CHR, XYM, SRK, KLV, SUPER, OM, XCUR, NOW, SHIB, SAND, MATIC, CTSI, MANA, FRONT, FTM, DAO, LGCY), have a maximum price limit of ~$2000;</strong></li>\n<li>price_currency (required) - the fiat currency in which the price_amount is specified (usd, eur, etc);</li>\n<li>pay_currency (optional) - the specified crypto currency (btc, eth, etc), or one of available fiat currencies if it's enabled for your account (USD, EUR, ILS, GBP, AUD, RON);<br /> If not specified, can be chosen on the invoice_url</li>\n<li>ipn_callback_url (optional) - url to receive callbacks, should contain \"http\" or \"https\", eg. \"<a href=\"https://nowpayments.io\">https://nowpayments.io\"</a>;</li>\n<li>order_id (optional) - internal store order ID, e.g. \"RGDBP-21314\";</li>\n<li>order_description (optional) - internal store order description, e.g. \"Apple Macbook Pro 2019 x 1\";</li>\n<li>success_url(optional) - url where the customer will be redirected after successful payment;</li>\n<li>cancel_url(optional) - url where the customer will be redirected after failed payment;</li>\n<li>is_fixed_rate(optional) - boolean, can be <strong>true</strong> or <strong>false</strong>. Required for fixed-rate exchanges;<br /> NOTE: the rate of exchange will be frozen for 20 minutes. If there are no incoming payments during this period, the payment status changes to \"expired\";</li>\n<li>is_fee_paid_by_user(optional) - boolean, can be <strong>true</strong> or <strong>false</strong>. Required for fixed-rate exchanges with all fees paid by users;<br /> NOTE: the rate of exchange will be frozen for 20 minutes. If there are no incoming payments during this period, the payment status changes to \"expired\";</li>\n</ul>\n<h4 id=\"successful-response-fields\">SUCCESSFUL RESPONSE FIELDS</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>String</td>\n<td>Invoice ID</td>\n</tr>\n<tr>\n<td>token_id</td>\n<td>String</td>\n<td>Internal identifier</td>\n</tr>\n<tr>\n<td>order_id</td>\n<td>String</td>\n<td>Order ID specified in request</td>\n</tr>\n<tr>\n<td>order_description</td>\n<td>String</td>\n<td>Order description specified in request</td>\n</tr>\n<tr>\n<td>price_amount</td>\n<td>String</td>\n<td>Base price in fiat</td>\n</tr>\n<tr>\n<td>price_currency</td>\n<td>String</td>\n<td>Ticker of base fiat currency</td>\n</tr>\n<tr>\n<td>pay_currency</td>\n<td>String</td>\n<td>Currency your customer will pay with. If it's 'null' your customer can choose currency in web interface.</td>\n</tr>\n<tr>\n<td>ipn_callback_url</td>\n<td>String</td>\n<td>Link to your endpoint for IPN notifications catching</td>\n</tr>\n<tr>\n<td>invoice_url</td>\n<td>String</td>\n<td>Link to the payment page that you can share with your customer</td>\n</tr>\n<tr>\n<td>success_url</td>\n<td>String</td>\n<td>Customer will be redirected to this link once the payment is finished</td>\n</tr>\n<tr>\n<td>cancel_url</td>\n<td>String</td>\n<td>Customer will be redirected to this link if the payment fails</td>\n</tr>\n<tr>\n<td>partially_paid_url</td>\n<td>String</td>\n<td>Customer will be redirected to this link if the payment gets partially paid status</td>\n</tr>\n<tr>\n<td>payout_currency</td>\n<td>String</td>\n<td>Ticker of payout currency</td>\n</tr>\n<tr>\n<td>created_at</td>\n<td>String</td>\n<td>Time of invoice creation</td>\n</tr>\n<tr>\n<td>updated_at</td>\n<td>String</td>\n<td>Time of latest invoice information update</td>\n</tr>\n<tr>\n<td>is_fixed_rate</td>\n<td>Boolean</td>\n<td>This parameter is 'True' if Fixed Rate option is enabled and 'false' if it's disabled</td>\n</tr>\n<tr>\n<td>is_fee_paid_by_user</td>\n<td>Boolean</td>\n<td>This parameter is 'True' if Fee Paid By User option is enabled and 'false' if it's disabled</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","invoice"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"098c0bb7-57f7-401a-a6b1-ec704ab62307","name":"201","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"{{api-key}}","description":"(Required) Your NOWPayments API key","type":"text"},{"key":"Content-Type","value":"application/json","description":"(Required) Your payload has to be JSON object\n ","type":"text"}],"body":{"mode":"raw","raw":"{\n \"price_amount\": 1000,\n \"price_currency\": \"usd\",\n \"order_id\": \"RGDBP-21314\",\n \"order_description\": \"Apple Macbook Pro 2019 x 1\",\n \"ipn_callback_url\": \"https://nowpayments.io\",\n \"success_url\": \"https://nowpayments.io\",\n \"cancel_url\": \"https://nowpayments.io\"\n}\n\n","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/invoice"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 22 Dec 2020 15:05:58 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"422"},{"key":"Connection","value":"keep-alive"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"Strict-Transport-Security","value":"max-age=15768000"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Vary","value":"Origin"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"cf-request-id","value":"072c95609700001669e701b000000001"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=9SJf%2BQ6vPJTM6MU5pyIOel%2BScU5QnxikJpVEzC0czH%2BlC0v9WX0itLuzODGT568VHmkGP9zIqpOVX7OcDEDI94aEZMDWmEkjO3YFJOnjut46qrU%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"605abe7a8ddc1669-ARN"}],"cookie":[],"responseTime":null,"body":"{\n \"id\": \"4522625843\",\n \"order_id\": \"RGDBP-21314\",\n \"order_description\": \"Apple Macbook Pro 2019 x 1\",\n \"price_amount\": \"1000\",\n \"price_currency\": \"usd\",\n \"pay_currency\": null,\n \"ipn_callback_url\": \"https://nowpayments.io\",\n \"invoice_url\": \"https://nowpayments.io/payment/?iid=4522625843\",\n \"success_url\": \"https://nowpayments.io\",\n \"cancel_url\": \"https://nowpayments.io\",\n \"created_at\": \"2020-12-22T15:05:58.290Z\",\n \"updated_at\": \"2020-12-22T15:05:58.290Z\"\n}"}],"_postman_id":"f5e4e645-dce2-4b06-b2ca-2a29aaa5e845"},{"name":"Create payment","id":"74c91a83-da39-4e39-b3db-1ed4c5c233f8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-key","value":"{{api-key}}","description":"<p>(Required) Your NOWPayments API key</p>\n","type":"text"},{"key":"Content-Type","value":"application/json","description":"<p>(Required) Your payload has to be JSON object\n </p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n \"price_amount\": 3999.5,\n \"price_currency\": \"usd\",\n \"pay_currency\": \"btc\",\n \"ipn_callback_url\": \"https://nowpayments.io\",\n \"order_id\": \"RGDBP-21314\",\n \"order_description\": \"Apple Macbook Pro 2019 x 1\",\n \"is_fixed_rate\": true,\n \"is_fee_paid_by_user\": false\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/payment","description":"<p>Creates payment. With this method, your customer will be able to complete the payment without leaving your website.</p>\n<p>Be sure to consider the details of <strong>repeated and wrong-asset deposits from 'Repeated Deposits and Wrong-Asset Deposits' section</strong> when processing payments.</p>\n<p><strong>Data must be sent as a JSON-object payload.</strong><br />Required request fields:</p>\n<ul>\n<li><p>price_amount (required) - the fiat equivalent of the price to be paid in crypto. If the pay_amount parameter is left empty, our system will automatically convert this fiat price into its crypto equivalent. Please note that this does not enable fiat payments, only provides a fiat price for yours and the customer’s convenience and information. <strong>NOTE: Some of the assets (KISHU, NWC, FTT, CHR, XYM, SRK, KLV, SUPER, OM, XCUR, NOW, SHIB, SAND, MATIC, CTSI, MANA, FRONT, FTM, DAO, LGCY), have a maximum price amount of ~$2000;</strong></p>\n</li>\n<li><p>price_currency (required) - the fiat currency in which the price_amount is specified (usd, eur, etc);</p>\n</li>\n<li><p>pay_amount (optional) - the amount that users have to pay for the order stated in crypto. You can either specify it yourself, or we will automatically convert the amount you indicated in price_amount;</p>\n</li>\n<li><p>pay_currency (required) - the crypto currency in which the pay_amount is specified (btc, eth, etc), or one of available fiat currencies if it's enabled for your account (USD, EUR, ILS, GBP, AUD, RON);<br /> <strong>NOTE: some of the currencies require a Memo, Destination Tag, etc., to complete a payment (AVA, EOS, BNBMAINNET, XLM, XRP). This is unique for each payment. This ID is received in “payin_extra_id” parameter of the response. Payments made without \"payin_extra_id\" cannot be detected automatically;</strong></p>\n</li>\n<li><p>ipn_callback_url (optional) - url to receive callbacks, should contain \"http\" or \"https\", eg. \"<a href=\"https://nowpayments.io\">https://nowpayments.io\"</a>;</p>\n</li>\n<li><p>order_id (optional) - inner store order ID, e.g. \"RGDBP-21314\";</p>\n</li>\n<li><p>order_description (optional) - inner store order description, e.g. \"Apple Macbook Pro 2019 x 1\";</p>\n</li>\n<li><p>payout_address (optional) - usually the funds will go to the address you specify in your Personal account. In case you want to receive funds on another address, you can specify it in this parameter;</p>\n</li>\n<li><p>payout_currency (optional) - currency of your external payout_address, required when payout_adress is specified;</p>\n</li>\n<li><p>payout_extra_id(optional) - extra id or memo or tag for external payout_address;</p>\n</li>\n<li><p>is_fixed_rate(optional) - boolean, can be <strong>true</strong> or <strong>false</strong>. Required for fixed-rate exchanges;<br /> NOTE: the rate of exchange will be frozen for 20 minutes. If there are no incoming payments during this period, the payment status changes to \"expired\".</p>\n</li>\n<li><p>is_fee_paid_by_user(optional) - boolean, can be <strong>true</strong> or <strong>false</strong>. Required for fixed-rate exchanges with all fees paid by users;<br /> NOTE: the rate of exchange will be frozen for 20 minutes. If there are no incoming payments during this period, the payment status changes to \"expired\". The fee paid by user payment can be only fixed rate. If you disable fixed rate during payment creation process, this flag would enforce fixed_rate to be true;</p>\n</li>\n</ul>\n<p>Here the list of available statuses of payment:</p>\n<ul>\n<li><p>waiting - waiting for the customer to send the payment. The initial status of each payment;</p>\n</li>\n<li><p>confirming - the transaction is being processed on the blockchain. Appears when NOWPayments detect the funds from the user on the blockchain;<br /> <strong>Please note:</strong> each currency has its own amount of confirmations required to start the processing.</p>\n</li>\n<li><p>confirmed - the process is confirmed by the blockchain. Customer’s funds have accumulated enough confirmations;</p>\n</li>\n<li><p>sending - the funds are being sent to your personal wallet. We are in the process of sending the funds to you;</p>\n</li>\n<li><p>partially_paid - it shows that the customer sent less than the actual price. Appears when the funds have arrived in your wallet;<br /> <strong>Please note: we advise against automatically providing goods or services when the payment status is \"Partially paid\",</strong> if it's critical for your business to receive the full amount.</p>\n</li>\n<li><p>finished - the funds have reached your personal address and the payment is finished;</p>\n</li>\n<li><p>failed - the payment wasn't completed due to the error of some kind;</p>\n</li>\n<li><p>expired - the user didn't send the funds to the specified address in the 7 days time window;</p>\n</li>\n</ul>\n<p><strong>Please note: when you're creating a fiat2crypto payment you also should include additional header to your request - \"origin-ip : xxx\", where xxx is your customer IP address.</strong></p>\n<h4 id=\"successful-response-fields\">SUCCESSFUL RESPONSE FIELDS</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>payment_id</td>\n<td>String</td>\n<td>Payment ID you can refer to</td>\n</tr>\n<tr>\n<td>payment_status</td>\n<td>String</td>\n<td>Current status of the payment. On creation it supposed to be 'waiting'</td>\n</tr>\n<tr>\n<td>pay_address</td>\n<td>String</td>\n<td>Address which is meant for customer to make a deposit to.</td>\n</tr>\n<tr>\n<td>price_amount</td>\n<td>Float</td>\n<td>The amount you set as a price,</td>\n</tr>\n<tr>\n<td>price_currency</td>\n<td>String</td>\n<td>Ticker of base currency</td>\n</tr>\n<tr>\n<td>pay_amount</td>\n<td>Float</td>\n<td>Amount customer is meant to pay.</td>\n</tr>\n<tr>\n<td>pay_currency</td>\n<td>String</td>\n<td>Deposit currency.</td>\n</tr>\n<tr>\n<td>order_id</td>\n<td>String</td>\n<td>Order ID is a string for your internal identifier you can enter upon payment creation.</td>\n</tr>\n<tr>\n<td>order_description</td>\n<td>String</td>\n<td>Order description is a string for your convenience to describe anything about the payment for your own reference.</td>\n</tr>\n<tr>\n<td>ipn_callback_url</td>\n<td>String</td>\n<td>Link to your endpoint for IPN notifications catching</td>\n</tr>\n<tr>\n<td>created_at</td>\n<td>String</td>\n<td>Time of payment creation</td>\n</tr>\n<tr>\n<td>updated_at</td>\n<td>String</td>\n<td>Time of latest payment information update</td>\n</tr>\n<tr>\n<td>purchase_id</td>\n<td>String</td>\n<td>Special identifier for handling partially_paid payments</td>\n</tr>\n<tr>\n<td>amount_received</td>\n<td>Float</td>\n<td>Estimate for amount you're intended to receive if customer would deposit full amount.</td>\n</tr>\n<tr>\n<td>payin_extra_id</td>\n<td>String</td>\n<td>(Optional) Deposit address' memo, if applied</td>\n</tr>\n<tr>\n<td>smart_contract</td>\n<td>String</td>\n<td></td>\n</tr>\n<tr>\n<td>network</td>\n<td>String</td>\n<td>Network of deposit</td>\n</tr>\n<tr>\n<td>network_precision</td>\n<td>String</td>\n<td></td>\n</tr>\n<tr>\n<td>time_limit</td>\n<td>String</td>\n<td></td>\n</tr>\n<tr>\n<td>expiration_estimate_date</td>\n<td>String</td>\n<td></td>\n</tr>\n<tr>\n<td>is_fixed_rate</td>\n<td>String</td>\n<td>This parameter is 'True' if Fixed Rate option is enabled and 'false' if it's disabled</td>\n</tr>\n<tr>\n<td>is_fee_paid_by_user</td>\n<td>String</td>\n<td>This parameter is 'True' if Fee Paid By User option is enabled and 'false' if it's disabled</td>\n</tr>\n<tr>\n<td>valid_until</td>\n<td>String</td>\n<td>This parameter indicated when payment go expired.</td>\n</tr>\n<tr>\n<td>type</td>\n<td>String</td>\n<td>Type of payment. It can be either crypto2crypto or fiat2crypto</td>\n</tr>\n<tr>\n<td>redirectData: redirect_url</td>\n<td>String</td>\n<td>(Optional) If you're using fiat2crypto flow, this parameter will appear with link to our fiat2crypto processing provider web interface.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","payment"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"ed887c72-99b6-4150-aded-2a919a6ad9ae","name":"201","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"{{api-key}}","description":"(Required) Your NOWPayments API key","type":"text"},{"key":"Content-Type","value":"application/json","description":"(Required) Your payload has to be JSON object\n ","type":"text"}],"body":{"mode":"raw","raw":"{\n \"price_amount\": 3999.5,\n \"price_currency\": \"usd\",\n \"pay_currency\": \"btc\",\n \"ipn_callback_url\": \"https://nowpayments.io\",\n \"order_id\": \"RGDBP-21314\",\n \"order_description\": \"Apple Macbook Pro 2019 x 1\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/payment"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 22 Dec 2020 15:00:22 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"420"},{"key":"Connection","value":"keep-alive"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"Strict-Transport-Security","value":"max-age=15768000"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Vary","value":"Origin"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"cf-request-id","value":"072c902abd00001669e7327000000001"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=ZJgfL2UQDRGgSZ4oOb6wMDBAfE53D6i5EQUx1dsRP0skDMWeUwY4g6iPdUE3URPLtCLNaFtySv1gbsGjyPmspIwsl42xacCDk%2BjSGee%2F6JIAqfQ%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"605ab6246ee71669-ARN"}],"cookie":[],"responseTime":null,"body":"{\n \"payment_id\": \"5745459419\",\n \"payment_status\": \"waiting\",\n \"pay_address\": \"3EZ2uTdVDAMFXTfc6uLDDKR6o8qKBZXVkj\",\n \"price_amount\": 3999.5,\n \"price_currency\": \"usd\",\n \"pay_amount\": 0.17070286,\n \"pay_currency\": \"btc\",\n \"order_id\": \"RGDBP-21314\",\n \"order_description\": \"Apple Macbook Pro 2019 x 1\",\n \"ipn_callback_url\": \"https://nowpayments.io\",\n \"created_at\": \"2020-12-22T15:00:22.742Z\",\n \"updated_at\": \"2020-12-22T15:00:22.742Z\",\n \"purchase_id\": \"5837122679\",\n \"amount_received\": null,\n \"payin_extra_id\": null,\n \"smart_contract\": \"\",\n \"network\": \"btc\",\n \"network_precision\": 8,\n \"time_limit\": null,\n \"burning_percent\": null,\n \"expiration_estimate_date\": \"2020-12-23T15:00:22.742Z\"\n}"}],"_postman_id":"74c91a83-da39-4e39-b3db-1ed4c5c233f8"},{"name":"Create payment by invoice","id":"a0989056-1313-49bc-becd-e11c7e9337eb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-key","value":"{{api-key}}","description":"<p>(Required) Your NOWPayments API key</p>\n","type":"text"},{"key":"Content-Type","value":"application/json","description":"<p>(Required) Your payload has to be JSON object\n </p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n \"iid\": {{invoice_id}},\n \"pay_currency\": \"btc\",\n \"purchase_id\": {{purchase_id}},\n \"order_description\": \"Apple Macbook Pro 2019 x 1\",\n \"customer_email\": \"test@gmail.com\",\n \"payout_address\": \"0x...\",\n \"payout_extra_id\": null,\n \"payout_currency\": \"usdttrc20\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/invoice-payment","description":"<p>Creates payment by invoice. With this method, your customer will be able to complete the payment without leaving your website.</p>\n<p>Be sure to consider the details of <strong>repeated and wrong-asset deposits from 'Repeated Deposits and Wrong-Asset Deposits' section</strong> when processing payments.</p>\n<p><strong>Data must be sent as a JSON-object payload.</strong><br />Required request fields:</p>\n<ul>\n<li><p>iid (required) - invoice id. You can get invoice ID in response of <strong>POST Create_invoice</strong> method;</p>\n</li>\n<li><p>pay_currency (required) - the crypto currency in which the pay_amount is specified (btc, eth, etc). <strong>NOTE: some of the currencies require a Memo, Destination Tag, etc., to complete a payment (AVA, EOS, BNBMAINNET, XLM, XRP). This is unique for each payment. This ID is received in “payin_extra_id” parameter of the response. Payments made without \"payin_extra_id\" cannot be detected automatically;</strong></p>\n</li>\n<li><p>order_description (optional) - inner store order description, e.g. \"Apple Macbook Pro 2019 x 1\";</p>\n</li>\n<li><p>customer_email (optional) - user email to which a notification about the successful completion of the payment will be sent;</p>\n</li>\n<li><p>payout_address (optional) - usually the funds will go to the address you specify in your Personal account. In case you want to receive funds on another address, you can specify it in this parameter;</p>\n</li>\n<li><p>payout_extra_id(optional) - extra id or memo or tag for external payout_address;</p>\n</li>\n<li><p>payout_currency (optional) - currency of your external payout_address, required when payout_adress is specified;</p>\n</li>\n</ul>\n<p>Here the list of available statuses of payment:</p>\n<ul>\n<li><p>waiting - waiting for the customer to send the payment. The initial status of each payment;</p>\n</li>\n<li><p>confirming - the transaction is being processed on the blockchain. Appears when NOWPayments detect the funds from the user on the blockchain;</p>\n</li>\n<li><p>confirmed - the process is confirmed by the blockchain. Customer’s funds have accumulated enough confirmations;</p>\n</li>\n<li><p>sending - the funds are being sent to your personal wallet. We are in the process of sending the funds to you;</p>\n</li>\n<li><p>partially_paid - it shows that the customer sent the less than the actual price. Appears when the funds have arrived in your wallet;</p>\n</li>\n<li><p>finished - the funds have reached your personal address and the payment is finished;</p>\n</li>\n<li><p>failed - the payment wasn't completed due to the error of some kind;</p>\n</li>\n<li><p>refunded - the funds were refunded back to the user;</p>\n</li>\n<li><p>expired - the user didn't send the funds to the specified address in the 7 days time window;</p>\n</li>\n</ul>\n<p><strong>Please note: when you're creating a fiat2crypto payment you also should include additional header to your request - \"origin-ip : xxx\", where xxx is your customer IP address.</strong></p>\n","urlObject":{"path":["v1","invoice-payment"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"e3aeb62c-df58-4ae0-aa24-6beb7ed72e72","name":"201","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"{{api-key}}","description":"(Required) Your NOWPayments API key","type":"text"},{"key":"Content-Type","value":"application/json","description":"(Required) Your payload has to be JSON object\n ","type":"text"}],"body":{"mode":"raw","raw":"{\n \"iid\": {{invoice_id}},\n \"pay_currency\": \"btc\",\n \"purchase_id\": {{purchase_id}},\n \"order_description\": \"Apple Macbook Pro 2019 x 1\",\n \"customer_email\": \"test@gmail.com\",\n \"payout_address\": \"0x...\",\n \"payout_extra_id\": null,\n \"payout_currency\": \"usdttrc20\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/invoice-payment"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 22 Dec 2020 15:00:22 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"420"},{"key":"Connection","value":"keep-alive"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"Strict-Transport-Security","value":"max-age=15768000"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Vary","value":"Origin"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"cf-request-id","value":"072c902abd00001669e7327000000001"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=ZJgfL2UQDRGgSZ4oOb6wMDBAfE53D6i5EQUx1dsRP0skDMWeUwY4g6iPdUE3URPLtCLNaFtySv1gbsGjyPmspIwsl42xacCDk%2BjSGee%2F6JIAqfQ%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"605ab6246ee71669-ARN"}],"cookie":[],"responseTime":null,"body":"{\n \"payment_id\": \"5745459419\",\n \"payment_status\": \"waiting\",\n \"pay_address\": \"3EZ2uTdVDAMFXTfc6uLDDKR6o8qKBZXVkj\",\n \"price_amount\": 3999.5,\n \"price_currency\": \"usd\",\n \"pay_amount\": 0.17070286,\n \"pay_currency\": \"btc\",\n \"order_id\": \"RGDBP-21314\",\n \"order_description\": \"Apple Macbook Pro 2019 x 1\",\n \"ipn_callback_url\": \"https://nowpayments.io\",\n \"created_at\": \"2020-12-22T15:00:22.742Z\",\n \"updated_at\": \"2020-12-22T15:00:22.742Z\",\n \"purchase_id\": \"5837122679\",\n \"amount_received\": null,\n \"payin_extra_id\": null,\n \"smart_contract\": \"\",\n \"network\": \"btc\",\n \"network_precision\": 8,\n \"time_limit\": null,\n \"burning_percent\": null,\n \"expiration_estimate_date\": \"2020-12-23T15:00:22.742Z\"\n}"}],"_postman_id":"a0989056-1313-49bc-becd-e11c7e9337eb"},{"name":"Get/Update payment estimate","id":"529d0759-09c4-4d90-8eaf-8f765774c79f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-key","value":"{{api-key}}","description":"<p>(Required) Your NOWPayments API key</p>\n","type":"text"},{"key":"Content-Type","value":"application/json","description":"<p>(Required) Your payload has to be JSON object\n </p>\n","type":"text"}],"url":"https://api.nowpayments.io/v1/payment/:id/update-merchant-estimate","description":"<p>This endpoint is required to get the current estimate on the payment and update the current estimate.<br />Please note! Calling this estimate before <code>expiration_estimate_date</code> will return the current estimate, it won’t be updated.</p>\n<p><code>:id</code> - payment ID, for which you want to get the estimate</p>\n<p>Response:<br /><code>id</code> - payment ID<br /><code>token_id</code> - id of api key used to create this payment (please discard this parameter)<br /><code>pay_amount</code> - payment estimate, the exact amount the user will have to send to complete the payment<br /><code>expiration_estimate_date</code> - expiration date of this estimate</p>\n","urlObject":{"path":["v1","payment",":id","update-merchant-estimate"],"host":["https://api.nowpayments.io"],"query":[],"variable":[{"description":{"content":"<p>Payment ID, for which you want to get the estimate </p>\n","type":"text/plain"},"type":"any","value":null,"key":"id"}]}},"response":[{"id":"6c3e9539-b510-47e7-8dde-7054072e1be2","name":"200","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"{{api-key}}","description":"(Required) Your NOWPayments API key","type":"text"},{"key":"Content-Type","value":"application/json","description":"(Required) Your payload has to be JSON object\n ","type":"text"}],"url":{"raw":"https://api.nowpayments.io/v1/payment/:id/update-merchant-estimate","protocol":"https","host":["api","nowpayments","io"],"path":["v1","payment",":id","update-merchant-estimate"],"variable":[{"key":"id","value":"4409701815","description":"payment ID, for which you want to get the estimate"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 12 Aug 2022 12:54:43 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-dns-prefetch-control","value":"off"},{"key":"x-frame-options","value":"SAMEORIGIN"},{"key":"strict-transport-security","value":"max-age=15552000; includeSubDomains"},{"key":"strict-transport-security","value":"max-age=15768000"},{"key":"x-download-options","value":"noopen"},{"key":"x-content-type-options","value":"nosniff"},{"key":"x-xss-protection","value":"1; mode=block"},{"key":"vary","value":"Origin, Accept-Encoding"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=UlD77RlowCWTg1qTZ2LeHmo1PgG3zxPObaiXYfhalA0YMLx%2BN07RVybi%2BZ%2BM4TkZr5jAjyQN5IMEcOW88%2FFqbuIQhrYnNXIBWUq6QwBFc4nG3FZMlvkLybT0QbYxAutJE4b1rL8%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"73995c778c69c2e1-VIE"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n \"id\": \"4455667788\",\n \"token_id\": \"5566778899\",\n \"pay_amount\": 0.04671013,\n \"expiration_estimate_date\": \"2022-08-12T13:14:28.536Z\"\n}"}],"_postman_id":"529d0759-09c4-4d90-8eaf-8f765774c79f"},{"name":"Get estimated price","id":"3c86a16e-94ad-4230-a470-4e833766a4c7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"{{api-key}}","description":"<p>(Required) Your NOWPayments API key</p>\n","type":"text"}],"url":"https://api.nowpayments.io/v1/estimate?amount=3999.5000¤cy_from=usd¤cy_to=btc","description":"<p>This is a method for calculating the approximate price in cryptocurrency for a given value in Fiat currency. You will need to provide the initial cost in the Fiat currency (amount, currency_from) and the necessary cryptocurrency (currency_to)<br />Currently following fiat currencies are available: USD, EUR, CAD, GBP, AUD, ILS, RON.</p>\n<p>Please note that this method allows you to get estimates for crypto pairs as well.</p>\n","urlObject":{"path":["v1","estimate"],"host":["https://api.nowpayments.io"],"query":[{"description":{"content":"<p>Set the amount for calculations</p>\n","type":"text/plain"},"key":"amount","value":"3999.5000"},{"key":"currency_from","value":"usd"},{"key":"currency_to","value":"btc"}],"variable":[]}},"response":[{"id":"080dbfb7-d17e-4881-ab96-2db35045186b","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"{{api-key}}","description":"(Required) Your NOWPayments API key","type":"text"}],"url":{"raw":"https://api.nowpayments.io/v1/estimate?amount=3999.5000¤cy_from=usd¤cy_to=btc","protocol":"https","host":["api","nowpayments","io"],"path":["v1","estimate"],"query":[{"key":"amount","value":"3999.5000","description":"Set the amount for calculations"},{"key":"currency_from","value":"usd"},{"key":"currency_to","value":"btc"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 22 Dec 2020 15:03:37 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"Strict-Transport-Security","value":"max-age=15768000"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Vary","value":"Origin"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"cf-request-id","value":"072c9339110000166928295000000001"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=Be6PnrVenND3qBzQJTWszI2slyEd9pXNhEyFMkukSYUC1m3om7zFPg%2BQq%2F6xT2ridpvoQiRE5q8CWGblOvjJ7%2Bup%2B3ZwGuN7TNvHk04WYiWIlRk%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"605abb081ca11669-ARN"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n \"currency_from\": \"usd\",\n \"amount_from\": 3999.5,\n \"currency_to\": \"btc\",\n \"estimated_amount\": 0.17061637\n}"}],"_postman_id":"3c86a16e-94ad-4230-a470-4e833766a4c7"},{"name":"Get payment status","id":"62a6d281-478d-4927-8cd0-f96d677b8de6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"{{api-key}}","description":"<p>(Required) Your NOWPayments API key</p>\n","type":"text"}],"url":"https://api.nowpayments.io/v1/payment/:payment_id","description":"<p>Get the actual information about the payment. You need to provide the ID of the payment in the request.</p>\n<p>NOTE! You should make the get payment status request with the same API key that you used in the create payment request.<br />Here is the list of available statuses:</p>\n<ul>\n<li>waiting - waiting for the customer to send the payment. The initial status of each payment;</li>\n<li>confirming - the transaction is being processed on the blockchain. Appears when NOWPayments detect the funds from the user on the blockchain;</li>\n<li>confirmed - the process is confirmed by the blockchain. Customer’s funds have accumulated enough confirmations;</li>\n<li>sending - the funds are being sent to your personal wallet. We are in the process of sending the funds to you;</li>\n<li>partially_paid - it shows that the customer sent the less than the actual price. Appears when the funds have arrived in your wallet;</li>\n<li>finished - the funds have reached your personal address and the payment is finished;</li>\n<li>failed - the payment wasn't completed due to the error of some kind;</li>\n<li>refunded - the funds were refunded back to the user;</li>\n<li>expired - the user didn't send the funds to the specified address in the 7 days time window;</li>\n</ul>\n<p>Additional info:</p>\n<ul>\n<li>outcome_amount - this parameter shows the amount that will be (or is already) received on your Outcome Wallet once the transaction is settled;</li>\n<li>outcome_currency - this parameter shows the currency in which the transaction will be settled;</li>\n<li>invoice_id - this parameter shows invoice ID from which the payment was created;</li>\n</ul>\n","urlObject":{"path":["v1","payment",":payment_id"],"host":["https://api.nowpayments.io"],"query":[],"variable":[{"id":"17ee12a0-b653-4f29-b81b-edd85fab5c5c","type":"any","value":null,"key":"payment_id"}]}},"response":[{"id":"1e80ed88-57ee-452b-bbc3-374a7133905a","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"{{api-key}}","description":"(Required) Your NOWPayments API key","type":"text"}],"url":"https://api.nowpayments.io/v1/payment/6249365965"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 16 Dec 2020 15:04:13 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"Strict-Transport-Security","value":"max-age=15768000"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Vary","value":"Origin"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"cf-request-id","value":"070dad9e670000fe402dae0000000001"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=zEbhqHJbg3q36U8j53OXNXd%2Bko6cS9sMgMStn1FBVWWkPsG8UrIRJyCEhmY1qK%2FXx3U%2FGPx54%2BOtE2Btl8ZwU9i9wZ%2BJkAo8q7FqZydfMMQgcb4%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"60294baa3828fe40-HEL"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":" \"payment_id\": 6249365965,\n \"invoice_id\": null,\n \"payment_status\": \"finished\",\n \"pay_address\": \"address\",\n \"payin_extra_id\": null,\n \"price_amount\": 1,\n \"price_currency\": \"usd\",\n \"pay_amount\": 11.8,\n \"actually_paid\": 12,\n \"pay_currency\": \"trx\",\n \"order_id\": null,\n \"order_description\": null,\n \"purchase_id\": 5312822613,\n \"outcome_amount\": 11.8405,\n \"outcome_currency\": \"trx\",\n \"payout_hash\": \"hash\",\n \"payin_hash\": \"hash\",\n \"created_at\": \"2023-07-28T15:06:09.932Z\",\n \"updated_at\": \"2023-07-28T15:09:40.535Z\",\n \"burning_percent\": \"null\",\n \"type\": \"crypto2crypto\",\n \"payment_extra_ids\": [\n 5513339153\n ]"}],"_postman_id":"62a6d281-478d-4927-8cd0-f96d677b8de6"},{"name":"Get list of payments","id":"c38d2410-1523-4313-8764-0043ba1cb24f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","description":"<p>(Required) Your authorization token</p>\n","type":"text"},{"key":"x-api-key","value":"{{api-key}}","description":"<p>(Required) Your NOWPayments API key</p>\n","type":"text"}],"url":"https://api.nowpayments.io/v1/payment/?limit=10&page=0&sortBy=created_at&orderBy=asc&dateFrom=2020-01-01&dateTo=2021-01-01&invoiceId=6200264890","description":"<p>Returns the entire list of all transactions created with certain API key.<br />The list of optional parameters:</p>\n<ul>\n<li>limit - number of records in one page. (possible values: from 1 to 500);</li>\n<li>page - the page number you want to get (possible values: from 0 to <strong>page count - 1</strong>);</li>\n<li>invoiceId - filtering payments by certain invoice ID;</li>\n<li>sortBy - sort the received list by a paramenter. Set to <strong>created_at</strong> by default (possible values: payment_id, payment_status, pay_address, price_amount, price_currency, pay_amount, actually_paid, pay_currency, order_id, order_description, purchase_id, outcome_amount, outcome_currency);</li>\n<li>orderBy - display the list in ascending or descending order. Set to <strong>asc</strong> by default (possible values: asc, desc);</li>\n<li>dateFrom - select the displayed period start date (date format: YYYY-MM-DD or yy-MM-ddTHH:mm:ss.SSSZ);</li>\n<li>dateTo - select the displayed period end date (date format: YYYY-MM-DD or yy-MM-ddTHH:mm:ss.SSSZ);</li>\n</ul>\n","urlObject":{"path":["v1","payment",""],"host":["https://api.nowpayments.io"],"query":[{"description":{"content":"<p>The limit of items listed in one page of response body. Possible values: from 1 to 500 </p>\n","type":"text/plain"},"key":"limit","value":"10"},{"description":{"content":"<p>If amount of items is more than specified in 'limit' parameter, you can switch pages with this one. Possible values: from 0 to last existing page number digit. </p>\n","type":"text/plain"},"key":"page","value":"0"},{"description":{"content":"<p>Sorting by a certain parameter value </p>\n","type":"text/plain"},"key":"sortBy","value":"created_at"},{"description":{"content":"<p>Set the order of listed items. It can be 'asc' or 'desc' </p>\n","type":"text/plain"},"key":"orderBy","value":"asc"},{"description":{"content":"<p>Parameters for filtering items by certain dates </p>\n","type":"text/plain"},"key":"dateFrom","value":"2020-01-01"},{"description":{"content":"<p>Parameters for filtering items by certain dates</p>\n","type":"text/plain"},"key":"dateTo","value":"2021-01-01"},{"description":{"content":"<p>Filtering items by certain invoice ID</p>\n","type":"text/plain"},"key":"invoiceId","value":"6200264890"}],"variable":[]}},"response":[{"id":"be37d1bd-6981-4291-93f9-cb1da44486b4","name":"200","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","description":"(Required) Your authorization token","type":"text"},{"key":"x-api-key","value":"{{api-key}}","description":"(Required) Your NOWPayments API key","type":"text"}],"url":{"raw":"https://api.nowpayments.io/v1/payment/?limit=10&page=0&sortBy=created_at&orderBy=asc&dateFrom=2020-01-01&dateTo=2023-07-01&invoiceId=6200264890","protocol":"https","host":["api","nowpayments","io"],"path":["v1","payment",""],"query":[{"key":"limit","value":"10","description":"The limit of items listed in response body"},{"key":"page","value":"0","description":"If amount of items is more than specified in 'limit' parameter, you can switch pages with this one"},{"key":"sortBy","value":"created_at","description":"Sorting by a certain parameter value."},{"key":"orderBy","value":"asc","description":"Set the order of listed items. It can be 'asc' or 'desc'"},{"key":"dateFrom","value":"2020-01-01","description":"Parameters for filtering items by certain dates"},{"key":"dateTo","value":"2023-07-01","description":"Parameters for filtering items by certain dates"},{"key":"invoiceId","value":"6200264890","description":"Filtering items by certain invoice ID"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 22 Dec 2020 15:05:33 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"Strict-Transport-Security","value":"max-age=15768000"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Vary","value":"Origin"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"cf-request-id","value":"072c94fe6c00001669e783e000000001"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=4Sj25uNN8wdCtby0RbHx%2FbSLll68tMBpk%2FVG%2BQxVvo3wGnCf6Zu1DPFpwjsTBVasLRcoOsZVemVR6eVlvGP3HF9uJ1VOuaj%2Be9TCiwikq16Y5Vg%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"605abddd7db41669-ARN"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"\"data\": [\n {\n \"payment_id\": 5592161154,\n \"invoice_id\": 6200264890,\n \"payment_status\": \"partially_paid\",\n \"pay_address\": \"address\",\n \"payin_extra_id\": null,\n \"price_amount\": 1,\n \"price_currency\": \"usd\",\n \"pay_amount\": 12.5,\n \"actually_paid\": 10,\n \"pay_currency\": \"trx\",\n \"order_id\": null,\n \"order_description\": null,\n \"purchase_id\": 5392971146,\n \"outcome_amount\": 9.8505,\n \"outcome_currency\": \"trx\",\n \"payout_hash\": \"hash\",\n \"payin_hash\": \"hash\",\n \"created_at\": \"2023-07-19T15:22:15.807Z\",\n \"updated_at\": \"2023-07-19T15:27:10.477Z\",\n \"type\": \"crypto2crypto\",\n \"payment_extra_ids\": [ //array of child payments for this payment\n 4526424492\n ]\n },\n {\n \"payment_id\": 4526424492,\n \"invoice_id\": 6200264890,\n \"payment_status\": \"finished\",\n \"pay_address\": \"address\",\n \"payin_extra_id\": null,\n \"price_amount\": 1,\n \"price_currency\": \"usd\",\n \"pay_amount\": 12.5,\n \"actually_paid\": 12.5,\n \"pay_currency\": \"trx\",\n \"order_id\": null,\n \"order_description\": null,\n \"purchase_id\": 5392971146,\n \"outcome_amount\": 12.338,\n \"outcome_currency\": \"trx\",\n \"payout_hash\": \"hash\",\n \"payin_hash\": \"hash\",\n \"created_at\": \"2023-07-19T15:22:15.754Z\",\n \"updated_at\": \"2023-07-19T15:25:56.280Z\",\n \"type\": \"crypto2crypto\",\n \"parent_payment_id\": 5592161154, //Payment ID of parent payment. \n \"origin_type\": \"REPEATED\"\n }\n ],\n \"limit\": 10,\n \"page\": 0,\n \"pagesCount\": 582,\n \"total\": 5815\n}"}],"_postman_id":"c38d2410-1523-4313-8764-0043ba1cb24f"}],"id":"4391e27f-1c54-499f-8623-36c7cd322542","description":"<p>Following methods will allow you to create payment links for your clients and white labeled payments if you prefer to keep us working under the hood.</p>\n<p>Be sure to consider the details of <strong>repeated and wrong-asset deposits from 'Repeated Deposits and Wrong-Asset Deposits' section</strong> when processing payments.</p>\n<p>Additionally, it's important to monitor the \"outcome amount\" and \"outcome currency\" parameters, especially if it's critical for your business to receive the full payment for services or goods. <strong>We advise against automatically providing goods or services when the payment status is \"Partially paid,\" as discrepancies between the expected and actual amounts can be significant.</strong> If the difference is minor, you can update the payment status to \"Finished\" in the payment details section in Payments History.</p>\n","_postman_id":"4391e27f-1c54-499f-8623-36c7cd322542"},{"name":"Mass payouts","item":[{"name":"Get balance","id":"b70db7ec-eb01-450f-b90c-4591e60c22a7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"{{api-key}}","description":"<p>(Required) Your NOWPayments API key</p>\n","type":"text"}],"url":"https://api.nowpayments.io/v1/balance","description":"<p>This method returns your balance in different currencies.</p>\n<p>The response contains a list of currencies with two parameters:</p>\n<ul>\n<li>amount - avaliable currency amount;</li>\n<li>pendingAmount - currently processing currency amount;</li>\n</ul>\n","urlObject":{"path":["v1","balance"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"7a5aeba8-334e-4221-b221-3f282c86400a","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"{{api-key}}","description":"(Required) Your NOWPayments API key","type":"text"}],"url":"https://api.nowpayments.io/v1/balance"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n \"eth\": {\n \"amount\": 0.0001817185463659148,\n \"pendingAmount\": 0\n },\n \"trx\": {\n \"amount\": 0,\n \"pendingAmount\": 0\n },\n \"xmr\": {\n \"amount\": 0,\n \"pendingAmount\": 0\n }\n}"}],"_postman_id":"b70db7ec-eb01-450f-b90c-4591e60c22a7"},{"name":"Validate address","id":"1236cb82-b855-4e08-9bc2-36981c5dcfb0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-key","value":"{{api-key}}","description":"<p>(Required) Your NOWPayments API key</p>\n","type":"text"},{"key":"Content-Type","value":"application/json","description":"<p>(Required) Your payload has to be JSON object\n </p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n \"address\": \"0g033BbF609Ed876576735a02fa181842319Dd8b8F\", \n \"currency\": \"eth\", \n \"extra_id\":null\n}"},"url":"https://api.nowpayments.io/v1/payout/validate-address","description":"<p>This endpoint allows you to check if your payout address is valid and funds can be received there.</p>\n<p>Available parameters:</p>\n<ul>\n<li>address - the payout address;</li>\n<li>currency - the ticker of payout currency;</li>\n<li>(optional) extra_id - memo or destination tag, if applicable;</li>\n</ul>\n","urlObject":{"path":["v1","payout","validate-address"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"b3268854-5b08-4f11-8fe7-5b4ec5e0260f","name":"400","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"{{api-key}}","description":"(Required) Your NOWPayments API key","type":"text"},{"key":"Content-Type","value":"application/json","description":"(Required) Your payload has to be JSON object\n ","type":"text"}],"body":{"mode":"raw","raw":"{\n \"address\": \"0g033BbF609Ed876576735a02fa181842319Dd8b8F\", \n \"currency\": \"eth\", \n \"extra_id\":null\n}"},"url":"https://api.nowpayments.io/v1/payout/validate-address"},"status":"Bad Request","code":400,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n \"status\": false,\n \"statusCode\": 400,\n \"code\": \"BAD_CREATE_WITHDRAWAL_REQUEST\",\n \"message\": \"Invalid payout_address: [currency] [address]\"\n}"},{"id":"de238248-5d6b-400d-b7f4-3fec1f5f1001","name":"200","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"{{api-key}}","description":"(Required) Your NOWPayments API key","type":"text"},{"key":"Content-Type","value":"application/json","description":"(Required) Your payload has to be JSON object\n ","type":"text"}],"body":{"mode":"raw","raw":"{\n \"address\": \"6GUEZHV5B5CC2X2AB3DLL2TQPG7RXY2VW7WPBKJTW2YKNPUO4HWIWWPNVE\", \n \"currency\": \"USDTALGO\", \n \"extra_id\":null\n}"},"url":"https://api.nowpayments.io/v1/payout/validate-address"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"OK"}],"_postman_id":"1236cb82-b855-4e08-9bc2-36981c5dcfb0"},{"name":"Create payout","id":"3a87a0bb-2daa-431c-b072-d63560b03952","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","description":"<p>(Required) Your authorization token</p>\n","type":"text"},{"key":"x-api-key","value":"{{api-key}}","description":"<p>(Required) Your NOWPayments API key</p>\n","type":"text"},{"key":"Content-Type","value":"application/json","description":"<p>(Required) Your payload has to be JSON object\n </p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n \"payout_description\": \"description\",\n \"ipn_callback_url\": \"https://nowpayments.io\",\n \"withdrawals\": [\n {\n \"address\": \"TEmGwPeRTPiLFLVfBxXkSP91yc5GMNQhfS\",\n \"currency\": \"trx\",\n \"amount\": 200,\n \"ipn_callback_url\": \"https://nowpayments.io\"\n },\n {\n \"address\": \"0x1EBAeF7Bee7B3a7B2EEfC72e86593Bf15ED37522\",\n \"currency\": \"eth\",\n \"amount\": 0.1,\n \"ipn_callback_url\": \"https://nowpayments.io\"\n }\n ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/payout","description":"<p>This method is used for crypto payouts only. Please note that payouts can be requested only using a whitelisted IP address, and to whitelisted wallet addresses. It's a security measure enabled for each partner account by default.</p>\n<p>You can whitelist both of these anytime in your NOWPayments personal account by visiting 'Whitelist' section in 'Settings'.</p>\n<p>You need to provide your data as a JSON-object payload. Next is a description of the required request fields:</p>\n<ul>\n<li><p>address (required) - the address where you want to send funds;</p>\n</li>\n<li><p>currency (required) - payout currency;</p>\n</li>\n<li><p>amount (required) - amount of the payout. <strong>Must not exceed 6 decimals</strong> (i.e. 0.123456);</p>\n</li>\n<li><p>extra_id (optional) - memo, destination tag, etc.</p>\n</li>\n<li><p>ipn_callback_url(optional) - url to receive callbacks, should contain \"http\" or \"https\", eg. \"<a href=\"https://nowpayments.io\">https://nowpayments.io\"</a>. Please note: you can either set ipn_callback_url for each individual payout, or for all payouts in a batch (see example). <strong>In both cases IPNs will be sent for each payout separately;</strong></p>\n</li>\n<li><p>payout_description(optional) - a description of the payout. You can set it for all payouts in a batch;</p>\n</li>\n<li><p>unique_external_id(optional) - a unique external identifier;</p>\n</li>\n<li><p>fiat_amount(optional) - used for setting the payout amount in fiat equivalent. <strong>Overrides \"amount\" parameter;</strong></p>\n</li>\n<li><p>fiat_currency (optional) - used for determining fiat currency to get the fiat equivalent for. <strong>Required for \"fiat_amount\" parameter to work. DOES NOT override \"currency\" parameter. Payouts are made in crypto only, no fiat payouts are available unless you have a fiat off-ramp provider activated for your account;</strong></p>\n</li>\n</ul>\n<p>Here is the list of the available payout statuses:</p>\n<ul>\n<li><p>creating;</p>\n</li>\n<li><p>waiting;</p>\n</li>\n<li><p>processing;</p>\n</li>\n<li><p>sending;</p>\n</li>\n<li><p>finished;</p>\n</li>\n<li><p>failed;</p>\n</li>\n<li><p>rejected;</p>\n</li>\n</ul>\n<p>Please note that in some cases 'Failed' payouts may be processed after your confirmation, so please check this possibility with the support team beforer recreating the payout.</p>\n<p>Please, take note that you may request a single payout, but it still should be formatted as an array with the single element.</p>\n<h4 id=\"how-to-schedule-a-payout\">How to schedule a payout</h4>\n<p>Scheduled Payouts allows you to define a specific time when the payout should be executed. This is useful when you need to ensure that funds are sent at a precise moment.<br />Please ensure that your IP address and wallet addresses are whitelisted. Payouts can only be requested from whitelisted IPs and sent to whitelisted addresses by default.</p>\n<p><strong>Step 1: Define the Parameters for Scheduled Payout</strong></p>\n<p>To create a scheduled payout, you need to provide two key parameters before the regular payout details:</p>\n<ul>\n<li><p><strong>execute_at</strong> (required):<br /> Specify the exact date and time when the payout should be processed. Use the format <code>YYYY-MM-DDTHH:mm:ss.sssZ</code>.<br /> Example: <code>\"2026-02-29T10:35:00.000Z\"</code></p>\n</li>\n<li><p><strong>interval</strong> (required):<br /> Set the frequency for the payout. <strong>Currently, only</strong> <strong><code>ONETIME</code></strong> <strong>is supported, meaning the payout will occur once at the specified time.</strong></p>\n</li>\n</ul>\n<p><strong>Step 2: Add Payout Details</strong></p>\n<p>Next, provide the details of the payout, such as the amount, currency, and address where the funds should be sent. You can find all the required fields in the description above.</p>\n<p><strong>Step 3: Create the Payout</strong></p>\n<p>Once you have defined the <code>execute_at</code> and <code>interval</code> parameters, and added the payout details, send the request. Make sure to verify it with 2fa using <strong>POST Verify payout endpoint.</strong></p>\n<h4 id=\"how-to-cancel-a-scheduled-payout\"><strong>How to cancel a scheduled payout</strong></h4>\n<p>If you need to cancel a scheduled payout, you can use the <code>POST /v1/payout/w_id/cancel</code> endpoint. You need to provide the ID of the payout in the request.<br />The payout will receive the status <code>cancelled</code> after being successfully canceled.</p>\n","urlObject":{"path":["v1","payout"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"55ea823f-a2b0-488c-94d9-a79af43eeed9","name":"200","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","description":"(Required) Your authorization token","type":"text"},{"key":"x-api-key","value":"{{api-key}}","description":"(Required) Your NOWPayments API key","type":"text"},{"key":"Content-Type","value":"application/json","description":"(Required) Your payload has to be JSON object\n ","type":"text"}],"body":{"mode":"raw","raw":"{\n \"ipn_callback_url\": \"https://nowpayments.io\",\n \"withdrawals\": [\n {\n \"address\": \"TEmGwPeRTPiLFLVfBxXkSP91yc5GMNQhfS\",\n \"currency\": \"trx\",\n \"amount\": 200,\n \"ipn_callback_url\": \"https://nowpayments.io\"\n },\n {\n \"address\": \"0x1EBAeF7Bee7B3a7B2EEfC72e86593Bf15ED37522\",\n \"currency\": \"eth\",\n \"amount\": 0.1,\n \"ipn_callback_url\": \"https://nowpayments.io\"\n },\n {\n \"address\": \"0x1EBAeF7Bee7B3a7B2EEfC72e86593Bf15ED37522\",\n \"currency\": \"usdc\",\n \"amount\": 1,\n \"fiat_amount\": 100,\n \"fiat_currency\": \"usd\",\n \"ipn_callback_url\": \"https://nowpayments.io\"\n }\n ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/payout"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n\t\"id\": \"5000000713\",\n\t\"withdrawals\": [\n {\n \"is_request_payouts\":false,\n \"id\": \"5000000000\",\n \"address\": \"TEmGwPeRTPiLFLVfBxXkSP91yc5GMNQhfS\",\n \"currency\": \"trx\",\n \"amount\": \"200\",\n \"batch_withdrawal_id\": \"5000000000\",\n \"ipn_callback_url\": \"https://nowpayments.io\",\n \"status\": \"WAITING\",\n \"extra_id\": null,\n \"hash\": null,\n \"error\": null,\n \"payout_description\": null,\n \"unique_external_id\": null,\n \"created_at\": \"2020-11-12T17:06:12.791Z\",\n \"requested_at\": null,\n \"updated_at\": null\n\n },\n {\n \"is_request_payouts\":false,\n \"id\": \"5000000001\",\n \"address\": \"0x1EBAeF7Bee7B3a7B2EEfC72e86593Bf15ED37522\",\n \"currency\": \"eth\",\n \"amount\": \"0.1\",\n \"batch_withdrawal_id\": \"5000000000\",\n \"ipn_callback_url\": \"https://nowpayments.io\",\n \"status\": \"WAITING\",\n \"extra_id\": null,\n \"hash\": null,\n \"error\": null,\n \"payout_description\": null,\n \"unique_external_id\": null,\n \"createdAt\": \"2020-11-12T17:06:12.791Z\",\n \"requestedAt\": null,\n \"updatedAt\": null\n },\n {\n \"is_request_payouts\":false,\n \"id\": \"5000000002\",\n \"address\": \"0x1EBAeF7Bee7B3a7B2EEfC72e86593Bf15ED37522\",\n \"currency\": \"usdc\",\n \"amount\": \"99.84449793\",\n \"fiat_amount\": \"100\",\n \"fiat_currency\": \"usd\",\n \"batch_withdrawal_id\": \"5000000000\",\n \"ipn_callback_url\": \"https://nowpayments.io\",\n \"status\": \"WAITING\",\n \"extra_id\": null,\n \"hash\": null,\n \"error\": null,\n \"payout_description\": null,\n \"unique_external_id\": null,\n \"createdAt\": \"2020-11-12T17:06:12.791Z\",\n \"requestedAt\": null,\n \"updatedAt\": null\n }\n ]\n}"}],"_postman_id":"3a87a0bb-2daa-431c-b072-d63560b03952"},{"name":"Verify payout","id":"889caa5d-87a9-48cc-8d80-500cb3a7654b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","description":"<p>(Required) Your authorization token</p>\n","type":"text"},{"key":"x-api-key","value":"{{api-key}}","description":"<p>(Required) Your NOWPayments API key</p>\n","type":"text"},{"key":"Content-Type","value":"application/json","description":"<p>(Required) Your payload has to be JSON object\n </p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n \"verification_code\": \"123456\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/payout/:batch-withdrawal-id/verify","description":"<p>This method is required to verify payouts by using your 2FA code.<br />You’ll have 10 attempts to verify the payout. If it is not verified after 10 attempts, the payout will remain in ‘creating’ status.<br />Payout will be processed only when it is verified.</p>\n<p>If you have 2FA app enabled in your dashboard, payouts will accept 2FA code from your app. Otherwise the code for payouts validation will be sent to your registration email.</p>\n<p>Please take a note that unverified payouts will be automatically rejected in an hour after creation.</p>\n<p>Next is a description of the required request fields:</p>\n<ul>\n<li><p>:batch-withdrawal-id - payout id you received in <code>2. Create payout</code> method;</p>\n</li>\n<li><p>verification_code - 2fa code you received with your Google Auth app or via email;</p>\n</li>\n</ul>\n<p>In order to establish an automatic verification of payouts, you should switch 2FA through the application.<br />There are several libraries for different frameworks aimed on generating 2FA codes based on a secret key from your account settings, for example, Speakeasy for JavaScript.<br />We do not recommend to change any default settings.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>const 2faVerificationCode = speakeasy.totp({\n your_2fa_secret_key,\n encoding: 'base32',\n})\n\n</code></pre>","urlObject":{"path":["v1","payout",":batch-withdrawal-id","verify"],"host":["https://api.nowpayments.io"],"query":[],"variable":[{"description":{"content":"<p>Batch withdrawal ID of the batch you want to verify </p>\n","type":"text/plain"},"type":"any","value":null,"key":"batch-withdrawal-id"}]}},"response":[{"id":"6fa53d07-96e0-4220-93e8-81a3309e7376","name":"200","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","description":"(Required) Your authorization token","type":"text"},{"key":"x-api-key","value":"{{api-key}}","description":"(Required) Your NOWPayments API key","type":"text"},{"key":"Content-Type","value":"application/json","description":"(Required) Your payload has to be JSON object\n ","type":"text"}],"body":{"mode":"raw","raw":"{\n \"verification_code\": \"123456\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.nowpayments.io/v1/payout/:withdrawals-id/verify","protocol":"https","host":["api","nowpayments","io"],"path":["v1","payout",":withdrawals-id","verify"],"variable":[{"key":"withdrawals-id","value":"5000000191","description":"Batch withdrawal ID of the batch you want to verify"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"OK"}],"_postman_id":"889caa5d-87a9-48cc-8d80-500cb3a7654b"},{"name":"Get payout status","id":"80918f4e-daae-4bfc-9b14-bd5a0cc666d1","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"host":true,"user-agent":true,"accept":true,"accept-encoding":true,"connection":true}},"request":{"method":"GET","header":[{"key":"x-api-key","value":"{{api-key}}","description":"<p>(Required) Your NOWPayments API key</p>\n","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://api.nowpayments.io/v1/payout/:payout_id","description":"<p>Get the actual information about the payout. You need to provide the ID of the payout in the request.</p>\n<p>NOTE! You should make the get payout status request with the same API key that you used in the creat_payout request.</p>\n<p>Here is the list of available statuses:</p>\n<ul>\n<li>creating;</li>\n<li>processing;</li>\n<li>sending;</li>\n<li>finished;</li>\n<li>failed;</li>\n<li>rejected;</li>\n</ul>\n","urlObject":{"path":["v1","payout",":payout_id"],"host":["https://api.nowpayments.io"],"query":[],"variable":[{"description":{"content":"<p>Id of payout you want to request details for.</p>\n","type":"text/plain"},"type":"any","value":null,"key":"payout_id"}]}},"response":[{"id":"9c11c59d-2735-4800-906a-cf556e9ada1c","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"{{api-key}}","description":"(Required) Your NOWPayments API key","type":"text"}],"url":{"raw":"https://api.nowpayments.io/v1/payout/:payout_id","protocol":"https","host":["api","nowpayments","io"],"path":["v1","payout",":payout_id"],"variable":[{"key":"payout_id","value":"","description":"Id of payout you want to request details for."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"[\n {\n \"id\": \"<payout_id>\",\n \"address\": \"<payout_address>\",\n \"currency\": \"trx\",\n \"amount\": \"200\",\n \"batch_withdrawal_id\": \"<batchWithdrawalId>\",\n \"status\": \"WAITING\",\n \"extra_id\": null,\n \"hash\": null,\n \"error\": null,\n \"is_request_payouts\":false,\n \"ipn_callback_url\": null,\n \"unique_external_id\": null,\n \"payout_description\": null,\n \"created_at\": \"2020-11-12T17:06:12.791Z\",\n \"requested_at\": null,\n \"updated_at\": null\n }\n]"}],"_postman_id":"80918f4e-daae-4bfc-9b14-bd5a0cc666d1"},{"name":"List of payouts","id":"4e264a66-50fa-4df5-978d-cdae61372f00","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"{{api-key}}","description":"<p>(Required) Your NOWPayments API key</p>\n","type":"text"}],"url":"https://api.nowpayments.io/v1/payout?batch_id=123456789&status=sending&order_by=id&order=asc&date_from&date_to&limit=20&page=0","description":"<p>This endpoint allows you to get a list of your payouts.</p>\n<p>The list of available parameters:</p>\n<ul>\n<li><p>batch_id: batch ID of enlisted payouts;</p>\n</li>\n<li><p>status: the statuses of enlisted payouts;</p>\n</li>\n<li><p>order_by: can be id, batchId, dateCreated, dateRequested, dateUpdated, currency, status;</p>\n</li>\n<li><p>order: 'asc' or 'desc' order;</p>\n</li>\n<li><p>date_from: beginning date of the requested payouts;</p>\n</li>\n<li><p>date_to: ending date of the requested payouts;</p>\n</li>\n<li><p>limit: a number of results to show;</p>\n</li>\n<li><p>page: the current page;</p>\n</li>\n</ul>\n","urlObject":{"path":["v1","payout"],"host":["https://api.nowpayments.io"],"query":[{"key":"batch_id","value":"123456789"},{"key":"status","value":"sending"},{"key":"order_by","value":"id"},{"key":"order","value":"asc"},{"key":"date_from","value":null},{"key":"date_to","value":null},{"key":"limit","value":"20"},{"key":"page","value":"0"}],"variable":[]}},"response":[{"id":"55cd335a-0d4d-4009-8048-13a8c8fcee21","name":"List of payouts","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"{{api-key}}","description":"(Required) Your NOWPayments API key","type":"text"}],"url":{"raw":"?batch_id=123456789&status=sending&order_by=id&order=asc&date_from=&date_to=&limit=20&page=0","query":[{"key":"batch_id","value":"123456789","type":"text"},{"key":"status","value":"sending","type":"text"},{"key":"order_by","value":"id","type":"text"},{"key":"order","value":"asc","type":"text"},{"key":"date_from","value":"","type":"text"},{"key":"date_to","value":"","type":"text"},{"key":"limit","value":"20","type":"text"},{"key":"page","value":"0","type":"text"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n \"payouts\": [\n {\n \"id\": \"5000248325\",\n \"batch_withdrawal_id\": \"5000145498\",\n \"status\": \"FINISHED\",\n \"error\": null,\n \"currency\": \"trx\",\n \"amount\": \"94.088939\",\n \"address\": \"[payout address]\",\n \"extra_id\": null,\n \"hash\": \"[hash]\",\n \"ipn_callback_url\": null,\n \"payout_description\": null,\n \"is_request_payouts\": true,\n \"unique_external_id\": null,\n \"created_at\": \"2023-04-06T14:44:59.684Z\",\n \"requested_at\": \"2023-04-06T14:45:55.505Z\",\n \"updated_at\": \"2023-04-06T14:49:08.031Z\"\n },\n {\n \"id\": \"5000247307\",\n \"batch_withdrawal_id\": \"5000144539\",\n \"status\": \"FINISHED\",\n \"error\": null,\n \"currency\": \"trx\",\n \"amount\": \"10.000000\",\n \"address\": \"[payout address]\",\n \"extra_id\": null,\n \"hash\": \"[hash]\",\n \"ipn_callback_url\": null,\n \"payout_description\": null,\n \"is_request_payouts\": true,\n \"unique_external_id\": null,\n \"created_at\": \"2023-04-05T19:21:40.836Z\",\n \"requested_at\": \"2023-04-05T19:23:17.111Z\",\n \"updated_at\": \"2023-04-05T19:27:30.895Z\"\n }\n ]\n}"}],"_postman_id":"4e264a66-50fa-4df5-978d-cdae61372f00"},{"name":"Get minimal amount for withdrawal","id":"39b6869b-fd6f-453b-b271-ac1d0db7cac0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"{{api-key}}","description":"<p>(Required) Your NOWPayments API key</p>\n","type":"text"}],"url":"https://api.nowpayments.io/v1/payout-withdrawal/min-amount/:coin","description":"<p>This endpoint shows you current minimal amount for withdrawals.</p>\n<p>Parameters:</p>\n<p>:coin - ticker of the coin.</p>\n","urlObject":{"protocol":"https","path":["v1","payout-withdrawal","min-amount",":coin"],"host":["api","nowpayments","io"],"query":[],"variable":[{"type":"any","value":null,"key":"coin"}]}},"response":[{"id":"bf78fbc2-e749-474e-8555-7349435e1c9a","name":"Success","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"{{api-key}}","description":"(Required) Your NOWPayments API key","type":"text"}],"url":"https://api.nowpayments.io/v1/payout-withdrawal/min-amount/btc"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n \"success\": true,\n \"result\": 0.00002496\n}"}],"_postman_id":"39b6869b-fd6f-453b-b271-ac1d0db7cac0"},{"name":"Get withdrawal fee estimate","id":"4461aa48-10ca-4032-803c-ed460b19fec0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"{{api-key}}","description":"<p>(Required) Your NOWPayments API key</p>\n","type":"text"}],"url":"https://api.nowpayments.io/v1/payout/fee?currency=USDTTRC20&amount=500","description":"<p>This endpoint will show you the estimated amount of network fee for payout.</p>\n<p>Please note that:</p>\n<ul>\n<li><p>This endpoint will show you the fee estimate for the moment of the request is done. Fee itself is dynamic and may change over a brief moment of time.</p>\n</li>\n<li><p>The fee depends on the blockchain itself and its congestion. We cannot affect it in any way nor control or hold it.</p>\n</li>\n<li><p>The actual fee will be calcualated at the moment of payout processing. Please be aware that it can differ from estimate.</p>\n</li>\n</ul>\n","urlObject":{"path":["v1","payout","fee"],"host":["https://api.nowpayments.io"],"query":[{"description":{"content":"<p>The coin ticker of your payout </p>\n","type":"text/plain"},"key":"currency","value":"USDTTRC20"},{"description":{"content":"<p>The desired amount of your payout </p>\n","type":"text/plain"},"key":"amount","value":"500"}],"variable":[]}},"response":[{"id":"c325d1da-c2be-4a59-bfff-5845b8d995e4","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"{{api-key}}","description":"(Required) Your NOWPayments API key","type":"text"}],"url":{"raw":"https://api.nowpayments.io/v1/payout/fee?currency=USDTTRC20&amount=500","host":["https://api.nowpayments.io"],"path":["v1","payout","fee"],"query":[{"key":"currency","value":"USDTTRC20","description":"The coin ticker of your payout"},{"key":"amount","value":"500","description":"The desired amount of your payout"}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n \"currency\": \"USDTTRC20\",\n \"fee\": 1.32765969\n}"}],"_postman_id":"4461aa48-10ca-4032-803c-ed460b19fec0"},{"name":"Cancel a scheduled payout","id":"9ad9a1c7-a1ea-4ff8-b6cc-cea1d91649f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://api.nowpayments.io/v1/payout/w_id/cancel","description":"<p>This method allows you to <strong>cancel a scheduled payout</strong> that was previously created with the <strong><code>execute_at</code></strong> parameter. Only payouts that are scheduled in advance can be canceled using this endpoint. Once canceled, the payout will receive the status <strong><code>cancelled</code></strong>.</p>\n<p>Please note: You must specify the <strong>payout id</strong> of the individual payout you wish to cancel, not the batch id.</p>\n<p><strong>Params:</strong></p>\n<ul>\n<li>w_id - the unique identifier of the planned payout you want to cancel. This should be the ID of the <strong>individual payout</strong>, not the batch ID.</li>\n</ul>\n","urlObject":{"path":["v1","payout","w_id","cancel"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"1934d29b-a923-450c-8d81-0bfb0a781f41","name":"Cancel a scheduled payout","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n \"payout_id\": \"12345\"\n}\n"},"url":"https://api.nowpayments.io/v1/payout/w_id/cancel"},"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":""}],"_postman_id":"9ad9a1c7-a1ea-4ff8-b6cc-cea1d91649f3"}],"id":"5a1edec7-f187-409b-83cc-0c9e61f032c2","description":"<p>This set of methods will allow you to make payouts from your custody to unlimited number of wallets. Fast and secure.</p>\n<p>Recommended payouts requesting flow using API:</p>\n<ul>\n<li><p>Check if your payout address is valid using <strong>POST Validate address</strong> endpoint;</p>\n</li>\n<li><p>If it's valid, create a withdrawal using <strong>POST Create payout</strong> endpoint;</p>\n</li>\n<li><p>Verify your payout with 2fa (by default it's mandatory) using <strong>POST Verify payout endpoint</strong>;</p>\n</li>\n</ul>\n<p><strong>2FA automation:</strong></p>\n<p>Using the API you can automate 2fa by implementing the OTP generation library in your code and set it up in your dashboard. \"Dashboard\" - \"Account settings\" - \"Two step authentification\" - \"Use an app\"</p>\n<p><strong>Save the secret key and set it up in your favorite 2FA application as well, otherwise you won't be able to get access to your dashboard!</strong></p>\n<p><strong>Please note:</strong></p>\n<p>Payouts can be requested only using a whitelisted IP address, and to whitelisted wallet addresses. It's a security measure enabled for each partner account by default.</p>\n<p>You can whitelist both of these anytime in your NOWPayments personal account by visiting 'Whitelist' section in 'Settings'.</p>\n<p>For more information about whitelisting you can reach us at <a href=\"https://mailto:partners@nowpayments.io\">partners@nowpayments.io</a>.</p>\n<h3 id=\"scheduled-payouts-flow\">Scheduled payouts flow</h3>\n<p>This flow allows you to execute payouts at a specific time in the future. This feature is perfect for businesses that need to automate payments but require more control over the timing. Instead of initiating payouts immediately, you can set them to be processed at a later date, providing additional flexibility and efficiency.</p>\n<p><strong>How it works:</strong></p>\n<ul>\n<li><p>specify the exact date and time when the payout will be executed, in the format: <code>YYYY-MM-DDTHH:mm:ss.sssZ</code>. with the <strong>execute_at</strong> param (required for this flow). For example: <code>\"2026-02-29T10:35:00.000Z\"</code></p>\n</li>\n<li><p>specify the desired interval: currently, only <code>ONETIME</code> is supported. This indicates that the payout is a <strong>one-time</strong> event.</p>\n</li>\n</ul>\n<p>These parameters should be provided <strong>before</strong> the payout details like amount, currency, and address in the request payload (POST Create payout). </p>\n<p><strong>Key Features:</strong></p>\n<ul>\n<li><p><strong>E-mail notification</strong>: you will be notified <strong>24 hours before</strong> the scheduled payout via your registration email.</p>\n</li>\n<li><p><strong>Canceling a Payout</strong>: you can cancel a scheduled payout via the <code>POST /v1/payout/w_id/cancel</code> endpoint. The canceled payout will be marked with the status <code>cancelled</code>.</p>\n</li>\n<li><p><strong>Information in Dashboard</strong>: In the personal account dashboard, you will see the new parameter <strong>Scheduled Time</strong> for such payouts in the payout card.</p>\n</li>\n</ul>\n","_postman_id":"5a1edec7-f187-409b-83cc-0c9e61f032c2"},{"name":"Conversions","item":[{"name":"Create conversion","id":"54cdba27-a269-4d2e-9186-b35883f5e53e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","description":"<p>(Required) Your authorization token</p>\n","type":"text"},{"key":"Content-Type","value":"application/json","description":"<p>(Required) Your payload has to be JSON object\n </p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n \"amount\": 50,\n \"from_currency\": \"usdttrc20\",\n \"to_currency\": \"USDTERC20\"\n}"},"url":"https://api.nowpayments.io/v1/conversion","description":"<p>This endpoint allows you to create conversions within your custody account.</p>\n<p>Parameters:</p>\n<ul>\n<li>amount(required) - the amount of your conversion;</li>\n<li>from_currency(required) - the currency you're converting your funds from;</li>\n<li>to_currency(required) - the currency you're converting your funds to;</li>\n</ul>\n<p>The list of available statuses:</p>\n<ul>\n<li>WAITING - the conversion is created and waiting to be executed;</li>\n<li>PROCESSING - the conversion is in processing;</li>\n<li>FINISHED - the conversion is completed;</li>\n<li>REJECTED - for some reason, conversion failed;</li>\n</ul>\n","urlObject":{"path":["v1","conversion"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"3a48ea1c-64bb-4fe3-b4ac-64e4b5651a82","name":"200","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","description":"(Required) Your authorization token","type":"text"},{"key":"Content-Type","value":"application/json","description":"(Required) Your payload has to be JSON object\n ","type":"text"}],"body":{"mode":"raw","raw":"{\n \"amount\": \"50\",\n \"from_currency\": \"usdttrc20\",\n \"to_currency\": \"USDTERC20\"\n}"}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n \"result\": {\n \"id\": \"1327866232\",\n \"status\": \"WAITING\",\n \"from_currency\": \"USDTTRC20\",\n \"to_currency\": \"USDTERC20\",\n \"from_amount\": 50,\n \"to_amount\": 50,\n \"created_at\": \"2023-03-05T08:18:30.384Z\",\n \"updated_at\": \"2023-03-05T08:18:30.384Z\"\n }\n}"}],"_postman_id":"54cdba27-a269-4d2e-9186-b35883f5e53e"},{"name":"Get conversion status","id":"2dc71940-6b0f-4f2b-b1f1-a247df6b5e89","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","description":"<p>(Required) Your authorization token</p>\n","type":"text"}],"url":"https://api.nowpayments.io/v1/conversion/:conversion_id","description":"<p>This method allows you to check the status of a certain conversion.</p>\n","urlObject":{"path":["v1","conversion",":conversion_id"],"host":["https://api.nowpayments.io"],"query":[],"variable":[{"type":"any","value":null,"key":"conversion_id"}]}},"response":[{"id":"4010ed95-3c01-4972-a1eb-8103a041a72b","name":"200","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","description":"(Required) Your authorization token","type":"text"}],"url":{"raw":"https://api.nowpayments.io/v1/conversion/:conversion_id","host":["https://api.nowpayments.io"],"path":["v1","conversion",":conversion_id"],"variable":[{"key":"conversion_id","value":null}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n \"result\": {\n \"id\": \"1327866232\",\n \"status\": \"WAITING\",\n \"from_currency\": \"USDTTRC20\",\n \"to_currency\": \"USDTERC20\",\n \"from_amount\": 50,\n \"to_amount\": 50,\n \"created_at\": \"2023-03-05T08:18:30.384Z\",\n \"updated_at\": \"2023-03-05T08:41:30.201Z\"\n }\n}"}],"_postman_id":"2dc71940-6b0f-4f2b-b1f1-a247df6b5e89"},{"name":"Get list of conversions","id":"21427694-62d5-4918-9909-1a8cc64e5c7b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","description":"<p>(Required) Your authorization token</p>\n","type":"text"}],"url":"https://api.nowpayments.io/v1/conversion","description":"<p>This endpoint returns you the list of your conversions with the essential info for each one.</p>\n<p>You can query only for certain conversions using the following parameters to filter the result:</p>\n<ul>\n<li>id: int or array of int (optional) - filter by id of the conversion;</li>\n<li>status: string or array of string(optional) - filter conversions by certain status;</li>\n<li>from_currency: string(optional) - filter by initial currency of the conversion;</li>\n<li>to_currency: string(optional), - filter by outcome currency of the conversion;</li>\n<li>created_at_from: Date(optional), - filter by date;</li>\n<li>created_at_to: Date(optional) - filter by date;</li>\n<li>limit: (optional) default 10 - set the limit of shown results;</li>\n<li>offset: (optional) default 0;</li>\n<li>order: ASC / DESC (optional) - set the sorting order of provided data;</li>\n</ul>\n","urlObject":{"path":["v1","conversion"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"16069361-7a40-4c63-b0d1-13423ecba420","name":"200","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","description":"(Required) Your authorization token","type":"text"}]},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n \"result\": [\n {\n \"id\": \"148427051\",\n \"status\": \"REJECTED\",\n \"from_currency\": \"TRX\",\n \"to_currency\": \"ETH\",\n \"from_amount\": 0.1,\n \"to_amount\": null,\n \"created_at\": \"2023-02-10T13:01:52.521Z\",\n \"updated_at\": \"2023-02-10T14:46:22.419Z\"\n },\n {\n \"id\": \"2065223244\",\n \"status\": \"FINISHED\",\n \"from_currency\": \"TRX\",\n \"to_currency\": \"ETH\",\n \"from_amount\": 1,\n \"to_amount\": 0.000041013900000000004,\n \"created_at\": \"2023-02-10T16:38:10.675Z\",\n \"updated_at\": \"2023-02-10T16:39:30.308Z\"\n },\n ],\n \"count\": 2\n}\n"}],"_postman_id":"21427694-62d5-4918-9909-1a8cc64e5c7b"}],"id":"2b96786e-f1a2-4eaf-918e-275e6caa8207","description":"<p>Conversions API allows you to exchange coins within your custody user account.</p>\n","_postman_id":"2b96786e-f1a2-4eaf-918e-275e6caa8207"},{"name":"Customer management","item":[{"name":"Create new сustomer account","id":"983ced40-8f32-4f1a-a63c-f4d45b454928","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","description":"<p>(Required) Your authorization token</p>\n","type":"text"},{"key":"Content-Type","value":"application/json","description":"<p>(Required) Your payload has to be JSON object\n </p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n \"name\": \"test1\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/sub-partner/balance","description":"<p>This is a method to create an account for your customer. After this you'll be able to generate a payment(/v1/sub-partner/payment) or deposit(/v1/sub-partner/deposit) for topping up its balance as well as withdraw funds from it.</p>\n<p><strong>Body:</strong></p>\n<p>Name : a unique user identifier; you can use any string which doesn’t exceed 30 characters (but NOT an email)</p>\n","urlObject":{"path":["v1","sub-partner","balance"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"17844bed-cbfc-497d-b3a5-77b52991ec1a","name":"200","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","description":"(Required) Your authorization token","type":"text"},{"key":"Content-Type","value":"application/json","description":"(Required) Your payload has to be JSON object\n ","type":"text"}],"body":{"mode":"raw","raw":"{\n \"name\": \"test1\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/sub-partner/balance"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": {\n \"id\": \"1515573197\",\n \"name\": \"test1\",\n \"created_at\": \"2022-10-09T21:56:33.754Z\",\n \"updated_at\": \"2022-10-09T21:56:33.754Z\"\n }\n}"},{"id":"d8c5b189-9ff7-492c-9d20-149886311408","name":"400","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","description":"(Required) Your authorization token","type":"text"},{"key":"Content-Type","value":"application/json","description":"(Required) Your payload has to be JSON object\n ","type":"text"}],"body":{"mode":"raw","raw":"{\n \"name\": \"test1\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/sub-partner/balance"},"status":"Bad Request","code":400,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"status\": false,\n \"statusCode\": 400,\n \"code\": \"BAD_REQUEST\",\n \"message\": \"sub partner already exist\"\n}"}],"_postman_id":"983ced40-8f32-4f1a-a63c-f4d45b454928"},{"name":"Create recurring payments","id":"fb929d55-8844-42cf-affd-5b513e3b4146","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","description":"<p>(Required) Your authorization token</p>\n","type":"text"},{"key":"x-api-key","value":"{{api-key}}","description":"<p>(Required) Your NOWPayments API key</p>\n","type":"text"},{"key":"Content-Type","value":"application/json","description":"<p>(Required) Your payload has to be JSON object\n </p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n \"subscription_plan_id\": 76215585,\n \"sub_partner_id\": 111111,\n \"email\": \"your email\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/subscriptions","description":"<p>This method creates a recurring charge from a user account.</p>\n<p>The funds are transferred from a user account to your account when a new payment is generated or a paid period is coming to an end. The amount depends on the plan a customer chooses.<br />If you specify a particular currency your customer should pay in, and their account have enough funds stored in it, the amount will be charged automatically. In case a customer has other currency on their account, the equivalent sum will be charged.</p>\n<p>Here is the list of available statuses:</p>\n<ul>\n<li>WAITING_PAY - the payment is waiting for user's deposit;</li>\n<li>PAID - the payment is completed;</li>\n<li>PARTIALLY_PAID - the payment is completed, but the final amount is less than required for payment to be fully paid;</li>\n<li>EXPIRED - is being assigned to unpaid payment after 7 days of waiting;</li>\n</ul>\n<p>Please note:</p>\n<p>Subscribtion amount will be deducted from your sub-user balance in any currency available; i.e. if your subscribtion plan is set up for 100USDTTRC20/month, and your customer has 100USDCMATIC on balance, USDCMATIC will be deducted and transferred to your custody.</p>\n<p>You can convert it manually using our <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#2b96786e-f1a2-4eaf-918e-275e6caa8207\">conversions endpoints</a> through api or in your Custody dashboard.</p>\n","urlObject":{"path":["v1","subscriptions"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"f3a63baf-7a55-4d8e-9446-016e23b4ab27","name":"200","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","description":"(Required) Your authorization token","type":"text"},{"key":"x-api-key","value":"{{api-key}}","description":"(Required) Your NOWPayments API key","type":"text"},{"key":"Content-Type","value":"application/json","description":"(Required) Your payload has to be JSON object\n ","type":"text"}],"body":{"mode":"raw","raw":"{\n \"subscription_plan_id\": 76215585,\n \"sub_partner_id\": 111111\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/subscriptions"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": {\n \"id\": \"1515573197\",\n \"subscription_plan_id\": \"76215585\",\n \"is_active\": false,\n \"status\": \"WAITING_PAY\",\n \"expire_date\": \"2022-10-09T22:15:50.808Z\",\n \"subscriber\": {\n \"sub_partner_id\": \"111111\"\n },\n \"created_at\": \"2022-10-09T22:15:50.808Z\",\n \"updated_at\": \"2022-10-09T22:15:50.808Z\"\n }\n}"}],"_postman_id":"fb929d55-8844-42cf-affd-5b513e3b4146"},{"name":"Get customer balance","id":"a35e6883-bc14-4b9b-a4ac-ae6a85b49f39","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"x-api-key","value":"{{api-key}}","description":"<p>(Required) Your NOWPayments API key</p>\n","type":"text"}],"url":"https://api.nowpayments.io/v1/sub-partner/balance/:id","description":"<p>This request can be made only from a whitelisted IP.<br />If IP whitelisting is disabled, this request can be made by any user that has an API key.</p>\n<p>You can whitelist your IP address in the 'Whitelist IPs' section in 'Whitelist Settings'.</p>\n","urlObject":{"path":["v1","sub-partner","balance",":id"],"host":["https://api.nowpayments.io"],"query":[],"variable":[{"description":{"content":"<p>ID of sub-user for balance request</p>\n","type":"text/plain"},"type":"any","value":null,"key":"id"}]}},"response":[{"id":"fb20f607-02be-454c-bff7-51c3b5c5866b","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"{{api-key}}","description":"(Required) Your NOWPayments API key","type":"text"}],"url":"https://api.nowpayments.io/v1/sub-partner/balance/111394288"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": {\n \"subPartnerId\": \"111394288\",\n \"balances\": {\n \"usddtrc20\": {\n \"amount\": 0.7,\n \"pendingAmount\": 0\n },\n \"usdtbsc\": {\n \"amount\": 1.0001341847350678,\n \"pendingAmount\": 0\n }\n }\n }\n}"}],"_postman_id":"a35e6883-bc14-4b9b-a4ac-ae6a85b49f39"},{"name":"Get customers","id":"c15d7ca6-0934-4c4a-9be3-5382d15080ce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","description":"<p>(Required) Your authorization token</p>\n","type":"text"}],"url":"https://api.nowpayments.io/v1/sub-partner?id=111&offset=1&limit=10&order=DESC","description":"<p>This method returns the entire list of your customers.</p>\n","urlObject":{"path":["v1","sub-partner"],"host":["https://api.nowpayments.io"],"query":[{"description":{"content":"<p>int or array of int (optional)</p>\n","type":"text/plain"},"key":"id","value":"111"},{"description":{"content":"<p>(optional) default 0</p>\n","type":"text/plain"},"key":"offset","value":"1"},{"description":{"content":"<p>(optional) default 10</p>\n","type":"text/plain"},"key":"limit","value":"10"},{"description":{"content":"<p>ASC / DESC (optional) default ASC</p>\n","type":"text/plain"},"key":"order","value":"DESC"}],"variable":[]}},"response":[{"id":"5420d2d2-342a-4c8d-b2b1-87592ab8182b","name":"200","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","description":"(Required) Your authorization token","type":"text"}],"url":{"raw":"https://api.nowpayments.io/v1/sub-partner?id=111&offset=0&limit=10&order=DESC","host":["https://api.nowpayments.io"],"path":["v1","sub-partner"],"query":[{"key":"id","value":"111","description":"int or array of int (optional)"},{"key":"offset","value":"0","description":"(optional) default 0"},{"key":"limit","value":"10","description":"(optional) default 10"},{"key":"order","value":"DESC","description":"ASC / DESC (optional) default ASC"}]}},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": [\n {\n \"id\": \"111394288\",\n \"name\": \"test\",\n \"created_at\": \"2022-10-06T16:42:47.352Z\",\n \"updated_at\": \"2022-10-06T16:42:47.352Z\"\n },\n {\n \"id\": \"1515573197\",\n \"name\": \"test1\",\n \"created_at\": \"2022-10-09T21:56:33.754Z\",\n \"updated_at\": \"2022-10-09T21:56:33.754Z\"\n }\n ],\n \"count\": 2\n}"}],"_postman_id":"c15d7ca6-0934-4c4a-9be3-5382d15080ce"},{"name":"Get all transfers","id":"89d96de6-e8d2-47ad-9594-743917132af2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","description":"<p>(Required) Your authorization token</p>\n","type":"text"}],"url":"https://api.nowpayments.io/v1/sub-partner/transfers?id=111&status=CREATED&limit=10&offset=1&order=ASC","description":"<p>Returns the entire list of transfers created by your customers.</p>\n<p>The list of available statuses:</p>\n<ul>\n<li><p>CREATED - the transfer is being created;</p>\n</li>\n<li><p>WAITING - the transfer is waiting for payment;</p>\n</li>\n<li><p>FINISHED - the transfer is completed;</p>\n</li>\n<li><p>REJECTED - for some reason, transaction failed;</p>\n</li>\n</ul>\n","urlObject":{"path":["v1","sub-partner","transfers"],"host":["https://api.nowpayments.io"],"query":[{"description":{"content":"<p>int or array of int (optional)</p>\n","type":"text/plain"},"key":"id","value":"111"},{"description":{"content":"<p>string or array of string \n\"WAITING\"/\"CREATED\"/\"FINISHED\"/\"REJECTED\"\n(optional)</p>\n","type":"text/plain"},"key":"status","value":"CREATED"},{"description":{"content":"<p>(optional) default 10</p>\n","type":"text/plain"},"key":"limit","value":"10"},{"description":{"content":"<p>(optional) default 0</p>\n","type":"text/plain"},"key":"offset","value":"1"},{"description":{"content":"<p>ASC / DESC (optional) default ASC</p>\n","type":"text/plain"},"key":"order","value":"ASC"}],"variable":[]}},"response":[{"id":"4ce093bd-5f94-485b-ad26-e6893a8379af","name":"200","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","description":"(Required) Your authorization token","type":"text"}],"url":{"raw":"https://api.nowpayments.io{/v1/sub-partner/transfers?status=FINISHED&limit=10&offset=0&order=ASC","host":["https://api.nowpayments.io{"],"path":["v1","sub-partner","transfers"],"query":[{"key":"id","value":"111","description":"int or array of int (optional)","disabled":true},{"key":"status","value":"FINISHED","description":"string or array of string \n\"WAITING\"/\"CREATED\"/\"FINISHED\"/\"REJECTED\"\n(optional)"},{"key":"limit","value":"10","description":"(optional) default 10"},{"key":"offset","value":"0","description":"(optional) default 0"},{"key":"order","value":"ASC"}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": [\n {\n \"id\": \"111394288\",\n \"from_sub_id\": \"5209391548\",\n \"to_sub_id\": \"111394288\",\n \"status\": \"FINISHED\",\n \"created_at\": \"2022-10-09T18:53:21.975Z\",\n \"updated_at\": \"2022-10-09T18:55:00.696Z\",\n \"amount\": \"1\",\n \"currency\": \"usdtbsc\"\n },\n {\n \"id\": \"148427051\",\n \"from_sub_id\": \"111394288\",\n \"to_sub_id\": \"5209391548\",\n \"status\": \"FINISHED\",\n \"created_at\": \"2022-10-09T19:08:32.440Z\",\n \"updated_at\": \"2022-10-09T19:10:01.209Z\",\n \"amount\": \"1\",\n \"currency\": \"usdtbsc\"\n },\n {\n \"id\": \"1631380403\",\n \"from_sub_id\": \"5209391548\",\n \"to_sub_id\": \"111394288\",\n \"status\": \"FINISHED\",\n \"created_at\": \"2022-10-09T21:19:51.936Z\",\n \"updated_at\": \"2022-10-09T21:21:00.671Z\",\n \"amount\": \"2\",\n \"currency\": \"usdtbsc\"\n },\n {\n \"id\": \"1167886259\",\n \"from_sub_id\": \"5209391548\",\n \"to_sub_id\": \"111394288\",\n \"status\": \"FINISHED\",\n \"created_at\": \"2022-10-09T21:22:17.125Z\",\n \"updated_at\": \"2022-10-09T21:24:00.662Z\",\n \"amount\": \"2\",\n \"currency\": \"usdtbsc\"\n },\n {\n \"id\": \"48471014\",\n \"from_sub_id\": \"111394288\",\n \"to_sub_id\": \"5209391548\",\n \"status\": \"FINISHED\",\n \"created_at\": \"2022-10-09T21:25:29.231Z\",\n \"updated_at\": \"2022-10-09T21:27:00.676Z\",\n \"amount\": \"1\",\n \"currency\": \"usdtbsc\"\n },\n {\n \"id\": \"1304149238\",\n \"from_sub_id\": \"111394288\",\n \"to_sub_id\": \"5209391548\",\n \"status\": \"FINISHED\",\n \"created_at\": \"2022-10-09T21:54:57.713Z\",\n \"updated_at\": \"2022-10-09T21:56:01.056Z\",\n \"amount\": \"1\",\n \"currency\": \"usdtbsc\"\n },\n {\n \"id\": \"327209161\",\n \"from_sub_id\": \"111394288\",\n \"to_sub_id\": \"1515573197\",\n \"status\": \"FINISHED\",\n \"created_at\": \"2022-10-09T22:09:02.181Z\",\n \"updated_at\": \"2022-10-09T22:10:01.853Z\",\n \"amount\": \"1\",\n \"currency\": \"usdtbsc\"\n }\n ],\n \"count\": 7\n}"}],"_postman_id":"89d96de6-e8d2-47ad-9594-743917132af2"},{"name":"Get transfer","id":"3d2e9299-6fab-4851-8a3d-27b1f7e86768","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","description":"<p>(Required) Your authorization token</p>\n","type":"text"}],"url":"https://api.nowpayments.io/v1/sub-partner/transfer/:id","description":"<p>Get the actual information about the transfer. You need to provide the transfer ID in the request.</p>\n<p>The list of available statuses:</p>\n<ul>\n<li>CREATED - the transfer is being created;</li>\n<li>WAITING - the transfer is waiting for payment;</li>\n<li>FINISHED - the transfer is completed;</li>\n<li>REJECTED - for some reason, transaction failed;</li>\n</ul>\n","urlObject":{"path":["v1","sub-partner","transfer",":id"],"host":["https://api.nowpayments.io"],"query":[],"variable":[{"id":"d7086b4a-b4b4-4059-ae84-2d964bc6f513","type":"any","value":null,"key":"id"}]}},"response":[{"id":"1bbca5bb-6adf-461c-b655-20a20a7a4481","name":"200","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","description":"(Required) Your authorization token","type":"text"}],"url":{"raw":"https://api.nowpayments.io{/v1/sub-partner/transfer/:id","host":["https://api.nowpayments.io{"],"path":["v1","sub-partner","transfer",":id"],"variable":[{"key":"id","value":null}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": {\n \"id\": \"327209161\",\n \"from_sub_id\": \"111394288\",\n \"to_sub_id\": \"1515573197\",\n \"status\": \"FINISHED\",\n \"created_at\": \"2022-10-09T22:09:02.181Z\",\n \"updated_at\": \"2022-10-09T22:10:01.853Z\",\n \"amount\": \"1\",\n \"currency\": \"usdtbsc\"\n }\n}"}],"_postman_id":"3d2e9299-6fab-4851-8a3d-27b1f7e86768"},{"name":"Transfer","id":"e6b7f2f2-0990-4f3a-9945-31c9fd658874","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","description":"<p>(Required) Your authorization token</p>\n","type":"text"},{"key":"Content-Type","value":"application/json","description":"<p>(Required) Your payload has to be JSON object\n </p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n \"currency\": \"trx\",\n \"amount\": 0.3,\n \"from_id\": \"1111111\",\n \"to_id\": \"1111111\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/sub-partner/transfer","description":"<p>This method allows creating transfers between users' accounts.<br />You can check the transfer's status using <code>Get transfer</code> method.</p>\n<p>The list of available statuses:</p>\n<ul>\n<li>CREATED - the transfer is being created;</li>\n<li>WAITING - the transfer is waiting for payment;</li>\n<li>FINISHED - the transfer is completed;</li>\n<li>REJECTED - for some reason, transaction failed;</li>\n</ul>\n","urlObject":{"path":["v1","sub-partner","transfer"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"479cd606-266a-450f-9fd9-43e4fb87a384","name":"200","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","description":"(Required) Your authorization token","type":"text"},{"key":"Content-Type","value":"application/json","description":"(Required) Your payload has to be JSON object\n ","type":"text"}],"body":{"mode":"raw","raw":"{\n \"currency\": \"trx\",\n \"amount\": 0.3,\n \"from_id\": \"1111111\",\n \"to_id\": \"1111111\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io{/v1/sub-partner/transfer"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": {\n \"id\": \"327209161\",\n \"from_sub_id\": \"111394288\", //sub account\n \"to_sub_id\": \"1515573197\", //sub account\n \"status\": \"WAITING\",\n \"created_at\": \"2022-10-09T22:09:02.181Z\",\n \"updated_at\": \"2022-10-09T22:09:02.181Z\",\n \"amount\": \"1\",\n \"currency\": \"usdtbsc\"\n }\n}"}],"_postman_id":"e6b7f2f2-0990-4f3a-9945-31c9fd658874"},{"name":"Deposit with payment","id":"c06cb8a3-cdbf-4ed3-bbd6-e2f9118546ca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","description":"<p>(Required) Your authorization token</p>\n","type":"text"},{"key":"x-api-key","value":"{{api-key}}","description":"<p>(Required) Your NOWPayments API key</p>\n","type":"text"},{"key":"Content-Type","value":"application/json","description":"<p>(Required) Your payload has to be JSON object\n </p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n \"currency\": \"trx\",\n \"amount\": 0.3,\n \"sub_partner_id\": \"1631380403\",\n \"is_fixed_rate\": false,\n \"is_fee_paid_by_user\":false,\n \"ipn_callback_url\": \"https://...url\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/sub-partner/payment","description":"<p>This method allows you to top up a customer account with a general payment.<br />You can check the actual payment status by using GET 9 <code>Get payment status</code> request.</p>\n","urlObject":{"path":["v1","sub-partner","payment"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"e2453127-1caa-4516-b66b-3bbe0174a26a","name":"200","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","description":"(Required) Your authorization token","type":"text"},{"key":"x-api-key","value":"{{api-key}}","description":"(Required) Your NOWPayments API key","type":"text"},{"key":"Content-Type","value":"application/json","description":"(Required) Your payload has to be JSON object\n ","type":"text"}],"body":{"mode":"raw","raw":"{\n \"currency\": \"trx\",\n \"amount\": 50,\n \"sub_partner_id\": \"1631380403\",\n \"is_fixed_rate\": false,\n \"is_fee_paid_by_user\":false,\n \"ipn_callback_url\": \"https://...url\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/sub-partner/payment"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": {\n \"payment_id\": \"5250038861\",\n \"payment_status\": \"waiting\",\n \"pay_address\": \"TSszwFcbpkrZ2H85ZKsB6bEV5ffAv6kKai\",\n \"price_amount\": 50,\n \"price_currency\": \"trx\",\n \"pay_amount\": 50,\n \"amount_received\": 0.0272467,\n \"pay_currency\": \"trx\",\n \"order_id\": null,\n \"order_description\": null,\n \"ipn_callback_url\": null,\n \"created_at\": \"2022-10-11T10:49:27.414Z\",\n \"updated_at\": \"2022-10-11T10:49:27.414Z\",\n \"purchase_id\": \"5932573772\",\n \"smart_contract\": null,\n \"network\": \"trx\",\n \"network_precision\": null,\n \"time_limit\": null,\n \"burning_percent\": null,\n \"expiration_estimate_date\": \"2022-10-11T11:09:27.418Z\",\n \"is_fixed_rate\": false,\n \"is_fee_paid_by_user\": true,\n \"valid_until\": \"valid_until_timestamp\",\n \"type\": \"crypto2crypto\"\n }\n}"}],"_postman_id":"c06cb8a3-cdbf-4ed3-bbd6-e2f9118546ca"},{"name":"Get customer payments","id":"8ece4515-de02-455e-821c-4a3cade6936f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","description":"<p>(Required) Your authorization token</p>\n","type":"text"}],"url":"https://api.nowpayments.io/v1/sub-partner/payments","description":"<p>This method allows you to get the list of all payments generated for a particular customer.</p>\n<p>Request params:</p>\n<p>limit - amount of listed results<br />page - set the offset for listed results<br />id - filter by payment ID<br />pay_currency - filter by deposit currency<br />status - filter by status<br />sub_partner_id - filter by sub-partner ID;<br />date_from - filter by date (from);<br />date_to - filter by date (to);<br />orderBy - set the order for listed results (asc, desc);<br />sortBy - sort results by 'id', 'status', 'pay_currency', 'created_at', 'updated_at';</p>\n","urlObject":{"path":["v1","sub-partner","payments"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[],"_postman_id":"8ece4515-de02-455e-821c-4a3cade6936f"},{"name":"Deposit from your master account","id":"263ee92d-4bf1-460e-873b-c8acb55a8b68","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","description":"<p>(Required) Your authorization token</p>\n","type":"text"},{"key":"Content-Type","value":"application/json","description":"<p>(Required) Your payload has to be JSON object\n </p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n \"currency\": \"trx\",\n \"amount\": 0.3,\n \"sub_partner_id\": \"1631380403\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/sub-partner/deposit","description":"<p>This is a method for transferring funds from your master account to a customer's one.<br />The actual information about the transfer's status can be obtained via <code>Get transfer</code> method.</p>\n<p>The list of available statuses:</p>\n<ul>\n<li><p>CREATED - the transfer is being created;</p>\n</li>\n<li><p>WAITING - the transfer is waiting for payment;</p>\n</li>\n<li><p>FINISHED - the transfer is completed;</p>\n</li>\n<li><p>REJECTED - for some reason, transaction failed;</p>\n</li>\n</ul>\n","urlObject":{"path":["v1","sub-partner","deposit"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"e8db78e4-3f1d-4b70-8add-dc57a4b1add8","name":"200","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","description":"(Required) Your authorization token","type":"text"},{"key":"Content-Type","value":"application/json","description":"(Required) Your payload has to be JSON object\n ","type":"text"}],"body":{"mode":"raw","raw":"{\n \"currency\": \"usddtrc20\",\n \"amount\": 0.7,\n \"sub_partner_id\": \"111394288\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/sub-partner/deposit"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": {\n \"id\": \"19649354\",\n \"from_sub_id\": \"5209391548\", //main account\n \"to_sub_id\": \"111394288\", //sub account\n \"status\": \"WAITING\",\n \"created_at\": \"2022-10-11T10:01:33.323Z\",\n \"updated_at\": \"2022-10-11T10:01:33.323Z\",\n \"amount\": \"0.7\",\n \"currency\": \"usddtrc20\"\n }\n}"}],"_postman_id":"263ee92d-4bf1-460e-873b-c8acb55a8b68"},{"name":"Write off on your account","id":"acb1ccd3-bbe4-4a06-b964-c5cd24fbf504","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","description":"<p>(Required) Your authorization token</p>\n","type":"text"},{"key":"Content-Type","value":"application/json","description":"<p>(Required) Your payload has to be JSON object\n </p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n \"currency\": \"trx\",\n \"amount\": 0.3,\n \"sub_partner_id\": \"1631380403\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/sub-partner/write-off","description":"<p>With this method you can withdraw funds from a customer's account and transfer them to your master account.</p>\n<p>The actual status of the transaction can be checked with <code>Get transfer</code> method.</p>\n<p>The list of available statuses:</p>\n<ul>\n<li><p>CREATED - the transfer is being created;</p>\n</li>\n<li><p>WAITING - the transfer is waiting for payment;</p>\n</li>\n<li><p>FINISHED - the transfer is completed;</p>\n</li>\n<li><p>REJECTED - for some reason, transaction failed;</p>\n</li>\n</ul>\n","urlObject":{"path":["v1","sub-partner","write-off"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"2f16646a-4e64-474d-8e9a-d46628ae4e6a","name":"200","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","description":"(Required) Your authorization token","type":"text"},{"key":"Content-Type","value":"application/json","description":"(Required) Your payload has to be JSON object\n ","type":"text"}],"body":{"mode":"raw","raw":"{\n \"currency\": \"trx\",\n \"amount\": 0.3,\n \"sub_partner_id\": \"1631380403\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/sub-partner/write-off"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": {\n \"id\": \"19649354\",\n \"from_sub_id\": \"111394288\", //sub account\n \"to_sub_id\": \"5209391548\", //main account\n \"status\": \"WAITING\",\n \"created_at\": \"2022-10-11T10:01:33.323Z\",\n \"updated_at\": \"2022-10-11T10:01:33.323Z\",\n \"amount\": \"0.7\",\n \"currency\": \"usddtrc20\"\n }\n}"}],"_postman_id":"acb1ccd3-bbe4-4a06-b964-c5cd24fbf504"}],"id":"2b3f0024-d9de-4b91-9db4-d3655e4eded9","description":"<p>NOWPayments allows you to create deposit accounts for your users, enabling full-fledged crypto billing solution.</p>\n<p>Create a customer base through the API or your dashboard and control their balances: deposit or withdraw funds to/from your master account and transfer between users without any network fees.</p>\n","_postman_id":"2b3f0024-d9de-4b91-9db4-d3655e4eded9"},{"name":"Fiat payouts","item":[{"name":"Get available providers","id":"4192c920-2f11-4ecd-8418-781be360d96f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer *your jwt token*","type":"text"}],"url":"https://api.nowpayments.io/v1/fiat-payouts/providers","description":"<p>This endpoint shows you the list of available providers for your cashout. Choosing one of them is needed for further steps.</p>\n","urlObject":{"path":["v1","fiat-payouts","providers"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"fe3999de-7ef3-4b90-9fdf-6ab65a1e33f7","name":"Get available providers","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer *your jwt token*","type":"text"}],"url":"https://api.nowpayments.io/v1/fiat-payouts/providers"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n \"result\": [\n {\n \"code\": \"transfi\",\n \"name\": \"TransFi\",\n \"enabled\": true\n }\n ]\n}"}],"_postman_id":"4192c920-2f11-4ecd-8418-781be360d96f"},{"name":"Get available currencies","id":"cdc9473b-468a-4461-a1e2-c6dba059aa40","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer *your jwt token*","type":"text"}],"url":"https://api.nowpayments.io/v1/fiat-payouts/fiat-currencies","description":"<p>This endpoint shows you the list of available fiat currencies.</p>\n","urlObject":{"path":["v1","fiat-payouts","fiat-currencies"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"a7d76f1d-ff3b-4d9c-a651-0f2e3df28781","name":"Get available currencies","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer *your jwt token*","type":"text"}],"url":"https://api.nowpayments.io/v1/fiat-payouts/fiat-currencies"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n \"result\": [\n {\n \"provider\": \"transfi\",\n \"currencyCode\": \"EUR\",\n \"enabled\": true\n },\n {\n \"provider\": \"transfi\",\n \"currencyCode\": \"IDR\",\n \"enabled\": true\n },\n {\n \"provider\": \"transfi\",\n \"currencyCode\": \"INR\",\n \"enabled\": true\n },\n {\n \"provider\": \"transfi\",\n \"currencyCode\": \"MYR\",\n \"enabled\": true\n },\n {\n \"provider\": \"transfi\",\n \"currencyCode\": \"PHP\",\n \"enabled\": true\n }\n ]\n}"}],"_postman_id":"cdc9473b-468a-4461-a1e2-c6dba059aa40"},{"name":"Get crypto currencies","id":"693232ea-d8e2-4ba1-9063-9e3681227857","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"}],"url":"https://api.nowpayments.io/v1/fiat-payouts/crypto-currencies?provider¤cy","description":"<p>This endpoint shows you the list of available crypto currencies for your cashout.</p>\n","urlObject":{"path":["v1","fiat-payouts","crypto-currencies"],"host":["https://api.nowpayments.io"],"query":[{"key":"provider","value":null},{"key":"currency","value":null}],"variable":[]}},"response":[{"id":"e8b641bd-5db3-4782-a0b2-935a984f855b","name":"Get crypto currencies","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"}],"url":{"raw":"https://api.nowpayments.io/v1/fiat-payouts/crypto-currencies","host":["https://api.nowpayments.io"],"path":["v1","fiat-payouts","crypto-currencies"],"query":[{"key":"provider","value":null,"disabled":true},{"key":"currency","value":null,"disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n \"result\": [\n {\n \"provider\": \"transfi\",\n \"currencyCode\": \"USDC\",\n \"currencyNetwork\": \"eth\",\n \"enabled\": true\n },\n {\n \"provider\": \"transfi\",\n \"currencyCode\": \"USDT\",\n \"currencyNetwork\": \"btc\",\n \"enabled\": true\n },\n {\n \"provider\": \"transfi\",\n \"currencyCode\": \"USDTERC20\",\n \"currencyNetwork\": \"eth\",\n \"enabled\": true\n },\n {\n \"provider\": \"transfi\",\n \"currencyCode\": \"USDTTRC20\",\n \"currencyNetwork\": \"trx\",\n \"enabled\": true\n }\n ]\n}"}],"_postman_id":"693232ea-d8e2-4ba1-9063-9e3681227857"},{"name":"Get available payment methods","id":"e6e23332-4438-4956-82a9-d2818fa404ca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer *your jwt token*","type":"text"}],"url":"https://api.nowpayments.io/v1/fiat-payouts/payment-methods?provider¤cy","description":"<p>This endpoint shows you the list of available payment methods for chosen provider and currency.</p>\n","urlObject":{"path":["v1","fiat-payouts","payment-methods"],"host":["https://api.nowpayments.io"],"query":[{"key":"provider","value":null},{"key":"currency","value":null}],"variable":[]}},"response":[{"id":"e0fe7f83-709a-4266-a403-5b3df5a152d8","name":"Get available payment methods","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer *your jwt token*","type":"text"}],"url":{"raw":"https://api.nowpayments.io/v1/fiat-payouts/payment-methods?provider¤cy","host":["https://api.nowpayments.io"],"path":["v1","fiat-payouts","payment-methods"],"query":[{"key":"provider","value":null},{"key":"currency","value":null}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n \"result\": [\n {\n \"name\": \"Bdo Network Bank\",\n \"paymentCode\": \"ph_onb\",\n \"fields\": [\n {\n \"name\": \"accountNumber\",\n \"type\": \"String\",\n \"mandatory\": true,\n \"description\": \"Beneficiary account number\"\n }\n ],\n \"provider\": \"transfi\"\n },\n\n ************************\n more options here\n ************************\n\n {\n \"name\": \"Mega Intl Comml Bank Co Ltd\",\n \"paymentCode\": \"ph_mega\",\n \"fields\": [\n {\n \"name\": \"accountNumber\",\n \"type\": \"String\",\n \"mandatory\": true,\n \"description\": \"Beneficiary account number\"\n }\n ],\n \"provider\": \"transfi\"\n }\n ]\n}"}],"_postman_id":"e6e23332-4438-4956-82a9-d2818fa404ca"},{"name":"Create an account","id":"ae39f64f-9487-403a-91da-82b5d1104fb7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer *your jwt token*","type":"text"},{"key":"x-api-key","value":"{{api-key}}","type":"text"}],"body":{"mode":"raw","raw":"{\n \"currency\": \"php\",\n \"paymentCode\": \"php_aib\",\n \"fields\": {\n \"iban\": \"qwerty1234567890\",\n \"accountNumber\": \"1234567890\",\n \"country\": \"PH\"\n },\n \"provider\": \"transfi\",\n \"countryCode\": \"PH\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/fiat-payouts/account","description":"<p>With this endpoint you can submit your account information for further cashout in there.</p>\n<p>Please note that all parameters are mandatory and cannot be overwritten. Please be careful white submitting the data.</p>\n","urlObject":{"path":["v1","fiat-payouts","account"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"c2b92ac3-5443-45fb-910a-2bb18bdb8742","name":"Create an account","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer *your jwt token*","type":"text"},{"key":"x-api-key","value":"{{api-key}}","type":"text"}],"body":{"mode":"raw","raw":"{\n \"currency\": \"php\",\n \"paymentCode\": \"php_aib\",\n \"fields\": {\n \"iban\": \"qwerty1234567890\",\n \"accountNumber\": \"1234567890\",\n \"country\": \"PH\"\n },\n \"provider\": \"transfi\",\n \"countryCode\": \"PH\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/fiat-payouts/account"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n \"result\": {\n \"id\": \"4\",\n \"partnerId\": \"123456789\",\n \"provider\": \"transfi\",\n \"fiatCurrencyCode\": \"EUR\",\n \"countryCode\": \"GB\",\n \"providerAccountId\": \"1234567890\",\n \"providerAccountInfo\": {\n \"__v\": 0,\n \"_id\": \"1234567890\",\n \"logo\": \"https://transfiprdstorage.blob.core.windows.net/payment-method-logos/SepaInstant.svg\",\n \"paId\": \"1234567890\",\n \"type\": \"bank_transfer\",\n \"status\": \"active\",\n \"userId\": \"1234567890\",\n \"country\": \"GB\",\n \"currency\": \"EUR\",\n \"metaData\": {\n \"iban\": \"1234567890\",\n \"number\": \"1234567890\",\n \"vendor\": \"Sumsub\",\n \"swiftbic\": \"\"\n },\n \"createdAt\": \"2023-10-27T14:30:26.673Z\",\n \"updatedAt\": \"2023-10-27T14:30:26.673Z\",\n \"displayName\": \"Partner [email] EUR SEPA BANK account\",\n \"last4Digits\": \"1234\",\n \"paymentCode\": \"sepa_bank\",\n \"accountNumber\": \"1234567890\"\n },\n \"createdAt\": \"2023-10-27T14:30:27.445Z\",\n \"updatedAt\": \"2023-10-27T14:30:27.445Z\"\n }\n}"}],"_postman_id":"ae39f64f-9487-403a-91da-82b5d1104fb7"},{"name":"Get accounts","id":"413d59c7-bb4e-450f-8669-471153772920","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer *your jwt token*","type":"text"}],"url":"https://api.nowpayments.io/v1/fiat-payouts/accounts?id&provider¤cy&filter&limit&page&orderBy&sortBy&dateFrom&dateTo","description":"<p>This endpoint shows you a list of already submitted accounts you've created before.</p>\n<p>You can filter the output by any of presented parameters. These are completely optional for using this endpoint.</p>\n","urlObject":{"path":["v1","fiat-payouts","accounts"],"host":["https://api.nowpayments.io"],"query":[{"key":"id","value":null},{"key":"provider","value":null},{"key":"currency","value":null},{"key":"filter","value":null},{"key":"limit","value":null},{"key":"page","value":null},{"key":"orderBy","value":null},{"key":"sortBy","value":null},{"key":"dateFrom","value":null},{"key":"dateTo","value":null}],"variable":[]}},"response":[{"id":"24108867-bcbb-40cf-bef6-fbf50b0e4f3f","name":"Get accounts","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer *your jwt token*","type":"text"}],"url":{"raw":"https://api.nowpayments.io/v1/fiat-payouts/accounts","host":["https://api.nowpayments.io"],"path":["v1","fiat-payouts","accounts"],"query":[{"key":"id","value":null,"disabled":true},{"key":"provider","value":null,"disabled":true},{"key":"currency","value":null,"disabled":true},{"key":"filter","value":null,"disabled":true},{"key":"limit","value":null,"disabled":true},{"key":"page","value":null,"disabled":true},{"key":"orderBy","value":null,"disabled":true},{"key":"sortBy","value":null,"disabled":true},{"key":"dateFrom","value":null,"disabled":true},{"key":"dateTo","value":null,"disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n \"result\": {\n \"rows\": [\n {\n \"provider\": \"transfi\",\n \"fiatCurrencyCode\": \"PHP\",\n \"providerAccountInfo\": {\n \"currency\": \"PHP\",\n \"displayName\": \"Partner {email} PHP PH AIB account\",\n \"paymentCode\": \"ph_aib\",\n \"accountNumber\": \"111333214444555\"\n },\n \"createdAt\": \"2023-10-11T14:32:44.236Z\",\n \"updatedAt\": \"2023-10-11T14:32:44.236Z\"\n }\n ]\n }\n}"}],"_postman_id":"413d59c7-bb4e-450f-8669-471153772920"},{"name":"Request payout","id":"bedb52ef-9cae-4a85-a00c-56c35e783279","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer *your jwt token*","type":"text"},{"key":"x-api-key","value":"{{api-key}}","type":"text"}],"body":{"mode":"raw","raw":"{\n \"fiatCurrency\": \"eur\",\n \"cryptoCurrency\": \"bnbbsc\",\n \"amount\": 500,\n \"provider\": \"transfi\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/fiat-payouts","description":"<p>This endpoint is meant to request the payout.</p>\n<p>Available statuses for payout:</p>\n<p>CREATING - the payout has been created and queued to be executed soon ;</p>\n<p>CONVERTING - (for any payout currency except USDTTRC20) your payout is being converted to USDTTRC20;</p>\n<p>DEPOSITING - payout amount is being sent to chosen service provider for further processing ;</p>\n<p>PROCESSING - payout is being processied at this stage;</p>\n<p>FINISHED - payout has been executed;</p>\n<p>FAILED - something went wrong. Most likely you can find out what exactly by reading error parameter;</p>\n","urlObject":{"path":["v1","fiat-payouts"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"dbfe4cf7-5163-4a32-b404-813e6d549376","name":"Request payout","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer *your jwt token*","type":"text"},{"key":"x-api-key","value":"{{api-key}}","type":"text"}],"body":{"mode":"raw","raw":"{\n \"fiatCurrency\": \"eur\",\n \"cryptoCurrency\": \"bnbbsc\",\n \"amount\": 500,\n \"provider\": \"transfi\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/fiat-payouts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n \"result\": {\n \"id\": \"12345678909\",\n \"provider\": \"transfi\",\n \"requestId\": null,\n \"status\": \"NEW\",\n \"fiatCurrencyCode\": \"EUR\",\n \"fiatAmount\": null,\n \"cryptoCurrencyCode\": \"BNBBSC\",\n \"cryptoCurrencyAmount\": \"20\",\n \"fiatAccountCode\": \"sepa_bank\",\n \"fiatAccountNumber\": \"1234567890\",\n \"payoutDescription\": null,\n \"error\": null,\n \"createdAt\": \"2023-10-27T16:25:59.977Z\",\n \"updatedAt\": \"2023-10-27T16:25:59.977Z\"\n }\n}"}],"_postman_id":"bedb52ef-9cae-4a85-a00c-56c35e783279"},{"name":"Get payouts","id":"4efb2dd1-7050-47ae-b4e1-7607528cc3f7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer *your jwt token* ","type":"text"}],"url":"https://api.nowpayments.io/v1/fiat-payouts?id&provider&requestId&fiatCurrency&cryptoCurrency&status&filter&provider_payout_id&limit&page&orderBy&sortBy&dateFrom&dateTo","description":"<p>This enpoint shows you the list of previously created payouts from your account.</p>\n","urlObject":{"path":["v1","fiat-payouts"],"host":["https://api.nowpayments.io"],"query":[{"key":"id","value":null},{"key":"provider","value":null},{"key":"requestId","value":null},{"key":"fiatCurrency","value":null},{"key":"cryptoCurrency","value":null},{"key":"status","value":null},{"key":"filter","value":null},{"key":"provider_payout_id","value":null},{"key":"limit","value":null},{"key":"page","value":null},{"key":"orderBy","value":null},{"key":"sortBy","value":null},{"key":"dateFrom","value":null},{"key":"dateTo","value":null}],"variable":[]}},"response":[{"id":"85f014bb-417b-4bc0-acd1-50178b2d806c","name":"Get payouts","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer *your jwt token* ","type":"text"}],"url":{"raw":"https://api.nowpayments.io/v1/fiat-payouts","host":["https://api.nowpayments.io"],"path":["v1","fiat-payouts"],"query":[{"key":"id","value":null,"disabled":true},{"key":"provider","value":null,"disabled":true},{"key":"requestId","value":null,"disabled":true},{"key":"fiatCurrency","value":null,"disabled":true},{"key":"cryptoCurrency","value":null,"disabled":true},{"key":"status","value":null,"disabled":true},{"key":"filter","value":null,"disabled":true},{"key":"provider_payout_id","value":null,"disabled":true},{"key":"limit","value":null,"disabled":true},{"key":"page","value":null,"disabled":true},{"key":"orderBy","value":null,"disabled":true},{"key":"sortBy","value":null,"disabled":true},{"key":"dateFrom","value":null,"disabled":true},{"key":"dateTo","value":null,"disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n \"result\": {\n \"rows\": [\n {\n \"id\": \"12345678909\",\n \"provider\": \"transfi\",\n \"requestId\": \"1234567890\",\n \"status\": \"FINISHED\",\n \"fiatCurrencyCode\": \"EUR\",\n \"fiatAmount\": \"12.59\",\n \"cryptoCurrencyCode\": \"BNBBSC\",\n \"cryptoCurrencyAmount\": \"0.067\",\n \"fiatAccountCode\": \"sepa_bank\",\n \"fiatAccountNumber\": \"1234567890\",\n \"payoutDescription\": null,\n \"error\": null,\n \"createdAt\": \"2023-10-27T16:25:59.977Z\",\n \"updatedAt\": \"2023-10-27T16:25:59.977Z\"\n }\n ]\n }\n}"}],"_postman_id":"4efb2dd1-7050-47ae-b4e1-7607528cc3f7"}],"id":"f185492a-46a7-4649-84b5-5f88cdf3e5a3","description":"<p>This API docs section describes fiat payouts feature. Using this you can automate your cashout process just as your like.</p>\n<p>TransFi Offramp Currencies Supported: IDR, PHP, MYR, VND, JPY, THB, INR, EGP ,EUR (+SEPA)</p>\n<p>Wire transfers: USD, GBP, DKK, AUD, NZD</p>\n","_postman_id":"f185492a-46a7-4649-84b5-5f88cdf3e5a3"},{"name":"Recurring Payments API (Email Subscriptions feature)","item":[{"name":"Create plan","id":"badf8cc6-fce3-4cf8-ae8a-49f82907692c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","description":"<p>(Required) Your authorization token</p>\n","type":"text"},{"key":"Content-Type","value":"application/json","description":"<p>(Required) Your payload has to be JSON object\n </p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n \"title\": \"second sub plan\",\n \"interval_day\": 3,\n \"amount\": 1,\n \"currency\" : \"usd\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/subscriptions/plans","description":"<p>This is the method to create a Recurring Payments plan. Every plan has its unique ID which is required for generating separate payments.</p>\n<p>Available parameters:<br />\"title\": the name of your recurring payments plan;<br />\"interval_day\": recurring payments duration in days;<br />\"amount\" : amount of funds paid in fiat;<br />\"currency\" : fiat currency ticker used for price;<br />\"ipn_callback_url\" : your IPN_callback url;<br />\"\"\"success_url\"\" : url user gets redirected to in case payment is successful;<br />\"\"cancel_url\"\" : url user gets redirected to in case payment is cancelled;<br />\"partially_paid_url\" : url user gets redirected to in case payment is underpaid;</p>\n","urlObject":{"path":["v1","subscriptions","plans"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"46a682f0-306f-423f-aa65-b1c704dc5d65","name":"200","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","description":"(Required) Your authorization token","type":"text"},{"key":"Content-Type","value":"application/json","description":"(Required) Your payload has to be JSON object\n ","type":"text"}],"body":{"mode":"raw","raw":"{\n \"title\": \"second sub plan\",\n \"interval_day\": 1,\n \"amount\": 0.5,\n \"currency\" : \"usd\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/subscriptions/plans"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": {\n \"id\": \"1062307590\",\n \"title\": \"second sub plan\",\n \"interval_day\": \"1\",\n \"ipn_callback_url\": null,\n \"success_url\": null,\n \"cancel_url\": null,\n \"partially_paid_url\": null,\n \"amount\": 0.5,\n \"currency\": \"USD\",\n \"created_at\": \"2022-10-04T16:28:55.423Z\",\n \"updated_at\": \"2022-10-04T16:28:55.423Z\"\n }\n}"}],"_postman_id":"badf8cc6-fce3-4cf8-ae8a-49f82907692c"},{"name":"Update plan","id":"a55a203d-31b6-427d-b328-f5058b7e91eb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"PATCH","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer {{token}}","description":"<p>(Required) Your authorization token</p>\n","type":"text"},{"key":"Content-Type","value":"application/json","description":"<p>(Required) Your payload has to be JSON object\n </p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n \"title\": \"test plan\",\n \"interval_day\": 1,\n \"amount\": 2,\n \"currency\": \"usd\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/subscriptions/plans/:plan-id","description":"<p>This method allows you to add necessary changes to a created plan. They won’t affect users who have already paid; however, the changes will take effect when a new payment is to be made.</p>\n","urlObject":{"path":["v1","subscriptions","plans",":plan-id"],"host":["https://api.nowpayments.io"],"query":[],"variable":[{"id":"1691eb9d-6039-4c4d-9579-0c6d8cfe0768","type":"any","value":null,"key":"plan-id"}]}},"response":[{"id":"5a5ffae9-93ad-4ec5-8ca2-73d34983e4c9","name":"200","originalRequest":{"method":"PATCH","header":[{"key":"Authorization","value":"Bearer {{token}}","description":"(Required) Your authorization token","type":"text"},{"key":"Content-Type","value":"application/json","description":"(Required) Your payload has to be JSON object\n ","type":"text"}],"body":{"mode":"raw","raw":"{\n \"title\": \"test plan\",\n \"interval_day\": 1,\n \"amount\": 2,\n \"currency\": \"usd\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.nowpayments.io/v1/subscriptions/plans/:plan-id","host":["https://api.nowpayments.io"],"path":["v1","subscriptions","plans",":plan-id"],"variable":[{"key":"plan-id","value":"76215585"}]}},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": {\n \"id\": \"76215585\",\n \"title\": \"test plan\",\n \"interval_day\": \"1\",\n \"ipn_callback_url\": null,\n \"success_url\": null,\n \"cancel_url\": null,\n \"partially_paid_url\": null,\n \"amount\": 2,\n \"currency\": \"USD\",\n \"created_at\": \"2022-10-04T16:10:06.214Z\",\n \"updated_at\": \"2022-10-04T16:10:06.214Z\"\n }\n}"}],"_postman_id":"a55a203d-31b6-427d-b328-f5058b7e91eb"},{"name":"Get one plan","id":"6ffffaec-2ce7-4d72-910a-a06f27243cba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"{{api-key}}","description":"<p>(Required) Your NOWPayments API key</p>\n","type":"text"}],"url":"https://api.nowpayments.io/v1/subscriptions/plans/:plan-id","description":"<p>This method allows you to obtain information about your payment plan (you need to specify your payment plan id in the request).</p>\n","urlObject":{"path":["v1","subscriptions","plans",":plan-id"],"host":["https://api.nowpayments.io"],"query":[],"variable":[{"id":"2875d50d-3107-4500-9d04-022b092dfdfa","type":"any","value":null,"key":"plan-id"}]}},"response":[{"id":"a114bca7-950c-40b0-9e97-95656cde2025","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"{{api-key}}","description":"(Required) Your NOWPayments API key","type":"text"}],"url":{"raw":"https://api.nowpayments.io/v1/subscriptions/plans/:plan-id","host":["https://api.nowpayments.io"],"path":["v1","subscriptions","plans",":plan-id"],"variable":[{"key":"plan-id","value":"76215585"}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": {\n \"id\": \"76215585\",\n \"title\": \"test plan\",\n \"interval_day\": \"1\",\n \"ipn_callback_url\": null,\n \"success_url\": null,\n \"cancel_url\": null,\n \"partially_paid_url\": null,\n \"amount\": 2,\n \"currency\": \"USD\",\n \"created_at\": \"2022-10-04T16:10:06.214Z\",\n \"updated_at\": \"2022-10-04T16:10:06.214Z\"\n }\n}"},{"id":"235d5792-3474-4ce8-9970-e1033e88237e","name":"404","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"{{api-key}}","description":"(Required) Your NOWPayments API key","type":"text"}],"url":{"raw":"https://api.nowpayments.io/v1/subscriptions/plans/:plan-id","host":["https://api.nowpayments.io"],"path":["v1","subscriptions","plans",":plan-id"],"variable":[{"key":"plan-id","value":"11111"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"status\": false,\n \"statusCode\": 404,\n \"code\": \"NOT_FOUND\",\n \"message\": \"subscription plan not found\"\n}"}],"_postman_id":"6ffffaec-2ce7-4d72-910a-a06f27243cba"},{"name":"Get all plans","id":"730cde74-008f-446e-87eb-4f75652b8ea1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"x-api-key","value":"{{api-key}}","description":"<p>(Required) Your NOWPayments API key</p>\n","type":"text"}],"url":"https://api.nowpayments.io/v1/subscriptions/plans?limit=10&offset=3","description":"<p>This method allows you to obtain information about all the payment plans you’ve created.</p>\n","urlObject":{"path":["v1","subscriptions","plans"],"host":["https://api.nowpayments.io"],"query":[{"description":{"content":"<p>Number</p>\n","type":"text/plain"},"key":"limit","value":"10"},{"description":{"content":"<p>Number</p>\n","type":"text/plain"},"key":"offset","value":"3"}],"variable":[]}},"response":[{"id":"726428fe-91c2-4e00-bcc0-b7d6b6300e50","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"{{api-key}}","description":"(Required) Your NOWPayments API key","type":"text"}],"url":{"raw":"https://api.nowpayments.io/v1/subscriptions/plans?limit=10&offset=3","host":["https://api.nowpayments.io"],"path":["v1","subscriptions","plans"],"query":[{"key":"limit","value":"10"},{"key":"offset","value":"3"}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": [\n {\n \"id\": \"76215585\",\n \"title\": \"second sub plan\",\n \"interval_day\": \"3\",\n \"ipn_callback_url\": null,\n \"success_url\": null,\n \"cancel_url\": null,\n \"partially_paid_url\": null,\n \"amount\": 0.1,\n \"currency\": \"USD\",\n \"created_at\": \"2022-10-04T16:10:06.214Z\",\n \"updated_at\": \"2022-10-04T16:10:06.214Z\"\n },\n {\n \"id\": \"1062307590\",\n \"title\": \"second sub plan\",\n \"interval_day\": \"1\",\n \"ipn_callback_url\": null,\n \"success_url\": null,\n \"cancel_url\": null,\n \"partially_paid_url\": null,\n \"amount\": 0.5,\n \"currency\": \"USD\",\n \"created_at\": \"2022-10-04T16:28:55.423Z\",\n \"updated_at\": \"2022-10-04T16:28:55.423Z\"\n }\n ],\n \"count\": 2\n}"}],"_postman_id":"730cde74-008f-446e-87eb-4f75652b8ea1"},{"name":"Create an email subscription","id":"c9c85337-e571-47d7-9171-eda447b7b545","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","description":"<p>(Required) Your authorization token</p>\n","type":"text"},{"key":"x-api-key","value":"{{api-key}}","description":"<p>(Required) Your NOWPayments API key</p>\n","type":"text"},{"key":"Content-Type","value":"application/json","description":"<p>(Required) Your payload has to be JSON object\n </p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n \"subscription_plan_id\": 76215585,\n \"email\": \"test@example.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/subscriptions","description":"<p>This method allows you to send payment links to your customers via email. A day before the paid period ends, the customer receives a new letter with a new payment link.</p>\n<p><code>subscription_plan_id</code> - the ID of the payment plan your customer chooses; such params as the duration and amount will be defined by this ID;<br /><code>email</code> - your customer’s email to which the payment links will be sent;</p>\n","urlObject":{"path":["v1","subscriptions"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"0418e2f0-43ca-4705-bc3c-cb3cdcd3a8d5","name":"200","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","description":"(Required) Your authorization token","type":"text"},{"key":"x-api-key","value":"{{api-key}}","description":"(Required) Your NOWPayments API key","type":"text"},{"key":"Content-Type","value":"application/json","description":"(Required) Your payload has to be JSON object\n ","type":"text"}],"body":{"mode":"raw","raw":"{\n \"subscription_plan_id\": 76215585,\n \"email\": \"test@example.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/subscriptions"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": {\n \"id\": \"148427051\",\n \"subscription_plan_id\": \"76215585\",\n \"is_active\": false,\n \"status\": \"WAITING_PAY\",\n \"expire_date\": \"2022-10-10T13:46:18.476Z\",\n \"subscriber\": {\n \"email\": \"test@example.com\"\n },\n \"created_at\": \"2022-10-10T13:46:18.476Z\",\n \"updated_at\": \"2022-10-10T13:46:18.476Z\"\n }\n}"},{"id":"653b86fa-f8bf-496f-809e-4648774b714c","name":"400 (plan currency is fiat)","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","description":"(Required) Your authorization token","type":"text"},{"key":"x-api-key","value":"{{api-key}}","description":"(Required) Your NOWPayments API key","type":"text"},{"key":"Content-Type","value":"application/json","description":"(Required) Your payload has to be JSON object\n ","type":"text"}],"body":{"mode":"raw","raw":"{\n \"subscription_plan_id\": 76215585,\n \"email\": \"test@example.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/subscriptions"},"status":"Bad Request","code":400,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"status\": false,\n \"statusCode\": 400,\n \"code\": \"INVALID_REQUEST_PARAMS\",\n \"message\": \"For email subscriptions, only fiat currencies are available in plan\"\n}"}],"_postman_id":"c9c85337-e571-47d7-9171-eda447b7b545"},{"name":"Get many recurring payments","id":"5204eeb9-ea7e-48dd-97a1-5a2b2335b091","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"x-api-key","value":"{{api-key}}","description":"<p>(Required) Your NOWPayments API key</p>\n","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/subscriptions?status=PAID&subscription_plan_id=111394288&is_active=false&limit=10&offset=0","description":"<p>The method allows you to view the entire list of recurring payments filtered by payment status and/or payment plan id</p>\n<p>Available parameters:</p>\n<ul>\n<li>limit - the amount of shown items</li>\n<li>offset - setting the offset</li>\n<li>is_active - status of the recurring payment</li>\n<li>status - filter by status of recurring payment</li>\n<li>subscription_plan_id - filter results by subscription plan id.</li>\n</ul>\n<p>Here is the list of available statuses:</p>\n<ul>\n<li>WAITING_PAY - the payment is waiting for user's deposit;</li>\n<li>PAID - the payment is completed;</li>\n<li>PARTIALLY_PAID - the payment is completed, but the final amount is less than required for payment to be fully paid;</li>\n<li>EXPIRED - is being assigned to unpaid payment after 7 days of waiting;</li>\n</ul>\n","urlObject":{"path":["v1","subscriptions"],"host":["https://api.nowpayments.io"],"query":[{"description":{"content":"<p>\"WAITING_PAY\" / \"PAID\" / \"PARTIALLY_PAID\" / \"EXPIRED\"</p>\n","type":"text/plain"},"key":"status","value":"PAID"},{"key":"subscription_plan_id","value":"111394288"},{"description":{"content":"<p>true / false</p>\n","type":"text/plain"},"key":"is_active","value":"false"},{"key":"limit","value":"10"},{"key":"offset","value":"0"}],"variable":[]}},"response":[{"id":"3c5e88b5-f95d-4d8e-b1e3-0a1424e204f3","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"{{api-key}}","description":"(Required) Your NOWPayments API key","type":"text"}],"url":{"raw":"https://api.nowpayments.io/v1/subscriptions?status=PAID&subscription_plan_id=111394288&is_active=false&limit=10&offset=0","host":["https://api.nowpayments.io"],"path":["v1","subscriptions"],"query":[{"key":"status","value":"PAID","description":"\"WAITING_PAY\" / \"PAID\" / \"PARTIALLY_PAID\" / \"EXPIRED\""},{"key":"subscription_plan_id","value":"111394288"},{"key":"is_active","value":"false","description":"true / false"},{"key":"limit","value":"10"},{"key":"offset","value":"0"}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": [\n {\n \"id\": \"1515573197\",\n \"subscription_plan_id\": \"111394288\",\n \"is_active\": true,\n \"status\": \"PAID\",\n \"expire_date\": \"2022-10-11T00:02:00.025Z\",\n \"subscriber\": {\n \"sub_partner_id\": \"111394288\"\n },\n \"created_at\": \"2022-10-09T22:15:50.808Z\",\n \"updated_at\": \"2022-10-09T22:15:50.808Z\"\n },\n {\n \"id\": \"111394288\",\n \"subscription_plan_id\": \"111394288\",\n \"is_active\": false,\n \"status\": \"WAITING_PAY\",\n \"expire_date\": \"2022-10-07T16:46:00.910Z\",\n \"subscriber\": {\n \"email\": \"test@example.com\"\n },\n \"created_at\": \"2022-10-06T16:40:28.880Z\",\n \"updated_at\": \"2022-10-06T16:40:28.880Z\"\n }\n ],\n \"count\": 2\n}"}],"_postman_id":"5204eeb9-ea7e-48dd-97a1-5a2b2335b091"},{"name":"Get one recurring payment","id":"47ee73a3-41b7-4c00-a86b-c5d44f8391ce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"{{api-key}}","description":"<p>(Required) Your NOWPayments API key</p>\n","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/subscriptions/:sub_id","description":"<p>Get information about a particular recurring payment via its ID.</p>\n<p>Here is the list of available statuses:</p>\n<ul>\n<li>WAITING_PAY - the payment is waiting for user's deposit;</li>\n<li>PAID - the payment is completed;</li>\n<li>PARTIALLY_PAID - the payment is completed, but the final amount is less than required for payment to be fully paid;</li>\n<li>EXPIRED - is being assigned to unpaid payment after 7 days of waiting;</li>\n</ul>\n","urlObject":{"path":["v1","subscriptions",":sub_id"],"host":["https://api.nowpayments.io"],"query":[],"variable":[{"id":"d890b024-6fc0-4e5b-a28d-12d241cd5ef1","type":"any","value":null,"key":"sub_id"}]}},"response":[{"id":"3393756e-c8a2-4e73-b6ca-e656fc24a52c","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"{{api-key}}","description":"(Required) Your NOWPayments API key","type":"text"}],"url":{"raw":"https://api.nowpayments.io/v1/subscriptions/:sub_id","host":["https://api.nowpayments.io"],"path":["v1","subscriptions",":sub_id"],"variable":[{"key":"sub_id","value":"1515573197"}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": {\n \"id\": \"1515573197\",\n \"subscription_plan_id\": \"111394288\",\n \"is_active\": true,\n \"status\": \"PAID\",\n \"expire_date\": \"2022-10-12T00:02:00.025Z\",\n \"subscriber\": {\n \"sub_partner_id\": \"111394288\"\n },\n \"created_at\": \"2022-10-09T22:15:50.808Z\",\n \"updated_at\": \"2022-10-09T22:15:50.808Z\"\n }\n}"},{"id":"9ac74c7c-c5fe-4c13-97da-7b54a0f74407","name":"404","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"{{api-key}}","description":"(Required) Your NOWPayments API key","type":"text"}],"url":{"raw":"https://api.nowpayments.io/v1/subscriptions/:sub_id","host":["https://api.nowpayments.io"],"path":["v1","subscriptions",":sub_id"],"variable":[{"key":"sub_id","value":"11111111"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"status\": false,\n \"statusCode\": 404,\n \"code\": \"NOT_FOUND\",\n \"message\": \"subscription not found\"\n}"}],"_postman_id":"47ee73a3-41b7-4c00-a86b-c5d44f8391ce"},{"name":"Delete recurring payment","id":"e214711a-9226-4656-944e-910ecb824fee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{token}}","description":"<p>(Required) Your authorization token</p>\n","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/subscriptions/:sub_id","description":"<p>Completely removes a particular payment from the recurring payment plan.<br />You need to specify the payment plan id in the request.</p>\n","urlObject":{"path":["v1","subscriptions",":sub_id"],"host":["https://api.nowpayments.io"],"query":[],"variable":[{"id":"3e20cd63-0970-46c5-9c15-d84320b1e17a","type":"any","value":null,"key":"sub_id"}]}},"response":[{"id":"60fe1130-d4c4-4085-a420-a838cce2062a","name":"200","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{token}}","description":"(Required) Your authorization token","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.nowpayments.io/v1/subscriptions/:sub_id","host":["https://api.nowpayments.io"],"path":["v1","subscriptions",":sub_id"],"variable":[{"key":"sub_id","value":null}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": \"ok\"\n}"},{"id":"613ee3ed-503b-4ada-9b45-da4c28a30619","name":"404","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer {{token}}","description":"(Required) Your authorization token","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.nowpayments.io/v1/subscriptions/:sub_id","host":["https://api.nowpayments.io"],"path":["v1","subscriptions",":sub_id"],"variable":[{"key":"sub_id","value":"111111111"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"status\": false,\n \"statusCode\": 404,\n \"code\": \"NOT_FOUND\",\n \"message\": \"subscription not found\"\n}"}],"_postman_id":"e214711a-9226-4656-944e-910ecb824fee"}],"id":"7020882a-50d6-465f-bc9b-ff94909bc179","description":"<p>Streamline your workflows by assigning payments to your customers on a regular basis with NOWPayments.<br />This feature involves creating a plan for payments and individual recurring payments for each user.</p>\n<p>Be sure to consider the details of <strong>repeated and wrong-asset deposits from 'Repeated Deposits and Wrong-Asset Deposits' section</strong> when processing payments. </p>\n<p>First you need to create a Recurring Payment plan:</p>\n","_postman_id":"7020882a-50d6-465f-bc9b-ff94909bc179"},{"name":"Use cases","item":[{"name":"Casino","item":[{"name":"Auth and API status","item":[{"name":"Get API status","id":"292ec9a8-6526-4b79-9d3e-124d7fbc82aa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.nowpayments.io/v1/status","description":"<p>This is a method to get information about the current state of the API. If everything is OK, you will receive an \"OK\" message. Otherwise, you'll see some error.</p>\n","urlObject":{"path":["v1","status"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"ea9c51e4-16af-42cb-b0d7-fa20646d4dd5","name":"200","originalRequest":{"method":"GET","header":[],"url":"https://api.nowpayments.io/v1/status"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 18 Apr 2019 13:37:08 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"16"},{"key":"Connection","value":"keep-alive"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"Strict-Transport-Security","value":"max-age=15768000"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Vary","value":"Origin"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"4c97081ce9509700-FRA"}],"cookie":[],"responseTime":null,"body":"{\n \"message\": \"OK\"\n}"}],"_postman_id":"292ec9a8-6526-4b79-9d3e-124d7fbc82aa"},{"name":"Authentication","event":[{"listen":"test","script":{"id":"61ce614a-946b-4a7b-afc1-283db7e7bbd2","exec":["const schema = {"," properties: {"," token: {"," type: \"string\","," }"," },"," required: ["," 'token',"," ],","};","","try {"," const jsonData = pm.response.json();"," pm.collectionVariables.set(\"token\", jsonData?.token);","} catch (e) {"," console.warn(e);","}"],"type":"text/javascript"}}],"id":"1ba62f6a-665c-4944-b570-250a52cb1fda","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n \"email\": \"{{email}}\",\n \"password\": \"{{password}}\" \n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/auth","description":"<p>Authentication method for obtaining a JWT token. You should specify your email and password which you are using for signing in into dashboard.<br />JWT token will be required for creating a payout request. For security reasons, JWT tokens expire in 5 minutes.</p>\n","urlObject":{"path":["v1","auth"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"5db94b4f-b74e-42fd-94db-80d790f69de9","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n \"email\": \"your_email\",\n \"password\": \"your_password\" \n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/auth"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 13 Nov 2020 17:26:24 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"__cfduid=d100179a7e095065cf498b0371b423b7d1605288381; expires=Sun, 13-Dec-20 17:26:21 GMT; path=/; domain=.nowpayments.io; HttpOnly; SameSite=Lax"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"Strict-Transport-Security","value":"max-age=15768000"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Vary","value":"Origin"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"cf-request-id","value":"06643de5b900000022542c9000000001"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=%2BQThCuj3D5DwqKzV%2FPRt15xNxPJ2KeOa0YwY8JeNLCpOzK7WTa%2FAv1csNcLl2Q2ZUnQEt4ITZdXfizJUafHl1f9G3F%2BENJmd%2FOe3NKxoFmN5Cjo%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"5f1a3282cac70022-DME"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjU4MjYyNTkxMTUiLCJpYXQiOjE2MDUyODgzODQsImV4cCI6MTYwNTI4ODY4NH0.bk8B5AjoTt8Qfm1zHJxutAtgaTGW-2j67waGQ2DUHUI\"\n}"}],"_postman_id":"1ba62f6a-665c-4944-b570-250a52cb1fda"}],"id":"f809485f-274d-41e2-a789-fddd1cfd0f12","description":"<p>This set of methods allows you to check API availability and get a JWT token which is requires as a header for some other methods.</p>\n","_postman_id":"f809485f-274d-41e2-a789-fddd1cfd0f12"},{"name":"Custody","item":[{"name":"Create new user account","id":"55efb969-ceb5-48d7-839d-4677b2e53cad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n \"name\": \"test1\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/sub-partner/balance","description":"<p>This is a method to create an account for your user. After this you'll be able to generate a payment(/v1/sub-partner/payment) or deposit(/v1/sub-partner/deposit) for topping up its balance as well as withdraw funds from it.</p>\n<p>You can integrate this endpoint into the registration process on your service so upon registration, players will already have dedicated NOWPayments balance as your sub-user.</p>\n<p><strong>Body:</strong></p>\n<p>Name : a unique user identifier; you can use any string which doesn’t exceed 30 characters (but NOT an email)</p>\n","urlObject":{"path":["v1","sub-partner","balance"],"host":["https://api.nowpayments.io"],"query":[{"disabled":true,"key":"","value":null}],"variable":[]}},"response":[{"id":"b2150366-09d8-4fd5-852c-13f91a7732f6","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n \"name\": \"test1\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/sub-partner/balance"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": {\n \"id\": \"1515573197\",\n \"name\": \"test1\",\n \"created_at\": \"2022-10-09T21:56:33.754Z\",\n \"updated_at\": \"2022-10-09T21:56:33.754Z\"\n }\n}"},{"id":"695f63a4-adc1-4b7b-a361-cc2356482473","name":"400","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n \"name\": \"test1\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/sub-partner/balance"},"status":"Bad Request","code":400,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"status\": false,\n \"statusCode\": 400,\n \"code\": \"BAD_REQUEST\",\n \"message\": \"sub partner already exist\"\n}"}],"_postman_id":"55efb969-ceb5-48d7-839d-4677b2e53cad"},{"name":"Get user balance","id":"2ad68331-5d59-4da3-98d8-501979d16569","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"url":"https://api.nowpayments.io/v1/sub-partner/balance/:id","description":"<p>With this endpoint you can get a certain user's balance to incorporate it in your player's dashboard.</p>\n<p>This request can be made only from a whitelisted IP.<br />If IP whitelisting is disabled, this request can be made by any user that has an API key.</p>\n<p>Please note: your server IP addresses should be whitelisted, NOT players' or your ones.</p>\n","urlObject":{"path":["v1","sub-partner","balance",":id"],"host":["https://api.nowpayments.io"],"query":[],"variable":[{"id":"b50dea8e-1a0a-45c1-8052-fdfb32468ae3","type":"any","value":null,"key":"id"}]}},"response":[{"id":"ff7cc9e0-b24a-4e04-8892-52eb077e0e5b","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"url":{"raw":"https://api.nowpayments.io/v1/sub-partner/balance/:id","host":["https://api.nowpayments.io"],"path":["v1","sub-partner","balance",":id"],"variable":[{"key":"id","value":null}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": {\n \"subPartnerId\": \"111394288\",\n \"balances\": {\n \"usddtrc20\": {\n \"amount\": 0.7,\n \"pendingAmount\": 0\n },\n \"usdtbsc\": {\n \"amount\": 1.0001341847350678,\n \"pendingAmount\": 0\n }\n }\n }\n}"}],"_postman_id":"2ad68331-5d59-4da3-98d8-501979d16569"},{"name":"Get users","id":"51d56184-67d0-486a-8c02-c2135ab89332","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"}],"url":"https://api.nowpayments.ioo/v1/sub-partner?id=111&offset=1&limit=10&order=DESC","description":"<p>This method returns the entire list of your users.</p>\n","urlObject":{"path":["v1","sub-partner"],"host":["https://api.nowpayments.ioo"],"query":[{"description":{"content":"<p>int or array of int (optional)</p>\n","type":"text/plain"},"key":"id","value":"111"},{"description":{"content":"<p>(optional) default 0</p>\n","type":"text/plain"},"key":"offset","value":"1"},{"description":{"content":"<p>(optional) default 10</p>\n","type":"text/plain"},"key":"limit","value":"10"},{"description":{"content":"<p>ASC / DESC (optional) default ASC</p>\n","type":"text/plain"},"key":"order","value":"DESC"}],"variable":[]}},"response":[{"id":"ec040763-cad9-4cb1-abd8-0382381a0efe","name":"200","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.nowpayments.ioo/v1/sub-partner?offset=0&limit=10&order=DESC","host":["https://api.nowpayments.ioo"],"path":["v1","sub-partner"],"query":[{"key":"id","value":"111","description":"int or array of int (optional)","disabled":true},{"key":"offset","value":"0","description":"(optional) default 0"},{"key":"limit","value":"10","description":"(optional) default 10"},{"key":"order","value":"DESC","description":"ASC / DESC (optional) default ASC"}]}},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": [\n {\n \"id\": \"111394288\",\n \"name\": \"test\",\n \"created_at\": \"2022-10-06T16:42:47.352Z\",\n \"updated_at\": \"2022-10-06T16:42:47.352Z\"\n },\n {\n \"id\": \"1515573197\",\n \"name\": \"test1\",\n \"created_at\": \"2022-10-09T21:56:33.754Z\",\n \"updated_at\": \"2022-10-09T21:56:33.754Z\"\n }\n ],\n \"count\": 2\n}"}],"_postman_id":"51d56184-67d0-486a-8c02-c2135ab89332"},{"name":"Get all transfers","id":"5dc62f8c-e4b8-460b-878a-339b09944e4b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer *your_jwt_token* ","type":"text"}],"url":"https://api.nowpayments.io/v1/sub-partner/transfers?id=111&status=CREATED&limit=10&offset=1&order=ASC","description":"<p>Returns the entire list of transfers created by your users.</p>\n<p>The list of available statuses:</p>\n<ul>\n<li>CREATED - the transfer is being created;</li>\n<li>WAITING - the transfer is waiting for payment;</li>\n<li>FINISHED - the transfer is completed;</li>\n<li>REJECTED - for some reason, transaction failed;</li>\n</ul>\n","urlObject":{"path":["v1","sub-partner","transfers"],"host":["https://api.nowpayments.io"],"query":[{"description":{"content":"<p>int or array of int (optional)</p>\n","type":"text/plain"},"key":"id","value":"111"},{"description":{"content":"<p>string or array of string \n\"WAITING\"/\"CREATED\"/\"FINISHED\"/\"REJECTED\"\n(optional)</p>\n","type":"text/plain"},"key":"status","value":"CREATED"},{"description":{"content":"<p>(optional) default 10</p>\n","type":"text/plain"},"key":"limit","value":"10"},{"description":{"content":"<p>(optional) default 0</p>\n","type":"text/plain"},"key":"offset","value":"1"},{"description":{"content":"<p>ASC / DESC (optional) default ASC</p>\n","type":"text/plain"},"key":"order","value":"ASC"}],"variable":[]}},"response":[{"id":"e04d36db-eda1-42fe-9075-a7c4831106c8","name":"200","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.nowpayments.io/v1/sub-partner/transfers?status=FINISHED&limit=10&offset=0&order=ASC","host":["https://api.nowpayments.io"],"path":["v1","sub-partner","transfers"],"query":[{"key":"id","value":"111","description":"int or array of int (optional)","disabled":true},{"key":"status","value":"FINISHED","description":"string or array of string \n\"WAITING\"/\"CREATED\"/\"FINISHED\"/\"REJECTED\"\n(optional)"},{"key":"limit","value":"10","description":"(optional) default 10"},{"key":"offset","value":"0","description":"(optional) default 0"},{"key":"order","value":"ASC","description":"ASC / DESC (optional) default ASC"}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": [\n {\n \"id\": \"111394288\",\n \"from_sub_id\": \"5209391548\",\n \"to_sub_id\": \"111394288\",\n \"status\": \"FINISHED\",\n \"created_at\": \"2022-10-09T18:53:21.975Z\",\n \"updated_at\": \"2022-10-09T18:55:00.696Z\",\n \"amount\": \"1\",\n \"currency\": \"usdtbsc\"\n },\n {\n \"id\": \"148427051\",\n \"from_sub_id\": \"111394288\",\n \"to_sub_id\": \"5209391548\",\n \"status\": \"FINISHED\",\n \"created_at\": \"2022-10-09T19:08:32.440Z\",\n \"updated_at\": \"2022-10-09T19:10:01.209Z\",\n \"amount\": \"1\",\n \"currency\": \"usdtbsc\"\n },\n {\n \"id\": \"1631380403\",\n \"from_sub_id\": \"5209391548\",\n \"to_sub_id\": \"111394288\",\n \"status\": \"FINISHED\",\n \"created_at\": \"2022-10-09T21:19:51.936Z\",\n \"updated_at\": \"2022-10-09T21:21:00.671Z\",\n \"amount\": \"2\",\n \"currency\": \"usdtbsc\"\n },\n {\n \"id\": \"1167886259\",\n \"from_sub_id\": \"5209391548\",\n \"to_sub_id\": \"111394288\",\n \"status\": \"FINISHED\",\n \"created_at\": \"2022-10-09T21:22:17.125Z\",\n \"updated_at\": \"2022-10-09T21:24:00.662Z\",\n \"amount\": \"2\",\n \"currency\": \"usdtbsc\"\n },\n {\n \"id\": \"48471014\",\n \"from_sub_id\": \"111394288\",\n \"to_sub_id\": \"5209391548\",\n \"status\": \"FINISHED\",\n \"created_at\": \"2022-10-09T21:25:29.231Z\",\n \"updated_at\": \"2022-10-09T21:27:00.676Z\",\n \"amount\": \"1\",\n \"currency\": \"usdtbsc\"\n },\n {\n \"id\": \"1304149238\",\n \"from_sub_id\": \"111394288\",\n \"to_sub_id\": \"5209391548\",\n \"status\": \"FINISHED\",\n \"created_at\": \"2022-10-09T21:54:57.713Z\",\n \"updated_at\": \"2022-10-09T21:56:01.056Z\",\n \"amount\": \"1\",\n \"currency\": \"usdtbsc\"\n },\n {\n \"id\": \"327209161\",\n \"from_sub_id\": \"111394288\",\n \"to_sub_id\": \"1515573197\",\n \"status\": \"FINISHED\",\n \"created_at\": \"2022-10-09T22:09:02.181Z\",\n \"updated_at\": \"2022-10-09T22:10:01.853Z\",\n \"amount\": \"1\",\n \"currency\": \"usdtbsc\"\n }\n ],\n \"count\": 7\n}"}],"_postman_id":"5dc62f8c-e4b8-460b-878a-339b09944e4b"},{"name":"Get transfer","id":"db71a968-6ab4-4bf1-aeea-010923ca3308","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer *your_jwt_token* ","type":"text"}],"url":"https://api.nowpayments.io/v1/sub-partner/transfer/:id","description":"<p>Get the actual information about certain transfer. You need to provide the transfer ID in the request.</p>\n<p>The list of available statuses:</p>\n<ul>\n<li>CREATED - the transfer is being created;</li>\n<li>WAITING - the transfer is waiting for payment;</li>\n<li>FINISHED - the transfer is completed;</li>\n<li>REJECTED - for some reason, transaction failed;</li>\n</ul>\n","urlObject":{"path":["v1","sub-partner","transfer",":id"],"host":["https://api.nowpayments.io"],"query":[],"variable":[{"id":"d7086b4a-b4b4-4059-ae84-2d964bc6f513","type":"any","value":null,"key":"id"}]}},"response":[{"id":"ecac7be3-350f-48da-b40f-4f4947ad7222","name":"200","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.nowpayments.io/v1/sub-partner/transfer/:id","host":["https://api.nowpayments.io"],"path":["v1","sub-partner","transfer",":id"],"variable":[{"key":"id","value":"327209161"}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": {\n \"id\": \"327209161\",\n \"from_sub_id\": \"111394288\",\n \"to_sub_id\": \"1515573197\",\n \"status\": \"FINISHED\",\n \"created_at\": \"2022-10-09T22:09:02.181Z\",\n \"updated_at\": \"2022-10-09T22:10:01.853Z\",\n \"amount\": \"1\",\n \"currency\": \"usdtbsc\"\n }\n}"}],"_postman_id":"db71a968-6ab4-4bf1-aeea-010923ca3308"},{"name":"Deposit with payment","id":"ba7daaf4-8bc7-4c19-86b5-0a99b633faf8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[{"key":"x-api-key","value":"{{x-api-key}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n \"currency\": \"trx\",\n \"amount\": 0.3,\n \"sub_partner_id\": \"1631380403\",\n \"fixed_rate\": false\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/sub-partner/payment","description":"<p>It will work as general white-labeled payment directly into user balance. You only need to show the user required for making a deposit information using the response of that endpoint.</p>\n<p>This method allows you to top up a user account with a general payment.<br />You can check the actual payment status by using GET 9 <code>Get payment status</code> request.</p>\n","urlObject":{"path":["v1","sub-partner","payment"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"ff3ba19a-f3bc-40cc-b042-3bf7f051d25a","name":"Deposit with payment","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"{{x-api-token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n \"currency\": \"trx\",\n \"amount\": 50,\n \"sub_partner_id\": \"1631380403\",\n \"fixed_rate\": false\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/sub-partner/payment"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": {\n \"payment_id\": \"5250038861\",\n \"payment_status\": \"waiting\",\n \"pay_address\": \"TSszwFcbpkrZ2H85ZKsB6bEV5ffAv6kKai\",\n \"price_amount\": 50,\n \"price_currency\": \"trx\",\n \"pay_amount\": 50,\n \"amount_received\": 0.0272467,\n \"pay_currency\": \"trx\",\n \"order_id\": null,\n \"order_description\": null,\n \"ipn_callback_url\": null,\n \"created_at\": \"2022-10-11T10:49:27.414Z\",\n \"updated_at\": \"2022-10-11T10:49:27.414Z\",\n \"purchase_id\": \"5932573772\",\n \"smart_contract\": null,\n \"network\": \"trx\",\n \"network_precision\": null,\n \"time_limit\": null,\n \"burning_percent\": null,\n \"expiration_estimate_date\": \"2022-10-11T11:09:27.418Z\",\n \"valid_until\": \"valid_until_timestamp\",\n \"type\": \"crypto2crypto\"\n }\n}"}],"_postman_id":"ba7daaf4-8bc7-4c19-86b5-0a99b633faf8"},{"name":"Deposit from your master balance","id":"6ad9081d-6685-437a-9496-460d1cd8c860","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[{"key":"x-api-key","value":"{{x-api-token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n \"currency\": \"trx\",\n \"amount\": 0.3,\n \"sub_partner_id\": \"1631380403\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/sub-partner/deposit","description":"<p>This is a method for transferring funds from your master account to a user's one.<br />The actual information about the transfer's status can be obtained via <code>Get transfer</code> method.</p>\n<p>The list of available statuses:</p>\n<ul>\n<li>CREATED - the transfer is being created;</li>\n<li>WAITING - the transfer is waiting for payment;</li>\n<li>FINISHED - the transfer is completed;</li>\n<li>REJECTED - for some reason, transaction failed;</li>\n</ul>\n","urlObject":{"path":["v1","sub-partner","deposit"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"ef3c1467-3cef-4ef0-9535-d6e37744fdc7","name":"200","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"{{x-api-token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n \"currency\": \"usddtrc20\",\n \"amount\": 0.7,\n \"sub_partner_id\": \"111394288\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/sub-partner/deposit"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": {\n \"id\": \"19649354\",\n \"from_sub_id\": \"5209391548\", //main account\n \"to_sub_id\": \"111394288\", //sub account\n \"status\": \"WAITING\",\n \"created_at\": \"2022-10-11T10:01:33.323Z\",\n \"updated_at\": \"2022-10-11T10:01:33.323Z\",\n \"amount\": \"0.7\",\n \"currency\": \"usddtrc20\"\n }\n}"}],"_postman_id":"6ad9081d-6685-437a-9496-460d1cd8c860"},{"name":"Write off on your account","id":"b976b1c0-ba2c-4e9d-ae51-3befd6676654","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n \"currency\": \"trx\",\n \"amount\": 0.3,\n \"sub_partner_id\": \"1631380403\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/sub-partner/write-off","description":"<p>With this method you can withdraw funds from a user's account and transfer them to your master account.</p>\n<p>The actual status of the transaction can be checked with <code>Get transfer</code> method.</p>\n<p>The list of available statuses:</p>\n<ul>\n<li>CREATED - the transfer is being created;</li>\n<li>WAITING - the transfer is waiting for payment;</li>\n<li>FINISHED - the transfer is completed;</li>\n<li>REJECTED - for some reason, transaction failed;</li>\n</ul>\n","urlObject":{"path":["v1","sub-partner","write-off"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"99710282-513d-4672-b947-a07af5e6fad6","name":"200","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"{{x-api-token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n \"currency\": \"trx\",\n \"amount\": 0.3,\n \"sub_partner_id\": \"1631380403\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/sub-partner/write-off"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": {\n \"id\": \"19649354\",\n \"from_sub_id\": \"111394288\", //sub account\n \"to_sub_id\": \"5209391548\", //main account\n \"status\": \"WAITING\",\n \"created_at\": \"2022-10-11T10:01:33.323Z\",\n \"updated_at\": \"2022-10-11T10:01:33.323Z\",\n \"amount\": \"0.7\",\n \"currency\": \"usddtrc20\"\n }\n}"}],"_postman_id":"b976b1c0-ba2c-4e9d-ae51-3befd6676654"}],"id":"d00862f6-1140-47a7-a4be-e3ac1c1094ad","description":"<p>This section describes our custody feature.</p>\n<p>If you prefer, you can set up a full-fledged billing solution. Our API allows you to create user accounts for your players with dedicated balance management for each one of them, transfers between these balances, direct deposits and much more in future.</p>\n<p>In order to do that you need:</p>\n<ol>\n<li>Create a user balance with <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#55efb969-ceb5-48d7-839d-4677b2e53cad\">\"Create new user account\"</a> method. You can integrate this endpoint into the registration process on your service so upon registration, players will already have dedicated NOWPayments balance as your sub-user.</li>\n<li>To show the balance at the frontend you can get it with <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#2ad68331-5d59-4da3-98d8-501979d16569\">\"GET user balance\"</a> method. It will return you an array of user balances you can list in the back office.</li>\n<li>To set up top ups, you can use <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#ba7daaf4-8bc7-4c19-86b5-0a99b633faf8\">\"POST deposit with payment\"</a>; it will work as general white-labeled payment directly into user balance. You only need to show the user required for making a deposit information using the response of that endpoint. It's also possible to automatically credit it to player taking advantage of <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#api-documentation\">IPN system</a>.</li>\n<li>Managing debit and credit you are meant to use <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#6ad9081d-6685-437a-9496-460d1cd8c860\">\"POST deposit from master account\"</a> and <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#b976b1c0-ba2c-4e9d-ae51-3befd6676654\">\"POST write-off\"</a> endpoints to make transactions from master balance to user balances, and vice-versa, enlisting all of these operations is possible using <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#db71a968-6ab4-4bf1-aeea-010923ca3308\">\"GET transfer\"</a> and <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#5dc62f8c-e4b8-460b-878a-339b09944e4b\">\"GET all transfers\"</a> endpoints.</li>\n<li>For payouts administration you will need to collect funds from your players' balance and withdraw it using <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#294156a8-0030-4924-a23d-0090a9405df5\">payouts API</a>.</li>\n</ol>\n","_postman_id":"d00862f6-1140-47a7-a4be-e3ac1c1094ad"},{"name":"Deposits","item":[{"name":"Get the minimum payment amount","id":"e9080294-be26-4cf2-84e2-ea6ff9d4ea4b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"url":"https://api.nowpayments.io/v1/min-amount?currency_from=eth¤cy_to=trx","description":"<p>Get the minimum payment amount for a specific pair.</p>\n<p>You can provide both currencies in the pair or just currency_from, and we will calculate the minimum payment amount for currency_from and currency which you have specified as the outcome in the Payment Settings.</p>\n<p>You can also specify one of the fiat currencies in the currency_from. In this case, the minimum payment will be calculated in this fiat currency.</p>\n<p>You can also add field fiat_equivalent (optional field) to get the fiat equivalent of the minimum amount.</p>\n<p>In the case of several outcome wallets we will calculate the minimum amount in the same way we route your payment to a specific wallet.</p>\n","urlObject":{"path":["v1","min-amount"],"host":["https://api.nowpayments.io"],"query":[{"key":"currency_from","value":"eth"},{"key":"currency_to","value":"trx"}],"variable":[]}},"response":[{"id":"da088546-2d4a-46bc-ae9e-3d7e7295a32a","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"<your_api_key>","type":"text"}],"url":{"raw":"https://api.nowpayments.io/v1/min-amount?currency_from=eth¤cy_to=trx&fiat_equivalent=usd","protocol":"https","host":["api","nowpayments","io"],"path":["v1","min-amount"],"query":[{"key":"currency_from","value":"eth"},{"key":"currency_to","value":"trx"},{"key":"fiat_equivalent","value":"usd"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 22 Dec 2020 15:05:09 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"Strict-Transport-Security","value":"max-age=15768000"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Vary","value":"Origin"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"cf-request-id","value":"072c94a16a0000166954256000000001"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=JE3EB5TyT0ppi%2B%2FTPlGcGUDcr2ry9EL%2BhHtpB8%2BYtZMjD087RoOl6UD9284JzS7VANH4ZivF8A7jHMl42n8GLxJL1u7fyKvugNSiViphSjgmGKc%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"605abd48af901669-ARN"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n \"currency_from\": \"eth\",\n \"currency_to\": \"trx\",\n \"min_amount\": 0.0078999,\n \"fiat_equivalent\": 35.40626584\n}"}],"_postman_id":"e9080294-be26-4cf2-84e2-ea6ff9d4ea4b"},{"name":"Create payment","id":"164fdc67-3b32-4420-bae1-8e3683bf03dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-key","type":"text","value":"{{your_api_key}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n \"price_amount\": 3999.5,\n \"price_currency\": \"usd\",\n \"pay_currency\": \"btc\",\n \"ipn_callback_url\": \"https://nowpayments.io\",\n \"order_id\": \"RGDBP-21314\",\n \"order_description\": \"Apple Macbook Pro 2019 x 1\",\n \"is_fixed_rate\": true,\n \"is_fee_paid_by_user\": false\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/payment","description":"<p>Creates payment. With this method, your customer will be able to complete the payment without leaving your website.<br /><strong>Data must be sent as a JSON-object payload.</strong><br />Required request fields:</p>\n<ul>\n<li><p>price_amount (required) - the fiat equivalent of the price to be paid in crypto. If the pay_amount parameter is left empty, our system will automatically convert this fiat price into its crypto equivalent. Please note that this does not enable fiat payments, only provides a fiat price for yours and the customer’s convenience and information. <strong>NOTE: Some of the assets (KISHU, NWC, FTT, CHR, XYM, SRK, KLV, SUPER, OM, XCUR, NOW, SHIB, SAND, MATIC, CTSI, MANA, FRONT, FTM, DAO, LGCY), have a maximum price amount of ~$2000;</strong></p>\n</li>\n<li><p>price_currency (required) - the fiat currency in which the price_amount is specified (usd, eur, etc);</p>\n</li>\n<li><p>pay_amount (optional) - the amount that users have to pay for the order stated in crypto. You can either specify it yourself, or we will automatically convert the amount you indicated in price_amount;</p>\n</li>\n<li><p>pay_currency (required) - the crypto currency in which the pay_amount is specified (btc, eth, etc), or one of available fiat currencies if it's enabled for your account (USD, EUR, ILS, GBP, AUD, RON);<br /> <strong>NOTE: some of the currencies require a Memo, Destination Tag, etc., to complete a payment (AVA, EOS, BNBMAINNET, XLM, XRP). This is unique for each payment. This ID is received in “payin_extra_id” parameter of the response. Payments made without \"payin_extra_id\" cannot be detected automatically;</strong></p>\n</li>\n<li><p>ipn_callback_url (optional) - url to receive callbacks, should contain \"http\" or \"https\", eg. \"<a href=\"https://nowpayments.io\">https://nowpayments.io\"</a>;</p>\n</li>\n<li><p>order_id (optional) - inner store order ID, e.g. \"RGDBP-21314\";</p>\n</li>\n<li><p>order_description (optional) - inner store order description, e.g. \"Apple Macbook Pro 2019 x 1\";</p>\n</li>\n<li><p>payout_address (optional) - usually the funds will go to the address you specify in your Personal account. In case you want to receive funds on another address, you can specify it in this parameter;</p>\n</li>\n<li><p>payout_currency (optional) - currency of your external payout_address, required when payout_adress is specified;</p>\n</li>\n<li><p>payout_extra_id(optional) - extra id or memo or tag for external payout_address;</p>\n</li>\n<li><p>is_fixed_rate(optional) - boolean, can be <strong>true</strong> or <strong>false</strong>. Required for fixed-rate exchanges;<br /> NOTE: the rate of exchange will be frozen for 20 minutes. If there are no incoming payments during this period, the payment status changes to \"expired\".</p>\n</li>\n<li><p>is_fee_paid_by_user(optional) - boolean, can be <strong>true</strong> or <strong>false</strong>. Required for fixed-rate exchanges with all fees paid by users;<br /> NOTE: the rate of exchange will be frozen for 20 minutes. If there are no incoming payments during this period, the payment status changes to \"expired\";</p>\n</li>\n</ul>\n<p>Here the list of available statuses of payment:</p>\n<ul>\n<li>waiting - waiting for the customer to send the payment. The initial status of each payment;</li>\n<li>confirming - the transaction is being processed on the blockchain. Appears when NOWPayments detect the funds from the user on the blockchain;<br /> <strong>Please note:</strong> each currency has its own amount of confirmations requires to start the processing.</li>\n<li>confirmed - the process is confirmed by the blockchain. Customer’s funds have accumulated enough confirmations;</li>\n<li>sending - the funds are being sent to your personal wallet. We are in the process of sending the funds to you;</li>\n<li>partially_paid - it shows that the customer sent the less than the actual price. Appears when the funds have arrived in your wallet;</li>\n<li>finished - the funds have reached your personal address and the payment is finished;</li>\n<li>failed - the payment wasn't completed due to the error of some kind;</li>\n<li>expired - the user didn't send the funds to the specified address in the 7 days time window;</li>\n</ul>\n<p><strong>Please note: when you're creating a fiat2crypto payment you also should include additional header to your request - \"origin-ip : xxx\", where xxx is your customer IP address.</strong></p>\n","urlObject":{"path":["v1","payment"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"41c24668-aebf-4989-aafc-eb34fc589066","name":"201","originalRequest":{"method":"POST","header":[{"key":"x-api-key","type":"text","value":"<your_api_key>"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n \"price_amount\": 3999.5,\n \"price_currency\": \"usd\",\n \"pay_currency\": \"btc\",\n \"ipn_callback_url\": \"https://nowpayments.io\",\n \"order_id\": \"RGDBP-21314\",\n \"order_description\": \"Apple Macbook Pro 2019 x 1\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/payment"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 22 Dec 2020 15:00:22 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"420"},{"key":"Connection","value":"keep-alive"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"Strict-Transport-Security","value":"max-age=15768000"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Vary","value":"Origin"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"cf-request-id","value":"072c902abd00001669e7327000000001"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=ZJgfL2UQDRGgSZ4oOb6wMDBAfE53D6i5EQUx1dsRP0skDMWeUwY4g6iPdUE3URPLtCLNaFtySv1gbsGjyPmspIwsl42xacCDk%2BjSGee%2F6JIAqfQ%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"605ab6246ee71669-ARN"}],"cookie":[],"responseTime":null,"body":"{\n \"payment_id\": \"5745459419\",\n \"payment_status\": \"waiting\",\n \"pay_address\": \"3EZ2uTdVDAMFXTfc6uLDDKR6o8qKBZXVkj\",\n \"price_amount\": 3999.5,\n \"price_currency\": \"usd\",\n \"pay_amount\": 0.17070286,\n \"pay_currency\": \"btc\",\n \"order_id\": \"RGDBP-21314\",\n \"order_description\": \"Apple Macbook Pro 2019 x 1\",\n \"ipn_callback_url\": \"https://nowpayments.io\",\n \"created_at\": \"2020-12-22T15:00:22.742Z\",\n \"updated_at\": \"2020-12-22T15:00:22.742Z\",\n \"purchase_id\": \"5837122679\",\n \"amount_received\": null,\n \"payin_extra_id\": null,\n \"smart_contract\": \"\",\n \"network\": \"btc\",\n \"network_precision\": 8,\n \"time_limit\": null,\n \"burning_percent\": null,\n \"expiration_estimate_date\": \"2020-12-23T15:00:22.742Z\"\n}"}],"_postman_id":"164fdc67-3b32-4420-bae1-8e3683bf03dd"},{"name":"Get estimated price","id":"f39a67ed-4868-44c3-b4f4-a069dcf803d0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"url":"https://api.nowpayments.io/v1/estimate?amount=3999.5000¤cy_from=usd¤cy_to=btc","description":"<p>This is a method for calculating the approximate price in cryptocurrency for a given value in Fiat currency. You will need to provide the initial cost in the Fiat currency (amount, currency_from) and the necessary cryptocurrency (currency_to)<br />Currently following fiat currencies are available: USD, EUR, CAD, GBP, AUD, ILS, RON.</p>\n<p>Please note that this method allows you to get estimates for crypto pairs as well.</p>\n","urlObject":{"path":["v1","estimate"],"host":["https://api.nowpayments.io"],"query":[{"key":"amount","value":"3999.5000"},{"key":"currency_from","value":"usd"},{"key":"currency_to","value":"btc"}],"variable":[]}},"response":[{"id":"0d3cbec1-706d-4f21-a216-034c2c2eaec9","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"<your_api_key>","type":"text"}],"url":{"raw":"https://api.nowpayments.io/v1/estimate?amount=3999.5000¤cy_from=usd¤cy_to=btc","protocol":"https","host":["api","nowpayments","io"],"path":["v1","estimate"],"query":[{"key":"amount","value":"3999.5000"},{"key":"currency_from","value":"usd"},{"key":"currency_to","value":"btc"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 22 Dec 2020 15:03:37 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"Strict-Transport-Security","value":"max-age=15768000"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Vary","value":"Origin"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"cf-request-id","value":"072c9339110000166928295000000001"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=Be6PnrVenND3qBzQJTWszI2slyEd9pXNhEyFMkukSYUC1m3om7zFPg%2BQq%2F6xT2ridpvoQiRE5q8CWGblOvjJ7%2Bup%2B3ZwGuN7TNvHk04WYiWIlRk%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"605abb081ca11669-ARN"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n \"currency_from\": \"usd\",\n \"amount_from\": 3999.5,\n \"currency_to\": \"btc\",\n \"estimated_amount\": 0.17061637\n}"}],"_postman_id":"f39a67ed-4868-44c3-b4f4-a069dcf803d0"},{"name":"Get payment status","id":"dcd4ba1b-b3d1-4429-a2fe-f0c4c57c086b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"url":"https://api.nowpayments.io/v1/payment/:payment_id","description":"<p>Get the actual information about the payment. You need to provide the ID of the payment in the request.</p>\n<p>NOTE! You should make the get payment status request with the same API key that you used in the create payment request.<br />Here is the list of available statuses:</p>\n<ul>\n<li>waiting - waiting for the customer to send the payment. The initial status of each payment;</li>\n<li>confirming - the transaction is being processed on the blockchain. Appears when NOWPayments detect the funds from the user on the blockchain;</li>\n<li>confirmed - the process is confirmed by the blockchain. Customer’s funds have accumulated enough confirmations;</li>\n<li>sending - the funds are being sent to your personal wallet. We are in the process of sending the funds to you;</li>\n<li>partially_paid - it shows that the customer sent the less than the actual price. Appears when the funds have arrived in your wallet;</li>\n<li>finished - the funds have reached your personal address and the payment is finished;</li>\n<li>failed - the payment wasn't completed due to the error of some kind;</li>\n<li>refunded - the funds were refunded back to the user;</li>\n<li>expired - the user didn't send the funds to the specified address in the 7 days time window;</li>\n</ul>\n<p>Additional info:</p>\n<ul>\n<li>outcome_amount - this parameter shows the amount that will be (or is already) received on your Outcome Wallet once the transaction is settled;</li>\n<li>outcome_currency - this parameter shows the currency in which the transaction will be settled;</li>\n<li>invoice_id - this parameter shows invoice ID from which the payment was created;</li>\n</ul>\n","urlObject":{"path":["v1","payment",":payment_id"],"host":["https://api.nowpayments.io"],"query":[],"variable":[{"id":"17ee12a0-b653-4f29-b81b-edd85fab5c5c","type":"any","value":null,"key":"payment_id"}]}},"response":[{"id":"504496c8-3678-4e9c-8b05-1da1c4459fb9","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"<your_api_key>","type":"text"}],"url":"https://api.nowpayments.io/v1/payment/5524759814"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 16 Dec 2020 15:04:13 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"Strict-Transport-Security","value":"max-age=15768000"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Vary","value":"Origin"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"cf-request-id","value":"070dad9e670000fe402dae0000000001"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=zEbhqHJbg3q36U8j53OXNXd%2Bko6cS9sMgMStn1FBVWWkPsG8UrIRJyCEhmY1qK%2FXx3U%2FGPx54%2BOtE2Btl8ZwU9i9wZ%2BJkAo8q7FqZydfMMQgcb4%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"60294baa3828fe40-HEL"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n \"payment_id\": 5524759814,\n \"payment_status\": \"finished\",\n \"pay_address\": \"TNDFkiSmBQorNFacb3735q8MnT29sn8BLn\",\n \"price_amount\": 5,\n \"price_currency\": \"usd\",\n \"pay_amount\": 165.652609,\n \"actually_paid\": 180,\n \"pay_currency\": \"trx\",\n \"order_id\": \"RGDBP-21314\",\n \"order_description\": \"Apple Macbook Pro 2019 x 1\",\n \"purchase_id\": \"4944856743\",\n \"created_at\": \"2020-12-16T14:30:43.306Z\",\n \"updated_at\": \"2020-12-16T14:40:46.523Z\",\n \"outcome_amount\": 178.9005,\n \"outcome_currency\": \"trx\"\n}"}],"_postman_id":"dcd4ba1b-b3d1-4429-a2fe-f0c4c57c086b"},{"name":"Get list of payments","id":"3d4cce8c-1b61-42dc-8a50-51e532d5d23c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"}],"url":"https://api.nowpayments.io/v1/payment/?limit=10&page=0&sortBy=created_at&orderBy=asc&dateFrom=2020-01-01&dateTo=2021-01-01","description":"<p>Returns the entire list of all transactions created with certain API key.<br />The list of optional parameters:</p>\n<ul>\n<li>limit - number of records in one page. (possible values: from 1 to 500);</li>\n<li>page - the page number you want to get (possible values: from 0 to <strong>page count - 1</strong>);</li>\n<li>invoiceId - filtering payments by certain invoice ID;</li>\n<li>sortBy - sort the received list by a paramenter. Set to <strong>created_at</strong> by default (possible values: payment_id, payment_status, pay_address, price_amount, price_currency, pay_amount, actually_paid, pay_currency, order_id, order_description, purchase_id, outcome_amount, outcome_currency);</li>\n<li>orderBy - display the list in ascending or descending order. Set to <strong>asc</strong> by default (possible values: asc, desc);</li>\n<li>dateFrom - select the displayed period start date (date format: YYYY-MM-DD or yy-MM-ddTHH:mm:ss.SSSZ);</li>\n<li>dateTo - select the displayed period end date (date format: YYYY-MM-DD or yy-MM-ddTHH:mm:ss.SSSZ);</li>\n</ul>\n","urlObject":{"path":["v1","payment",""],"host":["https://api.nowpayments.io"],"query":[{"key":"limit","value":"10"},{"key":"page","value":"0"},{"key":"sortBy","value":"created_at"},{"key":"orderBy","value":"asc"},{"key":"dateFrom","value":"2020-01-01"},{"key":"dateTo","value":"2021-01-01"}],"variable":[]}},"response":[{"id":"655ab169-0800-4eaa-98db-74a577d6e400","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"<your_api_key>","type":"text"},{"key":"Authorization","value":"<your_jwt_token>","type":"text"}],"url":{"raw":"https://api.nowpayments.io/v1/payment/?limit=10&page=0&sortBy=created_at&orderBy=asc&dateFrom=2020-01-01&dateTo=2021-01-01","protocol":"https","host":["api","nowpayments","io"],"path":["v1","payment",""],"query":[{"key":"limit","value":"10"},{"key":"page","value":"0"},{"key":"sortBy","value":"created_at"},{"key":"orderBy","value":"asc"},{"key":"dateFrom","value":"2020-01-01"},{"key":"dateTo","value":"2021-01-01"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 22 Dec 2020 15:05:33 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"Strict-Transport-Security","value":"max-age=15768000"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Vary","value":"Origin"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"cf-request-id","value":"072c94fe6c00001669e783e000000001"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=4Sj25uNN8wdCtby0RbHx%2FbSLll68tMBpk%2FVG%2BQxVvo3wGnCf6Zu1DPFpwjsTBVasLRcoOsZVemVR6eVlvGP3HF9uJ1VOuaj%2Be9TCiwikq16Y5Vg%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"605abddd7db41669-ARN"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n \"data\": [\n {\n \"payment_id\": 5524759814,\n \"payment_status\": \"finished\",\n \"pay_address\": \"TNDFkiSmBQorNFacb3735q8MnT29sn8BLn\",\n \"price_amount\": 5,\n \"price_currency\": \"usd\",\n \"pay_amount\": 165.652609,\n \"actually_paid\": 180,\n \"pay_currency\": \"trx\",\n \"order_id\": \"RGDBP-21314\",\n \"order_description\": \"Apple Macbook Pro 2019 x 1\",\n \"purchase_id\": \"4944856743\",\n \"outcome_amount\": 178.9005,\n \"outcome_currency\": \"trx\"\n },\n {\n \"payment_id\": 5867063509,\n \"payment_status\": \"expired\",\n \"pay_address\": \"TVKHbLc47BnMbdE7QN4X5Q1FtyZLGGiTo8\",\n \"price_amount\": 5,\n \"price_currency\": \"usd\",\n \"pay_amount\": 165.652609,\n \"actually_paid\": 0,\n \"pay_currency\": \"trx\",\n \"order_id\": \"RGDBP-21314\",\n \"order_description\": \"Apple Macbook Pro 2019 x 1\",\n \"purchase_id\": \"5057851130\",\n \"outcome_amount\": 164.6248468,\n \"outcome_currency\": \"trx\"\n },\n {\n \"payment_id\": 5745459419,\n \"payment_status\": \"waiting\",\n \"pay_address\": \"3EZ2uTdVDAMFXTfc6uLDDKR6o8qKBZXVkj\",\n \"price_amount\": 3999.5,\n \"price_currency\": \"usd\",\n \"pay_amount\": 0.17070286,\n \"actually_paid\": 0,\n \"pay_currency\": \"btc\",\n \"order_id\": \"RGDBP-21314\",\n \"order_description\": \"Apple Macbook Pro 2019 x 1\",\n \"purchase_id\": \"5837122679\",\n \"outcome_amount\": 0.1687052,\n \"outcome_currency\": \"btc\"\n },\n {\n \"payment_id\": 4650948408,\n \"payment_status\": \"waiting\",\n \"pay_address\": \"394UZCUdx3NN8VDsCZW8c6AzP7cXEXA8Xq\",\n \"price_amount\": 3999.5,\n \"price_currency\": \"usd\",\n \"pay_amount\": 0.8102725,\n \"actually_paid\": 0,\n \"pay_currency\": \"btc\",\n \"order_id\": \"RGDBP-21314\",\n \"order_description\": \"Apple Macbook Pro 2019 x 1\",\n \"purchase_id\": \"5094859409\",\n \"outcome_amount\": 0.8019402,\n \"outcome_currency\": \"btc\"\n },\n {\n \"payment_id\": 5605634688,\n \"payment_status\": \"expired\",\n \"pay_address\": \"3EWJaZBaRWbPjSBTpgFcvxpnXLJzFDCHqW\",\n \"price_amount\": 500,\n \"price_currency\": \"usd\",\n \"pay_amount\": 993.87178656,\n \"actually_paid\": 0,\n \"pay_currency\": \"bcd\",\n \"order_id\": \"RGDBP-21314\",\n \"order_description\": \"Apple Macbook Pro 2019 x 1\",\n \"purchase_id\": \"5817305007\",\n \"outcome_amount\": 988.9016296,\n \"outcome_currency\": \"bcd\"\n },\n {\n \"payment_id\": 5241856814,\n \"payment_status\": \"expired\",\n \"pay_address\": \"qzkshdh94vhdcyuejjf8ltcy2cl246hw0c68t36z69\",\n \"price_amount\": 500,\n \"price_currency\": \"usd\",\n \"pay_amount\": 1.85459941,\n \"actually_paid\": 0,\n \"pay_currency\": \"bch\",\n \"order_id\": \"RGDBP-21314\",\n \"order_description\": \"Apple Macbook Pro 2019 x 1\",\n \"purchase_id\": \"5941190675\",\n \"outcome_amount\": 1.8451261,\n \"outcome_currency\": \"bch\"\n },\n {\n \"payment_id\": 5751462089,\n \"payment_status\": \"expired\",\n \"pay_address\": \"AYyecr8WKVpj2PNonjyUpn9sCHFyFMLdN1\",\n \"price_amount\": 500,\n \"price_currency\": \"usd\",\n \"pay_amount\": 56.4344495,\n \"actually_paid\": 0,\n \"pay_currency\": \"btg\",\n \"order_id\": \"RGDBP-21314\",\n \"order_description\": \"Apple Macbook Pro 2019 x 1\",\n \"purchase_id\": \"6229667127\",\n \"outcome_amount\": 56.151958,\n \"outcome_currency\": \"btg\"\n },\n {\n \"payment_id\": 6100223670,\n \"payment_status\": \"expired\",\n \"pay_address\": \"0x6C3E920D0fdAF45c75b6c00f25Aa6a58429d4efB\",\n \"price_amount\": 500,\n \"price_currency\": \"usd\",\n \"pay_amount\": 496.84604252,\n \"actually_paid\": 0,\n \"pay_currency\": \"dai\",\n \"order_id\": \"RGDBP-21314\",\n \"order_description\": \"Apple Macbook Pro 2019 x 1\",\n \"purchase_id\": \"5376931412\",\n \"outcome_amount\": 489.9433465,\n \"outcome_currency\": \"dai\"\n },\n {\n \"payment_id\": 4460859238,\n \"payment_status\": \"expired\",\n \"pay_address\": \"3C85TUuBKEkoZZsTawiJhYZtVVLgE4GWqj\",\n \"price_amount\": 500,\n \"price_currency\": \"usd\",\n \"pay_amount\": 0.02596608,\n \"actually_paid\": 0,\n \"pay_currency\": \"btc\",\n \"order_id\": \"RGDBP-21314\",\n \"order_description\": \"Apple Macbook Pro 2019 x 1\",\n \"purchase_id\": \"5652098489\",\n \"outcome_amount\": 0.025819,\n \"outcome_currency\": \"btc\"\n },\n {\n \"payment_id\": 4948632928,\n \"payment_status\": \"expired\",\n \"pay_address\": \"DLmK6vLURgHoWVZrQztthSqV71CBePG5k5\",\n \"price_amount\": 500,\n \"price_currency\": \"usd\",\n \"pay_amount\": 154569.92936569,\n \"actually_paid\": 0,\n \"pay_currency\": \"doge\",\n \"order_id\": \"RGDBP-21314\",\n \"order_description\": \"Apple Macbook Pro 2019 x 1\",\n \"purchase_id\": \"4811984625\",\n \"outcome_amount\": 153789.0997188,\n \"outcome_currency\": \"doge\"\n }\n ],\n \"limit\": 10,\n \"page\": 0,\n \"pagesCount\": 6,\n \"total\": 59\n}"}],"_postman_id":"3d4cce8c-1b61-42dc-8a50-51e532d5d23c"}],"id":"8b2e285d-5baa-4876-be5f-65c1608f36ba","description":"<p>This set of method allows you to go for standard flow about receiving payments from your players. You can read more about standard flow integration in <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#standard-e-commerce-flow-for-nowpayments-api\">corresponding section</a>.</p>\n","_postman_id":"8b2e285d-5baa-4876-be5f-65c1608f36ba"},{"name":"Payouts","item":[{"name":"Get balance","id":"3ac91780-f3e5-4aad-a3b7-40cc66a8ebab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","type":"text","value":"{{your_api_key}}"}],"url":"https://api.nowpayments.io/v1/balance","description":"<p>This method returns your balance in different currencies you</p>\n<p>The response contains a list of currencies with two parameters:</p>\n<ul>\n<li>amount - avaliable currency amount;</li>\n<li>pendingAmount - currently processing currency amount;</li>\n</ul>\n","urlObject":{"path":["v1","balance"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"2547d68f-b237-473a-9c7b-f18f311d6791","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"<your_api_key>","type":"text"},{"key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"}],"url":"https://api.nowpayments.io/v1/balance"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n \"eth\": {\n \"amount\": 0.0001817185463659148,\n \"pendingAmount\": 0\n },\n \"trx\": {\n \"amount\": 0,\n \"pendingAmount\": 0\n },\n \"xmr\": {\n \"amount\": 0,\n \"pendingAmount\": 0\n }\n}"}],"_postman_id":"3ac91780-f3e5-4aad-a3b7-40cc66a8ebab"},{"name":"Validate address","id":"1ba52b69-a34e-464f-bd09-c2464f782b9f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n \"address\": \"0g033BbF609Ed876576735a02fa181842319Dd8b8F\", \n \"currency\": \"eth\", \n \"extra_id\":null\n}"},"url":"https://api.nowpayments.io/v1/payout/validate-address","description":"<p>This endpoint allows you to check if your payout address is valid and funds can be received there.</p>\n<p>Available parameters:</p>\n<ul>\n<li>address - the payout address;</li>\n<li>currency - the ticker of payout currency;</li>\n<li>(optional) extra_id - memo or destination tag, if applicable;</li>\n</ul>\n","urlObject":{"path":["v1","payout","validate-address"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"ef5c5533-1670-4bf6-92cb-5e83e51a75e1","name":"400","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n \"address\": \"0g033BbF609Ed876576735a02fa181842319Dd8b8F\", \n \"currency\": \"eth\", \n \"extra_id\":null\n}"},"url":"https://api.nowpayments.io/v1/payout/validate-address"},"status":"Bad Request","code":400,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n \"status\": false,\n \"statusCode\": 400,\n \"code\": \"BAD_CREATE_WITHDRAWAL_REQUEST\",\n \"message\": \"Invalid payout_address: [currency] [address]\"\n}"},{"id":"76f9b2b9-497a-4ef7-a3b2-5f4c4603e5f6","name":"200","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n \"address\": \"6GUEZHV5B5CC2X2AB3DLL2TQPG7RXY2VW7WPBKJTW2YKNPUO4HWIWWPNVE\", \n \"currency\": \"USDTALGO\", \n \"extra_id\":null\n}"},"url":"https://api.nowpayments.io/v1/payout/validate-address"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"OK"}],"_postman_id":"1ba52b69-a34e-464f-bd09-c2464f782b9f"},{"name":"Create payout","id":"3c2f4f3f-b1a5-40ad-bffb-71e9f6bd4184","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[{"key":"x-api-key","type":"text","value":"<your_api_key>"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"}],"body":{"mode":"raw","raw":"{\n \"payout_description\": \"description\",\n \"ipn_callback_url\": \"https://nowpayments.io\",\n \"withdrawals\": [\n {\n \"address\": \"TEmGwPeRTPiLFLVfBxXkSP91yc5GMNQhfS\",\n \"currency\": \"trx\",\n \"amount\": 200,\n \"ipn_callback_url\": \"https://nowpayments.io\"\n },\n {\n \"address\": \"0x1EBAeF7Bee7B3a7B2EEfC72e86593Bf15ED37522\",\n \"currency\": \"eth\",\n \"amount\": 0.1,\n \"ipn_callback_url\": \"https://nowpayments.io\"\n }\n ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/payout","description":"<p>This is the method to create a payout. You need to provide your data as a JSON-object payload. Next is a description of the required request fields:</p>\n<ul>\n<li>address (required) - the address where you want to send funds;</li>\n<li>currency (required) - payout currency;</li>\n<li>amount (required) - amount of the payout. <strong>Must not exceed 6 decimals</strong> (i.e. 0.123456);</li>\n<li>extra_id (optional) - memo, destination tag, etc.</li>\n<li>ipn_callback_url(optional) - url to receive callbacks, should contain \"http\" or \"https\", eg. \"<a href=\"https://nowpayments.io\">https://nowpayments.io\"</a>. Please note: you can either set ipn_callback_url for each individual payout, or for all payouts in a batch (see example). <strong>In both cases IPNs will be sent for each payout separately;</strong></li>\n<li>payout_description(optional) - a description of the payout. You can set it for all payouts in a batch;</li>\n<li>unique_external_id(optional) - a unique external identifier;</li>\n<li>fiat_amount(optional) - used for setting the payout amount in fiat equivalent. <strong>Overrides \"amount\" parameter;</strong></li>\n<li>fiat_currency (optional) - used for determining fiat currency to get the fiat equivalent for. <strong>Required for \"fiat_amount\" parameter to work. DOES NOT override \"currency\" parameter. Payouts are made in crypto only, no fiat payouts are available;</strong></li>\n</ul>\n<p>Here the list of the available payout statuses:</p>\n<ul>\n<li>creating;</li>\n<li>processing;</li>\n<li>sending;</li>\n<li>finished;</li>\n<li>failed;</li>\n<li>rejected;</li>\n</ul>\n<p>Please, take note that you may request a single payout, but it still should be formatted as an array with the single element.</p>\n","urlObject":{"path":["v1","payout"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"ed644c14-ba70-411f-8a0d-03332eb781f5","name":"200","originalRequest":{"method":"POST","header":[{"key":"x-api-key","type":"text","value":"<your_api_key>"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"}],"body":{"mode":"raw","raw":"{\n \"ipn_callback_url\": \"https://nowpayments.io\",\n \"withdrawals\": [\n {\n \"address\": \"TEmGwPeRTPiLFLVfBxXkSP91yc5GMNQhfS\",\n \"currency\": \"trx\",\n \"amount\": 200,\n \"ipn_callback_url\": \"https://nowpayments.io\"\n },\n {\n \"address\": \"0x1EBAeF7Bee7B3a7B2EEfC72e86593Bf15ED37522\",\n \"currency\": \"eth\",\n \"amount\": 0.1,\n \"ipn_callback_url\": \"https://nowpayments.io\"\n },\n {\n \"address\": \"0x1EBAeF7Bee7B3a7B2EEfC72e86593Bf15ED37522\",\n \"currency\": \"usdc\",\n \"amount\": 1,\n \"fiat_amount\": 100,\n \"fiat_currency\": \"usd\",\n \"ipn_callback_url\": \"https://nowpayments.io\"\n }\n ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/payout"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n\t\"id\": \"5000000713\",\n\t\"withdrawals\": [\n {\n \"is_request_payouts\":false,\n \"id\": \"5000000000\",\n \"address\": \"TEmGwPeRTPiLFLVfBxXkSP91yc5GMNQhfS\",\n \"currency\": \"trx\",\n \"amount\": \"200\",\n \"batch_withdrawal_id\": \"5000000000\",\n \"ipn_callback_url\": \"https://nowpayments.io\",\n \"status\": \"WAITING\",\n \"extra_id\": null,\n \"hash\": null,\n \"error\": null,\n \"payout_description\": null,\n \"unique_external_id\": null,\n \"created_at\": \"2020-11-12T17:06:12.791Z\",\n \"requested_at\": null,\n \"updated_at\": null\n\n },\n {\n \"is_request_payouts\":false,\n \"id\": \"5000000001\",\n \"address\": \"0x1EBAeF7Bee7B3a7B2EEfC72e86593Bf15ED37522\",\n \"currency\": \"eth\",\n \"amount\": \"0.1\",\n \"batch_withdrawal_id\": \"5000000000\",\n \"ipn_callback_url\": \"https://nowpayments.io\",\n \"status\": \"WAITING\",\n \"extra_id\": null,\n \"hash\": null,\n \"error\": null,\n \"payout_description\": null,\n \"unique_external_id\": null,\n \"createdAt\": \"2020-11-12T17:06:12.791Z\",\n \"requestedAt\": null,\n \"updatedAt\": null\n },\n {\n \"is_request_payouts\":false,\n \"id\": \"5000000002\",\n \"address\": \"0x1EBAeF7Bee7B3a7B2EEfC72e86593Bf15ED37522\",\n \"currency\": \"usdc\",\n \"amount\": \"99.84449793\",\n \"fiat_amount\": \"100\",\n \"fiat_currency\": \"usd\",\n \"batch_withdrawal_id\": \"5000000000\",\n \"ipn_callback_url\": \"https://nowpayments.io\",\n \"status\": \"WAITING\",\n \"extra_id\": null,\n \"hash\": null,\n \"error\": null,\n \"payout_description\": null,\n \"unique_external_id\": null,\n \"createdAt\": \"2020-11-12T17:06:12.791Z\",\n \"requestedAt\": null,\n \"updatedAt\": null\n }\n ]\n}"}],"_postman_id":"3c2f4f3f-b1a5-40ad-bffb-71e9f6bd4184"},{"name":"Verify payout","id":"71140750-7dfe-4ca7-91c1-161589e14f48","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"}],"body":{"mode":"raw","raw":"{\n \"verification_code\": \"123456\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/payout/:batch-withdrawal-id/verify","description":"<p>This method is required to verify payouts by using your 2FA code.<br />You’ll have 10 attempts to verify the payout. If it is not verified after 10 attempts, the payout will remain in ‘creating’ status.<br />Payout will be processed only when it is verified.</p>\n<p>If you have 2FA app enabled in your dashboard, payouts will accept 2FA code from your app. Otherwise the code for payouts validation will be sent to your registration email.</p>\n<p>Please take a note that unverified payouts will be automatically rejected in an hour after creation.</p>\n<p>Next is a description of the required request fields:</p>\n<ul>\n<li>:batch-withdrawal-id - payout id you received in <code>2. Create payout</code> method;</li>\n<li>verification_code - 2fa code you received with your Google Auth app or via email;</li>\n</ul>\n<p>In order to establish an automatic verification of payouts, you should switch 2FA through the application.<br />There are several libraries for different frameworks aimed on generating a 2FA codes based on a secret key from your account settings, for example, Speakeasy for JavaScript.<br />We do not recommend to change any default settings.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>const 2faVerificationCode = speakeasy.totp({\n your_2fa_secret_key,\n encoding: 'base32',\n})\n\n</code></pre>","urlObject":{"path":["v1","payout",":batch-withdrawal-id","verify"],"host":["https://api.nowpayments.io"],"query":[],"variable":[{"id":"e2837ea2-8c8a-4f4f-a3a5-0405964b7f32","type":"any","value":null,"key":"batch-withdrawal-id"}]}},"response":[{"id":"4f4704bc-9274-44a5-9c8b-d322a115bf51","name":"200","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"},{"key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n \"verification_code\": \"123456\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.nowpayments.io/v1/payout/:withdrawals-id/verify","protocol":"https","host":["api","nowpayments","io"],"path":["v1","payout",":withdrawals-id","verify"],"variable":[{"key":"withdrawals-id","value":"5000000191"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"OK"}],"_postman_id":"71140750-7dfe-4ca7-91c1-161589e14f48"},{"name":"Get payout status","id":"98bc6767-bde3-4e36-82db-de909588be8a","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"host":true,"user-agent":true,"accept":true,"accept-encoding":true,"connection":true}},"request":{"method":"GET","header":[{"key":"x-api-key","type":"text","value":"{{your_api_key}}"}],"body":{"mode":"raw","raw":""},"url":"https://api.nowpayments.io/v1/payout/<payout_id>","description":"<p>Get the actual information about the payout. You need to provide the ID of the payout in the request.</p>\n<p>NOTE! You should make the get payout status request with the same API key that you used in the creat_payout request.</p>\n<p>Here is the list of available statuses:</p>\n<ul>\n<li>creating;</li>\n<li>processing;</li>\n<li>sending;</li>\n<li>finished;</li>\n<li>failed;</li>\n<li>rejected;</li>\n</ul>\n","urlObject":{"path":["v1","payout","<payout_id>"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"27427a2a-a1cc-4722-92a4-e9845f271937","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","type":"text","value":"<your_api_key>"},{"key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"}],"url":{"raw":"https://api.nowpayments.io/v1/payout/:payout_id","protocol":"https","host":["api","nowpayments","io"],"path":["v1","payout",":payout_id"],"variable":[{"key":"payout_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"[\n {\n \"id\": \"<payout_id>\",\n \"address\": \"<payout_address>\",\n \"currency\": \"trx\",\n \"amount\": \"200\",\n \"batch_withdrawal_id\": \"<batchWithdrawalId>\",\n \"status\": \"WAITING\",\n \"extra_id\": null,\n \"hash\": null,\n \"error\": null,\n \"is_request_payouts\":false,\n \"ipn_callback_url\": null,\n \"unique_external_id\": null,\n \"payout_description\": null,\n \"created_at\": \"2020-11-12T17:06:12.791Z\",\n \"requested_at\": null,\n \"updated_at\": null\n }\n]"}],"_postman_id":"98bc6767-bde3-4e36-82db-de909588be8a"},{"name":"List of payouts","id":"ad3e08a7-b6cd-4b88-b0d0-08fbad4906f8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"url":"https://api.nowpayments.io/v1/payout","description":"<p>This endpoint allows you to get a list of your payouts.</p>\n<p>The list of available parameters:</p>\n<ul>\n<li>batch_id: batch ID of enlisted payouts;</li>\n<li>status: the statuses of enlisted payouts;</li>\n<li>order_by: can be id, batchId, dateCreated, dateRequested, dateUpdated, currency, status;</li>\n<li>order: 'asc' or 'desc' order;</li>\n<li>date_from: beginning date of the requested payouts;</li>\n<li>date_to: ending date of the requested payouts;</li>\n<li>limit: how much results to show;</li>\n<li>page: the current page;</li>\n</ul>\n","urlObject":{"path":["v1","payout"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"62eb48de-ad88-4cc0-9f0e-4c45f61a9242","name":"List of payouts","originalRequest":{"method":"GET","header":[]},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n \"payouts\": [\n {\n \"id\": \"5000248325\",\n \"batch_withdrawal_id\": \"5000145498\",\n \"status\": \"FINISHED\",\n \"error\": null,\n \"currency\": \"trx\",\n \"amount\": \"94.088939\",\n \"address\": \"[payout address]\",\n \"extra_id\": null,\n \"hash\": \"[hash]\",\n \"ipn_callback_url\": null,\n \"payout_description\": null,\n \"is_request_payouts\": true,\n \"unique_external_id\": null,\n \"created_at\": \"2023-04-06T14:44:59.684Z\",\n \"requested_at\": \"2023-04-06T14:45:55.505Z\",\n \"updated_at\": \"2023-04-06T14:49:08.031Z\"\n },\n {\n \"id\": \"5000247307\",\n \"batch_withdrawal_id\": \"5000144539\",\n \"status\": \"FINISHED\",\n \"error\": null,\n \"currency\": \"trx\",\n \"amount\": \"10.000000\",\n \"address\": \"[payout address]\",\n \"extra_id\": null,\n \"hash\": \"[hash]\",\n \"ipn_callback_url\": null,\n \"payout_description\": null,\n \"is_request_payouts\": true,\n \"unique_external_id\": null,\n \"created_at\": \"2023-04-05T19:21:40.836Z\",\n \"requested_at\": \"2023-04-05T19:23:17.111Z\",\n \"updated_at\": \"2023-04-05T19:27:30.895Z\"\n }\n ]\n}"}],"_postman_id":"ad3e08a7-b6cd-4b88-b0d0-08fbad4906f8"}],"id":"294156a8-0030-4924-a23d-0090a9405df5","description":"<p>This set of methods will allow you to set up fully automated payouts-on-demand for your players.</p>\n<p>Recommended payouts requesting flow using API:</p>\n<ul>\n<li>Check if your payout address is valid using <strong>POST Validate address</strong> endpoint;</li>\n<li>If it's valid, create a withdrawal using <strong>POST Create payout</strong> endpoint;</li>\n<li>Verify your payout with 2fa (by default it's mandatory) using <strong>POST Verify payout endpoint</strong>;</li>\n</ul>\n<p><strong>2FA automation:</strong></p>\n<p>Using the API you can automate 2fa by implementing the OTP generation library in your code and set it up in your dashboard. \"Dashboard\" - \"Account settings\" - \"Two step authentification\" - \"Use an app\"</p>\n<p><strong>Save the secret key and set it up in your favorite 2FA application as well, otherwise you won't be able to get access to your dashboard!</strong></p>\n<p><strong>Please note:</strong></p>\n<p>Payouts can be requested only using a whitelisted IP address, and to whitelisted wallet addresses. It's a security measure enabled for each partner account by default.</p>\n<p>You can whitelist both of these anytime dropping a formal request using your registration email to <a href=\"mailto:partners@nowpayments.io\">partners@nowpayments.io</a>.</p>\n<p>For more information about whitelisting you can reach us at <a href=\"mailto:partners@nowpayments.io\">partners@nowpayments.io</a>.</p>\n","_postman_id":"294156a8-0030-4924-a23d-0090a9405df5"}],"id":"5840e9d6-0ab1-479c-b51d-a25972a151a4","description":"<h1 id=\"standard-casino-pay-in-pay-out-flow\">Standard Casino pay-in pay-out Flow</h1>\n<p>Registration and getting deposits:</p>\n<ol>\n<li><p>API - Integrate \"POST Create new user account\" into your registration process, so players will have dedicated balance upon registration.</p>\n</li>\n<li><p>UI - Ask a customer for desirable deposit amount, and preferred currency for payment.</p>\n</li>\n<li><p>API - Get the minimum payment amount for the selected currency pair (payment currency to your payout wallet currency) with the <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#ce3fe3a3-00cd-4df2-bfba-641fde741da7\">\"GET Minimum payment amount\"</a> method;</p>\n</li>\n<li><p>API - Get the estimate of the total amount in crypto with <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#3c86a16e-94ad-4230-a470-4e833766a4c7\">\"GET Estimated price\"</a> and check that it is larger than the minimum payment amount from step 4;</p>\n</li>\n<li><p>API - Call the <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#ba7daaf4-8bc7-4c19-86b5-0a99b633faf8\">\"POST Deposit with payment\"</a> method to create a payment and get the deposit address (in our example, the generated BTC wallet address is returned from this method);</p>\n</li>\n<li><p>UI - Ask a customer to send the payment to the generated deposit address (in our example, user has to send BTC coins);</p>\n</li>\n<li><p>UI - A customer sends coins, NOWPayments processes and exchanges them (if required), and credit the payment to your players' balance;</p>\n</li>\n<li><p>API - You can get the payment status either via our IPN callbacks or manually, using <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#62a6d281-478d-4927-8cd0-f96d677b8de6\">\"GET Payment Status\"</a> and display it to a customer so that they know when their payment has been processed;</p>\n</li>\n<li><p>API - you call the list of payments made to your account via the <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#3d4cce8c-1b61-42dc-8a50-51e532d5d23c\">\"GET List of payments\"</a> method;</p>\n</li>\n</ol>\n<p>Payouts:</p>\n<ol>\n<li><p>UI - ask the player for desirable amount, coin and address for payout.</p>\n</li>\n<li><p>API - call the player balance with <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#2ad68331-5d59-4da3-98d8-501979d16569\">\"GET user balance\"</a> method and check if player has enough balance.</p>\n</li>\n<li><p>API - call <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#1ba52b69-a34e-464f-bd09-c2464f782b9f\">\"POST validate address\"</a> to check if the provided address is valid on the blockchain.</p>\n</li>\n<li><p>API - call <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#b976b1c0-ba2c-4e9d-ae51-3befd6676654\">\"POST write off your account\"</a> method to collect the requested amount from player's balance to your master balance.</p>\n</li>\n<li><p>API - call <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#3c2f4f3f-b1a5-40ad-bffb-71e9f6bd4184\">\"POST Create payout\"</a> to create a payout.</p>\n</li>\n<li><p>API - create an OTP password for 2fa validation using external libraries.</p>\n</li>\n<li><p>API - call <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#71140750-7dfe-4ca7-91c1-161589e14f48\">\"POST Verify payout\"</a> to validate a payout with 2fa code.</p>\n</li>\n<li><p>API - You can get the payout status either via our IPN callbacks or manually, using <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#98bc6767-bde3-4e36-82db-de909588be8a\">\"GET Payout Status\"</a> and display it to a customer so that they know when the transaction has been processed;</p>\n</li>\n<li><p>UI - NOWPayments processes payout and credits it to your players' wallet;</p>\n</li>\n</ol>\n<p>All related information about your operations will also be available in your NOWPayments dashboard.</p>\n<p>If you have any additional questions about integration feel free to drop a message to <a href=\"https://mailto:partners@nowpayments.io\">partners@nowpayments.io</a> for further guidance.</p>\n","_postman_id":"5840e9d6-0ab1-479c-b51d-a25972a151a4"},{"name":"Trading platforms","item":[{"name":"Auth and API status","item":[{"name":"Get API status","id":"02015432-632d-4ea1-a71e-75e0927f9fd0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.nowpayments.io/v1/status","description":"<p>This is a method to get information about the current state of the API. If everything is OK, you will receive an \"OK\" message. Otherwise, you'll see some error.</p>\n","urlObject":{"path":["v1","status"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"2e3f178d-27a8-48ea-a84f-513daaf7d574","name":"200","originalRequest":{"method":"GET","header":[],"url":"https://api.nowpayments.io/v1/status"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 18 Apr 2019 13:37:08 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"16"},{"key":"Connection","value":"keep-alive"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"Strict-Transport-Security","value":"max-age=15768000"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Vary","value":"Origin"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"4c97081ce9509700-FRA"}],"cookie":[],"responseTime":null,"body":"{\n \"message\": \"OK\"\n}"}],"_postman_id":"02015432-632d-4ea1-a71e-75e0927f9fd0"},{"name":"Authentication","event":[{"listen":"test","script":{"id":"61ce614a-946b-4a7b-afc1-283db7e7bbd2","exec":["const schema = {"," properties: {"," token: {"," type: \"string\","," }"," },"," required: ["," 'token',"," ],","};","","try {"," const jsonData = pm.response.json();"," pm.collectionVariables.set(\"token\", jsonData?.token);","} catch (e) {"," console.warn(e);","}"],"type":"text/javascript"}}],"id":"03241983-f965-42b4-a7fe-e0160ed3b306","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n \"email\": \"{{email}}\",\n \"password\": \"{{password}}\" \n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/auth","description":"<p>Authentication method for obtaining a JWT token. You should specify your email and password which you are using for signing in into dashboard.<br />JWT token will be required for creating a payout request. For security reasons, JWT tokens expire in 5 minutes.</p>\n","urlObject":{"path":["v1","auth"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"7f6102f4-0381-4132-95c9-d7ff3343ff23","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n \"email\": \"your_email\",\n \"password\": \"your_password\" \n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/auth"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 13 Nov 2020 17:26:24 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"__cfduid=d100179a7e095065cf498b0371b423b7d1605288381; expires=Sun, 13-Dec-20 17:26:21 GMT; path=/; domain=.nowpayments.io; HttpOnly; SameSite=Lax"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"Strict-Transport-Security","value":"max-age=15768000"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Vary","value":"Origin"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"cf-request-id","value":"06643de5b900000022542c9000000001"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=%2BQThCuj3D5DwqKzV%2FPRt15xNxPJ2KeOa0YwY8JeNLCpOzK7WTa%2FAv1csNcLl2Q2ZUnQEt4ITZdXfizJUafHl1f9G3F%2BENJmd%2FOe3NKxoFmN5Cjo%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"5f1a3282cac70022-DME"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjU4MjYyNTkxMTUiLCJpYXQiOjE2MDUyODgzODQsImV4cCI6MTYwNTI4ODY4NH0.bk8B5AjoTt8Qfm1zHJxutAtgaTGW-2j67waGQ2DUHUI\"\n}"}],"_postman_id":"03241983-f965-42b4-a7fe-e0160ed3b306"}],"id":"db1d2273-49e4-4298-a2db-7dad71f22aea","description":"<p>This set of methods allows you to check API availability and get a JWT token which is requires as a header for some other methods.</p>\n","_postman_id":"db1d2273-49e4-4298-a2db-7dad71f22aea"},{"name":"Currencies","item":[{"name":"Get available currencies","id":"d0c09eb9-8d29-4be5-980b-4e3ba80461ef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"url":"https://api.nowpayments.io/v1/currencies","description":"<p>This is a method for obtaining information about all cryptocurrencies available for payments for your current setup of payout wallets.<br />Optional parameters:</p>\n<ul>\n<li>fixed_rate(optional) - boolean, can be <strong>true</strong> or <strong>false</strong>. Returns avaliable currencies with minimum and maximum amount of the exchange.</li>\n</ul>\n","urlObject":{"path":["v1","currencies"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"2b0fb981-fefb-45af-a9b6-895a6508088c","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"<your_api_key>","type":"text"}],"url":"https://api.nowpayments.io/v1/currencies"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 22 Dec 2020 15:04:03 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-dns-prefetch-control","value":"off"},{"key":"x-frame-options","value":"SAMEORIGIN"},{"key":"strict-transport-security","value":"max-age=15552000; includeSubDomains"},{"key":"strict-transport-security","value":"max-age=15768000"},{"key":"x-download-options","value":"noopen"},{"key":"x-content-type-options","value":"nosniff"},{"key":"x-xss-protection","value":"1; mode=block"},{"key":"vary","value":"Origin"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"cf-request-id","value":"072c9386e7000016693802b000000001"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=njJG9MjxLKmoJsxN0xqpdp0MNZJmkCFhw4c9sIQz%2B97S%2FqQTBHWVp28uW4Hx3i1fWSQdR6w48evOdfYoN6u4o6MrXcV%2FZ5sLPQOQJ9ONwKuu4us%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"605abb84abee1669-ARN"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n \"currencies\": [\n \"btg\",\n \"eth\",\n \"xmr\",\n \"zec\",\n \"xvg\",\n \"ada\",\n \"ltc\",\n \"bch\",\n \"qtum\",\n \"dash\",\n \"xlm\",\n \"xrp\",\n \"xem\",\n \"dgb\",\n \"lsk\",\n \"doge\",\n \"trx\",\n \"kmd\",\n \"rep\",\n \"bat\",\n \"ark\",\n \"waves\",\n \"bnb\",\n \"xzc\",\n \"nano\",\n \"tusd\",\n \"vet\",\n \"zen\",\n \"grs\",\n \"fun\",\n \"neo\",\n \"gas\",\n \"pax\",\n \"usdc\",\n \"ont\",\n \"xtz\",\n \"link\",\n \"rvn\",\n \"bnbmainnet\",\n \"zil\",\n \"bcd\",\n \"usdt\",\n \"usdterc20\",\n \"cro\",\n \"dai\",\n \"ht\",\n \"wabi\",\n \"busd\",\n \"algo\",\n \"usdttrc20\",\n \"gt\",\n \"stpt\",\n \"ava\",\n \"sxp\",\n \"uni\",\n \"okb\",\n \"btc\"\n ]\n}"}],"_postman_id":"d0c09eb9-8d29-4be5-980b-4e3ba80461ef"},{"name":"Get available currencies (2nd method)","id":"147af96d-ae78-4bef-b9bd-9ea4f83e386e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"url":"https://api.nowpayments.io/v1/full-currencies","description":"<p>This is a method to obtain detailed information about all cryptocurrencies available for payments.</p>\n","urlObject":{"path":["v1","full-currencies"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"693256e7-c1e0-4455-9d3d-e79cca21ac9d","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"<your_api_key>","type":"text"}],"url":"https://api.nowpayments.io/v1/full-currencies"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 22 Dec 2020 15:04:03 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-dns-prefetch-control","value":"off"},{"key":"x-frame-options","value":"SAMEORIGIN"},{"key":"strict-transport-security","value":"max-age=15552000; includeSubDomains"},{"key":"strict-transport-security","value":"max-age=15768000"},{"key":"x-download-options","value":"noopen"},{"key":"x-content-type-options","value":"nosniff"},{"key":"x-xss-protection","value":"1; mode=block"},{"key":"vary","value":"Origin"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"cf-request-id","value":"072c9386e7000016693802b000000001"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=njJG9MjxLKmoJsxN0xqpdp0MNZJmkCFhw4c9sIQz%2B97S%2FqQTBHWVp28uW4Hx3i1fWSQdR6w48evOdfYoN6u4o6MrXcV%2FZ5sLPQOQJ9ONwKuu4us%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"605abb84abee1669-ARN"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"\"currencies\": [\n {\n \"id\": 121,\n \"code\": \"AAVE\",\n \"name\": \"Aave\",\n \"enable\": true,\n \"wallet_regex\": \"^(0x)[0-9A-Fa-f]{40}$\",\n \"priority\": 127,\n \"extra_id_exists\": false,\n \"extra_id_regex\": null,\n \"logo_url\": \"/images/coins/aave.svg\",\n \"track\": true,\n \"cg_id\": \"aave\",\n \"is_maxlimit\": false,\n \"network\": \"eth\",\n \"smart_contract\": null,\n \"network_precision\": null\n }\n]"}],"_postman_id":"147af96d-ae78-4bef-b9bd-9ea4f83e386e"},{"name":"Get available checked currencies","id":"976a7a3c-10b2-4bf2-8d78-be1bfb9cc9b4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"url":"https://api.nowpayments.io/v1/merchant/coins","description":"<p>This is a method for obtaining information about the cryptocurrencies available for payments. Shows the coins you set as available for payments in the \"coins settings\" tab on your personal account.<br />Optional parameters:</p>\n<ul>\n<li>fixed_rate(optional) - boolean, can be <strong>true</strong> or <strong>false</strong>. Returns currencies avaliable for fixed rate exchanges with minimum and maximum amount of the exchange.</li>\n</ul>\n","urlObject":{"path":["v1","merchant","coins"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"e338f038-76db-4a41-8ae9-3485e287eada","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"<your_api_key>","type":"text"}],"url":"https://api.nowpayments.io/v1/merchant/coins"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 22 Dec 2020 15:04:03 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-dns-prefetch-control","value":"off"},{"key":"x-frame-options","value":"SAMEORIGIN"},{"key":"strict-transport-security","value":"max-age=15552000; includeSubDomains"},{"key":"strict-transport-security","value":"max-age=15768000"},{"key":"x-download-options","value":"noopen"},{"key":"x-content-type-options","value":"nosniff"},{"key":"x-xss-protection","value":"1; mode=block"},{"key":"vary","value":"Origin"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"cf-request-id","value":"072c9386e7000016693802b000000001"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=njJG9MjxLKmoJsxN0xqpdp0MNZJmkCFhw4c9sIQz%2B97S%2FqQTBHWVp28uW4Hx3i1fWSQdR6w48evOdfYoN6u4o6MrXcV%2FZ5sLPQOQJ9ONwKuu4us%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"605abb84abee1669-ARN"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n \"currencies\": [\n \"btg\",\n \"eth\",\n \"xmr\",\n \"zec\",\n \"xvg\",\n \"ada\",\n \"ltc\",\n \"bch\",\n \"qtum\",\n \"dash\",\n \"xlm\",\n \"xrp\",\n \"xem\",\n \"dgb\",\n \"lsk\",\n \"doge\",\n \"trx\",\n \"kmd\",\n \"rep\",\n \"bat\",\n \"ark\",\n \"waves\",\n \"bnb\",\n \"xzc\",\n \"nano\",\n \"tusd\",\n \"vet\",\n \"zen\",\n \"grs\",\n \"fun\",\n \"neo\",\n \"gas\",\n \"pax\",\n \"usdc\",\n \"ont\",\n \"xtz\",\n \"link\",\n \"rvn\",\n \"bnbmainnet\",\n \"zil\",\n \"bcd\",\n \"usdt\",\n \"usdterc20\",\n \"cro\",\n \"dai\",\n \"ht\",\n \"wabi\",\n \"busd\",\n \"algo\",\n \"usdttrc20\",\n \"gt\",\n \"stpt\",\n \"ava\",\n \"sxp\",\n \"uni\",\n \"okb\",\n \"btc\"\n ]\n}"}],"_postman_id":"976a7a3c-10b2-4bf2-8d78-be1bfb9cc9b4"}],"id":"a8c821d3-2aa8-49ec-b3ba-b5dd9ed810f4","_postman_id":"a8c821d3-2aa8-49ec-b3ba-b5dd9ed810f4","description":""},{"name":"Custody","item":[{"name":"Create new user account","id":"f26fd798-e216-41fb-80a8-77344e231edf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n \"name\": \"test1\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/sub-partner/balance","description":"<p>This is a method to create an account for your user. After this you'll be able to generate a payment(/v1/sub-partner/payment) or deposit(/v1/sub-partner/deposit) for topping up its balance as well as withdraw funds from it.</p>\n<p>You can integrate this endpoint into the registration process on your service so upon registration, players will already have dedicated NOWPayments balance as your sub-user.</p>\n<p><strong>Body:</strong></p>\n<p>Name : a unique user identifier; you can use any string which doesn’t exceed 30 characters (but NOT an email)</p>\n","urlObject":{"path":["v1","sub-partner","balance"],"host":["https://api.nowpayments.io"],"query":[{"disabled":true,"key":"","value":null}],"variable":[]}},"response":[{"id":"23b75695-7b23-4f41-98b8-bf2bb5e48bea","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n \"name\": \"test1\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/sub-partner/balance"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": {\n \"id\": \"1515573197\",\n \"name\": \"test1\",\n \"created_at\": \"2022-10-09T21:56:33.754Z\",\n \"updated_at\": \"2022-10-09T21:56:33.754Z\"\n }\n}"},{"id":"afb317ab-1fff-4cbd-9ca4-4618786adb1c","name":"400","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n \"name\": \"test1\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/sub-partner/balance"},"status":"Bad Request","code":400,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"status\": false,\n \"statusCode\": 400,\n \"code\": \"BAD_REQUEST\",\n \"message\": \"sub partner already exist\"\n}"}],"_postman_id":"f26fd798-e216-41fb-80a8-77344e231edf"},{"name":"Get user balance","id":"5bc01259-5f5a-4ef3-8c0e-3abceae4e479","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"url":"https://api.nowpayments.io/v1/sub-partner/balance/:id","description":"<p>With this endpoint you can get a certain user's balance to incorporate it in your player's dashboard.</p>\n<p>This request can be made only from a whitelisted IP.<br />If IP whitelisting is disabled, this request can be made by any user that has an API key.</p>\n<p>Please note: your server IP addresses should be whitelisted, NOT players' or your ones.</p>\n","urlObject":{"path":["v1","sub-partner","balance",":id"],"host":["https://api.nowpayments.io"],"query":[],"variable":[{"id":"b50dea8e-1a0a-45c1-8052-fdfb32468ae3","type":"any","value":null,"key":"id"}]}},"response":[{"id":"76312be4-c432-4244-887a-91f19b51ab65","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"url":{"raw":"https://api.nowpayments.io/v1/sub-partner/balance/:id","host":["https://api.nowpayments.io"],"path":["v1","sub-partner","balance",":id"],"variable":[{"key":"id","value":null}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": {\n \"subPartnerId\": \"111394288\",\n \"balances\": {\n \"usddtrc20\": {\n \"amount\": 0.7,\n \"pendingAmount\": 0\n },\n \"usdtbsc\": {\n \"amount\": 1.0001341847350678,\n \"pendingAmount\": 0\n }\n }\n }\n}"}],"_postman_id":"5bc01259-5f5a-4ef3-8c0e-3abceae4e479"},{"name":"Get users","id":"96dfcf86-3f01-4664-9ab3-746104e10fb1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"}],"url":"https://api.nowpayments.ioo/v1/sub-partner?id=111&offset=1&limit=10&order=DESC","description":"<p>This method returns the entire list of your users.</p>\n","urlObject":{"path":["v1","sub-partner"],"host":["https://api.nowpayments.ioo"],"query":[{"description":{"content":"<p>int or array of int (optional)</p>\n","type":"text/plain"},"key":"id","value":"111"},{"description":{"content":"<p>(optional) default 0</p>\n","type":"text/plain"},"key":"offset","value":"1"},{"description":{"content":"<p>(optional) default 10</p>\n","type":"text/plain"},"key":"limit","value":"10"},{"description":{"content":"<p>ASC / DESC (optional) default ASC</p>\n","type":"text/plain"},"key":"order","value":"DESC"}],"variable":[]}},"response":[{"id":"db66f20d-59ea-4617-b08d-60d4da029ec4","name":"200","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.nowpayments.ioo/v1/sub-partner?offset=0&limit=10&order=DESC","host":["https://api.nowpayments.ioo"],"path":["v1","sub-partner"],"query":[{"key":"id","value":"111","description":"int or array of int (optional)","disabled":true},{"key":"offset","value":"0","description":"(optional) default 0"},{"key":"limit","value":"10","description":"(optional) default 10"},{"key":"order","value":"DESC","description":"ASC / DESC (optional) default ASC"}]}},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": [\n {\n \"id\": \"111394288\",\n \"name\": \"test\",\n \"created_at\": \"2022-10-06T16:42:47.352Z\",\n \"updated_at\": \"2022-10-06T16:42:47.352Z\"\n },\n {\n \"id\": \"1515573197\",\n \"name\": \"test1\",\n \"created_at\": \"2022-10-09T21:56:33.754Z\",\n \"updated_at\": \"2022-10-09T21:56:33.754Z\"\n }\n ],\n \"count\": 2\n}"}],"_postman_id":"96dfcf86-3f01-4664-9ab3-746104e10fb1"},{"name":"Get all transfers","id":"d28d43d8-1ab2-49d9-99fa-546173343f6c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer *your_jwt_token* ","type":"text"}],"url":"https://api.nowpayments.io/v1/sub-partner/transfers?id=111&status=CREATED&limit=10&offset=1&order=ASC","description":"<p>Returns the entire list of transfers created by your users.</p>\n<p>The list of available statuses:</p>\n<ul>\n<li>CREATED - the transfer is being created;</li>\n<li>WAITING - the transfer is waiting for payment;</li>\n<li>FINISHED - the transfer is completed;</li>\n<li>REJECTED - for some reason, transaction failed;</li>\n</ul>\n","urlObject":{"path":["v1","sub-partner","transfers"],"host":["https://api.nowpayments.io"],"query":[{"description":{"content":"<p>int or array of int (optional)</p>\n","type":"text/plain"},"key":"id","value":"111"},{"description":{"content":"<p>string or array of string \n\"WAITING\"/\"CREATED\"/\"FINISHED\"/\"REJECTED\"\n(optional)</p>\n","type":"text/plain"},"key":"status","value":"CREATED"},{"description":{"content":"<p>(optional) default 10</p>\n","type":"text/plain"},"key":"limit","value":"10"},{"description":{"content":"<p>(optional) default 0</p>\n","type":"text/plain"},"key":"offset","value":"1"},{"description":{"content":"<p>ASC / DESC (optional) default ASC</p>\n","type":"text/plain"},"key":"order","value":"ASC"}],"variable":[]}},"response":[{"id":"a0997336-7f01-4d08-be22-1a3ff195ad6d","name":"200","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.nowpayments.io/v1/sub-partner/transfers?status=FINISHED&limit=10&offset=0&order=ASC","host":["https://api.nowpayments.io"],"path":["v1","sub-partner","transfers"],"query":[{"key":"id","value":"111","description":"int or array of int (optional)","disabled":true},{"key":"status","value":"FINISHED","description":"string or array of string \n\"WAITING\"/\"CREATED\"/\"FINISHED\"/\"REJECTED\"\n(optional)"},{"key":"limit","value":"10","description":"(optional) default 10"},{"key":"offset","value":"0","description":"(optional) default 0"},{"key":"order","value":"ASC","description":"ASC / DESC (optional) default ASC"}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": [\n {\n \"id\": \"111394288\",\n \"from_sub_id\": \"5209391548\",\n \"to_sub_id\": \"111394288\",\n \"status\": \"FINISHED\",\n \"created_at\": \"2022-10-09T18:53:21.975Z\",\n \"updated_at\": \"2022-10-09T18:55:00.696Z\",\n \"amount\": \"1\",\n \"currency\": \"usdtbsc\"\n },\n {\n \"id\": \"148427051\",\n \"from_sub_id\": \"111394288\",\n \"to_sub_id\": \"5209391548\",\n \"status\": \"FINISHED\",\n \"created_at\": \"2022-10-09T19:08:32.440Z\",\n \"updated_at\": \"2022-10-09T19:10:01.209Z\",\n \"amount\": \"1\",\n \"currency\": \"usdtbsc\"\n },\n {\n \"id\": \"1631380403\",\n \"from_sub_id\": \"5209391548\",\n \"to_sub_id\": \"111394288\",\n \"status\": \"FINISHED\",\n \"created_at\": \"2022-10-09T21:19:51.936Z\",\n \"updated_at\": \"2022-10-09T21:21:00.671Z\",\n \"amount\": \"2\",\n \"currency\": \"usdtbsc\"\n },\n {\n \"id\": \"1167886259\",\n \"from_sub_id\": \"5209391548\",\n \"to_sub_id\": \"111394288\",\n \"status\": \"FINISHED\",\n \"created_at\": \"2022-10-09T21:22:17.125Z\",\n \"updated_at\": \"2022-10-09T21:24:00.662Z\",\n \"amount\": \"2\",\n \"currency\": \"usdtbsc\"\n },\n {\n \"id\": \"48471014\",\n \"from_sub_id\": \"111394288\",\n \"to_sub_id\": \"5209391548\",\n \"status\": \"FINISHED\",\n \"created_at\": \"2022-10-09T21:25:29.231Z\",\n \"updated_at\": \"2022-10-09T21:27:00.676Z\",\n \"amount\": \"1\",\n \"currency\": \"usdtbsc\"\n },\n {\n \"id\": \"1304149238\",\n \"from_sub_id\": \"111394288\",\n \"to_sub_id\": \"5209391548\",\n \"status\": \"FINISHED\",\n \"created_at\": \"2022-10-09T21:54:57.713Z\",\n \"updated_at\": \"2022-10-09T21:56:01.056Z\",\n \"amount\": \"1\",\n \"currency\": \"usdtbsc\"\n },\n {\n \"id\": \"327209161\",\n \"from_sub_id\": \"111394288\",\n \"to_sub_id\": \"1515573197\",\n \"status\": \"FINISHED\",\n \"created_at\": \"2022-10-09T22:09:02.181Z\",\n \"updated_at\": \"2022-10-09T22:10:01.853Z\",\n \"amount\": \"1\",\n \"currency\": \"usdtbsc\"\n }\n ],\n \"count\": 7\n}"}],"_postman_id":"d28d43d8-1ab2-49d9-99fa-546173343f6c"},{"name":"Get transfer","id":"4a411f51-3ffd-4490-8cb6-314b1b1e47ff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer *your_jwt_token* ","type":"text"}],"url":"https://api.nowpayments.io/v1/sub-partner/transfer/:id","description":"<p>Get the actual information about certain transfer. You need to provide the transfer ID in the request.</p>\n<p>The list of available statuses:</p>\n<ul>\n<li>CREATED - the transfer is being created;</li>\n<li>WAITING - the transfer is waiting for payment;</li>\n<li>FINISHED - the transfer is completed;</li>\n<li>REJECTED - for some reason, transaction failed;</li>\n</ul>\n","urlObject":{"path":["v1","sub-partner","transfer",":id"],"host":["https://api.nowpayments.io"],"query":[],"variable":[{"id":"d7086b4a-b4b4-4059-ae84-2d964bc6f513","type":"any","value":null,"key":"id"}]}},"response":[{"id":"e3f05b79-d6be-4ddb-b913-e97a1e66b254","name":"200","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.nowpayments.io/v1/sub-partner/transfer/:id","host":["https://api.nowpayments.io"],"path":["v1","sub-partner","transfer",":id"],"variable":[{"key":"id","value":"327209161"}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": {\n \"id\": \"327209161\",\n \"from_sub_id\": \"111394288\",\n \"to_sub_id\": \"1515573197\",\n \"status\": \"FINISHED\",\n \"created_at\": \"2022-10-09T22:09:02.181Z\",\n \"updated_at\": \"2022-10-09T22:10:01.853Z\",\n \"amount\": \"1\",\n \"currency\": \"usdtbsc\"\n }\n}"}],"_postman_id":"4a411f51-3ffd-4490-8cb6-314b1b1e47ff"},{"name":"Deposit with payment","id":"c8dfa068-bf2c-48d1-933c-ee8a59822acd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[{"key":"x-api-key","value":"{{x-api-key}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n \"currency\": \"trx\",\n \"amount\": 0.3,\n \"sub_partner_id\": \"1631380403\",\n \"fixed_rate\": false\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/sub-partner/payment","description":"<p>It will work as general white-labeled payment directly into user balance. You only need to show the user required for making a deposit information using the response of that endpoint.</p>\n<p>This method allows you to top up a user account with a general payment.<br />You can check the actual payment status by using GET 9 <code>Get payment status</code> request.</p>\n","urlObject":{"path":["v1","sub-partner","payment"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"d6b9e1b2-46d8-4558-85e8-41237a4363aa","name":"Deposit with payment","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"{{x-api-token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n \"currency\": \"trx\",\n \"amount\": 50,\n \"sub_partner_id\": \"1631380403\",\n \"fixed_rate\": false\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/sub-partner/payment"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": {\n \"payment_id\": \"5250038861\",\n \"payment_status\": \"waiting\",\n \"pay_address\": \"TSszwFcbpkrZ2H85ZKsB6bEV5ffAv6kKai\",\n \"price_amount\": 50,\n \"price_currency\": \"trx\",\n \"pay_amount\": 50,\n \"amount_received\": 0.0272467,\n \"pay_currency\": \"trx\",\n \"order_id\": null,\n \"order_description\": null,\n \"ipn_callback_url\": null,\n \"created_at\": \"2022-10-11T10:49:27.414Z\",\n \"updated_at\": \"2022-10-11T10:49:27.414Z\",\n \"purchase_id\": \"5932573772\",\n \"smart_contract\": null,\n \"network\": \"trx\",\n \"network_precision\": null,\n \"time_limit\": null,\n \"burning_percent\": null,\n \"expiration_estimate_date\": \"2022-10-11T11:09:27.418Z\",\n \"valid_until\": \"valid_until_timestamp\",\n \"type\": \"crypto2crypto\"\n }\n}"}],"_postman_id":"c8dfa068-bf2c-48d1-933c-ee8a59822acd"},{"name":"Deposit from your master balance","id":"7cf9760d-b9ba-497c-9374-0dac944e9c78","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[{"key":"x-api-key","value":"{{x-api-token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n \"currency\": \"trx\",\n \"amount\": 0.3,\n \"sub_partner_id\": \"1631380403\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/sub-partner/deposit","description":"<p>This is a method for transferring funds from your master account to a user's one.<br />The actual information about the transfer's status can be obtained via <code>Get transfer</code> method.</p>\n<p>The list of available statuses:</p>\n<ul>\n<li>CREATED - the transfer is being created;</li>\n<li>WAITING - the transfer is waiting for payment;</li>\n<li>FINISHED - the transfer is completed;</li>\n<li>REJECTED - for some reason, transaction failed;</li>\n</ul>\n","urlObject":{"path":["v1","sub-partner","deposit"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"6676a105-aaa4-452a-b939-3e5aba773ed1","name":"200","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"{{x-api-token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n \"currency\": \"usddtrc20\",\n \"amount\": 0.7,\n \"sub_partner_id\": \"111394288\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/sub-partner/deposit"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": {\n \"id\": \"19649354\",\n \"from_sub_id\": \"5209391548\", //main account\n \"to_sub_id\": \"111394288\", //sub account\n \"status\": \"WAITING\",\n \"created_at\": \"2022-10-11T10:01:33.323Z\",\n \"updated_at\": \"2022-10-11T10:01:33.323Z\",\n \"amount\": \"0.7\",\n \"currency\": \"usddtrc20\"\n }\n}"}],"_postman_id":"7cf9760d-b9ba-497c-9374-0dac944e9c78"},{"name":"Write off on your account","id":"835a018c-687a-4c9f-92eb-a8ca3f279c6c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n \"currency\": \"trx\",\n \"amount\": 0.3,\n \"sub_partner_id\": \"1631380403\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/sub-partner/write-off","description":"<p>With this method you can withdraw funds from a user's account and transfer them to your master account.</p>\n<p>The actual status of the transaction can be checked with <code>Get transfer</code> method.</p>\n<p>The list of available statuses:</p>\n<ul>\n<li>CREATED - the transfer is being created;</li>\n<li>WAITING - the transfer is waiting for payment;</li>\n<li>FINISHED - the transfer is completed;</li>\n<li>REJECTED - for some reason, transaction failed;</li>\n</ul>\n","urlObject":{"path":["v1","sub-partner","write-off"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"9d09e464-6e2c-4ebd-834e-dded37c9acc9","name":"200","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"{{x-api-token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n \"currency\": \"trx\",\n \"amount\": 0.3,\n \"sub_partner_id\": \"1631380403\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/sub-partner/write-off"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": {\n \"id\": \"19649354\",\n \"from_sub_id\": \"111394288\", //sub account\n \"to_sub_id\": \"5209391548\", //main account\n \"status\": \"WAITING\",\n \"created_at\": \"2022-10-11T10:01:33.323Z\",\n \"updated_at\": \"2022-10-11T10:01:33.323Z\",\n \"amount\": \"0.7\",\n \"currency\": \"usddtrc20\"\n }\n}"}],"_postman_id":"835a018c-687a-4c9f-92eb-a8ca3f279c6c"}],"id":"441d43cd-ec0f-49a6-b626-36a76a06a7ce","description":"<p>This section describes our custody feature.</p>\n<p>If you prefer, you can set up a full-fledged billing solution. Our API allows you to create user accounts for your players with dedicated balance management for each one of them, transfers between these balances, direct deposits and much more in future.</p>\n<p>In order to do that you need:</p>\n<ol>\n<li>Create a user balance with <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#55efb969-ceb5-48d7-839d-4677b2e53cad\">\"Create new user account\"</a> method. You can integrate this endpoint into the registration process on your service so upon registration, players will already have dedicated NOWPayments balance as your sub-user.</li>\n<li>To show the balance at the frontend you can get it with <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#2ad68331-5d59-4da3-98d8-501979d16569\">\"GET user balance\"</a> method. It will return you an array of user balances you can list in the back office.</li>\n<li>To set up top ups, you can use <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#ba7daaf4-8bc7-4c19-86b5-0a99b633faf8\">\"POST deposit with payment\"</a>; it will work as general white-labeled payment directly into user balance. You only need to show the user required for making a deposit information using the response of that endpoint. It's also possible to automatically credit it to player taking advantage of <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#api-documentation\">IPN system</a>.</li>\n<li>Managing debit and credit you are meant to use <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#6ad9081d-6685-437a-9496-460d1cd8c860\">\"POST deposit from master account\"</a> and <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#b976b1c0-ba2c-4e9d-ae51-3befd6676654\">\"POST write-off\"</a> endpoints to make transactions from master balance to user balances, and vice-versa, enlisting all of these operations is possible using <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#db71a968-6ab4-4bf1-aeea-010923ca3308\">\"GET transfer\"</a> and <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#5dc62f8c-e4b8-460b-878a-339b09944e4b\">\"GET all transfers\"</a> endpoints.</li>\n<li>For payouts administration you will need to collect funds from your players' balance and withdraw it using <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#294156a8-0030-4924-a23d-0090a9405df5\">payouts API</a>.</li>\n</ol>\n","_postman_id":"441d43cd-ec0f-49a6-b626-36a76a06a7ce"},{"name":"Payouts","item":[{"name":"Get balance","id":"0912475e-2f9a-4a00-a83d-34b83cf5827b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","type":"text","value":"{{your_api_key}}"}],"url":"https://api.nowpayments.io/v1/balance","description":"<p>This method returns your balance in different currencies you</p>\n<p>The response contains a list of currencies with two parameters:</p>\n<ul>\n<li>amount - avaliable currency amount;</li>\n<li>pendingAmount - currently processing currency amount;</li>\n</ul>\n","urlObject":{"path":["v1","balance"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"f42e2c3f-050e-447b-9267-703ec6558d26","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"<your_api_key>","type":"text"},{"key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"}],"url":"https://api.nowpayments.io/v1/balance"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n \"eth\": {\n \"amount\": 0.0001817185463659148,\n \"pendingAmount\": 0\n },\n \"trx\": {\n \"amount\": 0,\n \"pendingAmount\": 0\n },\n \"xmr\": {\n \"amount\": 0,\n \"pendingAmount\": 0\n }\n}"}],"_postman_id":"0912475e-2f9a-4a00-a83d-34b83cf5827b"},{"name":"Validate address","id":"7131b0f5-17f9-4352-8e2f-71a7f13b4d32","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n \"address\": \"0g033BbF609Ed876576735a02fa181842319Dd8b8F\", \n \"currency\": \"eth\", \n \"extra_id\":null\n}"},"url":"https://api.nowpayments.io/v1/payout/validate-address","description":"<p>This endpoint allows you to check if your payout address is valid and funds can be received there.</p>\n<p>Available parameters:</p>\n<ul>\n<li>address - the payout address;</li>\n<li>currency - the ticker of payout currency;</li>\n<li>(optional) extra_id - memo or destination tag, if applicable;</li>\n</ul>\n","urlObject":{"path":["v1","payout","validate-address"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"b67c4381-2dcc-4180-adec-0234a94025d0","name":"400","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n \"address\": \"0g033BbF609Ed876576735a02fa181842319Dd8b8F\", \n \"currency\": \"eth\", \n \"extra_id\":null\n}"},"url":"https://api.nowpayments.io/v1/payout/validate-address"},"status":"Bad Request","code":400,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n \"status\": false,\n \"statusCode\": 400,\n \"code\": \"BAD_CREATE_WITHDRAWAL_REQUEST\",\n \"message\": \"Invalid payout_address: [currency] [address]\"\n}"},{"id":"4f791873-6a38-4523-9c17-8bf4568d8670","name":"200","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n \"address\": \"6GUEZHV5B5CC2X2AB3DLL2TQPG7RXY2VW7WPBKJTW2YKNPUO4HWIWWPNVE\", \n \"currency\": \"USDTALGO\", \n \"extra_id\":null\n}"},"url":"https://api.nowpayments.io/v1/payout/validate-address"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"OK"}],"_postman_id":"7131b0f5-17f9-4352-8e2f-71a7f13b4d32"},{"name":"Create payout","id":"6e333d6b-1070-4753-b9ed-1bb9a7dadfef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[{"key":"x-api-key","type":"text","value":"<your_api_key>"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"}],"body":{"mode":"raw","raw":"{\n \"payout_description\": \"description\",\n \"ipn_callback_url\": \"https://nowpayments.io\",\n \"withdrawals\": [\n {\n \"address\": \"TEmGwPeRTPiLFLVfBxXkSP91yc5GMNQhfS\",\n \"currency\": \"trx\",\n \"amount\": 200,\n \"ipn_callback_url\": \"https://nowpayments.io\"\n },\n {\n \"address\": \"0x1EBAeF7Bee7B3a7B2EEfC72e86593Bf15ED37522\",\n \"currency\": \"eth\",\n \"amount\": 0.1,\n \"ipn_callback_url\": \"https://nowpayments.io\"\n }\n ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/payout","description":"<p>This is the method to create a payout. You need to provide your data as a JSON-object payload. Next is a description of the required request fields:</p>\n<ul>\n<li>address (required) - the address where you want to send funds;</li>\n<li>currency (required) - payout currency;</li>\n<li>amount (required) - amount of the payout. <strong>Must not exceed 6 decimals</strong> (i.e. 0.123456);</li>\n<li>extra_id (optional) - memo, destination tag, etc.</li>\n<li>ipn_callback_url(optional) - url to receive callbacks, should contain \"http\" or \"https\", eg. \"<a href=\"https://nowpayments.io\">https://nowpayments.io\"</a>. Please note: you can either set ipn_callback_url for each individual payout, or for all payouts in a batch (see example). <strong>In both cases IPNs will be sent for each payout separately;</strong></li>\n<li>payout_description(optional) - a description of the payout. You can set it for all payouts in a batch;</li>\n<li>unique_external_id(optional) - a unique external identifier;</li>\n<li>fiat_amount(optional) - used for setting the payout amount in fiat equivalent. <strong>Overrides \"amount\" parameter;</strong></li>\n<li>fiat_currency (optional) - used for determining fiat currency to get the fiat equivalent for. <strong>Required for \"fiat_amount\" parameter to work. DOES NOT override \"currency\" parameter. Payouts are made in crypto only, no fiat payouts are available;</strong></li>\n</ul>\n<p>Here the list of the available payout statuses:</p>\n<ul>\n<li>creating;</li>\n<li>processing;</li>\n<li>sending;</li>\n<li>finished;</li>\n<li>failed;</li>\n<li>rejected;</li>\n</ul>\n<p>Please, take note that you may request a single payout, but it still should be formatted as an array with the single element.</p>\n","urlObject":{"path":["v1","payout"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"c6960533-71a1-4b25-8e5d-5d6f21f12d6e","name":"200","originalRequest":{"method":"POST","header":[{"key":"x-api-key","type":"text","value":"<your_api_key>"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"}],"body":{"mode":"raw","raw":"{\n \"ipn_callback_url\": \"https://nowpayments.io\",\n \"withdrawals\": [\n {\n \"address\": \"TEmGwPeRTPiLFLVfBxXkSP91yc5GMNQhfS\",\n \"currency\": \"trx\",\n \"amount\": 200,\n \"ipn_callback_url\": \"https://nowpayments.io\"\n },\n {\n \"address\": \"0x1EBAeF7Bee7B3a7B2EEfC72e86593Bf15ED37522\",\n \"currency\": \"eth\",\n \"amount\": 0.1,\n \"ipn_callback_url\": \"https://nowpayments.io\"\n },\n {\n \"address\": \"0x1EBAeF7Bee7B3a7B2EEfC72e86593Bf15ED37522\",\n \"currency\": \"usdc\",\n \"amount\": 1,\n \"fiat_amount\": 100,\n \"fiat_currency\": \"usd\",\n \"ipn_callback_url\": \"https://nowpayments.io\"\n }\n ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/payout"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n\t\"id\": \"5000000713\",\n\t\"withdrawals\": [\n {\n \"is_request_payouts\":false,\n \"id\": \"5000000000\",\n \"address\": \"TEmGwPeRTPiLFLVfBxXkSP91yc5GMNQhfS\",\n \"currency\": \"trx\",\n \"amount\": \"200\",\n \"batch_withdrawal_id\": \"5000000000\",\n \"ipn_callback_url\": \"https://nowpayments.io\",\n \"status\": \"WAITING\",\n \"extra_id\": null,\n \"hash\": null,\n \"error\": null,\n \"payout_description\": null,\n \"unique_external_id\": null,\n \"created_at\": \"2020-11-12T17:06:12.791Z\",\n \"requested_at\": null,\n \"updated_at\": null\n\n },\n {\n \"is_request_payouts\":false,\n \"id\": \"5000000001\",\n \"address\": \"0x1EBAeF7Bee7B3a7B2EEfC72e86593Bf15ED37522\",\n \"currency\": \"eth\",\n \"amount\": \"0.1\",\n \"batch_withdrawal_id\": \"5000000000\",\n \"ipn_callback_url\": \"https://nowpayments.io\",\n \"status\": \"WAITING\",\n \"extra_id\": null,\n \"hash\": null,\n \"error\": null,\n \"payout_description\": null,\n \"unique_external_id\": null,\n \"createdAt\": \"2020-11-12T17:06:12.791Z\",\n \"requestedAt\": null,\n \"updatedAt\": null\n },\n {\n \"is_request_payouts\":false,\n \"id\": \"5000000002\",\n \"address\": \"0x1EBAeF7Bee7B3a7B2EEfC72e86593Bf15ED37522\",\n \"currency\": \"usdc\",\n \"amount\": \"99.84449793\",\n \"fiat_amount\": \"100\",\n \"fiat_currency\": \"usd\",\n \"batch_withdrawal_id\": \"5000000000\",\n \"ipn_callback_url\": \"https://nowpayments.io\",\n \"status\": \"WAITING\",\n \"extra_id\": null,\n \"hash\": null,\n \"error\": null,\n \"payout_description\": null,\n \"unique_external_id\": null,\n \"createdAt\": \"2020-11-12T17:06:12.791Z\",\n \"requestedAt\": null,\n \"updatedAt\": null\n }\n ]\n}"}],"_postman_id":"6e333d6b-1070-4753-b9ed-1bb9a7dadfef"},{"name":"Verify payout","id":"631a22a9-f4fd-4883-beda-dab762354f18","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"}],"body":{"mode":"raw","raw":"{\n \"verification_code\": \"123456\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/payout/:batch-withdrawal-id/verify","description":"<p>This method is required to verify payouts by using your 2FA code.<br />You’ll have 10 attempts to verify the payout. If it is not verified after 10 attempts, the payout will remain in ‘creating’ status.<br />Payout will be processed only when it is verified.</p>\n<p>If you have 2FA app enabled in your dashboard, payouts will accept 2FA code from your app. Otherwise the code for payouts validation will be sent to your registration email.</p>\n<p>Please take a note that unverified payouts will be automatically rejected in an hour after creation.</p>\n<p>Next is a description of the required request fields:</p>\n<ul>\n<li>:batch-withdrawal-id - payout id you received in <code>2. Create payout</code> method;</li>\n<li>verification_code - 2fa code you received with your Google Auth app or via email;</li>\n</ul>\n<p>In order to establish an automatic verification of payouts, you should switch 2FA through the application.<br />There are several libraries for different frameworks aimed on generating a 2FA codes based on a secret key from your account settings, for example, Speakeasy for JavaScript.<br />We do not recommend to change any default settings.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>const 2faVerificationCode = speakeasy.totp({\n your_2fa_secret_key,\n encoding: 'base32',\n})\n\n</code></pre>","urlObject":{"path":["v1","payout",":batch-withdrawal-id","verify"],"host":["https://api.nowpayments.io"],"query":[],"variable":[{"id":"e2837ea2-8c8a-4f4f-a3a5-0405964b7f32","type":"any","value":null,"key":"batch-withdrawal-id"}]}},"response":[{"id":"631f07f5-71f2-4775-99ff-93ae3a3fb36e","name":"200","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"},{"key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n \"verification_code\": \"123456\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.nowpayments.io/v1/payout/:withdrawals-id/verify","protocol":"https","host":["api","nowpayments","io"],"path":["v1","payout",":withdrawals-id","verify"],"variable":[{"key":"withdrawals-id","value":"5000000191"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"OK"}],"_postman_id":"631a22a9-f4fd-4883-beda-dab762354f18"},{"name":"Get payout status","id":"906acd87-9fb6-4d4c-b871-a7d281b1cae7","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"host":true,"user-agent":true,"accept":true,"accept-encoding":true,"connection":true}},"request":{"method":"GET","header":[{"key":"x-api-key","type":"text","value":"{{your_api_key}}"}],"body":{"mode":"raw","raw":""},"url":"https://api.nowpayments.io/v1/payout/<payout_id>","description":"<p>Get the actual information about the payout. You need to provide the ID of the payout in the request.</p>\n<p>NOTE! You should make the get payout status request with the same API key that you used in the creat_payout request.</p>\n<p>Here is the list of available statuses:</p>\n<ul>\n<li>creating;</li>\n<li>processing;</li>\n<li>sending;</li>\n<li>finished;</li>\n<li>failed;</li>\n<li>rejected;</li>\n</ul>\n","urlObject":{"path":["v1","payout","<payout_id>"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"6e580ec4-15d3-481e-9aae-3b6c306c8b5d","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","type":"text","value":"<your_api_key>"},{"key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"}],"url":{"raw":"https://api.nowpayments.io/v1/payout/:payout_id","protocol":"https","host":["api","nowpayments","io"],"path":["v1","payout",":payout_id"],"variable":[{"key":"payout_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"[\n {\n \"id\": \"<payout_id>\",\n \"address\": \"<payout_address>\",\n \"currency\": \"trx\",\n \"amount\": \"200\",\n \"batch_withdrawal_id\": \"<batchWithdrawalId>\",\n \"status\": \"WAITING\",\n \"extra_id\": null,\n \"hash\": null,\n \"error\": null,\n \"is_request_payouts\":false,\n \"ipn_callback_url\": null,\n \"unique_external_id\": null,\n \"payout_description\": null,\n \"created_at\": \"2020-11-12T17:06:12.791Z\",\n \"requested_at\": null,\n \"updated_at\": null\n }\n]"}],"_postman_id":"906acd87-9fb6-4d4c-b871-a7d281b1cae7"},{"name":"List of payouts","id":"87d03f9c-fb7f-45e0-a9a3-a3b11c6475a8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"url":"https://api.nowpayments.io/v1/payout","description":"<p>This endpoint allows you to get a list of your payouts.</p>\n<p>The list of available parameters:</p>\n<ul>\n<li>batch_id: batch ID of enlisted payouts;</li>\n<li>status: the statuses of enlisted payouts;</li>\n<li>order_by: can be id, batchId, dateCreated, dateRequested, dateUpdated, currency, status;</li>\n<li>order: 'asc' or 'desc' order;</li>\n<li>date_from: beginning date of the requested payouts;</li>\n<li>date_to: ending date of the requested payouts;</li>\n<li>limit: how much results to show;</li>\n<li>page: the current page;</li>\n</ul>\n","urlObject":{"path":["v1","payout"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"2f305e2e-7246-4b35-85e3-3aa4b0b9f90b","name":"List of payouts","originalRequest":{"method":"GET","header":[]},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n \"payouts\": [\n {\n \"id\": \"5000248325\",\n \"batch_withdrawal_id\": \"5000145498\",\n \"status\": \"FINISHED\",\n \"error\": null,\n \"currency\": \"trx\",\n \"amount\": \"94.088939\",\n \"address\": \"[payout address]\",\n \"extra_id\": null,\n \"hash\": \"[hash]\",\n \"ipn_callback_url\": null,\n \"payout_description\": null,\n \"is_request_payouts\": true,\n \"unique_external_id\": null,\n \"created_at\": \"2023-04-06T14:44:59.684Z\",\n \"requested_at\": \"2023-04-06T14:45:55.505Z\",\n \"updated_at\": \"2023-04-06T14:49:08.031Z\"\n },\n {\n \"id\": \"5000247307\",\n \"batch_withdrawal_id\": \"5000144539\",\n \"status\": \"FINISHED\",\n \"error\": null,\n \"currency\": \"trx\",\n \"amount\": \"10.000000\",\n \"address\": \"[payout address]\",\n \"extra_id\": null,\n \"hash\": \"[hash]\",\n \"ipn_callback_url\": null,\n \"payout_description\": null,\n \"is_request_payouts\": true,\n \"unique_external_id\": null,\n \"created_at\": \"2023-04-05T19:21:40.836Z\",\n \"requested_at\": \"2023-04-05T19:23:17.111Z\",\n \"updated_at\": \"2023-04-05T19:27:30.895Z\"\n }\n ]\n}"}],"_postman_id":"87d03f9c-fb7f-45e0-a9a3-a3b11c6475a8"}],"id":"f0acf25d-3d6b-451f-8d71-bd30d77452e4","description":"<p>This set of methods will allow you to set up fully automated payouts-on-demand for your players.</p>\n<p>Recommended payouts requesting flow using API:</p>\n<ul>\n<li>Check if your payout address is valid using <strong>POST Validate address</strong> endpoint;</li>\n<li>If it's valid, create a withdrawal using <strong>POST Create payout</strong> endpoint;</li>\n<li>Verify your payout with 2fa (by default it's mandatory) using <strong>POST Verify payout endpoint</strong>;</li>\n</ul>\n<p><strong>2FA automation:</strong></p>\n<p>Using the API you can automate 2fa by implementing the OTP generation library in your code and set it up in your dashboard. \"Dashboard\" - \"Account settings\" - \"Two step authentification\" - \"Use an app\"</p>\n<p><strong>Save the secret key and set it up in your favorite 2FA application as well, otherwise you won't be able to get access to your dashboard!</strong></p>\n<p><strong>Please note:</strong></p>\n<p>Payouts can be requested only using a whitelisted IP address, and to whitelisted wallet addresses. It's a security measure enabled for each partner account by default.</p>\n<p>You can whitelist both of these anytime dropping a formal request using your registration email to <a href=\"mailto:partners@nowpayments.io\">partners@nowpayments.io</a>.</p>\n<p>For more information about whitelisting you can reach us at <a href=\"mailto:partners@nowpayments.io\">partners@nowpayments.io</a>.</p>\n","_postman_id":"f0acf25d-3d6b-451f-8d71-bd30d77452e4"}],"id":"e4be36c0-9a46-4ce9-8a05-0efa9af6fa96","description":"<h1 id=\"standard-trading-platform-flow\">Standard Trading platform Flow</h1>\n<p>Registration and getting deposits:</p>\n<ol>\n<li><p>API - Integrate \"<a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#f26fd798-e216-41fb-80a8-77344e231edf\">POST Create new user account</a>\" into your registration process, so users will have dedicated balance right after completing registration.</p>\n</li>\n<li><p>UI - Ask a customer for desirable deposit amount to top up their balance, and desired currency for deposit.</p>\n</li>\n<li><p>API - Get the minimum payment amount for the selected currency pair (payment currency to your payout wallet currency) with the <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#ce3fe3a3-00cd-4df2-bfba-641fde741da7\">\"GET Minimum payment amount\"</a> method;</p>\n</li>\n<li><p>API - Get the estimate of the total amount in crypto with <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#3c86a16e-94ad-4230-a470-4e833766a4c7\">\"GET Estimated price\"</a> and check that it is larger than the minimum payment amount from step 4;</p>\n</li>\n<li><p>API - Call the <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#ba7daaf4-8bc7-4c19-86b5-0a99b633faf8\">\"POST Deposit with payment\"</a> method to create a payment and get the deposit address (in our example, the generated BTC wallet address is returned from this method);</p>\n</li>\n<li><p>UI - Ask a customer to send the payment to the generated deposit address (in our example, user has to send BTC coins);</p>\n</li>\n<li><p>UI - A customer sends coins, NOWPayments processes and exchanges them (if required), and credit the payment to your players' balance;</p>\n</li>\n<li><p>API - You can get the payment status either via our IPN callbacks or manually, using <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#62a6d281-478d-4927-8cd0-f96d677b8de6\">\"GET Payment Status\"</a> and display it to a customer so that they know when their payment has been processed;</p>\n</li>\n<li><p>API - you call the list of payments made to your account via the <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#3d4cce8c-1b61-42dc-8a50-51e532d5d23c\">\"GET List of payments\"</a> method;</p>\n</li>\n</ol>\n<p>Payouts:</p>\n<ol>\n<li><p>UI - ask the user for desirable amount, coin and address for payout.</p>\n</li>\n<li><p>API - call the player balance with <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#2ad68331-5d59-4da3-98d8-501979d16569\">\"GET user balance\"</a> method and check if player has enough balance.</p>\n</li>\n<li><p>API - call <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#1ba52b69-a34e-464f-bd09-c2464f782b9f\">\"POST validate address\"</a> to check if the provided address is valid on the blockchain.</p>\n</li>\n<li><p>API - call <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#b976b1c0-ba2c-4e9d-ae51-3befd6676654\">\"POST write off your account\"</a> method to collect the requested amount from user balance to your master balance.</p>\n</li>\n<li><p>API - call <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#3c2f4f3f-b1a5-40ad-bffb-71e9f6bd4184\">\"POST Create payout\"</a> to create a payout.</p>\n</li>\n<li><p>API - create an OTP password for 2fa validation using external libraries.</p>\n</li>\n<li><p>API - call <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#71140750-7dfe-4ca7-91c1-161589e14f48\">\"POST Verify payout\"</a> to validate a payout with 2fa code.</p>\n</li>\n<li><p>API - You can get the payout status either via our IPN callbacks or manually, using <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#98bc6767-bde3-4e36-82db-de909588be8a\">\"GET Payout Status\"</a> and display it to a customer so that they know when their payment has been processed;</p>\n</li>\n<li><p>UI - NOWPayments processes payout and credit the payment to your players' wallet;</p>\n</li>\n</ol>\n<p>All related information about your operations will also be available in your NOWPayments dashboard.</p>\n<p>If you have any additional questions about integration feel free to drop a message to <a href=\"https://mailto:partners@nowpayments.io\">partners@nowpayments.io</a> for further guidance.</p>\n","_postman_id":"e4be36c0-9a46-4ce9-8a05-0efa9af6fa96"},{"name":"DAO","item":[{"name":"Auth and API status","item":[{"name":"Get API status","id":"cdc2d0d5-83b8-4f7a-9929-6f4fb83f0d0d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.nowpayments.io/v1/status","description":"<p>This is a method to get information about the current state of the API. If everything is OK, you will receive an \"OK\" message. Otherwise, you'll see some error.</p>\n","urlObject":{"path":["v1","status"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"cdb30ee7-5d14-4f11-ba3f-95550f8690c6","name":"200","originalRequest":{"method":"GET","header":[],"url":"https://api.nowpayments.io/v1/status"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 18 Apr 2019 13:37:08 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"16"},{"key":"Connection","value":"keep-alive"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"Strict-Transport-Security","value":"max-age=15768000"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Vary","value":"Origin"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"4c97081ce9509700-FRA"}],"cookie":[],"responseTime":null,"body":"{\n \"message\": \"OK\"\n}"}],"_postman_id":"cdc2d0d5-83b8-4f7a-9929-6f4fb83f0d0d"},{"name":"Authentication","event":[{"listen":"test","script":{"id":"61ce614a-946b-4a7b-afc1-283db7e7bbd2","exec":["const schema = {"," properties: {"," token: {"," type: \"string\","," }"," },"," required: ["," 'token',"," ],","};","","try {"," const jsonData = pm.response.json();"," pm.collectionVariables.set(\"token\", jsonData?.token);","} catch (e) {"," console.warn(e);","}"],"type":"text/javascript"}}],"id":"a89b3809-af53-4756-8342-5a4614285fd5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n \"email\": \"{{email}}\",\n \"password\": \"{{password}}\" \n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/auth","description":"<p>Authentication method for obtaining a JWT token. You should specify your email and password which you are using for signing in into dashboard.<br />JWT token will be required for creating a payout request. For security reasons, JWT tokens expire in 5 minutes.</p>\n","urlObject":{"path":["v1","auth"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"60cc687f-facf-4804-a749-ec55de7eb28b","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n \"email\": \"your_email\",\n \"password\": \"your_password\" \n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/auth"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 13 Nov 2020 17:26:24 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"__cfduid=d100179a7e095065cf498b0371b423b7d1605288381; expires=Sun, 13-Dec-20 17:26:21 GMT; path=/; domain=.nowpayments.io; HttpOnly; SameSite=Lax"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"Strict-Transport-Security","value":"max-age=15768000"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Vary","value":"Origin"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"cf-request-id","value":"06643de5b900000022542c9000000001"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=%2BQThCuj3D5DwqKzV%2FPRt15xNxPJ2KeOa0YwY8JeNLCpOzK7WTa%2FAv1csNcLl2Q2ZUnQEt4ITZdXfizJUafHl1f9G3F%2BENJmd%2FOe3NKxoFmN5Cjo%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"5f1a3282cac70022-DME"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjU4MjYyNTkxMTUiLCJpYXQiOjE2MDUyODgzODQsImV4cCI6MTYwNTI4ODY4NH0.bk8B5AjoTt8Qfm1zHJxutAtgaTGW-2j67waGQ2DUHUI\"\n}"}],"_postman_id":"a89b3809-af53-4756-8342-5a4614285fd5"}],"id":"f3ce486c-04fb-4f6b-ba0b-b943171c217c","description":"<p>This set of methods allows you to check API availability and get a JWT token which is requires as a header for some other methods.</p>\n","_postman_id":"f3ce486c-04fb-4f6b-ba0b-b943171c217c"},{"name":"Currencies","item":[{"name":"Get available currencies","id":"c59ee6e6-f952-4b58-84b2-420b84bad220","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"url":"https://api.nowpayments.io/v1/currencies","description":"<p>This is a method for obtaining information about all cryptocurrencies available for payments for your current setup of payout wallets.<br />Optional parameters:</p>\n<ul>\n<li>fixed_rate(optional) - boolean, can be <strong>true</strong> or <strong>false</strong>. Returns avaliable currencies with minimum and maximum amount of the exchange.</li>\n</ul>\n","urlObject":{"path":["v1","currencies"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"2f149068-a801-43be-9aef-90b3f3806845","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"<your_api_key>","type":"text"}],"url":"https://api.nowpayments.io/v1/currencies"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 22 Dec 2020 15:04:03 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-dns-prefetch-control","value":"off"},{"key":"x-frame-options","value":"SAMEORIGIN"},{"key":"strict-transport-security","value":"max-age=15552000; includeSubDomains"},{"key":"strict-transport-security","value":"max-age=15768000"},{"key":"x-download-options","value":"noopen"},{"key":"x-content-type-options","value":"nosniff"},{"key":"x-xss-protection","value":"1; mode=block"},{"key":"vary","value":"Origin"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"cf-request-id","value":"072c9386e7000016693802b000000001"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=njJG9MjxLKmoJsxN0xqpdp0MNZJmkCFhw4c9sIQz%2B97S%2FqQTBHWVp28uW4Hx3i1fWSQdR6w48evOdfYoN6u4o6MrXcV%2FZ5sLPQOQJ9ONwKuu4us%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"605abb84abee1669-ARN"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n \"currencies\": [\n \"btg\",\n \"eth\",\n \"xmr\",\n \"zec\",\n \"xvg\",\n \"ada\",\n \"ltc\",\n \"bch\",\n \"qtum\",\n \"dash\",\n \"xlm\",\n \"xrp\",\n \"xem\",\n \"dgb\",\n \"lsk\",\n \"doge\",\n \"trx\",\n \"kmd\",\n \"rep\",\n \"bat\",\n \"ark\",\n \"waves\",\n \"bnb\",\n \"xzc\",\n \"nano\",\n \"tusd\",\n \"vet\",\n \"zen\",\n \"grs\",\n \"fun\",\n \"neo\",\n \"gas\",\n \"pax\",\n \"usdc\",\n \"ont\",\n \"xtz\",\n \"link\",\n \"rvn\",\n \"bnbmainnet\",\n \"zil\",\n \"bcd\",\n \"usdt\",\n \"usdterc20\",\n \"cro\",\n \"dai\",\n \"ht\",\n \"wabi\",\n \"busd\",\n \"algo\",\n \"usdttrc20\",\n \"gt\",\n \"stpt\",\n \"ava\",\n \"sxp\",\n \"uni\",\n \"okb\",\n \"btc\"\n ]\n}"}],"_postman_id":"c59ee6e6-f952-4b58-84b2-420b84bad220"},{"name":"Get available currencies (2nd method)","id":"d3a46d67-2bed-4980-a190-fb1c9726b0a1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"url":"https://api.nowpayments.io/v1/full-currencies","description":"<p>This is a method to obtain detailed information about all cryptocurrencies available for payments.</p>\n","urlObject":{"path":["v1","full-currencies"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"a7ea8676-94c3-479c-b537-39a2d176e9e0","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"<your_api_key>","type":"text"}],"url":"https://api.nowpayments.io/v1/full-currencies"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 22 Dec 2020 15:04:03 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-dns-prefetch-control","value":"off"},{"key":"x-frame-options","value":"SAMEORIGIN"},{"key":"strict-transport-security","value":"max-age=15552000; includeSubDomains"},{"key":"strict-transport-security","value":"max-age=15768000"},{"key":"x-download-options","value":"noopen"},{"key":"x-content-type-options","value":"nosniff"},{"key":"x-xss-protection","value":"1; mode=block"},{"key":"vary","value":"Origin"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"cf-request-id","value":"072c9386e7000016693802b000000001"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=njJG9MjxLKmoJsxN0xqpdp0MNZJmkCFhw4c9sIQz%2B97S%2FqQTBHWVp28uW4Hx3i1fWSQdR6w48evOdfYoN6u4o6MrXcV%2FZ5sLPQOQJ9ONwKuu4us%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"605abb84abee1669-ARN"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"\"currencies\": [\n {\n \"id\": 121,\n \"code\": \"AAVE\",\n \"name\": \"Aave\",\n \"enable\": true,\n \"wallet_regex\": \"^(0x)[0-9A-Fa-f]{40}$\",\n \"priority\": 127,\n \"extra_id_exists\": false,\n \"extra_id_regex\": null,\n \"logo_url\": \"/images/coins/aave.svg\",\n \"track\": true,\n \"cg_id\": \"aave\",\n \"is_maxlimit\": false,\n \"network\": \"eth\",\n \"smart_contract\": null,\n \"network_precision\": null\n }\n]"}],"_postman_id":"d3a46d67-2bed-4980-a190-fb1c9726b0a1"},{"name":"Get available checked currencies","id":"a1f3a6c5-25aa-4cd4-92b4-639611253842","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"url":"https://api.nowpayments.io/v1/merchant/coins","description":"<p>This is a method for obtaining information about the cryptocurrencies available for payments. Shows the coins you set as available for payments in the \"coins settings\" tab on your personal account.<br />Optional parameters:</p>\n<ul>\n<li>fixed_rate(optional) - boolean, can be <strong>true</strong> or <strong>false</strong>. Returns currencies avaliable for fixed rate exchanges with minimum and maximum amount of the exchange.</li>\n</ul>\n","urlObject":{"path":["v1","merchant","coins"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"0eb75a6b-5dfc-47a2-b55b-f5346acff51e","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"<your_api_key>","type":"text"}],"url":"https://api.nowpayments.io/v1/merchant/coins"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 22 Dec 2020 15:04:03 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-dns-prefetch-control","value":"off"},{"key":"x-frame-options","value":"SAMEORIGIN"},{"key":"strict-transport-security","value":"max-age=15552000; includeSubDomains"},{"key":"strict-transport-security","value":"max-age=15768000"},{"key":"x-download-options","value":"noopen"},{"key":"x-content-type-options","value":"nosniff"},{"key":"x-xss-protection","value":"1; mode=block"},{"key":"vary","value":"Origin"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"cf-request-id","value":"072c9386e7000016693802b000000001"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=njJG9MjxLKmoJsxN0xqpdp0MNZJmkCFhw4c9sIQz%2B97S%2FqQTBHWVp28uW4Hx3i1fWSQdR6w48evOdfYoN6u4o6MrXcV%2FZ5sLPQOQJ9ONwKuu4us%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"605abb84abee1669-ARN"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n \"currencies\": [\n \"btg\",\n \"eth\",\n \"xmr\",\n \"zec\",\n \"xvg\",\n \"ada\",\n \"ltc\",\n \"bch\",\n \"qtum\",\n \"dash\",\n \"xlm\",\n \"xrp\",\n \"xem\",\n \"dgb\",\n \"lsk\",\n \"doge\",\n \"trx\",\n \"kmd\",\n \"rep\",\n \"bat\",\n \"ark\",\n \"waves\",\n \"bnb\",\n \"xzc\",\n \"nano\",\n \"tusd\",\n \"vet\",\n \"zen\",\n \"grs\",\n \"fun\",\n \"neo\",\n \"gas\",\n \"pax\",\n \"usdc\",\n \"ont\",\n \"xtz\",\n \"link\",\n \"rvn\",\n \"bnbmainnet\",\n \"zil\",\n \"bcd\",\n \"usdt\",\n \"usdterc20\",\n \"cro\",\n \"dai\",\n \"ht\",\n \"wabi\",\n \"busd\",\n \"algo\",\n \"usdttrc20\",\n \"gt\",\n \"stpt\",\n \"ava\",\n \"sxp\",\n \"uni\",\n \"okb\",\n \"btc\"\n ]\n}"}],"_postman_id":"a1f3a6c5-25aa-4cd4-92b4-639611253842"}],"id":"c46ee7ec-0dec-4f9d-bd8c-62b00aeb4398","_postman_id":"c46ee7ec-0dec-4f9d-bd8c-62b00aeb4398","description":""},{"name":"Custody","item":[{"name":"Create new user account","id":"1b722663-00bf-4e48-98b4-8d8670d90c78","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n \"name\": \"test1\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/sub-partner/balance","description":"<p>This is a method to create an account for your user. After this you'll be able to generate a payment(/v1/sub-partner/payment) or deposit(/v1/sub-partner/deposit) for topping up its balance as well as withdraw funds from it.</p>\n<p><strong>Body:</strong></p>\n<p>Name : a unique user identifier; you can use any string which doesn’t exceed 30 characters (but NOT an email)</p>\n","urlObject":{"path":["v1","sub-partner","balance"],"host":["https://api.nowpayments.io"],"query":[{"disabled":true,"key":"","value":null}],"variable":[]}},"response":[{"id":"2cef0230-b5c2-4587-9510-8a96d01126b1","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n \"name\": \"test1\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/sub-partner/balance"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": {\n \"id\": \"1515573197\",\n \"name\": \"test1\",\n \"created_at\": \"2022-10-09T21:56:33.754Z\",\n \"updated_at\": \"2022-10-09T21:56:33.754Z\"\n }\n}"},{"id":"810a568e-2129-499d-8b91-9dbb555d3dd5","name":"400","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n \"name\": \"test1\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/sub-partner/balance"},"status":"Bad Request","code":400,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"status\": false,\n \"statusCode\": 400,\n \"code\": \"BAD_REQUEST\",\n \"message\": \"sub partner already exist\"\n}"}],"_postman_id":"1b722663-00bf-4e48-98b4-8d8670d90c78"},{"name":"Create recurring payments","id":"671e0a6b-f2e2-470c-9718-2ce93ee0ef57","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n \"subscription_plan_id\": 76215585,\n \"sub_partner_id\": 111111,\n \"email\": \"your email\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/subscriptions","description":"<p>This method creates a recurring charge from a user account.</p>\n<p>The funds are transferred from a user account to your account when a new payment is generated or a paid period is coming to an end. The amount depends on the plan a customer chooses.<br />If you specify a particular currency your customer should pay in, and their account have enough funds stored in it, the amount will be charged automatically. In case a customer has other currency on their account, the equivalent sum will be charged.</p>\n<p>Here is the list of available statuses:</p>\n<ul>\n<li>WAITING_PAY - the payment is waiting for user's deposit;</li>\n<li>PAID - the payment is completed;</li>\n<li>PARTIALLY_PAID - the payment is completed, but the final amount is less than required for payment to be fully paid;</li>\n<li>EXPIRED - is being assigned to unpaid payment after 7 days of waiting;</li>\n</ul>\n","urlObject":{"path":["v1","subscriptions"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"824c7bfc-1288-4f5e-9e96-dc80880fc0f1","name":"200","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"body":{"mode":"raw","raw":"{\n \"subscription_plan_id\": 76215585,\n \"sub_partner_id\": 111111\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/subscriptions"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": {\n \"id\": \"1515573197\",\n \"subscription_plan_id\": \"76215585\",\n \"is_active\": false,\n \"status\": \"WAITING_PAY\",\n \"expire_date\": \"2022-10-09T22:15:50.808Z\",\n \"subscriber\": {\n \"sub_partner_id\": \"111111\"\n },\n \"created_at\": \"2022-10-09T22:15:50.808Z\",\n \"updated_at\": \"2022-10-09T22:15:50.808Z\"\n }\n}"}],"_postman_id":"671e0a6b-f2e2-470c-9718-2ce93ee0ef57"},{"name":"Get user balance","id":"587c191c-4e16-4c35-8552-da1e5c52902d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"url":"https://api.nowpayments.io/v1/sub-partner/balance/:id","description":"<p>This request can be made only from a whitelisted IP.<br />If IP whitelisting is disabled, this request can be made by any user that has an API key.</p>\n","urlObject":{"path":["v1","sub-partner","balance",":id"],"host":["https://api.nowpayments.io"],"query":[],"variable":[{"id":"b50dea8e-1a0a-45c1-8052-fdfb32468ae3","type":"any","value":null,"key":"id"}]}},"response":[{"id":"6200a239-d292-4275-b4a0-fd934fececd2","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"url":{"raw":"https://api.nowpayments.io/v1/sub-partner/balance/:id","host":["https://api.nowpayments.io"],"path":["v1","sub-partner","balance",":id"],"variable":[{"key":"id","value":null}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": {\n \"subPartnerId\": \"111394288\",\n \"balances\": {\n \"usddtrc20\": {\n \"amount\": 0.7,\n \"pendingAmount\": 0\n },\n \"usdtbsc\": {\n \"amount\": 1.0001341847350678,\n \"pendingAmount\": 0\n }\n }\n }\n}"}],"_postman_id":"587c191c-4e16-4c35-8552-da1e5c52902d"},{"name":"Get users","id":"0f02bb43-ab6c-4d86-bd55-dc782da4c2da","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"GET","header":[{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"}],"url":"https://api.nowpayments.ioo/v1/sub-partner?id=111&offset=1&limit=10&order=DESC","description":"<p>This method returns the entire list of your users.</p>\n","urlObject":{"path":["v1","sub-partner"],"host":["https://api.nowpayments.ioo"],"query":[{"description":{"content":"<p>int or array of int (optional)</p>\n","type":"text/plain"},"key":"id","value":"111"},{"description":{"content":"<p>(optional) default 0</p>\n","type":"text/plain"},"key":"offset","value":"1"},{"description":{"content":"<p>(optional) default 10</p>\n","type":"text/plain"},"key":"limit","value":"10"},{"description":{"content":"<p>ASC / DESC (optional) default ASC</p>\n","type":"text/plain"},"key":"order","value":"DESC"}],"variable":[]}},"response":[{"id":"f5bb0b20-6e37-4f8a-a16d-c13963750ba2","name":"200","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.nowpayments.ioo/v1/sub-partner?offset=0&limit=10&order=DESC","host":["https://api.nowpayments.ioo"],"path":["v1","sub-partner"],"query":[{"key":"id","value":"111","description":"int or array of int (optional)","disabled":true},{"key":"offset","value":"0","description":"(optional) default 0"},{"key":"limit","value":"10","description":"(optional) default 10"},{"key":"order","value":"DESC","description":"ASC / DESC (optional) default ASC"}]}},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": [\n {\n \"id\": \"111394288\",\n \"name\": \"test\",\n \"created_at\": \"2022-10-06T16:42:47.352Z\",\n \"updated_at\": \"2022-10-06T16:42:47.352Z\"\n },\n {\n \"id\": \"1515573197\",\n \"name\": \"test1\",\n \"created_at\": \"2022-10-09T21:56:33.754Z\",\n \"updated_at\": \"2022-10-09T21:56:33.754Z\"\n }\n ],\n \"count\": 2\n}"}],"_postman_id":"0f02bb43-ab6c-4d86-bd55-dc782da4c2da"},{"name":"Get all transfers","id":"4172c72c-182c-47ea-b690-c7fa9624d9a8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer *your_jwt_token* ","type":"text"}],"url":"https://api.nowpayments.io/v1/sub-partner/transfers?id=111&status=CREATED&limit=10&offset=1&order=ASC","description":"<p>Returns the entire list of transfers created by your users.</p>\n<p>The list of available statuses:</p>\n<ul>\n<li>CREATED - the transfer is being created;</li>\n<li>WAITING - the transfer is waiting for payment;</li>\n<li>FINISHED - the transfer is completed;</li>\n<li>REJECTED - for some reason, transaction failed;</li>\n</ul>\n","urlObject":{"path":["v1","sub-partner","transfers"],"host":["https://api.nowpayments.io"],"query":[{"description":{"content":"<p>int or array of int (optional)</p>\n","type":"text/plain"},"key":"id","value":"111"},{"description":{"content":"<p>string or array of string \n\"WAITING\"/\"CREATED\"/\"FINISHED\"/\"REJECTED\"\n(optional)</p>\n","type":"text/plain"},"key":"status","value":"CREATED"},{"description":{"content":"<p>(optional) default 10</p>\n","type":"text/plain"},"key":"limit","value":"10"},{"description":{"content":"<p>(optional) default 0</p>\n","type":"text/plain"},"key":"offset","value":"1"},{"description":{"content":"<p>ASC / DESC (optional) default ASC</p>\n","type":"text/plain"},"key":"order","value":"ASC"}],"variable":[]}},"response":[{"id":"82465ef9-ddf0-4e30-80d7-28e5498df1ef","name":"200","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.nowpayments.io/v1/sub-partner/transfers?status=FINISHED&limit=10&offset=0&order=ASC","host":["https://api.nowpayments.io"],"path":["v1","sub-partner","transfers"],"query":[{"key":"id","value":"111","description":"int or array of int (optional)","disabled":true},{"key":"status","value":"FINISHED","description":"string or array of string \n\"WAITING\"/\"CREATED\"/\"FINISHED\"/\"REJECTED\"\n(optional)"},{"key":"limit","value":"10","description":"(optional) default 10"},{"key":"offset","value":"0","description":"(optional) default 0"},{"key":"order","value":"ASC","description":"ASC / DESC (optional) default ASC"}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": [\n {\n \"id\": \"111394288\",\n \"from_sub_id\": \"5209391548\",\n \"to_sub_id\": \"111394288\",\n \"status\": \"FINISHED\",\n \"created_at\": \"2022-10-09T18:53:21.975Z\",\n \"updated_at\": \"2022-10-09T18:55:00.696Z\",\n \"amount\": \"1\",\n \"currency\": \"usdtbsc\"\n },\n {\n \"id\": \"148427051\",\n \"from_sub_id\": \"111394288\",\n \"to_sub_id\": \"5209391548\",\n \"status\": \"FINISHED\",\n \"created_at\": \"2022-10-09T19:08:32.440Z\",\n \"updated_at\": \"2022-10-09T19:10:01.209Z\",\n \"amount\": \"1\",\n \"currency\": \"usdtbsc\"\n },\n {\n \"id\": \"1631380403\",\n \"from_sub_id\": \"5209391548\",\n \"to_sub_id\": \"111394288\",\n \"status\": \"FINISHED\",\n \"created_at\": \"2022-10-09T21:19:51.936Z\",\n \"updated_at\": \"2022-10-09T21:21:00.671Z\",\n \"amount\": \"2\",\n \"currency\": \"usdtbsc\"\n },\n {\n \"id\": \"1167886259\",\n \"from_sub_id\": \"5209391548\",\n \"to_sub_id\": \"111394288\",\n \"status\": \"FINISHED\",\n \"created_at\": \"2022-10-09T21:22:17.125Z\",\n \"updated_at\": \"2022-10-09T21:24:00.662Z\",\n \"amount\": \"2\",\n \"currency\": \"usdtbsc\"\n },\n {\n \"id\": \"48471014\",\n \"from_sub_id\": \"111394288\",\n \"to_sub_id\": \"5209391548\",\n \"status\": \"FINISHED\",\n \"created_at\": \"2022-10-09T21:25:29.231Z\",\n \"updated_at\": \"2022-10-09T21:27:00.676Z\",\n \"amount\": \"1\",\n \"currency\": \"usdtbsc\"\n },\n {\n \"id\": \"1304149238\",\n \"from_sub_id\": \"111394288\",\n \"to_sub_id\": \"5209391548\",\n \"status\": \"FINISHED\",\n \"created_at\": \"2022-10-09T21:54:57.713Z\",\n \"updated_at\": \"2022-10-09T21:56:01.056Z\",\n \"amount\": \"1\",\n \"currency\": \"usdtbsc\"\n },\n {\n \"id\": \"327209161\",\n \"from_sub_id\": \"111394288\",\n \"to_sub_id\": \"1515573197\",\n \"status\": \"FINISHED\",\n \"created_at\": \"2022-10-09T22:09:02.181Z\",\n \"updated_at\": \"2022-10-09T22:10:01.853Z\",\n \"amount\": \"1\",\n \"currency\": \"usdtbsc\"\n }\n ],\n \"count\": 7\n}"}],"_postman_id":"4172c72c-182c-47ea-b690-c7fa9624d9a8"},{"name":"Get transfer","id":"1ff1eba2-4e6a-4a0b-bb1e-b0d6c18a9c19","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer *your_jwt_token* ","type":"text"}],"url":"https://api.nowpayments.io/v1/sub-partner/transfer/:id","description":"<p>Get the actual information about the transfer. You need to provide the transfer ID in the request.</p>\n<p>The list of available statuses:</p>\n<ul>\n<li>CREATED - the transfer is being created;</li>\n<li>WAITING - the transfer is waiting for payment;</li>\n<li>FINISHED - the transfer is completed;</li>\n<li>REJECTED - for some reason, transaction failed;</li>\n</ul>\n","urlObject":{"path":["v1","sub-partner","transfer",":id"],"host":["https://api.nowpayments.io"],"query":[],"variable":[{"id":"d7086b4a-b4b4-4059-ae84-2d964bc6f513","type":"any","value":null,"key":"id"}]}},"response":[{"id":"e614778f-c8e8-4620-87d6-6d040394fbae","name":"200","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.nowpayments.io/v1/sub-partner/transfer/:id","host":["https://api.nowpayments.io"],"path":["v1","sub-partner","transfer",":id"],"variable":[{"key":"id","value":"327209161"}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": {\n \"id\": \"327209161\",\n \"from_sub_id\": \"111394288\",\n \"to_sub_id\": \"1515573197\",\n \"status\": \"FINISHED\",\n \"created_at\": \"2022-10-09T22:09:02.181Z\",\n \"updated_at\": \"2022-10-09T22:10:01.853Z\",\n \"amount\": \"1\",\n \"currency\": \"usdtbsc\"\n }\n}"}],"_postman_id":"1ff1eba2-4e6a-4a0b-bb1e-b0d6c18a9c19"},{"name":"Transfer","id":"3f43453c-47d4-4c03-9c09-4029dce26096","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[{"key":"x-api-key","value":"{{x-api-token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n \"currency\": \"trx\",\n \"amount\": 0.3,\n \"from_id\": 1111111,\n \"to_id\": 1111111\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/sub-partner/transfer","description":"<p>This method allows creating transfers between users' accounts.<br />You can check the transfer's status using <code>Get transfer</code> method.</p>\n<p>The list of available statuses:</p>\n<ul>\n<li>CREATED - the transfer is being created;</li>\n<li>WAITING - the transfer is waiting for payment;</li>\n<li>FINISHED - the transfer is completed;</li>\n<li>REJECTED - for some reason, transaction failed;</li>\n</ul>\n","urlObject":{"path":["v1","sub-partner","transfer"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"8d1e979b-cee0-411e-a311-89100443a4b1","name":"Transfer","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"{{x-api-token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n \"currency\": \"trx\",\n \"amount\": 0.3,\n \"from_id\": 1111111,\n \"to_id\": 1111111\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/sub-partner/transfer"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": {\n \"id\": \"327209161\",\n \"from_sub_id\": \"111394288\", //sub account\n \"to_sub_id\": \"1515573197\", //sub account\n \"status\": \"WAITING\",\n \"created_at\": \"2022-10-09T22:09:02.181Z\",\n \"updated_at\": \"2022-10-09T22:09:02.181Z\",\n \"amount\": \"1\",\n \"currency\": \"usdtbsc\"\n }\n}"}],"_postman_id":"3f43453c-47d4-4c03-9c09-4029dce26096"},{"name":"Deposit with payment","id":"bfe1e84f-7696-445d-9cc4-bd42bb6856f7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[{"key":"x-api-key","value":"{{x-api-key}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n \"currency\": \"trx\",\n \"amount\": 0.3,\n \"sub_partner_id\": \"1631380403\",\n \"fixed_rate\": false\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/sub-partner/payment","description":"<p>This method allows you to top up a user account with a general payment.<br />You can check the actual payment status by using GET 9 <code>Get payment status</code> request.</p>\n","urlObject":{"path":["v1","sub-partner","payment"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"bea400f0-0c41-44b0-9133-e70e4c4fadf0","name":"Deposit with payment","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"{{x-api-token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n \"currency\": \"trx\",\n \"amount\": 50,\n \"sub_partner_id\": \"1631380403\",\n \"fixed_rate\": false\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/sub-partner/payment"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": {\n \"payment_id\": \"5250038861\",\n \"payment_status\": \"waiting\",\n \"pay_address\": \"TSszwFcbpkrZ2H85ZKsB6bEV5ffAv6kKai\",\n \"price_amount\": 50,\n \"price_currency\": \"trx\",\n \"pay_amount\": 50,\n \"amount_received\": 0.0272467,\n \"pay_currency\": \"trx\",\n \"order_id\": null,\n \"order_description\": null,\n \"ipn_callback_url\": null,\n \"created_at\": \"2022-10-11T10:49:27.414Z\",\n \"updated_at\": \"2022-10-11T10:49:27.414Z\",\n \"purchase_id\": \"5932573772\",\n \"smart_contract\": null,\n \"network\": \"trx\",\n \"network_precision\": null,\n \"time_limit\": null,\n \"burning_percent\": null,\n \"expiration_estimate_date\": \"2022-10-11T11:09:27.418Z\",\n \"valid_until\": \"valid_until_timestamp\",\n \"type\": \"crypto2crypto\"\n }\n}"}],"_postman_id":"bfe1e84f-7696-445d-9cc4-bd42bb6856f7"},{"name":"Deposit from your master account","id":"cd0ddf41-90ea-42bf-9c6a-dd7c1d9e9653","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[{"key":"x-api-key","value":"{{x-api-token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n \"currency\": \"trx\",\n \"amount\": 0.3,\n \"sub_partner_id\": \"1631380403\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/sub-partner/deposit","description":"<p>This is a method for transferring funds from your master account to a user's one.<br />The actual information about the transfer's status can be obtained via <code>Get transfer</code> method.</p>\n<p>The list of available statuses:</p>\n<ul>\n<li>CREATED - the transfer is being created;</li>\n<li>WAITING - the transfer is waiting for payment;</li>\n<li>FINISHED - the transfer is completed;</li>\n<li>REJECTED - for some reason, transaction failed;</li>\n</ul>\n","urlObject":{"path":["v1","sub-partner","deposit"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"476d99b0-dd97-4489-b2d1-5c84f6bd73e7","name":"200","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"{{x-api-token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n \"currency\": \"usddtrc20\",\n \"amount\": 0.7,\n \"sub_partner_id\": \"111394288\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/sub-partner/deposit"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": {\n \"id\": \"19649354\",\n \"from_sub_id\": \"5209391548\", //main account\n \"to_sub_id\": \"111394288\", //sub account\n \"status\": \"WAITING\",\n \"created_at\": \"2022-10-11T10:01:33.323Z\",\n \"updated_at\": \"2022-10-11T10:01:33.323Z\",\n \"amount\": \"0.7\",\n \"currency\": \"usddtrc20\"\n }\n}"}],"_postman_id":"cd0ddf41-90ea-42bf-9c6a-dd7c1d9e9653"},{"name":"Write off on your account","id":"45ab5461-5d47-4d6a-bffe-5ef3f25c9e53","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n \"currency\": \"trx\",\n \"amount\": 0.3,\n \"sub_partner_id\": \"1631380403\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/sub-partner/write-off","description":"<p>With this method you can withdraw funds from a user's account and transfer them to your master account.</p>\n<p>The actual status of the transaction can be checked with <code>Get transfer</code> method.</p>\n<p>The list of available statuses:</p>\n<ul>\n<li>CREATED - the transfer is being created;</li>\n<li>WAITING - the transfer is waiting for payment;</li>\n<li>FINISHED - the transfer is completed;</li>\n<li>REJECTED - for some reason, transaction failed;</li>\n</ul>\n","urlObject":{"path":["v1","sub-partner","write-off"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"e45220d2-c1c4-4c5a-90e2-c1f7b92e1693","name":"200","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"{{x-api-token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n \"currency\": \"trx\",\n \"amount\": 0.3,\n \"sub_partner_id\": \"1631380403\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/sub-partner/write-off"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": {\n \"id\": \"19649354\",\n \"from_sub_id\": \"111394288\", //sub account\n \"to_sub_id\": \"5209391548\", //main account\n \"status\": \"WAITING\",\n \"created_at\": \"2022-10-11T10:01:33.323Z\",\n \"updated_at\": \"2022-10-11T10:01:33.323Z\",\n \"amount\": \"0.7\",\n \"currency\": \"usddtrc20\"\n }\n}"}],"_postman_id":"45ab5461-5d47-4d6a-bffe-5ef3f25c9e53"}],"id":"101bd2b2-0be1-4c16-a4a5-48a7d0fd1ea1","description":"<p>NOWPayments allows you to create deposit accounts for your users, enabling full-fledged crypto billing solution.</p>\n","_postman_id":"101bd2b2-0be1-4c16-a4a5-48a7d0fd1ea1"},{"name":"Recurring Payments API (Email Subscriptions feature)","item":[{"name":"Create plan","id":"cb72a81c-a006-4cb9-8b31-e7676d9fc7c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n \"title\": \"second sub plan\",\n \"interval_day\": 3,\n \"amount\": 1,\n \"currency\" : \"usd\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/subscriptions/plans","description":"<p>This is the method to create a Recurring Payments plan. Every plan has its unique ID which is required for generating separate payments.</p>\n<p>Available parameters:<br />\"title\": the name of your recurring payments plan;<br />\"interval_day\": recurring payments duration in days;<br />\"amount\" : amount of funds paid in fiat/crypto;<br />\"currency\" : crypto or fiat currency we support;<br />\"ipn_callback_url\" : your IPN_callback url;<br />\"success_url\" : url user got redirected in case payment was successful;<br />\"cancel_url\" : url user got redirected in case payment was cancelled;<br />\"partially_paid_url\" : url user got redirected in case payment was paid not in full amount;</p>\n","urlObject":{"path":["v1","subscriptions","plans"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"eb764d97-bcff-4163-9bd8-995b1850b877","name":"200","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"<your_api_key>","type":"text"}],"body":{"mode":"raw","raw":"{\n \"title\": \"second sub plan\",\n \"interval_day\": 1,\n \"amount\": 0.5,\n \"currency\" : \"usd\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/subscriptions/plans"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": {\n \"id\": \"1062307590\",\n \"title\": \"second sub plan\",\n \"interval_day\": \"1\",\n \"ipn_callback_url\": null,\n \"success_url\": null,\n \"cancel_url\": null,\n \"partially_paid_url\": null,\n \"amount\": 0.5,\n \"currency\": \"USD\",\n \"created_at\": \"2022-10-04T16:28:55.423Z\",\n \"updated_at\": \"2022-10-04T16:28:55.423Z\"\n }\n}"}],"_postman_id":"cb72a81c-a006-4cb9-8b31-e7676d9fc7c6"},{"name":"Update plan","id":"67906e91-ca0b-4d63-affb-985f59b931eb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"PATCH","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n \"title\": \"test plan\",\n \"interval_day\": 1,\n \"amount\": 2,\n \"currency\": \"usd\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/subscriptions/plans/:plan-id","description":"<p>This method allows you to add necessary changes to a created plan. They won’t affect users who have already paid; however, the changes will take effect when a new payment is to be made.</p>\n","urlObject":{"path":["v1","subscriptions","plans",":plan-id"],"host":["https://api.nowpayments.io"],"query":[],"variable":[{"id":"1691eb9d-6039-4c4d-9579-0c6d8cfe0768","type":"any","value":null,"key":"plan-id"}]}},"response":[{"id":"9752c230-cb62-41cb-a7de-9cf34c7a1c2b","name":"200","originalRequest":{"method":"PATCH","header":[{"key":"x-api-key","value":"<your_api_key>","type":"text"}],"body":{"mode":"raw","raw":"{\n \"title\": \"test plan\",\n \"interval_day\": 1,\n \"amount\": 2,\n \"currency\": \"usd\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.nowpayments.io/v1/subscriptions/plans/:plan-id","protocol":"https","host":["api","nowpayments","io"],"path":["v1","subscriptions","plans",":plan-id"],"variable":[{"key":"plan-id","value":"76215585"}]}},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": {\n \"id\": \"76215585\",\n \"title\": \"test plan\",\n \"interval_day\": \"1\",\n \"ipn_callback_url\": null,\n \"success_url\": null,\n \"cancel_url\": null,\n \"partially_paid_url\": null,\n \"amount\": 2,\n \"currency\": \"USD\",\n \"created_at\": \"2022-10-04T16:10:06.214Z\",\n \"updated_at\": \"2022-10-04T16:10:06.214Z\"\n }\n}"}],"_postman_id":"67906e91-ca0b-4d63-affb-985f59b931eb"},{"name":"Get one plan","id":"6e131570-c2f2-44f1-a3ff-44cd2ac0d9ce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"url":"https://api.nowpayments.io/v1/subscriptions/plans/:plan-id","description":"<p>This method allows you to obtain information about your payment plan (you need to specify your payment plan id in the request).</p>\n","urlObject":{"path":["v1","subscriptions","plans",":plan-id"],"host":["https://api.nowpayments.io"],"query":[],"variable":[{"id":"2875d50d-3107-4500-9d04-022b092dfdfa","type":"any","value":null,"key":"plan-id"}]}},"response":[{"id":"e29e6532-cf39-4688-9b0c-7a4e10f9df0e","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"<your_api_key>","type":"text"}],"url":{"raw":"https://api.nowpayments.io/v1/subscriptions/plans/:plan-id","protocol":"https","host":["api","nowpayments","io"],"path":["v1","subscriptions","plans",":plan-id"],"variable":[{"key":"plan-id","value":"76215585"}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": {\n \"id\": \"76215585\",\n \"title\": \"test plan\",\n \"interval_day\": \"1\",\n \"ipn_callback_url\": null,\n \"success_url\": null,\n \"cancel_url\": null,\n \"partially_paid_url\": null,\n \"amount\": 2,\n \"currency\": \"USD\",\n \"created_at\": \"2022-10-04T16:10:06.214Z\",\n \"updated_at\": \"2022-10-04T16:10:06.214Z\"\n }\n}"},{"id":"ed34ca86-7039-40d8-ace5-aeb59448d5f6","name":"404","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"<your_api_key>","type":"text"}],"url":{"raw":"https://api.nowpayments.io/v1/subscriptions/plans/:plan-id","protocol":"https","host":["api","nowpayments","io"],"path":["v1","subscriptions","plans",":plan-id"],"variable":[{"key":"plan-id","value":"11111"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"status\": false,\n \"statusCode\": 404,\n \"code\": \"NOT_FOUND\",\n \"message\": \"subscription plan not found\"\n}"}],"_postman_id":"6e131570-c2f2-44f1-a3ff-44cd2ac0d9ce"},{"name":"Get all plans","id":"af5aaffb-a3ad-4e2e-8e8b-48f770190caa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"url":"https://api.nowpayments.io/v1/subscriptions/plans","description":"<p>This method allows you to obtain information about all the payment plans you’ve created.</p>\n","urlObject":{"path":["v1","subscriptions","plans"],"host":["https://api.nowpayments.io"],"query":[{"disabled":true,"description":{"content":"<p>Number</p>\n","type":"text/plain"},"key":"limit","value":"10"},{"disabled":true,"description":{"content":"<p>Number</p>\n","type":"text/plain"},"key":"offset","value":"3"}],"variable":[]}},"response":[{"id":"ad0ae81a-2941-439c-abb5-c02130565758","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"<your_api_key>","type":"text"}],"url":{"raw":"https://api.nowpayments.io/v1/subscriptions/plans","host":["https://api.nowpayments.io"],"path":["v1","subscriptions","plans"],"query":[{"key":"limit","value":"10","disabled":true},{"key":"offset","value":"3","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": [\n {\n \"id\": \"76215585\",\n \"title\": \"second sub plan\",\n \"interval_day\": \"3\",\n \"ipn_callback_url\": null,\n \"success_url\": null,\n \"cancel_url\": null,\n \"partially_paid_url\": null,\n \"amount\": 0.1,\n \"currency\": \"USD\",\n \"created_at\": \"2022-10-04T16:10:06.214Z\",\n \"updated_at\": \"2022-10-04T16:10:06.214Z\"\n },\n {\n \"id\": \"1062307590\",\n \"title\": \"second sub plan\",\n \"interval_day\": \"1\",\n \"ipn_callback_url\": null,\n \"success_url\": null,\n \"cancel_url\": null,\n \"partially_paid_url\": null,\n \"amount\": 0.5,\n \"currency\": \"USD\",\n \"created_at\": \"2022-10-04T16:28:55.423Z\",\n \"updated_at\": \"2022-10-04T16:28:55.423Z\"\n }\n ],\n \"count\": 2\n}"}],"_postman_id":"af5aaffb-a3ad-4e2e-8e8b-48f770190caa"},{"name":"Create an email subscription","id":"5f56b613-8b4c-4612-88c4-6ecd2c9034d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n \"subscription_plan_id\": 76215585,\n \"email\": \"test@example.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/subscriptions","description":"<p>This method allows you to send payment links to your customers via email. A day before the paid period ends, the customer receives a new letter with a new payment link.</p>\n<p><code>subscription_plan_id</code> - the ID of the payment plan your customer chooses; such params as the duration and amount will be defined by this ID;<br /><code>email</code> - your customer’s email to which the payment links will be sent;</p>\n","urlObject":{"path":["v1","subscriptions"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"140631b0-e65e-4566-af14-0e05adf859e3","name":"200","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"<enter_your_api_key>","type":"text"}],"body":{"mode":"raw","raw":"{\n \"subscription_plan_id\": 76215585,\n \"email\": \"test@example.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/subscriptions"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": {\n \"id\": \"148427051\",\n \"subscription_plan_id\": \"76215585\",\n \"is_active\": false,\n \"status\": \"WAITING_PAY\",\n \"expire_date\": \"2022-10-10T13:46:18.476Z\",\n \"subscriber\": {\n \"email\": \"test@example.com\"\n },\n \"created_at\": \"2022-10-10T13:46:18.476Z\",\n \"updated_at\": \"2022-10-10T13:46:18.476Z\"\n }\n}"},{"id":"5f699dbc-7bec-4324-86bf-0d16aff584ea","name":"400 (plan currency is fiat)","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"body":{"mode":"raw","raw":"{\n \"subscription_plan_id\": 76215585,\n \"email\": \"test@example.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/subscriptions"},"status":"Bad Request","code":400,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"status\": false,\n \"statusCode\": 400,\n \"code\": \"INVALID_REQUEST_PARAMS\",\n \"message\": \"For email subscriptions, only fiat currencies are available in plan\"\n}"}],"_postman_id":"5f56b613-8b4c-4612-88c4-6ecd2c9034d1"},{"name":"Get many recurring payments","id":"57875241-1e14-45b7-a09b-74b0428bd5fe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/subscriptions","description":"<p>The method allows you to view the entire list of recurring payments filtered by payment status and/or payment plan id</p>\n<p>Available parameters:</p>\n<ul>\n<li>limit - the amount of shown items</li>\n<li>offset - setting the offset</li>\n<li>is_active - status of the recurring payment</li>\n<li>status - filter by status of recurring payment</li>\n<li>subscription_plan_id - filter results by subscription plan id.</li>\n</ul>\n<p>Here is the list of available statuses:</p>\n<ul>\n<li>WAITING_PAY - the payment is waiting for user's deposit;</li>\n<li>PAID - the payment is completed;</li>\n<li>PARTIALLY_PAID - the payment is completed, but the final amount is less than required for payment to be fully paid;</li>\n<li>EXPIRED - is being assigned to unpaid payment after 7 days of waiting;</li>\n</ul>\n","urlObject":{"path":["v1","subscriptions"],"host":["https://api.nowpayments.io"],"query":[{"disabled":true,"description":{"content":"<p>\"WAITING_PAY\" / \"PAID\" / \"PARTIALLY_PAID\" / \"EXPIRED\"</p>\n","type":"text/plain"},"key":"status","value":"PARTIALLY_PAID"},{"disabled":true,"key":"subscription_plan_id","value":"111394288"},{"disabled":true,"description":{"content":"<p>true / false</p>\n","type":"text/plain"},"key":"is_active","value":"false"},{"disabled":true,"key":"limit","value":"10"},{"disabled":true,"key":"offset","value":"0"}],"variable":[]}},"response":[{"id":"2c448c17-e680-4f97-bab0-7f746bf9ef85","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"url":{"raw":"https://api.nowpayments.io/v1/subscriptions","host":["https://api.nowpayments.io"],"path":["v1","subscriptions"],"query":[{"key":"status","value":"PARTIALLY_PAID","description":"\"WAITING_PAY\" / \"PAID\" / \"PARTIALLY_PAID\" / \"EXPIRED\"","disabled":true},{"key":"subscription_plan_id","value":"111394288","disabled":true},{"key":"is_active","value":"false","description":"true / false","disabled":true},{"key":"limit","value":"10","disabled":true},{"key":"offset","value":"0","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": [\n {\n \"id\": \"1515573197\",\n \"subscription_plan_id\": \"111394288\",\n \"is_active\": true,\n \"status\": \"PAID\",\n \"expire_date\": \"2022-10-11T00:02:00.025Z\",\n \"subscriber\": {\n \"sub_partner_id\": \"111394288\"\n },\n \"created_at\": \"2022-10-09T22:15:50.808Z\",\n \"updated_at\": \"2022-10-09T22:15:50.808Z\"\n },\n {\n \"id\": \"111394288\",\n \"subscription_plan_id\": \"111394288\",\n \"is_active\": false,\n \"status\": \"WAITING_PAY\",\n \"expire_date\": \"2022-10-07T16:46:00.910Z\",\n \"subscriber\": {\n \"email\": \"test@example.com\"\n },\n \"created_at\": \"2022-10-06T16:40:28.880Z\",\n \"updated_at\": \"2022-10-06T16:40:28.880Z\"\n }\n ],\n \"count\": 2\n}"}],"_postman_id":"57875241-1e14-45b7-a09b-74b0428bd5fe"},{"name":"Get one recurring payment","id":"7ffde1b2-529a-4d6e-aaf2-88e670de8a72","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/subscriptions/:sub_id","description":"<p>Get information about a particular recurring payment via its ID.</p>\n<p>Here is the list of available statuses:</p>\n<ul>\n<li>WAITING_PAY - the payment is waiting for user's deposit;</li>\n<li>PAID - the payment is completed;</li>\n<li>PARTIALLY_PAID - the payment is completed, but the final amount is less than required for payment to be fully paid;</li>\n<li>EXPIRED - is being assigned to unpaid payment after 7 days of waiting;</li>\n</ul>\n","urlObject":{"path":["v1","subscriptions",":sub_id"],"host":["https://api.nowpayments.io"],"query":[],"variable":[{"id":"d890b024-6fc0-4e5b-a28d-12d241cd5ef1","type":"any","value":null,"key":"sub_id"}]}},"response":[{"id":"081d2e8a-0afa-4ee1-aea7-c3d44c4e3bb2","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"url":{"raw":"https://api.nowpayments.io/v1/subscriptions/:sub_id","host":["https://api.nowpayments.io"],"path":["v1","subscriptions",":sub_id"],"variable":[{"key":"sub_id","value":"1515573197"}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": {\n \"id\": \"1515573197\",\n \"subscription_plan_id\": \"111394288\",\n \"is_active\": true,\n \"status\": \"PAID\",\n \"expire_date\": \"2022-10-12T00:02:00.025Z\",\n \"subscriber\": {\n \"sub_partner_id\": \"111394288\"\n },\n \"created_at\": \"2022-10-09T22:15:50.808Z\",\n \"updated_at\": \"2022-10-09T22:15:50.808Z\"\n }\n}"},{"id":"06e4badc-61f5-49fa-88db-2bfd36b2b8b0","name":"404","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"url":{"raw":"https://api.nowpayments.io/v1/subscriptions/:sub_id","host":["https://api.nowpayments.io"],"path":["v1","subscriptions",":sub_id"],"variable":[{"key":"sub_id","value":"11111111"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"status\": false,\n \"statusCode\": 404,\n \"code\": \"NOT_FOUND\",\n \"message\": \"subscription not found\"\n}"}],"_postman_id":"7ffde1b2-529a-4d6e-aaf2-88e670de8a72"},{"name":"Delete recurring payment","id":"3d0a3313-970a-49be-a755-612368ed93d3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"DELETE","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/subscriptions/:sub_id","description":"<p>Completely removes a particular payment from the recurring payment plan.<br />You need to specify the payment plan id in the request.</p>\n","urlObject":{"path":["v1","subscriptions",":sub_id"],"host":["https://api.nowpayments.io"],"query":[],"variable":[{"id":"3e20cd63-0970-46c5-9c15-d84320b1e17a","type":"any","value":null,"key":"sub_id"}]}},"response":[{"id":"4ac8ed62-1c15-4782-8197-520c085a87e7","name":"200","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.nowpayments.io/v1/subscriptions/:sub_id","host":["https://api.nowpayments.io"],"path":["v1","subscriptions",":sub_id"],"variable":[{"key":"sub_id","value":null}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"result\": \"ok\"\n}"},{"id":"75ffcf3f-3dba-4e1d-958e-49ebd15fbec1","name":"404","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.nowpayments.io/v1/subscriptions/:sub_id","host":["https://api.nowpayments.io"],"path":["v1","subscriptions",":sub_id"],"variable":[{"key":"sub_id","value":"111111111"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n \"status\": false,\n \"statusCode\": 404,\n \"code\": \"NOT_FOUND\",\n \"message\": \"subscription not found\"\n}"}],"_postman_id":"3d0a3313-970a-49be-a755-612368ed93d3"}],"id":"e2101180-70b3-42e6-a326-f2f2d59e4090","description":"<p>Streamline your workflows by assigning payments to your customers on a regular basis with NOWPayments.<br />This feature involves creating a plan for payments and individual recurring payments for each user.<br />First you need to create a Recurring Payment plan:</p>\n","_postman_id":"e2101180-70b3-42e6-a326-f2f2d59e4090"},{"name":"Conversions","item":[{"name":"Create conversion","id":"99a02175-336e-4718-b0c0-2d579af20a76","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"},{"key":"Authorization","value":"Bearer *your_jwt_token* ","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n \"amount\": 50,\n \"from_currency\": \"usdttrc20\",\n \"to_currency\": \"USDTERC20\"\n}"},"url":"https://api.nowpayments.io/v1/conversion","description":"<p>This endpoint allows you to create conversions within your custody account.</p>\n<p>Parameters:</p>\n<ul>\n<li>amount(required) - the amount of your conversion;</li>\n<li>from_currency(required) - the currency you're converting your funds from;</li>\n<li>to_currency(required) - the currency you're converting your funds to;</li>\n</ul>\n<p>The list of available statuses:</p>\n<ul>\n<li>WAITING - the conversion is created and waiting to be executed;</li>\n<li>PROCESSING - the conversion is in processing;</li>\n<li>FINISHED - the conversion is completed;</li>\n<li>REJECTED - for some reason, conversion failed;</li>\n</ul>\n","urlObject":{"path":["v1","conversion"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"80f2a2a9-2a5b-466f-abb8-d2492b1fa8b5","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"},{"key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n \"amount\": \"50\",\n \"from_currency\": \"usdttrc20\",\n \"to_currency\": \"USDTERC20\"\n}"}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n \"result\": {\n \"id\": \"1327866232\",\n \"status\": \"WAITING\",\n \"from_currency\": \"USDTTRC20\",\n \"to_currency\": \"USDTERC20\",\n \"from_amount\": 50,\n \"to_amount\": 50,\n \"created_at\": \"2023-03-05T08:18:30.384Z\",\n \"updated_at\": \"2023-03-05T08:18:30.384Z\"\n }\n}"}],"_postman_id":"99a02175-336e-4718-b0c0-2d579af20a76"},{"name":"Get conversion status","id":"d49c1815-661c-476d-a47e-0b808ef4dc86","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"}],"url":"https://api.nowpayments.io/v1/conversion/:conversion_id","urlObject":{"path":["v1","conversion",":conversion_id"],"host":["https://api.nowpayments.io"],"query":[],"variable":[{"id":"1563e450-9007-42a6-8378-a46ef456fe6a","type":"any","value":null,"key":"conversion_id"}]}},"response":[{"id":"6f153d53-54f5-4625-aecf-81f99710fb04","name":"200","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"}],"url":{"raw":"https://api.nowpayments.io/v1/conversion/:conversion_id","host":["https://api.nowpayments.io"],"path":["v1","conversion",":conversion_id"],"variable":[{"key":"conversion_id","value":null}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n \"result\": {\n \"id\": \"1327866232\",\n \"status\": \"WAITING\",\n \"from_currency\": \"USDTTRC20\",\n \"to_currency\": \"USDTERC20\",\n \"from_amount\": 50,\n \"to_amount\": 50,\n \"created_at\": \"2023-03-05T08:18:30.384Z\",\n \"updated_at\": \"2023-03-05T08:41:30.201Z\"\n }\n}"}],"_postman_id":"d49c1815-661c-476d-a47e-0b808ef4dc86"},{"name":"Get list of conversions","id":"e17b330c-314c-46ef-b890-b650d90d5c6e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"}],"url":"https://api.nowpayments.io/v1/conversion","description":"<p>This endpoint returns you the list of your conversions with the essential info for each one.</p>\n<p>You can query only for certain conversions using the following parameters to filter the result:</p>\n<ul>\n<li>id: int or array of int (optional) - filter by id of the conversion;</li>\n<li>status: string or array of string(optional) - filter conversions by certain status;</li>\n<li>from_currency: string(optional) - filter by initial currency of the conversion;</li>\n<li>to_currency: string(optional), - filter by outcome currency of the conversion;</li>\n<li>created_at_from: Date(optional), - filter by date;</li>\n<li>created_at_to: Date(optional) - filter by date;</li>\n<li>limit: (optional) default 10 - set the limit of shown results;</li>\n<li>offset: (optional) default 0;</li>\n<li>order: ASC / DESC (optional) - set the sorting order of provided data;</li>\n</ul>\n","urlObject":{"path":["v1","conversion"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"ec1cad6a-3656-4a88-bcd3-f6c95e2b3c57","name":"200","originalRequest":{"method":"GET","header":[]},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n \"result\": [\n {\n \"id\": \"148427051\",\n \"status\": \"REJECTED\",\n \"from_currency\": \"TRX\",\n \"to_currency\": \"ETH\",\n \"from_amount\": 0.1,\n \"to_amount\": null,\n \"created_at\": \"2023-02-10T13:01:52.521Z\",\n \"updated_at\": \"2023-02-10T14:46:22.419Z\"\n },\n {\n \"id\": \"2065223244\",\n \"status\": \"FINISHED\",\n \"from_currency\": \"TRX\",\n \"to_currency\": \"ETH\",\n \"from_amount\": 1,\n \"to_amount\": 0.000041013900000000004,\n \"created_at\": \"2023-02-10T16:38:10.675Z\",\n \"updated_at\": \"2023-02-10T16:39:30.308Z\"\n },\n ],\n \"count\": 2\n}\n"}],"_postman_id":"e17b330c-314c-46ef-b890-b650d90d5c6e"}],"id":"9d14205d-a325-427c-920d-358b5cd5f426","description":"<p>Conversions API allows you to exchange coins within your custody user account.</p>\n","_postman_id":"9d14205d-a325-427c-920d-358b5cd5f426"},{"name":"Mass payouts","item":[{"name":"Get balance","id":"bf88a8d7-0662-490e-b6bd-0ea19de9c144","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","type":"text","value":"{{your_api_key}}"}],"url":"https://api.nowpayments.io/v1/balance","description":"<p>This method returns your balance in different currencies.</p>\n<p>The response contains a list of currencies with two parameters:</p>\n<ul>\n<li>amount - avaliable currency amount;</li>\n<li>pendingAmount - currently processing currency amount;</li>\n</ul>\n","urlObject":{"path":["v1","balance"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"4a7613f6-b0c1-46de-9e2b-99d32238081a","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"<your_api_key>","type":"text"},{"key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"}],"url":"https://api.nowpayments.io/v1/balance"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n \"eth\": {\n \"amount\": 0.0001817185463659148,\n \"pendingAmount\": 0\n },\n \"trx\": {\n \"amount\": 0,\n \"pendingAmount\": 0\n },\n \"xmr\": {\n \"amount\": 0,\n \"pendingAmount\": 0\n }\n}"}],"_postman_id":"bf88a8d7-0662-490e-b6bd-0ea19de9c144"},{"name":"Validate address","id":"46509e85-f08d-4485-b86b-4fa82f913481","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n \"address\": \"0g033BbF609Ed876576735a02fa181842319Dd8b8F\", \n \"currency\": \"eth\", \n \"extra_id\":null\n}"},"url":"https://api.nowpayments.io/v1/payout/validate-address","description":"<p>This endpoint allows you to check if your payout address is valid and funds can be received there.</p>\n<p>Available parameters:</p>\n<ul>\n<li>address - the payout address;</li>\n<li>currency - the ticker of payout currency;</li>\n<li>(optional) extra_id - memo or destination tag, if applicable;</li>\n</ul>\n","urlObject":{"path":["v1","payout","validate-address"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"8ae8e5af-04a9-4b0e-aab4-bfecae47b968","name":"400","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n \"address\": \"0g033BbF609Ed876576735a02fa181842319Dd8b8F\", \n \"currency\": \"eth\", \n \"extra_id\":null\n}"},"url":"https://api.nowpayments.io/v1/payout/validate-address"},"status":"Bad Request","code":400,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n \"status\": false,\n \"statusCode\": 400,\n \"code\": \"BAD_CREATE_WITHDRAWAL_REQUEST\",\n \"message\": \"Invalid payout_address: [currency] [address]\"\n}"},{"id":"701c320c-3b3f-4caa-a645-aa68c9b329ff","name":"200","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n \"address\": \"6GUEZHV5B5CC2X2AB3DLL2TQPG7RXY2VW7WPBKJTW2YKNPUO4HWIWWPNVE\", \n \"currency\": \"USDTALGO\", \n \"extra_id\":null\n}"},"url":"https://api.nowpayments.io/v1/payout/validate-address"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"OK"}],"_postman_id":"46509e85-f08d-4485-b86b-4fa82f913481"},{"name":"Create payout","id":"aa2dc320-674e-47fd-8b14-390ed3ea57b8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[{"key":"x-api-key","type":"text","value":"<your_api_key>"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"}],"body":{"mode":"raw","raw":"{\n \"payout_description\": \"description\",\n \"ipn_callback_url\": \"https://nowpayments.io\",\n \"withdrawals\": [\n {\n \"address\": \"TEmGwPeRTPiLFLVfBxXkSP91yc5GMNQhfS\",\n \"currency\": \"trx\",\n \"amount\": 200,\n \"ipn_callback_url\": \"https://nowpayments.io\"\n },\n {\n \"address\": \"0x1EBAeF7Bee7B3a7B2EEfC72e86593Bf15ED37522\",\n \"currency\": \"eth\",\n \"amount\": 0.1,\n \"ipn_callback_url\": \"https://nowpayments.io\"\n }\n ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/payout","description":"<p>This is the method to create a payout. You need to provide your data as a JSON-object payload. Next is a description of the required request fields:</p>\n<ul>\n<li>address (required) - the address where you want to send funds;</li>\n<li>currency (required) - payout currency;</li>\n<li>amount (required) - amount of the payout. <strong>Must not exceed 6 decimals</strong> (i.e. 0.123456);</li>\n<li>extra_id (optional) - memo, destination tag, etc.</li>\n<li>ipn_callback_url(optional) - url to receive callbacks, should contain \"http\" or \"https\", eg. \"<a href=\"https://nowpayments.io\">https://nowpayments.io\"</a>. Please note: you can either set ipn_callback_url for each individual payout, or for all payouts in a batch (see example). <strong>In both cases IPNs will be sent for each payout separately;</strong></li>\n<li>payout_description(optional) - a description of the payout. You can set it for all payouts in a batch;</li>\n<li>unique_external_id(optional) - a unique external identifier;</li>\n<li>fiat_amount(optional) - used for setting the payout amount in fiat equivalent. <strong>Overrides \"amount\" parameter;</strong></li>\n<li>fiat_currency (optional) - used for determining fiat currency to get the fiat equivalent for. <strong>Required for \"fiat_amount\" parameter to work. DOES NOT override \"currency\" parameter. Payouts are made in crypto only, no fiat payouts are available;</strong></li>\n</ul>\n<p>Here the list of the available payout statuses:</p>\n<ul>\n<li>creating;</li>\n<li>processing;</li>\n<li>sending;</li>\n<li>finished;</li>\n<li>failed;</li>\n<li>rejected;</li>\n</ul>\n<p>Please, take note that you may request a single payout, but it still should be formatted as an array with the single element.</p>\n","urlObject":{"path":["v1","payout"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"2b20ef42-f55a-4c2c-b790-41bebc434a79","name":"200","originalRequest":{"method":"POST","header":[{"key":"x-api-key","type":"text","value":"<your_api_key>"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"}],"body":{"mode":"raw","raw":"{\n \"ipn_callback_url\": \"https://nowpayments.io\",\n \"withdrawals\": [\n {\n \"address\": \"TEmGwPeRTPiLFLVfBxXkSP91yc5GMNQhfS\",\n \"currency\": \"trx\",\n \"amount\": 200,\n \"ipn_callback_url\": \"https://nowpayments.io\"\n },\n {\n \"address\": \"0x1EBAeF7Bee7B3a7B2EEfC72e86593Bf15ED37522\",\n \"currency\": \"eth\",\n \"amount\": 0.1,\n \"ipn_callback_url\": \"https://nowpayments.io\"\n },\n {\n \"address\": \"0x1EBAeF7Bee7B3a7B2EEfC72e86593Bf15ED37522\",\n \"currency\": \"usdc\",\n \"amount\": 1,\n \"fiat_amount\": 100,\n \"fiat_currency\": \"usd\",\n \"ipn_callback_url\": \"https://nowpayments.io\"\n }\n ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/payout"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n\t\"id\": \"5000000713\",\n\t\"withdrawals\": [\n {\n \"is_request_payouts\":false,\n \"id\": \"5000000000\",\n \"address\": \"TEmGwPeRTPiLFLVfBxXkSP91yc5GMNQhfS\",\n \"currency\": \"trx\",\n \"amount\": \"200\",\n \"batch_withdrawal_id\": \"5000000000\",\n \"ipn_callback_url\": \"https://nowpayments.io\",\n \"status\": \"WAITING\",\n \"extra_id\": null,\n \"hash\": null,\n \"error\": null,\n \"payout_description\": null,\n \"unique_external_id\": null,\n \"created_at\": \"2020-11-12T17:06:12.791Z\",\n \"requested_at\": null,\n \"updated_at\": null\n\n },\n {\n \"is_request_payouts\":false,\n \"id\": \"5000000001\",\n \"address\": \"0x1EBAeF7Bee7B3a7B2EEfC72e86593Bf15ED37522\",\n \"currency\": \"eth\",\n \"amount\": \"0.1\",\n \"batch_withdrawal_id\": \"5000000000\",\n \"ipn_callback_url\": \"https://nowpayments.io\",\n \"status\": \"WAITING\",\n \"extra_id\": null,\n \"hash\": null,\n \"error\": null,\n \"payout_description\": null,\n \"unique_external_id\": null,\n \"createdAt\": \"2020-11-12T17:06:12.791Z\",\n \"requestedAt\": null,\n \"updatedAt\": null\n },\n {\n \"is_request_payouts\":false,\n \"id\": \"5000000002\",\n \"address\": \"0x1EBAeF7Bee7B3a7B2EEfC72e86593Bf15ED37522\",\n \"currency\": \"usdc\",\n \"amount\": \"99.84449793\",\n \"fiat_amount\": \"100\",\n \"fiat_currency\": \"usd\",\n \"batch_withdrawal_id\": \"5000000000\",\n \"ipn_callback_url\": \"https://nowpayments.io\",\n \"status\": \"WAITING\",\n \"extra_id\": null,\n \"hash\": null,\n \"error\": null,\n \"payout_description\": null,\n \"unique_external_id\": null,\n \"createdAt\": \"2020-11-12T17:06:12.791Z\",\n \"requestedAt\": null,\n \"updatedAt\": null\n }\n ]\n}"}],"_postman_id":"aa2dc320-674e-47fd-8b14-390ed3ea57b8"},{"name":"Verify payout","id":"b0528483-60b8-42e6-83ea-2a1597656da2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"},"isInherited":false},"method":"POST","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"},{"warning":"This is a duplicate header and will be overridden by the Authorization header generated by Postman.","key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"}],"body":{"mode":"raw","raw":"{\n \"verification_code\": \"123456\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/payout/:batch-withdrawal-id/verify","description":"<p>This method is required to verify payouts by using your 2FA code.<br />You’ll have 10 attempts to verify the payout. If it is not verified after 10 attempts, the payout will remain in ‘creating’ status.<br />Payout will be processed only when it is verified.</p>\n<p>If you have 2FA app enabled in your dashboard, payouts will accept 2FA code from your app. Otherwise the code for payouts validation will be sent to your registration email.</p>\n<p>Please take a note that unverified payouts will be automatically rejected in an hour after creation.</p>\n<p>Next is a description of the required request fields:</p>\n<ul>\n<li>:batch-withdrawal-id - payout id you received in <code>2. Create payout</code> method;</li>\n<li>verification_code - 2fa code you received with your Google Auth app or via email;</li>\n</ul>\n<p>In order to establish an automatic verification of payouts, you should switch 2FA through the application.<br />There are several libraries for different frameworks aimed on generating a 2FA codes based on a secret key from your account settings, for example, Speakeasy for JavaScript.<br />We do not recommend to change any default settings.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>const 2faVerificationCode = speakeasy.totp({\n your_2fa_secret_key,\n encoding: 'base32',\n})\n\n</code></pre>","urlObject":{"path":["v1","payout",":batch-withdrawal-id","verify"],"host":["https://api.nowpayments.io"],"query":[],"variable":[{"id":"4c893dcc-b3ba-4fba-95f5-8ef2f5b8b2ef","type":"any","value":null,"key":"batch-withdrawal-id"}]}},"response":[{"id":"f01c876f-b404-4584-b718-a6188b3d06d1","name":"200","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"},{"key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n \"verification_code\": \"123456\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.nowpayments.io/v1/payout/:withdrawals-id/verify","protocol":"https","host":["api","nowpayments","io"],"path":["v1","payout",":withdrawals-id","verify"],"variable":[{"key":"withdrawals-id","value":"5000000191"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"OK"}],"_postman_id":"b0528483-60b8-42e6-83ea-2a1597656da2"},{"name":"Get payout status","id":"9befc03c-4995-4f78-9f3a-3481c68682c9","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"host":true,"user-agent":true,"accept":true,"accept-encoding":true,"connection":true}},"request":{"method":"GET","header":[{"key":"x-api-key","type":"text","value":"{{your_api_key}}"}],"body":{"mode":"raw","raw":""},"url":"https://api.nowpayments.io/v1/payout/<payout_id>","description":"<p>Get the actual information about the payout. You need to provide the ID of the payout in the request.</p>\n<p>NOTE! You should make the get payout status request with the same API key that you used in the creat_payout request.</p>\n<p>Here is the list of available statuses:</p>\n<ul>\n<li>creating;</li>\n<li>processing;</li>\n<li>sending;</li>\n<li>finished;</li>\n<li>failed;</li>\n<li>rejected;</li>\n</ul>\n","urlObject":{"path":["v1","payout","<payout_id>"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"b04d90dc-6d4d-4234-8067-a6c31cc15830","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","type":"text","value":"<your_api_key>"},{"key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"}],"url":{"raw":"https://api.nowpayments.io/v1/payout/:payout_id","protocol":"https","host":["api","nowpayments","io"],"path":["v1","payout",":payout_id"],"variable":[{"key":"payout_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"[\n {\n \"id\": \"<payout_id>\",\n \"address\": \"<payout_address>\",\n \"currency\": \"trx\",\n \"amount\": \"200\",\n \"batch_withdrawal_id\": \"<batchWithdrawalId>\",\n \"status\": \"WAITING\",\n \"extra_id\": null,\n \"hash\": null,\n \"error\": null,\n \"is_request_payouts\":false,\n \"ipn_callback_url\": null,\n \"unique_external_id\": null,\n \"payout_description\": null,\n \"created_at\": \"2020-11-12T17:06:12.791Z\",\n \"requested_at\": null,\n \"updated_at\": null\n }\n]"}],"_postman_id":"9befc03c-4995-4f78-9f3a-3481c68682c9"},{"name":"List of payouts","id":"a892c6a5-1cdf-40d4-84c0-fea1f90496f1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"url":"https://api.nowpayments.io/v1/payout","description":"<p>This endpoint allows you to get a list of your payouts.</p>\n<p>The list of available parameters:</p>\n<ul>\n<li>batch_id: batch ID of enlisted payouts;</li>\n<li>status: the statuses of enlisted payouts;</li>\n<li>order_by: can be id, batchId, dateCreated, dateRequested, dateUpdated, currency, status;</li>\n<li>order: 'asc' or 'desc' order;</li>\n<li>date_from: beginning date of the requested payouts;</li>\n<li>date_to: ending date of the requested payouts;</li>\n<li>limit: how much results to show;</li>\n<li>page: the current page;</li>\n</ul>\n","urlObject":{"path":["v1","payout"],"host":["https://api.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"f51c0c1e-2f37-4be6-88ad-6d82d87a097e","name":"List of payouts","originalRequest":{"method":"GET","header":[]},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n \"payouts\": [\n {\n \"id\": \"5000248325\",\n \"batch_withdrawal_id\": \"5000145498\",\n \"status\": \"FINISHED\",\n \"error\": null,\n \"currency\": \"trx\",\n \"amount\": \"94.088939\",\n \"address\": \"[payout address]\",\n \"extra_id\": null,\n \"hash\": \"[hash]\",\n \"ipn_callback_url\": null,\n \"payout_description\": null,\n \"is_request_payouts\": true,\n \"unique_external_id\": null,\n \"created_at\": \"2023-04-06T14:44:59.684Z\",\n \"requested_at\": \"2023-04-06T14:45:55.505Z\",\n \"updated_at\": \"2023-04-06T14:49:08.031Z\"\n },\n {\n \"id\": \"5000247307\",\n \"batch_withdrawal_id\": \"5000144539\",\n \"status\": \"FINISHED\",\n \"error\": null,\n \"currency\": \"trx\",\n \"amount\": \"10.000000\",\n \"address\": \"[payout address]\",\n \"extra_id\": null,\n \"hash\": \"[hash]\",\n \"ipn_callback_url\": null,\n \"payout_description\": null,\n \"is_request_payouts\": true,\n \"unique_external_id\": null,\n \"created_at\": \"2023-04-05T19:21:40.836Z\",\n \"requested_at\": \"2023-04-05T19:23:17.111Z\",\n \"updated_at\": \"2023-04-05T19:27:30.895Z\"\n }\n ]\n}"}],"_postman_id":"a892c6a5-1cdf-40d4-84c0-fea1f90496f1"}],"id":"9c814b84-c107-4efd-a543-c1e239265c93","description":"<p>This set of methods will allow you to make payouts from your custody to unlimited number of wallets. Fast and secure.</p>\n<p>Recommended payouts requesting flow using API:</p>\n<ul>\n<li>Check if your payout address is valid using <strong>POST Validate address</strong> endpoint;</li>\n<li>If it's valid, create a withdrawal using <strong>POST Create payout</strong> endpoint;</li>\n<li>Verify your payout with 2fa (by default it's mandatory) using <strong>POST Verify payout endpoint</strong>;</li>\n</ul>\n<p><strong>2FA automation:</strong></p>\n<p>Using the API you can automate 2fa by implementing the OTP generation library in your code and set it up in your dashboard. \"Dashboard\" - \"Account settings\" - \"Two step authentification\" - \"Use an app\"</p>\n<p><strong>Save the secret key and set it up in your favorite 2FA application as well, otherwise you won't be able to get access to your dashboard!</strong></p>\n<p><strong>Please note:</strong></p>\n<p>Payouts can be requested only using a whitelisted IP address, and to whitelisted wallet addresses. It's a security measure enabled for each partner account by default.</p>\n<p>You can whitelist both of these anytime dropping a formal request using your registration email to <a href=\"mailto:partners@nowpayments.io\">partners@nowpayments.io</a>.</p>\n<p>For more information about whitelisting you can reach us at <a href=\"mailto:partners@nowpayments.io\">partners@nowpayments.io</a>.</p>\n","_postman_id":"9c814b84-c107-4efd-a543-c1e239265c93"}],"id":"28c4397e-16e7-4168-9fe3-66f4f020d156","description":"<h1 id=\"basic-dao-integration-flow\">Basic DAO Integration Flow</h1>\n<p>Once you finished establishing your DAO you can use NOWPayments API to set up your daily operations just as easy as that:</p>\n<p>Registration and getting deposits:</p>\n<ol>\n<li><p>API - Integrate \"<a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#f26fd798-e216-41fb-80a8-77344e231edf\">POST Create new user account</a>\" into your registration process, so users will have dedicated balance right after completing registration.</p>\n</li>\n<li><p>UI - Ask a customer for desirable deposit amount to top up their balance, and desired currency for deposit.</p>\n</li>\n<li><p>API - Get the minimum payment amount for the selected currency pair (payment currency to your payout wallet currency) with the <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#ce3fe3a3-00cd-4df2-bfba-641fde741da7\">\"GET Minimum payment amount\"</a> method;</p>\n</li>\n<li><p>API - Get the estimate of the total amount in crypto with <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#3c86a16e-94ad-4230-a470-4e833766a4c7\">\"GET Estimated price\"</a> and check that it is larger than the minimum payment amount from step 4;</p>\n</li>\n<li><p>API - Call the <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#ba7daaf4-8bc7-4c19-86b5-0a99b633faf8\">\"POST Deposit with payment\"</a> method to create a payment and get the deposit address (in our example, the generated BTC wallet address is returned from this method);</p>\n</li>\n<li><p>UI - Ask a customer to send the payment to the generated deposit address (in our example, user has to send BTC coins);</p>\n</li>\n<li><p>UI - A customer sends coins, NOWPayments processes and exchanges them (if required), and credit the payment to your players' balance;</p>\n</li>\n<li><p>API - You can get the payment status either via our IPN callbacks or manually, using <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#62a6d281-478d-4927-8cd0-f96d677b8de6\">\"GET Payment Status\"</a> and display it to a customer so that they know when their payment has been processed;</p>\n</li>\n<li><p>API - you call the list of payments made to your account via the <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#3d4cce8c-1b61-42dc-8a50-51e532d5d23c\">\"GET List of payments\"</a> method;</p>\n</li>\n</ol>\n<p>Payouts:</p>\n<ol>\n<li><p>UI - ask the user for desirable amount, coin and address for payout.</p>\n</li>\n<li><p>API - call the player balance with <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#2ad68331-5d59-4da3-98d8-501979d16569\">\"GET user balance\"</a> method and check if player has enough balance.</p>\n</li>\n<li><p>API - call <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#1ba52b69-a34e-464f-bd09-c2464f782b9f\">\"POST validate address\"</a> to check if the provided address is valid on the blockchain.</p>\n</li>\n<li><p>API - call <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#b976b1c0-ba2c-4e9d-ae51-3befd6676654\">\"POST write off your account\"</a> method to collect the requested amount from user balance to your master balance.</p>\n</li>\n<li><p>API - call <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#3c2f4f3f-b1a5-40ad-bffb-71e9f6bd4184\">\"POST Create payout\"</a> to create a payout.</p>\n</li>\n<li><p>API - create an OTP password for 2fa validation using external libraries.</p>\n</li>\n<li><p>API - call <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#71140750-7dfe-4ca7-91c1-161589e14f48\">\"POST Verify payout\"</a> to validate a payout with 2fa code.</p>\n</li>\n<li><p>API - You can get the payout status either via our IPN callbacks or manually, using <a href=\"https://documenter.getpostman.com/view/7907941/2s93JusNJt#98bc6767-bde3-4e36-82db-de909588be8a\">\"GET Payout Status\"</a> and display it to a customer so that they know when their payment has been processed;</p>\n</li>\n<li><p>UI - NOWPayments processes payout and credit the payment to your players' wallet;</p>\n</li>\n</ol>\n<p>All related information about your operations will also be available in your NOWPayments dashboard.</p>\n<p>If you have any additional questions about integration feel free to drop a message to <a href=\"https://mailto:partners@nowpayments.io\">partners@nowpayments.io</a> for further guidance.</p>\n","_postman_id":"28c4397e-16e7-4168-9fe3-66f4f020d156"}],"id":"fde9c266-1444-4fed-9c7c-c3b2a5233ce8","description":"<p>This sections is meant for various use cases and descriptions of flows for different fields of activities.</p>\n<p>If your field of activity is not described here, feel free to contact us at <a href=\"mailto:partners@nowpaymetns.io\">partners@nowpaymetns.io</a> and request recommended flows for your niche here.</p>\n","_postman_id":"fde9c266-1444-4fed-9c7c-c3b2a5233ce8"}],"event":[{"listen":"prerequest","script":{"id":"8b898ec2-f74e-4cfa-910e-a5ae3110d9fe","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"90764d08-7fd1-4db0-9afd-5f7d9bb35c88","type":"text/javascript","exec":[""]}}],"variable":[{"key":"api-host","value":"https://api.nowpayments.io","type":"string"},{"key":"email","value":"<enter_your_email>","type":"string","disabled":true},{"key":"password","value":"<enter_your_password>","type":"string","disabled":true},{"key":"your_api_key","value":"<enter_your_api_key>","type":"string","disabled":true},{"key":"token","value":"<your_auth_token>","disabled":true}]}