{"info":{"_postman_id":"f99d5382-2615-4ab8-ab33-35ffe2ecf94a","name":"NOWPayments Mass Payots API","description":"<html><head></head><body><p>NOWPayments is a non-custodial cryptocurrency payment processing platform. Accept payments in a wide range of cryptos and get them instantly converted into a coin of your choice and sent to your wallet. Keeping it simple – no excess.</p>\n<h1 id=\"authentication\">Authentication</h1>\n<p>To use the NOWPayments API you should do the following:</p>\n<ul>\n<li>Sign up at <a href=\"https://nowpayments.io\">nowpayments.io</a></li>\n<li>Specify your outcome wallet</li>\n<li>Generate an API key</li>\n<li>Contact us to whitelist your ip</li>\n</ul>\n<h1 id=\"api-documentation\">API Documentation</h1>\n<h2 id=\"instant-payments-notifications\">Instant Payments Notifications</h2>\n<p>IPN (Instant payment notifications, or callbacks) are used to notify you when transaction status is changed.\nTo use them, you should complete the following steps:</p>\n<ol>\n<li><p>Generate and save the IPN Secret key in Store Settings tab at the Dashboard.</p>\n</li>\n<li><p>Insert the link where you want to get callbacks in create_payout request.\nThe parameter name is ipn_callback_url</p>\n</li>\n<li><p>You will receive all the parameters at this URL by POST request.</p>\n</li>\n<li><p>Sort all the parameters in alphabetical order.</p>\n</li>\n<li><p>Convert them to string using JSON.stringify(params, Object.keys(params).sort()) or the same function.</p>\n</li>\n<li><p>Sign a string with an IPN-secret key with HMAC and sha-512 key</p>\n</li>\n<li><p>Compare the signed string from the previous step with the x-nowpayments-sig , which is stored in the header of the callback request.\nIf these strings are similar it is a success.\nOtherwise, contact us on <a href=\"mailto:support@nowpayments.io\">support@nowpayments.io</a> to solve the problem.</p>\n</li>\n</ol>\n<p>Example of creating a signed string at Node.JS</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>const hmac = crypto.createHmac('sha512', notificationsKey);\nhmac.update(JSON.stringify(params, Object.keys(params).sort()));\nconst signature = hmac.digest('hex');\n</code></pre><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        \n\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\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\n            if ($request_json !== false &amp;&amp; !empty($request_json)) {\n                $hmac = hash_hmac(\"sha512\", $sorted_request_json, trim($this-&gt;ipn_secret));\n\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=\"payouts\">Payouts</h2>\n<p>To add funds to your balance , create a payment using \"create payment\" method.\nYou will see a deposit address to which you need to send the funds. When the request has been processed, the funds will be added to your balance</p>\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":"f99d5382-2615-4ab8-ab33-35ffe2ecf94a","publishedId":"T1DtdF9a","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-07-29T16:03:20.000Z"},"item":[{"name":"1. Authentication","id":"8b4d1e82-1a0c-4135-8e41-a388aec01cfa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"your_email\",\n    \"password\": \"your_password\" \n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/auth","description":"<p>Authentication method for obtaining a JWT token. You should specify your email and password which you are using for signing in into dashboard.\nJWT token will be required for creating a payout request. For security reasons, JWT tokens expire after 5 minutes.</p>\n","urlObject":{"protocol":"https","path":["v1","auth"],"host":["api","nowpayments","io"],"query":[],"variable":[]}},"response":[{"id":"4f78580b-6928-4cff-a4b6-0c00ea43f25e","name":"1. Authentication","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"your_email\",\n    \"password\": \"your_password\" \n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/auth"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 13 Nov 2020 17:26:24 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"__cfduid=d100179a7e095065cf498b0371b423b7d1605288381; expires=Sun, 13-Dec-20 17:26:21 GMT; path=/; domain=.nowpayments.io; HttpOnly; SameSite=Lax"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"Strict-Transport-Security","value":"max-age=15768000"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Vary","value":"Origin"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"cf-request-id","value":"06643de5b900000022542c9000000001"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=%2BQThCuj3D5DwqKzV%2FPRt15xNxPJ2KeOa0YwY8JeNLCpOzK7WTa%2FAv1csNcLl2Q2ZUnQEt4ITZdXfizJUafHl1f9G3F%2BENJmd%2FOe3NKxoFmN5Cjo%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"5f1a3282cac70022-DME"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjU4MjYyNTkxMTUiLCJpYXQiOjE2MDUyODgzODQsImV4cCI6MTYwNTI4ODY4NH0.bk8B5AjoTt8Qfm1zHJxutAtgaTGW-2j67waGQ2DUHUI\"\n}"}],"_postman_id":"8b4d1e82-1a0c-4135-8e41-a388aec01cfa"},{"name":"2. Create payout","id":"f58d2206-a1ed-4476-9e9a-13cf60d8905a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-key","type":"text","value":"<your_api_key>"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"ipn_callback_url\": \"https://nowpayments.io\",\n    \"withdrawals\": [\n        {\n            \"address\": \"TEmGwPeRTPiLFLVfBxXkSP91yc5GMNQhfS\",\n            \"currency\": \"trx\",\n            \"amount\": 200,\n            \"ipn_callback_url\": \"https://nowpayments.io\"\n        },\n        {\n           \"address\": \"0x1EBAeF7Bee7B3a7B2EEfC72e86593Bf15ED37522\",\n            \"currency\": \"eth\",\n            \"amount\": 0.1,\n            \"ipn_callback_url\": \"https://nowpayments.io\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/payout","description":"<p>This is the method to create a payout. You need to provide your data as a JSON-object payload.</p>\n<p>Please note that once the payout is created you need to add your “id” in the <code>3. Verify payout</code> method along with your 2fa code.<br />2fa is obligatory for creating payouts.</p>\n<p>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>waiting</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":{"protocol":"https","path":["v1","payout"],"host":["api","nowpayments","io"],"query":[],"variable":[]}},"response":[{"id":"dea72697-cdf0-434b-acc6-fa6b26cfe082","name":"2. Create payout","originalRequest":{"method":"POST","header":[{"key":"x-api-key","type":"text","value":"<your_api_key>"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"ipn_callback_url\": \"https://nowpayments.io\",\n    \"withdrawals\": [\n        {\n            \"address\": \"TEmGwPeRTPiLFLVfBxXkSP91yc5GMNQhfS\",\n            \"currency\": \"trx\",\n            \"amount\": 200,\n            \"ipn_callback_url\": \"https://nowpayments.io\"\n        },\n        {\n           \"address\": \"0x1EBAeF7Bee7B3a7B2EEfC72e86593Bf15ED37522\",\n            \"currency\": \"eth\",\n            \"amount\": 0.1 ,\n            \"ipn_callback_url\": \"https://nowpayments.io\"\n        },\n        {\n           \"address\": \"0x1EBAeF7Bee7B3a7B2EEfC72e86593Bf15ED37522\",\n            \"currency\": \"usdc\",\n            \"amount\": 1,\n            \"fiat_amount\": 100,\n            \"fiat_currency\": \"usd\",\n            \"ipn_callback_url\": \"https://nowpayments.io\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/payout"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n\t\"id\": \"5000000713\",\n\t\"withdrawals\": [\n    {\n    \"id\": \"5000000000\",\n    \"address\": \"TEmGwPeRTPiLFLVfBxXkSP91yc5GMNQhfS\",\n    \"currency\": \"trx\",\n    \"amount\": \"200\",\n    \"batchWithdrawalId\": \"5000000000\",\n    \"status\": \"WAITING\",\n    \"extra_id\": null,\n    \"hash\": null,\n    \"error\": null,\n    \"createdAt\": \"2020-11-12T17:06:12.791Z\",\n    \"requestedAt\": null,\n    \"updatedAt\": null\n  },\n  {\n    \"id\": \"5000000001\",\n    \"address\": \"0x1EBAeF7Bee7B3a7B2EEfC72e86593Bf15ED37522\",\n    \"currency\": \"eth\",\n    \"amount\": \"0.1\",\n    \"batchWithdrawalId\": \"5000000000\",\n    \"status\": \"WAITING\",\n    \"extra_id\": null,\n    \"hash\": null,\n    \"error\": null,\n    \"createdAt\": \"2020-11-12T17:06:12.791Z\",\n    \"requestedAt\": null,\n    \"updatedAt\": null\n  },\n  {\n    \"id\": \"5000000002\",\n    \"address\": \"0x1EBAeF7Bee7B3a7B2EEfC72e86593Bf15ED37522\",\n    \"currency\": \"usdc\",\n    \"amount\": \"99.84449793\",\n    \"fiat_amount\": \"100\",\n    \"fiat_currency\": \"usd\",\n    \"batchWithdrawalId\": \"5000000000\",\n    \"status\": \"WAITING\",\n    \"extra_id\": null,\n    \"hash\": null,\n    \"error\": null,\n    \"createdAt\": \"2020-11-12T17:06:12.791Z\",\n    \"requestedAt\": null,\n    \"updatedAt\": null\n  }\n  ]\n}"}],"_postman_id":"f58d2206-a1ed-4476-9e9a-13cf60d8905a"},{"name":"3. Verify payout","id":"f1f16d31-2491-4825-9a9a-829112a4c22b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-key","type":"text","value":"<your_api_key>"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"verification_code\": \"123456\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/payout/:batch-withdrawal-id/verify","description":"<p>This method is required to verify payouts by using your 2fa code. <br />You’ll have 10 attempts to verify the payout. If it is not verified after 10 attempts, the payout will remain in ‘creating’ status.<br />Payout will be processed only when it is verified.  </p>\n<p>Make sure to have your 2fa authentication enabled in your NOWPayments Account (in Account Settings).<br />When 2fa is disabled, the code automatically goes to your registration email.<br />The code sent by email is valid for one hour.</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","urlObject":{"protocol":"https","path":["v1","payout",":batch-withdrawal-id","verify"],"host":["api","nowpayments","io"],"query":[],"variable":[{"type":"any","value":null,"key":"batch-withdrawal-id"}]}},"response":[{"id":"3710a389-5622-4123-b120-ed294dee9fa1","name":"Success","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"},{"key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"verification_code\": \"123456\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.nowpayments.io/v1/payout/:batch-withdrawal-id/verify","protocol":"https","host":["api","nowpayments","io"],"path":["v1","payout",":batch-withdrawal-id","verify"],"variable":[{"key":"batch-withdrawal-id","value":"123456"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null},{"id":"30b1bffc-0a35-4db3-a60b-e61f90e8e4be","name":"Batch withdrawal not found","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"},{"key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"verification_code\": \"123456\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.nowpayments.io/v1/payout/:batch-withdrawal-id/verify","protocol":"https","host":["api","nowpayments","io"],"path":["v1","payout",":batch-withdrawal-id","verify"],"variable":[{"key":"batch-withdrawal-id","value":"123456"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"statusCode\": 404,\n    \"code\": \"NOT_FOUND\",\n    \"message\": \"batch withdrawal not found\"\n}"},{"id":"0e646ede-864b-4dd0-9fc6-d5dd9574a032","name":"Time out for confirmation (60m)","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"},{"key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"verification_code\": \"123456\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.nowpayments.io/v1/payout/:batch-withdrawal-id/verify","protocol":"https","host":["api","nowpayments","io"],"path":["v1","payout",":batch-withdrawal-id","verify"],"variable":[{"key":"batch-withdrawal-id","value":"123456"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"statusCode\": 400,\n    \"code\": \"BAD_REQUEST\",\n    \"message\": \"time out for confirmation\"\n}"},{"id":"a5fef342-e05f-4073-8df5-09b1d17e6457","name":"Max verification attempts (10)","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"},{"key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"verification_code\": \"123456\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.nowpayments.io/v1/payout/:batch-withdrawal-id/verify","protocol":"https","host":["api","nowpayments","io"],"path":["v1","payout",":batch-withdrawal-id","verify"],"variable":[{"key":"batch-withdrawal-id","value":"123456"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"statusCode\": 400,\n    \"code\": \"BAD_REQUEST\",\n    \"message\": \"max verification attempts\"\n}"},{"id":"60ae86ab-7196-41c9-9de3-f3f16fcdb6f8","name":"Invalid verification code","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"},{"key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"verification_code\": \"123456\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.nowpayments.io/v1/payout/:batch-withdrawal-id/verify","protocol":"https","host":["api","nowpayments","io"],"path":["v1","payout",":batch-withdrawal-id","verify"],"variable":[{"key":"batch-withdrawal-id","value":"123456"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Invalid verification code\"\n}"}],"_postman_id":"f1f16d31-2491-4825-9a9a-829112a4c22b"},{"name":"4. Get payout status","id":"56676e2e-9d41-4864-8ac6-9092d444be44","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"host":true,"user-agent":true,"accept":true,"accept-encoding":true,"connection":true}},"request":{"method":"GET","header":[{"key":"x-api-key","type":"text","value":"<your_api_key>"},{"key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://api.nowpayments.io/v1/payout/<payout_id>","description":"<p>Get the actual information about the payout. You need to provide the ID of the payout in the request.</p>\n<p>NOTE! You should make the get payout status request with the same API key that you used in the creat_payout request.</p>\n<p>Here is the list of available statuses:</p>\n<ul>\n<li>waiting</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":{"protocol":"https","path":["v1","payout","<payout_id>"],"host":["api","nowpayments","io"],"query":[],"variable":[]}},"response":[{"id":"52165d85-3952-447e-be25-33920bd36c5e","name":"4. Get payout status","originalRequest":{"method":"GET","header":[{"key":"x-api-key","type":"text","value":"<your_api_key>"},{"key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"}],"body":{"mode":"raw","raw":""},"url":"https://api.nowpayments.io/v1/payout/<payout_id>"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"<payout_id>\",\n        \"address\": \"<payout_address>\",\n        \"currency\": \"trx\",\n        \"amount\": \"200\",\n        \"batchWithdrawalId\": \"<batchWithdrawalId>\",\n        \"status\": \"WAITING\",\n        \"extra_id\": null,\n        \"hash\": null,\n        \"error\": null,\n        \"createdAt\": \"2020-11-12T17:06:12.791Z\",\n        \"requestedAt\": null,\n        \"updatedAt\": null\n    }\n]"}],"_postman_id":"56676e2e-9d41-4864-8ac6-9092d444be44"},{"name":"5. Get balance","id":"55361ccd-dc04-440b-88e4-b982951053e9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","type":"text","value":"<your_api_key>"},{"key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"}],"url":"https://api.nowpayments.io/v1/balance","description":"<p>This method returns your balance in different currencies.</p>\n<p>The response contains a list of currencies with two parameters:</p>\n<ul>\n<li>amount - avaliable currency amount</li>\n<li>pendingAmount - currently processing currency amount.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["v1","balance"],"host":["api","nowpayments","io"],"query":[],"variable":[]}},"response":[{"id":"38c4328c-9017-4342-beb8-3c906b3ac589","name":"5. Get balance(success)","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"<your_api_key>","type":"text"},{"key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"}],"url":"https://api.nowpayments.io/v1/balance"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"eth\": {\n        \"amount\": 0.0001817185463659148,\n        \"pendingAmount\": 0\n    },\n    \"trx\": {\n        \"amount\": 0,\n        \"pendingAmount\": 0\n    },\n    \"xmr\": {\n        \"amount\": 0,\n        \"pendingAmount\": 0\n    }\n}"}],"_postman_id":"55361ccd-dc04-440b-88e4-b982951053e9"},{"name":"6. Create payment","id":"4469dd3f-7ec5-4aa9-8bfc-e1373a94b10c","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_currency\": \"btc\",\n  \"ipn_callback_url\": \"https://nowpayments.io\",\n  \"order_id\": \"RGDBP-21314\",\n  \"order_description\": \"Apple Macbook Pro 2019 x 1\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/payment","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) - the fiat equivalent of the price to be paid in crypto. If the pay_amount parameter is left empty, our system will automatically convert this fiat price into its crypto equivalent. Please note that this does not enable fiat payments, only provides a fiat price for yours and the customer’s convenience and information.</li>\n<li>price_currency (required) - the fiat currency in which the price_amount is specified (usd, eur, etc).</li>\n<li>pay_amount (optional) - the amount that users have to pay for the order stated in crypto. You can either specify  it yourself,  or we will automatically convert the amount you indicated in price_amount.</li>\n<li>pay_currency (required) - the crypto currency in which the pay_amount is specified (btc, eth, 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>\"</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) - 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_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>fixed_rate(optional) - boolean, can be <strong>true</strong> or <strong>false</strong>. Required for fixed-rate exchanges.</li>\n</ul>\n<p>Here the list of avalable 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","payment"],"host":["api","nowpayments","io"],"query":[],"variable":[]}},"response":[{"id":"ae616888-7d3e-4f6c-8ea4-f43cb4138b8d","name":"6. Create payment","originalRequest":{"method":"POST","header":[{"key":"x-api-key","type":"text","value":"<your_api_key>"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"price_amount\": 3999.5,\n  \"price_currency\": \"usd\",\n  \"pay_currency\": \"btc\",\n  \"ipn_callback_url\": \"https://nowpayments.io\",\n  \"order_id\": \"RGDBP-21314\",\n  \"order_description\": \"Apple Macbook Pro 2019 x 1\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/payment"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 22 Dec 2020 15:00:22 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"420"},{"key":"Connection","value":"keep-alive"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"Strict-Transport-Security","value":"max-age=15768000"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Vary","value":"Origin"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"cf-request-id","value":"072c902abd00001669e7327000000001"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=ZJgfL2UQDRGgSZ4oOb6wMDBAfE53D6i5EQUx1dsRP0skDMWeUwY4g6iPdUE3URPLtCLNaFtySv1gbsGjyPmspIwsl42xacCDk%2BjSGee%2F6JIAqfQ%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"605ab6246ee71669-ARN"}],"cookie":[],"responseTime":null,"body":"{\n    \"payment_id\": \"5745459419\",\n    \"payment_status\": \"waiting\",\n    \"pay_address\": \"3EZ2uTdVDAMFXTfc6uLDDKR6o8qKBZXVkj\",\n    \"price_amount\": 3999.5,\n    \"price_currency\": \"usd\",\n    \"pay_amount\": 0.17070286,\n    \"pay_currency\": \"btc\",\n    \"order_id\": \"RGDBP-21314\",\n    \"order_description\": \"Apple Macbook Pro 2019 x 1\",\n    \"ipn_callback_url\": \"https://nowpayments.io\",\n    \"created_at\": \"2020-12-22T15:00:22.742Z\",\n    \"updated_at\": \"2020-12-22T15:00:22.742Z\",\n    \"purchase_id\": \"5837122679\"\n}"}],"_postman_id":"4469dd3f-7ec5-4aa9-8bfc-e1373a94b10c"}],"event":[{"listen":"prerequest","script":{"id":"47c23496-9f47-47ed-89ef-8e79f0f0cbca","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"09ecc1c5-3120-45ea-9aef-f172d737de6b","type":"text/javascript","exec":[""]}}]}