{"info":{"_postman_id":"27163ecd-d822-4f67-8c79-92eaa0cccee8","name":"NOWPayments API Sandbox","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.<br>This is a sandbox API , where you can test everything without sending real money, simply specify the case which you want to test and we will emulate a real-like flow of payment processing.</p>\n<h1 id=\"authentication\">Authentication</h1>\n<p>To use the NOWPayments API you should do the following:</p>\n<ul>\n<li>Sign up at <a href=\"https://account-sandbox.nowpayments.io\">account-sandbox.nowpayments.io</a></li>\n<li>Specify your outcome wallet</li>\n<li>Generate an API key</li>\n</ul>\n<h1 id=\"api-documentation\">API Documentation</h1>\n<h2 id=\"sandbox-difference\">Sandbox difference</h2>\n<p>In the sandbox you don't need to send any funds to test our API.<br>Just specify the ‘case’ parameter in the create payment request and get notifications for each of the presented cases.</p>\n<p>Testing flow:</p>\n<ol>\n<li>Create payment with specified 'case' parameter.</li>\n<li>Check the payment status or simply wait for an ipn request.</li>\n<li>Get all notifications for all specified flow.</li>\n</ol>\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<p>1.Generate and save the IPN Secret key in Store Settings tab at the Dashboard.</p>\n<p>2.Insert the link where you want to get callbacks in create_payment request.<br>The parameter name is ipn_callback_url</p>\n<p>3.You will receive all the parameters at this URL by POST request.</p>\n<p>4.Sort all the parameters in alphabetical order.</p>\n<p>5.Convert them to string using JSON.stringify(params, Object.keys(params).sort()) or the same function.</p>\n<p>6.Sign a string with an IPN-secret key with HMAC and sha-512 key</p>\n<p>7.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=\"mailto:support@nowpayments.io\">support@nowpayments.io</a> to solve the problem.</p>\n<p>Example of creating a signed string at Node.JS</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-plaintext\">const hmac = crypto.createHmac('sha512', notificationsKey);\nhmac.update(JSON.stringify(params, Object.keys(params).sort()));\nconst signature = hmac.digest('hex');\n\n</code></pre>\n<p>Example of comparing signed strings in PHP</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>function 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']) &amp;&amp; !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            ksort($request_data);\n            $sorted_request_json = json_encode($request_data);\n            if ($request_json !== false &amp;&amp; !empty($request_json)) {\n                $hmac = hash_hmac(\"sha512\", $sorted_request_json, trim($this-&gt;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><h2 id=\"several-payments-for-one-order\">Several payments for one order</h2>\n<p>If you want to create several payments for one Order you should do the following:</p>\n<ul>\n<li>Create a payment for the full order amount.</li>\n<li>Save \"purchase_id\" which will be in \"create_payment\" response</li>\n<li>Create next payment or payments with this \"purchase_id\" in \"create_payment\" request.</li>\n</ul>\n<p>It may be useful if you want to give your customers opportunity to pay a full order with several payments, for example, one part in BTC and one part in ETH. Also, if your customer accidentally paid you only part of a full amount, you can automatically ask them to make another payment.</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":"API Documentation","slug":"api-documentation"}],"owner":"7907941","collectionId":"27163ecd-d822-4f67-8c79-92eaa0cccee8","publishedId":"T1LSCRHC","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"64ACFF"},"publishDate":"2023-09-12T09:52:14.000Z"},"item":[{"name":"Sandbox payments environment","item":[{"name":"1. Get API status","id":"5c2b8f84-73dc-41ff-aa4b-8d08a4556102","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api-sandbox.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":{"protocol":"https","path":["v1","status"],"host":["api-sandbox","nowpayments","io"],"query":[],"variable":[]}},"response":[{"id":"0b368807-ee1c-454d-980c-41ce37aa6f4d","name":"1. Get API status","originalRequest":{"method":"GET","header":[],"url":"https://api-sandbox.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":"5c2b8f84-73dc-41ff-aa4b-8d08a4556102"},{"name":"2. Get available currencies","id":"76140c5e-75ae-4a11-96f8-5ecc96c1e3cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"<your_api_key>","type":"text"}],"url":"https://api-sandbox.nowpayments.io/v1/currencies","description":"<p>This is a method for obtaining information about the cryptocurrencies available for payments. This depends on the cryptocurrency you choose for your particular store.</p>\n","urlObject":{"protocol":"https","path":["v1","currencies"],"host":["api-sandbox","nowpayments","io"],"query":[],"variable":[]}},"response":[{"id":"38a0f7a9-8e44-4cc2-9a13-6a865d575b5d","name":"2. Get available currencies","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"<your_api_key>","type":"text"}],"url":"https://api-sandbox.nowpayments.io/v1/currencies"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 18 Apr 2019 13:37:58 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":"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":"4c9709535a6e9700-FRA"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"currencies\": [\n        \"btc\",\n        \"xvg\",\n        \"bch\",\n        \"xrp\",\n        \"trx\",\n        \"eos\",\n        \"zen\",\n        \"fun\",\n        \"pax\",\n        \"bnbmainnet\"\n    ]\n}\n"}],"_postman_id":"76140c5e-75ae-4a11-96f8-5ecc96c1e3cb"},{"name":"3. Get estimated price","id":"1ddfa8aa-daec-44c5-a7ca-59b3ea93c528","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"<your_api_key>","type":"text"}],"url":"https://api-sandbox.nowpayments.io/v1/estimate?amount=3999.5000&currency_from=usd&currency_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)\nCurrently following fiat currencies are available: usd, eur, nzd, brl.</p>\n","urlObject":{"protocol":"https","path":["v1","estimate"],"host":["api-sandbox","nowpayments","io"],"query":[{"key":"amount","value":"3999.5000"},{"key":"currency_from","value":"usd"},{"key":"currency_to","value":"btc"}],"variable":[]}},"response":[{"id":"1ba0bdc9-45c6-49c8-8a43-e25559dd2251","name":"3. Get estimate price","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"<your_api_key>","type":"text"}],"url":{"raw":"https://api-sandbox.nowpayments.io/v1/estimate?amount=3999.5000&currency_from=usd&currency_to=btc","protocol":"https","host":["api-sandbox","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":"Thu, 18 Apr 2019 13:38:31 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":"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":"4c970a1b7b2e9700-FRA"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"currency_from\": \"usd\",\n    \"amount_from\": 3999.5,\n    \"currency_to\": \"btc\",\n    \"estimated_amount\": 0.7566495\n}"}],"_postman_id":"1ddfa8aa-daec-44c5-a7ca-59b3ea93c528"},{"name":"4. Create payment","id":"9573fff3-b68d-450a-b803-cc7709578902","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-key","type":"text","value":"<your_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_amount\": 0.8102725,\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  \"case\" : \"success\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api-sandbox.nowpayments.io/v1/payment","description":"<p>This is the method to create a payment. 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>price_amount (required) - price in Fiat currency</li>\n<li>price_currency (required) - Fiat currency price</li>\n<li>pay_amount (optional) - price in cryptocurrency</li>\n<li>pay_currency (required) - cryptocurrency price</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) - inner store order ID, e.g. \"RGDBP-21314\"</li>\n<li>order_description (optional) - inner store order description, e.g. \"Apple Macbook Pro 2019 x 1\"</li>\n<li>purchase_id (optional) - id of purchase for which you want to create aother payment, only used for several payments for one order</li>\n<li>payout_address (optional) - in case you want to receive funds on an external address, you can specify it in this parameter</li>\n<li>payout_currency (optional) - currency of your external payout_address, required when payout_adress is specified.</li>\n<li>payout_extra_id(optional) - extra id or memo or tag for external payout_address.</li>\n<li>case(optional) - case which you want to test.</li>\n</ul>\n<p>List of available cases:</p>\n<ul>\n<li>success(default) - finished payment example.</li>\n<li>common - common payment</li>\n<li>failed - failed payment example.</li>\n<li>partially_paid - partially_paid payment example.</li>\n</ul>\n<p>Here is the list of existing payment 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 24 hour time window.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["v1","payment"],"host":["api-sandbox","nowpayments","io"],"query":[],"variable":[]}},"response":[{"id":"f4d6bed8-152b-4671-9df7-90fd22396024","name":"4. Create payment","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"<your_api_key>","type":"text"},{"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_amount\": 0.8102725,\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}"},"url":"https://api-sandbox.nowpayments.io/v1/payment"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 18 Apr 2019 13:39:27 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"344"},{"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":"4c970b7f2d8d9700-FRA"}],"cookie":[],"responseTime":null,"body":"{\n    \"payment_id\": \"<your_payment_id>\",\n    \"payment_status\": \"waiting\",\n    \"pay_address\": \"<your_pay_address>\",\n    \"price_amount\": 3999.5,\n    \"price_currency\": \"usd\",\n    \"pay_amount\": 0.8102725,\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\": \"2019-04-18T13:39:27.982Z\",\n    \"updated_at\": \"2019-04-18T13:39:27.982Z\",\n    \"purchase_id\": \"<your_purchase_id>\"\n}"}],"_postman_id":"9573fff3-b68d-450a-b803-cc7709578902"},{"name":"5. Create payment by invoice","id":"8ffaed13-9193-48e3-ad14-34dc1f36e1f5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-key","type":"text","value":"<your_key>"},{"key":"Content-Type","name":"Content-Type","value":"application/json","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  \"case\": \"success\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api-sandbox.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.<br /><strong>Data must be sent as a JSON-object payload.</strong><br />Required request fields:</p>\n<ul>\n<li>iid (required) - invoice id</li>\n<li>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></li>\n<li>purchase_id (optional) - id of purchase for which you want to create aother payment, only used for several payments for one order</li>\n<li>order_description (optional) - inner store order description, e.g. \"Apple Macbook Pro 2019 x 1\"</li>\n<li>customer_email (optional) - user email to which a notification about the successful completion of the payment will be sent</li>\n<li>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.</li>\n<li>payout_extra_id(optional) - extra id or memo or tag for external payout_address.</li>\n<li>payout_currency (optional) - currency of your external payout_address, required when payout_adress is specified</li>\n<li>case (optional) - case which you want to test.</li>\n</ul>\n<p>List of available cases:</p>\n<ul>\n<li>success(default) - finished payment example.</li>\n<li>common - common payment</li>\n<li>failed - failed payment example.</li>\n<li>partially_paid - partially_paid payment example.</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.</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 24 hour time window.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["v1","invoice-payment"],"host":["api-sandbox","nowpayments","io"],"query":[],"variable":[]}},"response":[{"id":"701a70b5-1347-476c-a118-83a01cbc8ffa","name":"5. Create payment by invoice","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/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":"8ffaed13-9193-48e3-ad14-34dc1f36e1f5"},{"name":"6. Get payment status","id":"0b01e137-f52d-49ce-a6b2-74f1bebd7f04","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"<your_key>","type":"text"}],"url":"https://api-sandbox.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.\nHere is the list of avalable statuses:</p>\n<ul>\n<li>waiting</li>\n<li>confirming</li>\n<li>confirmed</li>\n<li>sending</li>\n<li>partially_paid</li>\n<li>finished</li>\n<li>failed</li>\n<li>refunded</li>\n<li>expired</li>\n</ul>\n","urlObject":{"protocol":"https","path":["v1","payment","<payment_id>"],"host":["api-sandbox","nowpayments","io"],"query":[],"variable":[]}},"response":[{"id":"166899f8-da6f-4312-9405-4e66f35e1c2d","name":"6. Get payment info (success)","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"<your_api_key>","type":"text"}],"url":"https://api-sandbox.nowpayments.io/v1/payment/<your_payment_id>"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 18 Apr 2019 13:40:16 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":"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":"4c970cb22eaa9700-FRA"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"payment_id\": \"<your_payment_id>\",\n    \"payment_status\": \"waiting\",\n    \"pay_address\": \"<your_payment_address>\",\n    \"price_amount\": 3999.5,\n    \"price_currency\": \"usd\",\n    \"pay_amount\": 0.8102725,\n    \"actually_paid\": 0.0,\n    \"pay_currency\": \"btc\",\n    \"created_at\": \"2019-04-18T13:39:27.982Z\",\n    \"updated_at\": \"2019-04-18T13:40:16.512Z\",\n    \"purchase_id\": \"<your_purchase_id\",\n    \"outcome_currency\": \"eth\",\n    \"outcome_amount\": 31.28\n}"},{"id":"3328efe6-36ec-4627-8b71-f95a95e0c4cc","name":"6. Get payment info (not found)","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"<your_api_key>","type":"text"}],"url":"https://api-sandbox.nowpayments.io/v1/payment/<some_payment_id>"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 18 Apr 2019 22:19:41 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"31"},{"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":"4c9a0590ed36c288-FRA"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Payment not found\"\n}"}],"_postman_id":"0b01e137-f52d-49ce-a6b2-74f1bebd7f04"},{"name":"7. Get the minimum payment amount","id":"339871ec-8906-4fbc-aa6a-a7ed01801123","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"<your_api_key>","type":"text"}],"url":"https://api-sandbox.nowpayments.io/v1/min-amount?currency_from=eth&currency_to=btc","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 Store Settings.</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":{"protocol":"https","path":["v1","min-amount"],"host":["api-sandbox","nowpayments","io"],"query":[{"key":"currency_from","value":"eth"},{"key":"currency_to","value":"btc"}],"variable":[]}},"response":[{"id":"7ce7dfd5-2cbe-42a3-84ec-ea99907270e2","name":"7. Get minimum payment amount","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"<your_api_key>","type":"text"}],"url":{"raw":"https://api-sandbox.nowpayments.io/v1/min-amount?currency_from=eth&currency_to=btc","protocol":"https","host":["api-sandbox","nowpayments","io"],"path":["v1","min-amount"],"query":[{"key":"currency_from","value":"eth"},{"key":"currency_to","value":"btc"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 04 Mar 2020 16:26:50 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":"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":"56ecf611cc4e4981-DME"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"currency_from\": \"eth\",\n    \"currency_to\": \"btc\",\n    \"min_amount\": 0.0098049\n}"}],"_postman_id":"339871ec-8906-4fbc-aa6a-a7ed01801123"},{"name":"8.Create invoice","id":"213cd2fa-fdec-45f8-9671-fac024ab918c","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  \"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-sandbox.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>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","urlObject":{"path":["v1","invoice"],"host":["https://api-sandbox.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"6bbee522-150f-4e2a-a96e-33e634d3bec3","name":"201","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  \"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-sandbox.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":"213cd2fa-fdec-45f8-9671-fac024ab918c"}],"id":"70241b21-403e-4cff-b0b8-1c902af36bb1","_postman_id":"70241b21-403e-4cff-b0b8-1c902af36bb1","description":""},{"name":"Currencies","item":[{"name":"Get available currencies","id":"4457b9c9-5886-4001-aaea-f12b86b30b69","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-sandbox.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-sandbox.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":"92e68a53-08f1-4f4b-8deb-8493cb011a76","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":"4457b9c9-5886-4001-aaea-f12b86b30b69"},{"name":"Get available currencies (2nd method)","id":"393ba59d-e6d8-4466-95e4-91f39cd344b6","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-sandbox.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-sandbox.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"e3eb1b53-2ea4-4073-85d7-b58736b96139","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":"393ba59d-e6d8-4466-95e4-91f39cd344b6"},{"name":"Get available checked currencies","id":"def6c5ff-6931-4726-8ef1-6508b5487118","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-sandbox.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-sandbox.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"5249623c-1768-402b-8000-70bbb00b1f29","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":"def6c5ff-6931-4726-8ef1-6508b5487118"}],"id":"0c5010d4-b7f0-407f-be0b-cda4e3b071b6","_postman_id":"0c5010d4-b7f0-407f-be0b-cda4e3b071b6","description":""},{"name":"Mass payouts","item":[{"name":"Get balance","id":"69263a49-bff2-424d-ba0e-b1fd137ff767","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-sandbox.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-sandbox.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"26121545-a611-4bc9-b2d4-16d8df184abf","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":"69263a49-bff2-424d-ba0e-b1fd137ff767"},{"name":"Validate address","id":"f8998cb4-a8e8-4ed7-95c0-ceedc5a99043","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-sandbox.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-sandbox.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"6c1b7ce9-1e03-4193-84d8-e69c3cd987ea","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-sandbox.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":"f2cbb202-b05e-4a0f-8206-ab9e139676ad","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-sandbox.nowpayments.io/v1/payout/validate-address"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"OK"}],"_postman_id":"f8998cb4-a8e8-4ed7-95c0-ceedc5a99043"},{"name":"Create payout","id":"5157142d-e1fd-4afb-a871-4709a73f48b9","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-sandbox.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><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, 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-sandbox.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"f82553bc-d61c-46ba-857a-d8bf26063067","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":"5157142d-e1fd-4afb-a871-4709a73f48b9"},{"name":"Verify payout","id":"2e1aa4f9-bef4-4189-aca5-499ef05d62b0","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-sandbox.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-sandbox.nowpayments.io"],"query":[],"variable":[{"id":"aa393c7c-5ea7-4e6f-8870-31507381d296","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":"e0c2b946-8756-4f01-84d4-841ac48c298c","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":"2e1aa4f9-bef4-4189-aca5-499ef05d62b0"},{"name":"Get payout status","id":"4775ac65-44b9-4a08-bf2d-f471e91a9f8f","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-sandbox.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-sandbox.nowpayments.io"],"query":[],"variable":[{"id":"3625dbda-db1e-4d6a-84bc-7d90d575ee78","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":"b4c1a56c-5d47-4aff-a1f3-bf0144347d55","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":"4775ac65-44b9-4a08-bf2d-f471e91a9f8f"},{"name":"List of payouts","id":"c55b3fa3-671c-4fa7-abdd-ff839e52a53b","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-sandbox.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>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-sandbox.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":"05cdc9fc-6c00-43e4-9e44-f1cc34d79455","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":"c55b3fa3-671c-4fa7-abdd-ff839e52a53b"},{"name":"Get minimal amount for withdrawal","id":"dd0d13be-e64e-430e-ad15-64ab59ee0fd9","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":[{"id":"fe601568-a96a-4bde-9483-1498d8094645","type":"any","value":null,"key":"coin"}]}},"response":[{"id":"1207ee26-8b0a-4f10-bb3b-ca52f78eaee7","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":"dd0d13be-e64e-430e-ad15-64ab59ee0fd9"},{"name":"Get withdrawal fee estimate","id":"c4e87f79-63a1-4a06-a9b1-1524ab069898","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-sandbox.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-sandbox.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":"a44c30fb-d7fc-4c0d-8823-5031b1f6a62b","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-sandbox.nowpayments.io/v1/payout/fee?currency=USDTTRC20&amount=500","host":["https://api-sandbox.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":"c4e87f79-63a1-4a06-a9b1-1524ab069898"}],"id":"23dece3a-8d3d-405f-8305-26f1223d1103","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":"23dece3a-8d3d-405f-8305-26f1223d1103"},{"name":"Conversions","item":[{"name":"Create conversion","id":"101a1657-fb13-4064-9194-f89d74f59f2e","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-sandbox.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-sandbox.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"721c885a-5e51-426d-8a90-a7b0facd28ab","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":"101a1657-fb13-4064-9194-f89d74f59f2e"},{"name":"Get conversion status","id":"73945d36-7d67-4b3b-baf9-4d5d4df09cbc","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-sandbox.nowpayments.io/v1/conversion/:conversion_id","urlObject":{"path":["v1","conversion",":conversion_id"],"host":["https://api-sandbox.nowpayments.io"],"query":[],"variable":[{"id":"30d42282-1cab-4020-9d3f-fb3f6f951b8c","type":"any","value":null,"key":"conversion_id"}]}},"response":[{"id":"4cf4377e-1fb1-4af7-a3dc-0ecab078ffca","name":"200","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","description":"(Required) Your authorization token","type":"text"}],"url":{"raw":"https://api-sandbox.nowpayments.io/v1/conversion/:conversion_id","host":["https://api-sandbox.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":"73945d36-7d67-4b3b-baf9-4d5d4df09cbc"},{"name":"Get list of conversions","id":"7313571a-ec20-48dc-b705-8ca0a0ef18c6","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-sandbox.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-sandbox.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"12330786-f8bb-4f58-a5e9-3da81ecd1ec4","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":"7313571a-ec20-48dc-b705-8ca0a0ef18c6"}],"id":"473b666a-8bd0-482f-b5a1-261ca4c81fb2","description":"<p>Conversions API allows you to exchange coins within your custody user account.</p>\n","_postman_id":"473b666a-8bd0-482f-b5a1-261ca4c81fb2"},{"name":"Custody","item":[{"name":"Create new user account","id":"a46d6496-5120-4b0d-ba13-2e9887429924","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-sandbox.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-sandbox.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"685c5c84-8764-473c-ba2b-43f8d240af50","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-sandbox.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":"9c4af028-c252-4633-9eae-98eba34aea67","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-sandbox.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":"a46d6496-5120-4b0d-ba13-2e9887429924"},{"name":"Create recurring payments","id":"0e4cb9b5-f814-41b5-b9e3-cce1fec098fd","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-sandbox.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-sandbox.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"abc0d8aa-2288-4995-b806-415834dd2c3d","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-sandbox.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":"0e4cb9b5-f814-41b5-b9e3-cce1fec098fd"},{"name":"Get user balance","id":"4bf44fa2-44d8-4de1-9387-ddbfecd08903","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-sandbox.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-sandbox.nowpayments.io"],"query":[],"variable":[{"id":"4eda5325-4e20-4220-b5c1-1862f514eb70","description":{"content":"<p>ID of sub-user for balance request</p>\n","type":"text/plain"},"type":"any","value":null,"key":"id"}]}},"response":[{"id":"f954d45a-f4ce-44c4-bac8-2cce20567fae","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"{{api-key}}","description":"(Required)  Your NOWPayments API key","type":"text"}],"url":"https://api-sandbox.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":"4bf44fa2-44d8-4de1-9387-ddbfecd08903"},{"name":"Get users","id":"b0ed1f65-7b7f-4067-b943-55428a546aa3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{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 {{token}}","description":"<p>(Required) Your authorization token</p>\n","type":"text"}],"url":"https://api-sandbox.nowpayments.io/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-sandbox.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":"ca790f3c-ff73-49d8-8834-8bb5aa6e9bee","name":"200","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","description":"(Required) Your authorization token","type":"text"}],"url":{"raw":"https://api-sandbox.nowpayments.io/v1/sub-partner?id=111&offset=0&limit=10&order=DESC","host":["https://api-sandbox.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":"b0ed1f65-7b7f-4067-b943-55428a546aa3"},{"name":"Get all transfers","id":"1e675237-7d81-4182-88f2-c89b042603b8","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-sandbox.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-sandbox.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":"4e71e752-4cb7-4b2b-be06-bd769cec4c11","name":"200","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","description":"(Required) Your authorization token","type":"text"}],"url":{"raw":"https://api-sandbox.nowpayments.io{/v1/sub-partner/transfers?status=FINISHED&limit=10&offset=0&order=ASC","host":["https://api-sandbox.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":"1e675237-7d81-4182-88f2-c89b042603b8"},{"name":"Get transfer","id":"39136edc-294f-4d86-af9a-8969f90d242f","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-sandbox.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-sandbox.nowpayments.io"],"query":[],"variable":[{"id":"d7086b4a-b4b4-4059-ae84-2d964bc6f513","type":"any","value":null,"key":"id"}]}},"response":[{"id":"843b1c80-cc5d-48b9-863c-eae58f29c921","name":"200","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","description":"(Required) Your authorization token","type":"text"}],"url":{"raw":"https://api-sandbox.nowpayments.io{/v1/sub-partner/transfer/:id","host":["https://api-sandbox.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":"39136edc-294f-4d86-af9a-8969f90d242f"},{"name":"Transfer","id":"a685210b-0d07-4ea6-94ce-a446f62cd1f2","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-sandbox.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-sandbox.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"84e7fddd-dbac-42e8-9861-3bf9e7b3461f","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-sandbox.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":"a685210b-0d07-4ea6-94ce-a446f62cd1f2"},{"name":"Deposit with payment","id":"d459f5d1-bf71-44a5-bb3f-ed48cc5a7509","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-sandbox.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-sandbox.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"3a226723-7812-47f1-ab44-6c2e042b9a4d","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-sandbox.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":"d459f5d1-bf71-44a5-bb3f-ed48cc5a7509"},{"name":"Get user payments","id":"6a42c91b-c6f0-4ade-9fe8-1819eb5c4548","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-sandbox.nowpayments.io/v1/sub-partner/payments","description":"<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-sandbox.nowpayments.io"],"query":[],"variable":[]}},"response":[],"_postman_id":"6a42c91b-c6f0-4ade-9fe8-1819eb5c4548"},{"name":"Deposit from your  master account","id":"e3e9a0e8-4023-47e4-a673-6435f2a7df5f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","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 {{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-sandbox.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-sandbox.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"6ee13793-305d-4061-a3a5-dc894a0c44e9","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-sandbox.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":"e3e9a0e8-4023-47e4-a673-6435f2a7df5f"},{"name":"Write off on your account","id":"0ec1495c-ed9a-4f42-a125-5a5f140f255d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","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 {{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-sandbox.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-sandbox.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"e2f276dd-f45e-4a1b-a53d-3c266ef1659f","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-sandbox.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":"0ec1495c-ed9a-4f42-a125-5a5f140f255d"}],"id":"e49ff270-f097-49aa-bdb3-917d86da9625","description":"<p>NOWPayments allows you to create deposit accounts for your users, enabling full-fledged crypto billing solution.</p>\n","_postman_id":"e49ff270-f097-49aa-bdb3-917d86da9625"},{"name":"Recurring Payments API (Email Subscriptions)","item":[{"name":"Create plan","id":"ba0313ed-a668-496c-96f9-e55bdccf0c8c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","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 {{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-sandbox.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 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-sandbox.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"93eff3a8-12a9-4cca-9ded-d54030894e35","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-sandbox.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":"ba0313ed-a668-496c-96f9-e55bdccf0c8c"},{"name":"Update plan","id":"568742be-344e-41fd-8e2b-2167cda206c7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{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-sandbox.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-sandbox.nowpayments.io"],"query":[],"variable":[{"id":"1691eb9d-6039-4c4d-9579-0c6d8cfe0768","type":"any","value":null,"key":"plan-id"}]}},"response":[{"id":"9c3d672c-0470-414c-8f0a-4b1df733be00","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-sandbox.nowpayments.io/v1/subscriptions/plans/:plan-id","host":["https://api-sandbox.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":"568742be-344e-41fd-8e2b-2167cda206c7"},{"name":"Get one plan","id":"3e8ca98d-b1a7-41c4-9ba7-e21459c6fc30","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-sandbox.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-sandbox.nowpayments.io"],"query":[],"variable":[{"id":"2875d50d-3107-4500-9d04-022b092dfdfa","type":"any","value":null,"key":"plan-id"}]}},"response":[{"id":"a2fd91cb-8b74-428e-84d2-e238e180aabd","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-sandbox.nowpayments.io/v1/subscriptions/plans/:plan-id","host":["https://api-sandbox.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":"c7f88122-12a4-4b34-a3d7-a3c3387e2a7a","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-sandbox.nowpayments.io/v1/subscriptions/plans/:plan-id","host":["https://api-sandbox.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":"3e8ca98d-b1a7-41c4-9ba7-e21459c6fc30"},{"name":"Get all plans","id":"ce6108f5-e5fd-476c-b7f4-ba4d5cca2ebc","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-sandbox.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-sandbox.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":"9a633105-9e9a-4978-9841-c1419a94b2e5","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-sandbox.nowpayments.io/v1/subscriptions/plans?limit=10&offset=3","host":["https://api-sandbox.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":"ce6108f5-e5fd-476c-b7f4-ba4d5cca2ebc"},{"name":"Create an email subscription","id":"2a54a9fb-7900-40a1-ad49-03c22dc08249","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-sandbox.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-sandbox.nowpayments.io"],"query":[],"variable":[]}},"response":[{"id":"ae170b9e-3374-49a6-9116-8c3b50d925d6","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":"1376c1ff-1b4b-4e4a-82bf-14f605de5c68","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-sandbox.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":"2a54a9fb-7900-40a1-ad49-03c22dc08249"},{"name":"Get many recurring payments","id":"0c22663a-84ea-4a41-a5e5-c3783feea89e","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-sandbox.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-sandbox.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":"2ab14410-8efe-45fa-b1e4-fa0fcc99aaeb","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-sandbox.nowpayments.io/v1/subscriptions?status=PAID&subscription_plan_id=111394288&is_active=false&limit=10&offset=0","host":["https://api-sandbox.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":"0c22663a-84ea-4a41-a5e5-c3783feea89e"},{"name":"Get one recurring payment","id":"cacaef13-16ed-4587-a1c3-7907b4b03aba","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-sandbox.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-sandbox.nowpayments.io"],"query":[],"variable":[{"id":"d890b024-6fc0-4e5b-a28d-12d241cd5ef1","type":"any","value":null,"key":"sub_id"}]}},"response":[{"id":"c180b192-2817-48e3-8368-8f1e4fd8175a","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-sandbox.nowpayments.io/v1/subscriptions/:sub_id","host":["https://api-sandbox.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":"e8042ac0-527d-4734-a559-77788f2611ff","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-sandbox.nowpayments.io/v1/subscriptions/:sub_id","host":["https://api-sandbox.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":"cacaef13-16ed-4587-a1c3-7907b4b03aba"},{"name":"Delete recurring payment","id":"23723302-25ab-4441-8023-6c4b9269f33a","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-sandbox.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-sandbox.nowpayments.io"],"query":[],"variable":[{"id":"3e20cd63-0970-46c5-9c15-d84320b1e17a","type":"any","value":null,"key":"sub_id"}]}},"response":[{"id":"94541e34-a875-4f30-ba48-1cd4234f2bab","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-sandbox.nowpayments.io/v1/subscriptions/:sub_id","host":["https://api-sandbox.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":"c045837a-e06e-4d21-bccb-e9b3fc5eb95a","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-sandbox.nowpayments.io/v1/subscriptions/:sub_id","host":["https://api-sandbox.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":"23723302-25ab-4441-8023-6c4b9269f33a"}],"id":"0256feab-505f-4850-a4d3-fd2721b4fd64","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":"0256feab-505f-4850-a4d3-fd2721b4fd64"}],"event":[{"listen":"prerequest","script":{"id":"8e83d28f-8846-4537-8d0a-72b1ced83515","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"140c6026-8555-44c4-a8e6-a9c9510561ba","type":"text/javascript","exec":[""]}}],"variable":[{"key":"api-host","value":"https://api-sandbox.nowpayments.io","type":"string"}]}