{"info":{"_postman_id":"9f217404-4263-42ad-b6b1-03a3d95b7d22","name":"NOWPayments API","description":"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.\n\n# Sandbox\n\nBefore production usage, you can test our API using the Sandbox. Details can be found [here](https://documenter.getpostman.com/view/7907941/T1LSCRHC)\n\n# Authentication\n\nTo use the NOWPayments API you should do the following:\n\n*   Sign up at [nowpayments.io](https://nowpayments.io)\n*   Specify your outcome wallet\n*   Generate an API key\n    \n\n# Standard e-commerce flow for NOWPayments API:\n\n1.  API - Check API availability with the [\"GET API status\"](https://documenter.getpostman.com/view/7907941/S1a32n38?version=latest#9998079f-dcc8-4e07-9ac7-3d52f0fd733a) method. If required, check the list of available payment currencies with the [\"GET available currencies\"](https://documenter.getpostman.com/view/7907941/S1a32n38?version=latest#1c268f89-4fe7-471e-81b4-5a3153577b73) method.\n2.  UI - Ask a customer to select item/items for purchase to determine the total sum;\n3.  UI - Ask a customer to select payment currency\n4.  API - Get the minimum payment amount for the selected currency pair (payment currency to your Outcome Wallet currency) with the [\"GET Minimum payment amount\"](https://documenter.getpostman.com/view/7907941/S1a32n38?version=latest#41b02221-2d58-4fcf-9529-59d3763d6434) method;\n5.  API - Get the estimate of the total amount in crypto with [\"GET Estimated price\"](https://documenter.getpostman.com/view/7907941/S1a32n38?version=latest#7025cacf-7040-4c7b-a83f-f9ff0a22a822) and check that it is larger than the minimum payment amount from step 4;\n6.  API - Call the [\"POST Create payment\"](https://documenter.getpostman.com/view/7907941/S1a32n38?version=latest#5e37f3ad-0fa1-4292-af51-5c7f95730486) method to create a payment and get the deposit address (in our example, the generated BTC wallet address is returned from this method);\n7.  UI - Ask a customer to send the payment to the generated deposit address (in our example, user has to send BTC coins);\n8.  UI - A customer sends coins, NOWPayments processes and exchanges them (if required), and settles the payment to your Outcome Wallet (in our example, to your ETH address);\n9.  API - You can get the payment status either via our IPN callbacks or manually, using [\"GET Payment Status\"](https://documenter.getpostman.com/view/7907941/S1a32n38?version=latest#0b77a8e3-2344-4760-a0bd-247da067db6d) and display it to a customer so that they know when their payment has been processed.\n10.  API - you call the list of payments made to your account via the [\"GET List of payments\"](https://documenter.getpostman.com/view/7907941/S1a32n38?version=latest#c8399c0e-d798-4f01-83ae-ddaa6905c2da) method. Additionally, you can see all of this information in your [Account](https://account.nowpayments.io/payments) on NOWPayments website.\n    \n\n## Alternative flow\n\n1.  API - Check API availability with the [\"GET API status\"](https://documenter.getpostman.com/view/7907941/S1a32n38?version=latest#9998079f-dcc8-4e07-9ac7-3d52f0fd733a) method. If required, check the list of available payment currencies with the [\"GET available currencies\"](https://documenter.getpostman.com/view/7907941/S1a32n38?version=latest#1c268f89-4fe7-471e-81b4-5a3153577b73) method.\n2.  UI - Ask a customer to select item/items for purchase to determine the total sum;\n3.  UI - Ask a customer to select payment currency\n4.  API - Get the minimum payment amount for the selected currency pair (payment currency to your Outcome Wallet currency) with the [\"GET Minimum payment amount\"](https://documenter.getpostman.com/view/7907941/S1a32n38?version=latest#41b02221-2d58-4fcf-9529-59d3763d6434) method;\n5.  API - Get the estimate of the total amount in crypto with [\"GET Estimated price\"](https://documenter.getpostman.com/view/7907941/S1a32n38?version=latest#7025cacf-7040-4c7b-a83f-f9ff0a22a822) and check that it is larger than the minimum payment amount from step 4;\n6.  API - Call the [\"POST Create Invoice](https://documenter.getpostman.com/view/7907941/S1a32n38?version=latest#3e3ce25e-f43f-4636-bbd9-11560e46048b) method to create an invoice. Set \"success_url\" - parameter so that the user will be redirected to your website after successful payment.\n7.  UI - display the invoice url or redirect the user to the generated link.\n8.  NOWPayments - the customer completes the payment and is redirected back to your website (only if \"success_url\" parameter is configured correctly!).\n9.  API - You can get the payment status either via our IPN callbacks or manually, using [\"GET Payment Status\"](https://documenter.getpostman.com/view/7907941/S1a32n38?version=latest#0b77a8e3-2344-4760-a0bd-247da067db6d) and display it to a customer so that they know when their payment has been processed.\n10.  API - you call the list of payments made to your account via the [\"GET List of payments\"](https://documenter.getpostman.com/view/7907941/S1a32n38?version=latest#c8399c0e-d798-4f01-83ae-ddaa6905c2da) method. Additionally, you can see all of this information in your [Account](https://account.nowpayments.io/invoices) on NOWPayments website.\n    \n\n# API Documentation\n\n## Instant Payments Notifications\n\nIPN (Instant payment notifications, or callbacks) are used to notify you when transaction status is changed.  \nTo use them, you should complete the following steps:\n\n1.  Generate and save the IPN Secret key in Store Settings tab at the Dashboard.\n2.  Insert your URL address where you want to get callbacks in create_payment request. The parameter name is ipn_callback_url. You will receive payment updates (statuses) to this URL address.\n3.  You will receive all the parameters at the URL address you specified in (2) by POST request.  \n    The POST request will contain the *x-nowpayments-sig* parameter in the header.  \n    The body of the request is similiar to a [get payment status](https://documenter.getpostman.com/view/7907941/S1a32n38?version=latest#0b77a8e3-2344-4760-a0bd-247da067db6d) response body.  \n    Example:  \n    {\"payment_id\":5077125051,\"payment_status\":\"waiting\",\"pay_address\":\"0xd1cDE08A07cD25adEbEd35c3867a59228C09B606\",\"price_amount\":170,\"price_currency\":\"usd\",\"pay_amount\":155.38559757,\"actually_paid\":0,\"pay_currency\":\"mana\",\"order_id\":\"2\",\"order_description\":\"Apple Macbook Pro 2019 x 1\",\"purchase_id\":\"6084744717\",\"created_at\":\"2021-04-12T14:22:54.942Z\",\"updated_at\":\"2021-04-12T14:23:06.244Z\",\"outcome_amount\":1131.7812095,\"outcome_currency\":\"trx\"}\n4.  Sort all the parameters from the POST request in alphabetical order.\n5.  Convert them to string using  \n    [JSON.stringify](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify) (params, Object.keys(params).sort()) or the same function.\n6.  Sign a string with an IPN-secret key with HMAC and sha-512 key\n7.  Compare the signed string from the previous step with the x-nowpayments-sig , which is stored in the header of the callback request.  \n    If these strings are similar it is a success.  \n    Otherwise, contact us on [support@nowpayments.io](mailto:support@nowpayments.io) to solve the problem.\n    \n\nExample of creating a signed string at Node.JS\n\n```\nconst hmac = crypto.createHmac('sha512', notificationsKey);\nhmac.update(JSON.stringify(params, Object.keys(params).sort()));\nconst signature = hmac.digest('hex');\n\n```\n\nExample of comparing signed strings in PHP\n\n```\nfunction check_ipn_request_is_valid()\n    {\n        $error_msg = \"Unknown error\";\n        $auth_ok = false;\n        $request_data = null;\n        if (isset($_SERVER['HTTP_X_NOWPAYMENTS_SIG']) && !empty($_SERVER['HTTP_X_NOWPAYMENTS_SIG'])) {\n            $recived_hmac = $_SERVER['HTTP_X_NOWPAYMENTS_SIG'];\n            $request_json = file_get_contents('php://input');\n            $request_data = json_decode($request_json, true);\n            ksort($request_data);\n            $sorted_request_json = json_encode($request_data, JSON_UNESCAPED_SLASHES);\n            if ($request_json !== false && !empty($request_json)) {\n                $hmac = hash_hmac(\"sha512\", $sorted_request_json, trim($this->ipn_secret));\n                if ($hmac == $recived_hmac) {\n                    $auth_ok = true;\n                } else {\n                    $error_msg = 'HMAC signature does not match';\n                }\n            } else {\n                $error_msg = 'Error reading POST data';\n            }\n        } else {\n            $error_msg = 'No HMAC signature sent.';\n        }\n    }\n\n```\n\n## Recurrent payment notifications\n\nIf an error is detected, the payment is flagged and will receive additional recurrent notifications (number of recurrent notifications can be changed in your Store Settings-> Instant Payment Notifications).\n\nIf an error is received again during processing of the payment, recurrent notifications will be initiated again.\n\nExample: \"Timeout\" is set to 1 minute and \"Number of recurrent notifications\" is set to 3.\n\nOnce an error is detected, you will receive 3 notifications at 1 minute intervals.\n\n## Several payments for one order\n\nIf you want to create several payments for one Order you should do the following:\n\n*   Create a payment for the full order amount.\n*   Save \"purchase_id\" which will be in \"create_payment\" response\n*   Create next payment or payments with this \"purchase_id\" in \"create_payment\" request.\n*   **Only works for partially_paid payments**\n    \n\nIt 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.\n\n## Packages\n\nPlease find our out-of-the box packages for easy integration below:\n\n[JavaScript package](https://www.npmjs.com/package/@nowpaymentsio/nowpayments-api-js)\n\n\\[PHP package\\]  \n([https://packagist.org/packages/nowpayments/nowpayments-api-php](https://packagist.org/packages/nowpayments/nowpayments-api-php))\n\nMore coming soon!\n\n## Payments","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json"},"item":[{"name":"Recurring Payments API (Email Subscriptions feature)","item":[{"name":"Create plan","id":"7ef33da7-fd2b-49cf-b398-9b8ed6793415","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"}},"method":"POST","header":[],"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":"{{api-host}}/v1/subscriptions/plans","description":"This is the method to create a Recurring Payments plan. Every plan has its unique ID which is required for generating separate payments.  \n  \nBody:  \n\"title\": the name of your recurring payments plan,  \n\"interval_day\": recurring payments duration in days,  \n\"amount\" : amount of funds paid in fiat/crypto,  \n\"currency\" : crypto or fiat currency we support"},"response":[{"id":"1801557d-912e-4980-b04b-c225463d5ce9","name":"200","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"<your_api_key>","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"title\": \"second sub plan\",\n    \"interval_day\": 1,\n    \"amount\": 0.5,\n    \"currency\" : \"usd\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/subscriptions/plans"},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"result\": {\n        \"id\": \"1062307590\",\n        \"title\": \"second sub plan\",\n        \"interval_day\": \"1\",\n        \"ipn_callback_url\": null,\n        \"success_url\": null,\n        \"cancel_url\": null,\n        \"partially_paid_url\": null,\n        \"amount\": 0.5,\n        \"currency\": \"USD\",\n        \"created_at\": \"2022-10-04T16:28:55.423Z\",\n        \"updated_at\": \"2022-10-04T16:28:55.423Z\"\n    }\n}"}],"_postman_id":"7ef33da7-fd2b-49cf-b398-9b8ed6793415"},{"name":"Update plan","id":"d0091890-ac7f-4454-a450-03cf041dd124","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"}},"method":"PATCH","header":[],"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":"{{api-host}}/v1/subscriptions/plans/:plan-id","host":["{{api-host}}"],"path":["v1","subscriptions","plans",":plan-id"],"variable":[{"id":"1691eb9d-6039-4c4d-9579-0c6d8cfe0768","key":"plan-id","value":null}]},"description":"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."},"response":[{"id":"5ad460fb-8a57-4413-9166-6ce27fb76d06","name":"200","originalRequest":{"method":"PATCH","header":[{"key":"x-api-key","value":"<your_api_key>","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"title\": \"test plan\",\n    \"interval_day\": 1,\n    \"amount\": 2,\n    \"currency\": \"usd\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.nowpayments.io/v1/subscriptions/plans/:plan-id","protocol":"https","host":["api","nowpayments","io"],"path":["v1","subscriptions","plans",":plan-id"],"variable":[{"key":"plan-id","value":"76215585"}]}},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"result\": {\n        \"id\": \"76215585\",\n        \"title\": \"test plan\",\n        \"interval_day\": \"1\",\n        \"ipn_callback_url\": null,\n        \"success_url\": null,\n        \"cancel_url\": null,\n        \"partially_paid_url\": null,\n        \"amount\": 2,\n        \"currency\": \"USD\",\n        \"created_at\": \"2022-10-04T16:10:06.214Z\",\n        \"updated_at\": \"2022-10-04T16:10:06.214Z\"\n    }\n}"}],"_postman_id":"d0091890-ac7f-4454-a450-03cf041dd124"},{"name":"Get one plan","id":"9942941e-32f9-43df-b0fe-832324813a64","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"url":{"raw":"{{api-host}}/v1/subscriptions/plans/:plan-id","host":["{{api-host}}"],"path":["v1","subscriptions","plans",":plan-id"],"variable":[{"id":"2875d50d-3107-4500-9d04-022b092dfdfa","key":"plan-id","value":null}]},"description":"This method allows you to obtain information about your payment plan.  \n(you need to specify your payment plan id in the request)."},"response":[{"id":"6a93e342-a3f4-42d0-8f0c-afe08977c6e6","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"<your_api_key>","type":"text"}],"url":{"raw":"https://api.nowpayments.io/v1/subscriptions/plans/:plan-id","protocol":"https","host":["api","nowpayments","io"],"path":["v1","subscriptions","plans",":plan-id"],"variable":[{"key":"plan-id","value":"76215585"}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"result\": {\n        \"id\": \"76215585\",\n        \"title\": \"test plan\",\n        \"interval_day\": \"1\",\n        \"ipn_callback_url\": null,\n        \"success_url\": null,\n        \"cancel_url\": null,\n        \"partially_paid_url\": null,\n        \"amount\": 2,\n        \"currency\": \"USD\",\n        \"created_at\": \"2022-10-04T16:10:06.214Z\",\n        \"updated_at\": \"2022-10-04T16:10:06.214Z\"\n    }\n}"},{"id":"139f0a31-039e-40c7-b8eb-059675226df1","name":"404","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"<your_api_key>","type":"text"}],"url":{"raw":"https://api.nowpayments.io/v1/subscriptions/plans/:plan-id","protocol":"https","host":["api","nowpayments","io"],"path":["v1","subscriptions","plans",":plan-id"],"variable":[{"key":"plan-id","value":"11111"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"status\": false,\n    \"statusCode\": 404,\n    \"code\": \"NOT_FOUND\",\n    \"message\": \"subscription plan not found\"\n}"}],"_postman_id":"9942941e-32f9-43df-b0fe-832324813a64"},{"name":"Get many plans","id":"0dec9a13-039f-421d-8341-dc7a94188dd0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth"},"method":"GET","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"url":{"raw":"{{api-host}}/v1/subscriptions/plans","host":["{{api-host}}"],"path":["v1","subscriptions","plans"],"query":[{"key":"limit","value":"10","description":"Number","disabled":true},{"key":"offset","value":"3","description":"Number","disabled":true}]},"description":"This method allows you to obtain information about all the payment plans you’ve created."},"response":[{"id":"53f21ba5-2b47-43fc-835b-d06f7c878cba","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"<your_api_key>","type":"text"}],"url":{"raw":"{{api-host}}/v1/subscriptions/plans","host":["{{api-host}}"],"path":["v1","subscriptions","plans"],"query":[{"key":"limit","value":"10","disabled":true},{"key":"offset","value":"3","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"result\": [\n        {\n            \"id\": \"76215585\",\n            \"title\": \"second sub plan\",\n            \"interval_day\": \"3\",\n            \"ipn_callback_url\": null,\n            \"success_url\": null,\n            \"cancel_url\": null,\n            \"partially_paid_url\": null,\n            \"amount\": 0.1,\n            \"currency\": \"USD\",\n            \"created_at\": \"2022-10-04T16:10:06.214Z\",\n            \"updated_at\": \"2022-10-04T16:10:06.214Z\"\n        },\n        {\n            \"id\": \"1062307590\",\n            \"title\": \"second sub plan\",\n            \"interval_day\": \"1\",\n            \"ipn_callback_url\": null,\n            \"success_url\": null,\n            \"cancel_url\": null,\n            \"partially_paid_url\": null,\n            \"amount\": 0.5,\n            \"currency\": \"USD\",\n            \"created_at\": \"2022-10-04T16:28:55.423Z\",\n            \"updated_at\": \"2022-10-04T16:28:55.423Z\"\n        }\n    ],\n    \"count\": 2\n}"}],"_postman_id":"0dec9a13-039f-421d-8341-dc7a94188dd0"},{"name":"Create an email subscription","id":"6f2fefd7-71ac-4d0b-a958-daec02bd8612","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"}},"method":"POST","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"subscription_plan_id\": 76215585,\n    \"email\": \"test@gmail.ru\"\n}","options":{"raw":{"language":"json"}}},"url":"{{api-host}}/v1/subscriptions","description":"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.  \n  \n`subscription_plan_id` - the ID of the payment plan your customer chooses; such params as the duration and amount will be defined by this ID  \n`email` - your customer’s email to which the payment links will be sent"},"response":[{"id":"3d321fe5-3f1b-4bda-ba0b-57bc936feb7b","name":"200","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"subscription_plan_id\": 76215585,\n    \"email\": \"test@gmail.ru\"\n}","options":{"raw":{"language":"json"}}},"url":"{{api-host}}/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@gmail.ru\"\n        },\n        \"created_at\": \"2022-10-10T13:46:18.476Z\",\n        \"updated_at\": \"2022-10-10T13:46:18.476Z\"\n    }\n}"},{"id":"1e8f35dd-c372-43d2-bd6d-e91bb51b29a8","name":"400 (plan currency is fiat)","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"subscription_plan_id\": 76215585,\n    \"email\": \"test@gmail.ru\"\n}","options":{"raw":{"language":"json"}}},"url":"{{api-host}}/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":"6f2fefd7-71ac-4d0b-a958-daec02bd8612"},{"name":"Get many recurring payments","id":"7223bf3a-9437-4fd6-a1d2-7959c9ae0bba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth"},"method":"GET","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"{{api-host}}/v1/subscriptions","host":["{{api-host}}"],"path":["v1","subscriptions"],"query":[{"key":"status","value":"PARTIALLY_PAID","description":"\"WAITING_PAY\" / \"PAID\" /  \"PARTIALLY_PAID\" / \"EXPIRED\"","disabled":true},{"key":"subscription_plan_id","value":"111394288","disabled":true},{"key":"is_active","value":"false","description":"true / false","disabled":true},{"key":"limit","value":"10","disabled":true},{"key":"offset","value":"0","disabled":true}]},"description":"The method allows you to view the entire list of recurring payments filtered by payment status and/or payment plan id"},"response":[{"id":"bf86c42e-d3c5-443a-8293-6516aefdffa4","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"url":{"raw":"{{api-host}}/v1/subscriptions","host":["{{api-host}}"],"path":["v1","subscriptions"],"query":[{"key":"status","value":"PARTIALLY_PAID","description":"\"WAITING_PAY\" / \"PAID\" /  \"PARTIALLY_PAID\" / \"EXPIRED\"","disabled":true},{"key":"subscription_plan_id","value":"111394288","disabled":true},{"key":"is_active","value":"false","description":"true / false","disabled":true},{"key":"limit","value":"10","disabled":true},{"key":"offset","value":"0","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"result\": [\n        {\n            \"id\": \"1515573197\",\n            \"subscription_plan_id\": \"111394288\",\n            \"is_active\": true,\n            \"status\": \"PAID\",\n            \"expire_date\": \"2022-10-11T00:02:00.025Z\",\n            \"subscriber\": {\n                \"sub_partner_id\": \"111394288\"\n            },\n            \"created_at\": \"2022-10-09T22:15:50.808Z\",\n            \"updated_at\": \"2022-10-09T22:15:50.808Z\"\n        },\n        {\n            \"id\": \"111394288\",\n            \"subscription_plan_id\": \"111394288\",\n            \"is_active\": false,\n            \"status\": \"WAITING_PAY\",\n            \"expire_date\": \"2022-10-07T16:46:00.910Z\",\n            \"subscriber\": {\n                \"email\": \"mikhail.s@changenow.io\"\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":"7223bf3a-9437-4fd6-a1d2-7959c9ae0bba"},{"name":"Get one recurring payment","id":"3c7cfea4-ddaf-4479-bc7b-ee8ce9bfcaed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"{{api-host}}/v1/subscriptions/:sub_id","host":["{{api-host}}"],"path":["v1","subscriptions",":sub_id"],"variable":[{"id":"d890b024-6fc0-4e5b-a28d-12d241cd5ef1","key":"sub_id","value":null}]},"description":"Get information about a particular recurring payment via its ID.\n\nHere’s the list of available statuses:  \n\\- WAITING_PAY  \n\\- PAID  \n\\- PARTIALLY_PAID  \n\\- EXPIRED"},"response":[{"id":"81f05a11-144c-43d2-bc36-5d76944c0066","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"url":{"raw":"{{api-host}}/v1/subscriptions/:sub_id","host":["{{api-host}}"],"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":"ece1975a-7bff-4bdd-ada8-6b06e442d5c3","name":"404","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"url":{"raw":"{{api-host}}/v1/subscriptions/:sub_id","host":["{{api-host}}"],"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":"3c7cfea4-ddaf-4479-bc7b-ee8ce9bfcaed"},{"name":"Delete recurring payment","id":"9bddec11-2cdc-41b7-a90b-605e58fd26f1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"}},"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"{{api-host}}/v1/subscriptions/:sub_id","host":["{{api-host}}"],"path":["v1","subscriptions",":sub_id"],"variable":[{"id":"3e20cd63-0970-46c5-9c15-d84320b1e17a","key":"sub_id","value":null}]},"description":"Completely removes a particular payment from the recurring payment plan.  \nYou need to specify the payment plan id in the request."},"response":[{"id":"720496e2-1f03-4cf1-8247-c3ba751feef6","name":"200","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"{{api-host}}/v1/subscriptions/:sub_id","host":["{{api-host}}"],"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":"8e58b7b7-1a0f-4e54-a1d7-7cc5c165b3f0","name":"404","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"{{api-host}}/v1/subscriptions/:sub_id","host":["{{api-host}}"],"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":"9bddec11-2cdc-41b7-a90b-605e58fd26f1"}],"id":"689df54e-9f43-42b3-bfe8-9bcca0444a6a","description":"Streamline your workflows by sending payments to your customers on a regular basis with NOWPayments.  \nThis feature involves creating a plan for payments and individual recurring payments for each user.  \nFirst you need to create a Recurring Payment plan:","_postman_id":"689df54e-9f43-42b3-bfe8-9bcca0444a6a"},{"name":"Billing (sub-partner API)","item":[{"name":"Create new sub-partner","id":"599d9e00-7a00-4857-a6be-140836390e12","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"}},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"test1\"\n}","options":{"raw":{"language":"json"}}},"url":"{{api-host}}/v1/sub-partner/balance","description":"This is a method to create a sub-partner 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.\n\n**Body:**\n\nName : a unique user identifier; you can use any string which doesn’t exceed 30 characters (but NOT an email)"},"response":[{"id":"3b72e64a-1d99-48ab-baa8-5a7aefdcf77e","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"test1\"\n}","options":{"raw":{"language":"json"}}},"url":"{{api-host}}/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":"d85d9c19-caf1-4fad-9bc4-f4e77ef31c6f","name":"400","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"test1\"\n}","options":{"raw":{"language":"json"}}},"url":"{{api-host}}/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":"599d9e00-7a00-4857-a6be-140836390e12"},{"name":"Create sub-partner recurring payments","id":"9184256e-7b08-49fb-a362-3bebd978902d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"}},"method":"POST","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"subscription_plan_id\": 76215585,\n    \"sub_partner_id\": 111111\n}","options":{"raw":{"language":"json"}}},"url":"{{api-host}}/v1/subscriptions","description":"This method creates a recurring charge from a sub-account.  \n  \nThe funds are transferred from a sub-account to the main 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.  \nIf you specify a particular currency your customer should pay in, and the sub-account has enough funds stored in it, the amount will be charged automatically. In case a customer has other currency on their sub-account, the equivalent sum will be charged."},"response":[{"id":"5b8d45ab-8662-48dc-a8e0-b3fbd4c081bc","name":"200","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"subscription_plan_id\": 76215585,\n    \"sub_partner_id\": 111111\n}","options":{"raw":{"language":"json"}}},"url":"{{api-host}}/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":"9184256e-7b08-49fb-a362-3bebd978902d"},{"name":"Get sub-partner balance","id":"4c12e131-e702-40a3-9511-c45539060b13","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth"},"method":"GET","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"url":{"raw":"{{api-host}}/v1/sub-partner/balance/:id","host":["{{api-host}}"],"path":["v1","sub-partner","balance",":id"],"variable":[{"id":"b50dea8e-1a0a-45c1-8052-fdfb32468ae3","key":"id","value":null}]},"description":"This request can be made only from a whitelisted IP.  \nIf IP whitelisting is disabled, this request can be made by any user that has an API key."},"response":[{"id":"0d397f10-de55-4e77-9a0d-f2861c503a66","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"url":{"raw":"{{api-host}}/v1/sub-partner/balance/:id","host":["{{api-host}}"],"path":["v1","sub-partner","balance",":id"],"variable":[{"key":"id","value":null}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"result\": {\n        \"subPartnerId\": \"111394288\",\n        \"balances\": {\n            \"usddtrc20\": {\n                \"amount\": 0.7,\n                \"pendingAmount\": 0\n            },\n            \"usdtbsc\": {\n                \"amount\": 1.0001341847350678,\n                \"pendingAmount\": 0\n            }\n        }\n    }\n}"}],"_postman_id":"4c12e131-e702-40a3-9511-c45539060b13"},{"name":"Get sub-partners","id":"b929e3d6-eb0b-43cf-94c4-8ff2fa27a806","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"}},"method":"GET","header":[],"url":{"raw":"{{api-host}}o/v1/sub-partner?id=111&offset=0&limit=10&order=DESC","host":["{{api-host}}o"],"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"}]},"description":"This method returns the entire list of your sub-partners."},"response":[{"id":"ea8a3690-849e-4e44-bad0-62d28072d82e","name":"200","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{api-host}}o/v1/sub-partner?offset=0&limit=10&order=DESC","host":["{{api-host}}o"],"path":["v1","sub-partner"],"query":[{"key":"id","value":"111","description":"int or array of int (optional)","disabled":true},{"key":"offset","value":"0","description":"(optional) default 0"},{"key":"limit","value":"10","description":"(optional) default 10"},{"key":"order","value":"DESC","description":"ASC / DESC (optional) default ASC"}]}},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"result\": [\n        {\n            \"id\": \"111394288\",\n            \"name\": \"test\",\n            \"created_at\": \"2022-10-06T16:42:47.352Z\",\n            \"updated_at\": \"2022-10-06T16:42:47.352Z\"\n        },\n        {\n            \"id\": \"1515573197\",\n            \"name\": \"test1\",\n            \"created_at\": \"2022-10-09T21:56:33.754Z\",\n            \"updated_at\": \"2022-10-09T21:56:33.754Z\"\n        }\n    ],\n    \"count\": 2\n}"}],"_postman_id":"b929e3d6-eb0b-43cf-94c4-8ff2fa27a806"},{"name":"Get all transfers","id":"9154ad46-8c89-4434-bd61-f643d1144173","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":{"raw":"{{api-host}}/v1/sub-partner/transfers?id=111&status=CREATED&limit=10&offset=0&order=ASC","host":["{{api-host}}"],"path":["v1","sub-partner","transfers"],"query":[{"key":"id","value":"111","description":"int or array of int (optional)"},{"key":"status","value":"CREATED","description":"string or array of string \n\"WAITING\"/\"CREATED\"/\"FINISHED\"/\"REJECTED\"\n(optional)"},{"key":"limit","value":"10","description":"(optional) default 10"},{"key":"offset","value":"0","description":"(optional) default 0"},{"key":"order","value":"ASC","description":"ASC / DESC (optional) default ASC"}]},"description":"Returns the entire list of transfers created by your sub-partners."},"response":[{"id":"0a8f0b10-b6b7-43f6-bb74-9b3fcd63d02a","name":"200","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{api-host}}/v1/sub-partner/transfers?status=FINISHED&limit=10&offset=0&order=ASC","host":["{{api-host}}"],"path":["v1","sub-partner","transfers"],"query":[{"key":"id","value":"111","description":"int or array of int (optional)","disabled":true},{"key":"status","value":"FINISHED","description":"string or array of string \n\"WAITING\"/\"CREATED\"/\"FINISHED\"/\"REJECTED\"\n(optional)"},{"key":"limit","value":"10","description":"(optional) default 10"},{"key":"offset","value":"0","description":"(optional) default 0"},{"key":"order","value":"ASC","description":"ASC / DESC (optional) default ASC"}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"result\": [\n        {\n            \"id\": \"111394288\",\n            \"from_sub_id\": \"5209391548\",\n            \"to_sub_id\": \"111394288\",\n            \"status\": \"FINISHED\",\n            \"created_at\": \"2022-10-09T18:53:21.975Z\",\n            \"updated_at\": \"2022-10-09T18:55:00.696Z\",\n            \"amount\": \"1\",\n            \"currency\": \"usdtbsc\"\n        },\n        {\n            \"id\": \"148427051\",\n            \"from_sub_id\": \"111394288\",\n            \"to_sub_id\": \"5209391548\",\n            \"status\": \"FINISHED\",\n            \"created_at\": \"2022-10-09T19:08:32.440Z\",\n            \"updated_at\": \"2022-10-09T19:10:01.209Z\",\n            \"amount\": \"1\",\n            \"currency\": \"usdtbsc\"\n        },\n        {\n            \"id\": \"1631380403\",\n            \"from_sub_id\": \"5209391548\",\n            \"to_sub_id\": \"111394288\",\n            \"status\": \"FINISHED\",\n            \"created_at\": \"2022-10-09T21:19:51.936Z\",\n            \"updated_at\": \"2022-10-09T21:21:00.671Z\",\n            \"amount\": \"2\",\n            \"currency\": \"usdtbsc\"\n        },\n        {\n            \"id\": \"1167886259\",\n            \"from_sub_id\": \"5209391548\",\n            \"to_sub_id\": \"111394288\",\n            \"status\": \"FINISHED\",\n            \"created_at\": \"2022-10-09T21:22:17.125Z\",\n            \"updated_at\": \"2022-10-09T21:24:00.662Z\",\n            \"amount\": \"2\",\n            \"currency\": \"usdtbsc\"\n        },\n        {\n            \"id\": \"48471014\",\n            \"from_sub_id\": \"111394288\",\n            \"to_sub_id\": \"5209391548\",\n            \"status\": \"FINISHED\",\n            \"created_at\": \"2022-10-09T21:25:29.231Z\",\n            \"updated_at\": \"2022-10-09T21:27:00.676Z\",\n            \"amount\": \"1\",\n            \"currency\": \"usdtbsc\"\n        },\n        {\n            \"id\": \"1304149238\",\n            \"from_sub_id\": \"111394288\",\n            \"to_sub_id\": \"5209391548\",\n            \"status\": \"FINISHED\",\n            \"created_at\": \"2022-10-09T21:54:57.713Z\",\n            \"updated_at\": \"2022-10-09T21:56:01.056Z\",\n            \"amount\": \"1\",\n            \"currency\": \"usdtbsc\"\n        },\n        {\n            \"id\": \"327209161\",\n            \"from_sub_id\": \"111394288\",\n            \"to_sub_id\": \"1515573197\",\n            \"status\": \"FINISHED\",\n            \"created_at\": \"2022-10-09T22:09:02.181Z\",\n            \"updated_at\": \"2022-10-09T22:10:01.853Z\",\n            \"amount\": \"1\",\n            \"currency\": \"usdtbsc\"\n        }\n    ],\n    \"count\": 7\n}"}],"_postman_id":"9154ad46-8c89-4434-bd61-f643d1144173"},{"name":"Get transfer","id":"dbf4f971-c759-4bb1-aed1-8c23533f400f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":{"raw":"{{api-host}}/v1/sub-partner/transfer/:id","host":["{{api-host}}"],"path":["v1","sub-partner","transfer",":id"],"variable":[{"id":"d7086b4a-b4b4-4059-ae84-2d964bc6f513","key":"id","value":null}]},"description":"Get the actual information about the transfer. You need to provide the transfer ID in the request."},"response":[{"id":"2e66c5c3-8435-4012-8f9a-7aa64f7ef7c5","name":"200","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{api-host}}/v1/sub-partner/transfer/:id","host":["{{api-host}}"],"path":["v1","sub-partner","transfer",":id"],"variable":[{"key":"id","value":"327209161"}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"result\": {\n        \"id\": \"327209161\",\n        \"from_sub_id\": \"111394288\",\n        \"to_sub_id\": \"1515573197\",\n        \"status\": \"FINISHED\",\n        \"created_at\": \"2022-10-09T22:09:02.181Z\",\n        \"updated_at\": \"2022-10-09T22:10:01.853Z\",\n        \"amount\": \"1\",\n        \"currency\": \"usdtbsc\"\n    }\n}"}],"_postman_id":"dbf4f971-c759-4bb1-aed1-8c23533f400f"},{"name":"Transfer","id":"e70b1e6b-8fb1-4421-9b6e-91f92402839d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"}},"method":"POST","header":[{"key":"x-api-key","value":"{{x-api-token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"currency\": \"trx\",\n    \"amount\": 0.3,\n    \"from_id\": 1111111,\n    \"to_id\":  1111111\n}","options":{"raw":{"language":"json"}}},"url":"{{api-host}}/v1/sub-partner/transfer","description":"This method allows creating transfers between sub-partners' accounts.  \nYou can check the transfer's status using `Get transfer` method."},"response":[{"id":"99057b25-ab70-407d-8102-e95d6f4cabd1","name":"Transfer","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"{{x-api-token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"currency\": \"trx\",\n    \"amount\": 0.3,\n    \"from_id\": 1111111,\n    \"to_id\":  1111111\n}","options":{"raw":{"language":"json"}}},"url":"{{api-host}}/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":"e70b1e6b-8fb1-4421-9b6e-91f92402839d"},{"name":"Deposit with payment","id":"68a7cc98-f0d6-4364-9943-f1b20baac97f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"}},"method":"POST","header":[{"key":"x-api-key","value":"{{x-api-token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"currency\": \"trx\",\n    \"amount\": 0.3,\n    \"sub_partner_id\": \"1631380403\",\n    \"fixed_rate\": false\n}","options":{"raw":{"language":"json"}}},"url":"{{api-host}}/v1/sub-partner/payment","description":"This method allows you to top up a sub-partner account with a general payment.  \nYou can check the actual payment status by using GET 9 `Get payment status` request."},"response":[{"id":"20523924-d43c-40a1-be2f-8aad51c4948d","name":"Deposit with payment","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"{{x-api-token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"currency\": \"trx\",\n    \"amount\": 50,\n    \"sub_partner_id\": \"1631380403\",\n    \"fixed_rate\": false\n}","options":{"raw":{"language":"json"}}},"url":"{{api-host}}/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    }\n}"}],"_postman_id":"68a7cc98-f0d6-4364-9943-f1b20baac97f"},{"name":"Deposit from master account","id":"6a3fd283-b677-4257-b4a7-d23768d08ea4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"}},"method":"POST","header":[{"key":"x-api-key","value":"{{x-api-token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"currency\": \"trx\",\n    \"amount\": 0.3,\n    \"sub_partner_id\": \"1631380403\"\n}","options":{"raw":{"language":"json"}}},"url":"{{api-host}}/v1/sub-partner/deposit","description":"This is a method for transferring funds from a master account to a sub-partner's one.  \nThe actual information about the transfer's status can be obtained via `Get transfer` method."},"response":[{"id":"e7d331df-9426-42ea-ab48-12e6189d47c2","name":"200","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"{{x-api-token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"currency\": \"usddtrc20\",\n    \"amount\": 0.7,\n    \"sub_partner_id\": \"111394288\"\n}","options":{"raw":{"language":"json"}}},"url":"{{api-host}}/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":"6a3fd283-b677-4257-b4a7-d23768d08ea4"},{"name":"Write off on master account","id":"3f3fddf0-2bbc-484e-ac7a-3aa65ea84eed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"}},"method":"POST","header":[{"key":"x-api-key","value":"{{x-api-token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"currency\": \"trx\",\n    \"amount\": 0.3,\n    \"sub_partner_id\": \"1631380403\"\n}","options":{"raw":{"language":"json"}}},"url":"{{api-host}}/v1/sub-partner/write-off","description":"With this method you can withdraw funds from a sub-partner's account and transfer them to a master one.  \n  \nThe actual status of the transaction can be checked with `Get transfer` method."},"response":[{"id":"a8efe68e-cf48-4fd7-a0be-f1ee747f2776","name":"200","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"{{x-api-token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"currency\": \"trx\",\n    \"amount\": 0.3,\n    \"sub_partner_id\": \"1631380403\"\n}","options":{"raw":{"language":"json"}}},"url":"{{api-host}}/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":"3f3fddf0-2bbc-484e-ac7a-3aa65ea84eed"}],"id":"a523b89b-40b7-4afe-b940-043d434a6c80","description":"NOWPayments allows you to create sub-partner accounts for your users, enabling full-fledged crypto billing solution.","_postman_id":"a523b89b-40b7-4afe-b940-043d434a6c80"},{"name":"Payments API","item":[{"name":"Get estimated price","id":"7025cacf-7040-4c7b-a83f-f9ff0a22a822","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"url":{"raw":"{{api-host}}/v1/estimate?amount=3999.5000&currency_from=usd&currency_to=btc","host":["{{api-host}}"],"path":["v1","estimate"],"query":[{"key":"amount","value":"3999.5000"},{"key":"currency_from","value":"usd"},{"key":"currency_to","value":"btc"}]},"description":"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, gbp."},"response":[{"id":"935e489f-690c-45be-9e53-8d88b79741fb","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"<your_api_key>","type":"text"}],"url":{"raw":"https://api.nowpayments.io/v1/estimate?amount=3999.5000&currency_from=usd&currency_to=btc","protocol":"https","host":["api","nowpayments","io"],"path":["v1","estimate"],"query":[{"key":"amount","value":"3999.5000"},{"key":"currency_from","value":"usd"},{"key":"currency_to","value":"btc"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 22 Dec 2020 15:03:37 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"Strict-Transport-Security","value":"max-age=15768000"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Vary","value":"Origin"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"cf-request-id","value":"072c9339110000166928295000000001"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=Be6PnrVenND3qBzQJTWszI2slyEd9pXNhEyFMkukSYUC1m3om7zFPg%2BQq%2F6xT2ridpvoQiRE5q8CWGblOvjJ7%2Bup%2B3ZwGuN7TNvHk04WYiWIlRk%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"605abb081ca11669-ARN"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"currency_from\": \"usd\",\n    \"amount_from\": 3999.5,\n    \"currency_to\": \"btc\",\n    \"estimated_amount\": 0.17061637\n}"}],"_postman_id":"7025cacf-7040-4c7b-a83f-f9ff0a22a822"},{"name":"Create payment","id":"5e37f3ad-0fa1-4292-af51-5c7f95730486","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-key","type":"text","value":"{{your_api_key}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"price_amount\": 3999.5,\n  \"price_currency\": \"usd\",\n  \"pay_currency\": \"btc\",\n  \"ipn_callback_url\": \"https://nowpayments.io\",\n  \"order_id\": \"RGDBP-21314\",\n  \"order_description\": \"Apple Macbook Pro 2019 x 1\",\n  \"is_fixed_rate\": true,\n  \"is_fee_paid_by_user\": false\n}","options":{"raw":{"language":"json"}}},"url":"{{api-host}}/v1/payment","description":"Creates payment. With this method, your customer will be able to complete the payment without leaving your website.  \n**Data must be sent as a JSON-object payload.**  \nRequired request fields:\n\n- 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. **NOTE: Some of the assets (KISHU, NWC, FTT, CHR, XYM, SRK, KLV, SUPER, OM, XCUR, NOW, SHIB, SAND, MATIC, CTSI, MANA, FRONT, FTM, DAO, LGCY), have a maximum price amount of \\~$2000.**\n- price_currency (required) - the fiat currency in which the price_amount is specified (usd, eur, etc).\n- 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.\n- pay_currency (required) - the crypto currency in which the pay_amount is specified (btc, eth, etc). **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.**\n- ipn_callback_url (optional) - url to receive callbacks, should contain \"http\" or \"https\", eg. \"[https://nowpayments.io\"](https://nowpayments.io)\n- order_id (optional) - inner store order ID, e.g. \"RGDBP-21314\"\n- order_description (optional) - inner store order description, e.g. \"Apple Macbook Pro 2019 x 1\"\n- purchase_id (optional) - id of purchase for which you want to create aother payment, only used for several payments for one order\n- 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.\n- payout_currency (optional) - currency of your external payout_address, required when payout_adress is specified.\n- payout_extra_id(optional) - extra id or memo or tag for external payout_address.\n- fixed_rate(optional) - boolean, can be **true** or **false**. Required for fixed-rate exchanges.  \n    NOTE: the rate of exchange will be frozen for 20 minutes. If there are no incoming payments during this period, the payment status would be changed to \"expired\".\n- is_fee_paid_by_user(optional) - boolean, can be **true** or **false**. Required for fixed-rate exchanges with all fees paid by users.  \n    NOTE: the rate of exchange will be frozen for 20 minutes. If there are no incoming payments during this period, the payment status would be changed to \"expired\".\n    \n\nHere the list of available statuses of payment:\n\n- waiting - waiting for the customer to send the payment. The initial status of each payment.\n- confirming - the transaction is being processed on the blockchain. Appears when NOWPayments detect the funds from the user on the blockchain.\n- confirmed - the process is confirmed by the blockchain. Customer’s funds have accumulated enough confirmations.\n- sending - the funds are being sent to your personal wallet. We are in the process of sending the funds to you.\n- partially_paid - it shows that the customer sent the less than the actual price. Appears when the funds have arrived in your wallet.\n- finished - the funds have reached your personal address and the payment is finished.\n- failed - the payment wasn't completed due to the error of some kind.\n- refunded - the funds were refunded back to the user.\n- expired - the user didn't send the funds to the specified address in the 24 hour time window."},"response":[{"id":"0f7173e3-8bc6-4509-873e-c4bb970d13e9","name":"201","originalRequest":{"method":"POST","header":[{"key":"x-api-key","type":"text","value":"<your_api_key>"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"price_amount\": 3999.5,\n  \"price_currency\": \"usd\",\n  \"pay_currency\": \"btc\",\n  \"ipn_callback_url\": \"https://nowpayments.io\",\n  \"order_id\": \"RGDBP-21314\",\n  \"order_description\": \"Apple Macbook Pro 2019 x 1\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/payment"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 22 Dec 2020 15:00:22 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"420"},{"key":"Connection","value":"keep-alive"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"Strict-Transport-Security","value":"max-age=15768000"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Vary","value":"Origin"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"cf-request-id","value":"072c902abd00001669e7327000000001"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=ZJgfL2UQDRGgSZ4oOb6wMDBAfE53D6i5EQUx1dsRP0skDMWeUwY4g6iPdUE3URPLtCLNaFtySv1gbsGjyPmspIwsl42xacCDk%2BjSGee%2F6JIAqfQ%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"605ab6246ee71669-ARN"}],"cookie":[],"responseTime":null,"body":"{\n    \"payment_id\": \"5745459419\",\n    \"payment_status\": \"waiting\",\n    \"pay_address\": \"3EZ2uTdVDAMFXTfc6uLDDKR6o8qKBZXVkj\",\n    \"price_amount\": 3999.5,\n    \"price_currency\": \"usd\",\n    \"pay_amount\": 0.17070286,\n    \"pay_currency\": \"btc\",\n    \"order_id\": \"RGDBP-21314\",\n    \"order_description\": \"Apple Macbook Pro 2019 x 1\",\n    \"ipn_callback_url\": \"https://nowpayments.io\",\n    \"created_at\": \"2020-12-22T15:00:22.742Z\",\n    \"updated_at\": \"2020-12-22T15:00:22.742Z\",\n    \"purchase_id\": \"5837122679\",\n    \"amount_received\": null,\n    \"payin_extra_id\": null,\n    \"smart_contract\": \"\",\n    \"network\": \"btc\",\n    \"network_precision\": 8,\n    \"time_limit\": null,\n    \"burning_percent\": null,\n    \"expiration_estimate_date\": \"2020-12-23T15:00:22.742Z\"\n}"}],"_postman_id":"5e37f3ad-0fa1-4292-af51-5c7f95730486"},{"name":"Create payment by invoice","id":"5bf0a8a7-ea42-4160-95c9-961601e6bb79","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-key","type":"text","value":"{{your_api_key}}"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"iid\": {{invoice_id}},\n  \"pay_currency\": \"btc\",\n  \"purchase_id\": {{purchase_id}},\n  \"order_description\": \"Apple Macbook Pro 2019 x 1\",\n  \"customer_email\": \"test@gmail.com\",\n  \"payout_address\": \"0x...\",\n  \"payout_extra_id\": null,\n  \"payout_currency\": \"usdttrc20\"\n}","options":{"raw":{"language":"json"}}},"url":"{{api-host}}/v1/invoice-payment","description":"Creates payment by invoice. With this method, your customer will be able to complete the payment without leaving your website.  \n**Data must be sent as a JSON-object payload.**  \nRequired request fields:\n\n*   iid (required) - invoice id\n*   pay_currency (required) - the crypto currency in which the pay_amount is specified (btc, eth, etc). **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.**\n*   purchase_id (optional) - id of purchase for which you want to create aother payment, only used for several payments for one order\n*   order_description (optional) - inner store order description, e.g. \"Apple Macbook Pro 2019 x 1\"\n*   customer_email (optional) - user email to which a notification about the successful completion of the payment will be sent\n*   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.\n*   payout_extra_id(optional) - extra id or memo or tag for external payout_address.\n*   payout_currency (optional) - currency of your external payout_address, required when payout_adress is specified.\n    \n\nHere the list of available statuses of payment:\n\n*   waiting - waiting for the customer to send the payment. The initial status of each payment.\n*   confirming - the transaction is being processed on the blockchain. Appears when NOWPayments detect the funds from the user on the blockchain.\n*   confirmed - the process is confirmed by the blockchain. Customer’s funds have accumulated enough confirmations.\n*   sending - the funds are being sent to your personal wallet. We are in the process of sending the funds to you.\n*   partially_paid - it shows that the customer sent the less than the actual price. Appears when the funds have arrived in your wallet.\n*   finished - the funds have reached your personal address and the payment is finished.\n*   failed - the payment wasn't completed due to the error of some kind.\n*   refunded - the funds were refunded back to the user.\n*   expired - the user didn't send the funds to the specified address in the 24 hour time window."},"response":[{"id":"8cab3ae1-e62d-4561-8eff-75790768f936","name":"201","originalRequest":{"method":"POST","header":[{"key":"x-api-key","type":"text","value":"<your_api_key>"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"iid\": {{invoice_id}},\n  \"pay_currency\": \"btc\",\n  \"purchase_id\": {{purchase_id}},\n  \"order_description\": \"Apple Macbook Pro 2019 x 1\",\n  \"customer_email\": \"test@gmail.com\",\n  \"payout_address\": \"0x...\",\n  \"payout_extra_id\": null,\n  \"payout_currency\": \"usdttrc20\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/invoice-payment"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 22 Dec 2020 15:00:22 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"420"},{"key":"Connection","value":"keep-alive"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"Strict-Transport-Security","value":"max-age=15768000"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Vary","value":"Origin"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"cf-request-id","value":"072c902abd00001669e7327000000001"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=ZJgfL2UQDRGgSZ4oOb6wMDBAfE53D6i5EQUx1dsRP0skDMWeUwY4g6iPdUE3URPLtCLNaFtySv1gbsGjyPmspIwsl42xacCDk%2BjSGee%2F6JIAqfQ%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"605ab6246ee71669-ARN"}],"cookie":[],"responseTime":null,"body":"{\n    \"payment_id\": \"5745459419\",\n    \"payment_status\": \"waiting\",\n    \"pay_address\": \"3EZ2uTdVDAMFXTfc6uLDDKR6o8qKBZXVkj\",\n    \"price_amount\": 3999.5,\n    \"price_currency\": \"usd\",\n    \"pay_amount\": 0.17070286,\n    \"pay_currency\": \"btc\",\n    \"order_id\": \"RGDBP-21314\",\n    \"order_description\": \"Apple Macbook Pro 2019 x 1\",\n    \"ipn_callback_url\": \"https://nowpayments.io\",\n    \"created_at\": \"2020-12-22T15:00:22.742Z\",\n    \"updated_at\": \"2020-12-22T15:00:22.742Z\",\n    \"purchase_id\": \"5837122679\",\n    \"amount_received\": null,\n    \"payin_extra_id\": null,\n    \"smart_contract\": \"\",\n    \"network\": \"btc\",\n    \"network_precision\": 8,\n    \"time_limit\": null,\n    \"burning_percent\": null,\n    \"expiration_estimate_date\": \"2020-12-23T15:00:22.742Z\"\n}"}],"_postman_id":"5bf0a8a7-ea42-4160-95c9-961601e6bb79"},{"name":"Get/Update payment estimate","id":"61937654-0102-4e8b-b5ac-476718790f80","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"}],"url":{"raw":"{{api-host}}/v1/payment/:id/update-merchant-estimate","host":["{{api-host}}"],"path":["v1","payment",":id","update-merchant-estimate"],"variable":[{"id":"c67967de-da72-44fc-b91b-24835bac20df","key":"id","value":null,"description":"payment ID, for which you want to get the estimate"}]},"description":"This endpoint is required to get the current estimate on the payment, and update the current estimate.  \nPlease note! Calling this estimate before `expiration_estimate_date` will return the current estimate, it won’t be updated.\n\n`:id` \\- payment ID, for which you want to get the estimate\n\nResponse:  \n`id` \\- payment ID  \n`token_id` - id of api key used to create this payment (please discard this parameter)  \n`pay_amount` - payment estimate, the exact amount the user will have to send to complete the payment  \n`expiration_estimate_date` - expiration date of this estimate"},"response":[{"id":"e53bc926-322e-47f7-b640-41b2a77b5456","name":"200","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"}],"url":{"raw":"https://api.nowpayments.io/v1/payment/:id/update-merchant-estimate","protocol":"https","host":["api","nowpayments","io"],"path":["v1","payment",":id","update-merchant-estimate"],"variable":[{"key":"id","value":"4409701815","description":"payment ID, for which you want to get the estimate"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 12 Aug 2022 12:54:43 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-dns-prefetch-control","value":"off"},{"key":"x-frame-options","value":"SAMEORIGIN"},{"key":"strict-transport-security","value":"max-age=15552000; includeSubDomains"},{"key":"strict-transport-security","value":"max-age=15768000"},{"key":"x-download-options","value":"noopen"},{"key":"x-content-type-options","value":"nosniff"},{"key":"x-xss-protection","value":"1; mode=block"},{"key":"vary","value":"Origin, Accept-Encoding"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=UlD77RlowCWTg1qTZ2LeHmo1PgG3zxPObaiXYfhalA0YMLx%2BN07RVybi%2BZ%2BM4TkZr5jAjyQN5IMEcOW88%2FFqbuIQhrYnNXIBWUq6QwBFc4nG3FZMlvkLybT0QbYxAutJE4b1rL8%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"73995c778c69c2e1-VIE"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"4455667788\",\n    \"token_id\": \"5566778899\",\n    \"pay_amount\": 0.04671013,\n    \"expiration_estimate_date\": \"2022-08-12T13:14:28.536Z\"\n}"}],"_postman_id":"61937654-0102-4e8b-b5ac-476718790f80"},{"name":"Get payment status","id":"0b77a8e3-2344-4760-a0bd-247da067db6d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"url":{"raw":"{{api-host}}/v1/payment/:payment_id","host":["{{api-host}}"],"path":["v1","payment",":payment_id"],"variable":[{"key":"payment_id","value":null}]},"description":"Get the actual information about the payment. You need to provide the ID of the payment in the request.\n\nNOTE! 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:\n- waiting - waiting for the customer to send the payment. The initial status of each payment.\n- confirming - the transaction is being processed on the blockchain. Appears when NOWPayments detect the funds from the user on the blockchain.\n- confirmed -  the process is confirmed by the blockchain. Customer’s funds have accumulated enough confirmations.\n- sending - the funds are being sent to your personal wallet. We are in the process of sending the funds to you.\n- partially_paid -  it shows that the customer sent the less than the actual price. Appears when the funds have arrived in your wallet.\n- finished - the funds have reached your personal address and the payment is finished.\n- failed -  the payment wasn't completed due to the error of some kind.\n- refunded -  the funds were refunded back to the user.\n- expired - the user didn't send the funds to the specified address in the 24 hour time window.\n\nAdditional info:\n- outcome_amount - this parameter shows the amount that will be (or is already) received on your Outcome Wallet once the transaction is settled.\n- outcome_currency - this parameter shows the currency in which the transaction will be settled.\n- invoice_id - this parameter shows invoice ID from which the payment was created"},"response":[{"id":"87faff38-3862-4de9-b4c2-7ab46b54fb7d","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"<your_api_key>","type":"text"}],"url":"https://api.nowpayments.io/v1/payment/5524759814"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 16 Dec 2020 15:04:13 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"Strict-Transport-Security","value":"max-age=15768000"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Vary","value":"Origin"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"cf-request-id","value":"070dad9e670000fe402dae0000000001"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=zEbhqHJbg3q36U8j53OXNXd%2Bko6cS9sMgMStn1FBVWWkPsG8UrIRJyCEhmY1qK%2FXx3U%2FGPx54%2BOtE2Btl8ZwU9i9wZ%2BJkAo8q7FqZydfMMQgcb4%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"60294baa3828fe40-HEL"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"payment_id\": 5524759814,\n    \"payment_status\": \"finished\",\n    \"pay_address\": \"TNDFkiSmBQorNFacb3735q8MnT29sn8BLn\",\n    \"price_amount\": 5,\n    \"price_currency\": \"usd\",\n    \"pay_amount\": 165.652609,\n    \"actually_paid\": 180,\n    \"pay_currency\": \"trx\",\n    \"order_id\": \"RGDBP-21314\",\n    \"order_description\": \"Apple Macbook Pro 2019 x 1\",\n    \"purchase_id\": \"4944856743\",\n    \"created_at\": \"2020-12-16T14:30:43.306Z\",\n    \"updated_at\": \"2020-12-16T14:40:46.523Z\",\n    \"outcome_amount\": 178.9005,\n    \"outcome_currency\": \"trx\"\n}"}],"_postman_id":"0b77a8e3-2344-4760-a0bd-247da067db6d"},{"name":"Get the minimum payment amount","id":"41b02221-2d58-4fcf-9529-59d3763d6434","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"url":{"raw":"{{api-host}}/v1/min-amount?currency_from=eth&currency_to=trx","host":["{{api-host}}"],"path":["v1","min-amount"],"query":[{"key":"currency_from","value":"eth"},{"key":"currency_to","value":"trx"}]},"description":"Get the minimum payment amount for a specific pair.\n\nYou 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.\n\nYou can also specify one of the fiat currencies in the currency\\_from. In this case, the minimum payment will be calculated in this fiat currency.\n\nYou can also add field fiat\\_equivalent (optional field) to get the fiat equivalent of the minimum amount.\n\nIn the case of several outcome wallets we will calculate the minimum amount in the same way we route your payment to a specific wallet."},"response":[{"id":"5df26855-34bd-49ae-af93-4f815b2b3d37","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"<your_api_key>","type":"text"}],"url":{"raw":"https://api.nowpayments.io/v1/min-amount?currency_from=eth&currency_to=trx&fiat_equivalent=usd","protocol":"https","host":["api","nowpayments","io"],"path":["v1","min-amount"],"query":[{"key":"currency_from","value":"eth"},{"key":"currency_to","value":"trx"},{"key":"fiat_equivalent","value":"usd"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 22 Dec 2020 15:05:09 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"Strict-Transport-Security","value":"max-age=15768000"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Vary","value":"Origin"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"cf-request-id","value":"072c94a16a0000166954256000000001"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=JE3EB5TyT0ppi%2B%2FTPlGcGUDcr2ry9EL%2BhHtpB8%2BYtZMjD087RoOl6UD9284JzS7VANH4ZivF8A7jHMl42n8GLxJL1u7fyKvugNSiViphSjgmGKc%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"605abd48af901669-ARN"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"currency_from\": \"eth\",\n    \"currency_to\": \"trx\",\n    \"min_amount\": 0.0078999,\n    \"fiat_equivalent\": 35.40626584\n}"}],"_postman_id":"41b02221-2d58-4fcf-9529-59d3763d6434"},{"name":"Get list of payments","id":"c8399c0e-d798-4f01-83ae-ddaa6905c2da","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"}},"method":"GET","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"url":{"raw":"{{api-host}}/v1/payment/?limit=10&page=0&sortBy=created_at&orderBy=asc&dateFrom=2020-01-01&dateTo=2021-01-01","host":["{{api-host}}"],"path":["v1","payment",""],"query":[{"key":"limit","value":"10"},{"key":"page","value":"0"},{"key":"sortBy","value":"created_at"},{"key":"orderBy","value":"asc"},{"key":"dateFrom","value":"2020-01-01"},{"key":"dateTo","value":"2021-01-01"}]},"description":"Returns the entire list of all transactions, created with certain API key.\nThe list of optional parameters:\n- limit - number of records in one page. (possible values: from 1 to 500)\n- page - the page number you want to get (possible values: from 0 to **page count - 1**)\n- sortBy - sort the received list by a paramenter. Set to **created_at** by default (possible values: payment_id, payment_status, pay_address, price_amount, price_currency, pay_amount, actually_paid, pay_currency, order_id, order_description, purchase_id, outcome_amount, outcome_currency)\n- orderBy - display the list in ascending or descending order. Set to **asc** by default (possible values: asc, desc)\n- dateFrom - select the displayed period start date (date format: YYYY-MM-DD or yy-MM-ddTHH:mm:ss.SSSZ).\n- dateTo - select the displayed period end date (date format: YYYY-MM-DD or yy-MM-ddTHH:mm:ss.SSSZ)."},"response":[{"id":"41928766-1978-47cc-98bb-3848a1dae72e","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"<your_api_key>","type":"text"},{"key":"Authorization","value":"<your_jwt_token>","type":"text"}],"url":{"raw":"https://api.nowpayments.io/v1/payment/?limit=10&page=0&sortBy=created_at&orderBy=asc&dateFrom=2020-01-01&dateTo=2021-01-01","protocol":"https","host":["api","nowpayments","io"],"path":["v1","payment",""],"query":[{"key":"limit","value":"10"},{"key":"page","value":"0"},{"key":"sortBy","value":"created_at"},{"key":"orderBy","value":"asc"},{"key":"dateFrom","value":"2020-01-01"},{"key":"dateTo","value":"2021-01-01"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 22 Dec 2020 15:05:33 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"Strict-Transport-Security","value":"max-age=15768000"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Vary","value":"Origin"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"cf-request-id","value":"072c94fe6c00001669e783e000000001"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=4Sj25uNN8wdCtby0RbHx%2FbSLll68tMBpk%2FVG%2BQxVvo3wGnCf6Zu1DPFpwjsTBVasLRcoOsZVemVR6eVlvGP3HF9uJ1VOuaj%2Be9TCiwikq16Y5Vg%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"605abddd7db41669-ARN"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"payment_id\": 5524759814,\n            \"payment_status\": \"finished\",\n            \"pay_address\": \"TNDFkiSmBQorNFacb3735q8MnT29sn8BLn\",\n            \"price_amount\": 5,\n            \"price_currency\": \"usd\",\n            \"pay_amount\": 165.652609,\n            \"actually_paid\": 180,\n            \"pay_currency\": \"trx\",\n            \"order_id\": \"RGDBP-21314\",\n            \"order_description\": \"Apple Macbook Pro 2019 x 1\",\n            \"purchase_id\": \"4944856743\",\n            \"outcome_amount\": 178.9005,\n            \"outcome_currency\": \"trx\"\n        },\n        {\n            \"payment_id\": 5867063509,\n            \"payment_status\": \"expired\",\n            \"pay_address\": \"TVKHbLc47BnMbdE7QN4X5Q1FtyZLGGiTo8\",\n            \"price_amount\": 5,\n            \"price_currency\": \"usd\",\n            \"pay_amount\": 165.652609,\n            \"actually_paid\": 0,\n            \"pay_currency\": \"trx\",\n            \"order_id\": \"RGDBP-21314\",\n            \"order_description\": \"Apple Macbook Pro 2019 x 1\",\n            \"purchase_id\": \"5057851130\",\n            \"outcome_amount\": 164.6248468,\n            \"outcome_currency\": \"trx\"\n        },\n        {\n            \"payment_id\": 5745459419,\n            \"payment_status\": \"waiting\",\n            \"pay_address\": \"3EZ2uTdVDAMFXTfc6uLDDKR6o8qKBZXVkj\",\n            \"price_amount\": 3999.5,\n            \"price_currency\": \"usd\",\n            \"pay_amount\": 0.17070286,\n            \"actually_paid\": 0,\n            \"pay_currency\": \"btc\",\n            \"order_id\": \"RGDBP-21314\",\n            \"order_description\": \"Apple Macbook Pro 2019 x 1\",\n            \"purchase_id\": \"5837122679\",\n            \"outcome_amount\": 0.1687052,\n            \"outcome_currency\": \"btc\"\n        },\n        {\n            \"payment_id\": 4650948408,\n            \"payment_status\": \"waiting\",\n            \"pay_address\": \"394UZCUdx3NN8VDsCZW8c6AzP7cXEXA8Xq\",\n            \"price_amount\": 3999.5,\n            \"price_currency\": \"usd\",\n            \"pay_amount\": 0.8102725,\n            \"actually_paid\": 0,\n            \"pay_currency\": \"btc\",\n            \"order_id\": \"RGDBP-21314\",\n            \"order_description\": \"Apple Macbook Pro 2019 x 1\",\n            \"purchase_id\": \"5094859409\",\n            \"outcome_amount\": 0.8019402,\n            \"outcome_currency\": \"btc\"\n        },\n        {\n            \"payment_id\": 5605634688,\n            \"payment_status\": \"expired\",\n            \"pay_address\": \"3EWJaZBaRWbPjSBTpgFcvxpnXLJzFDCHqW\",\n            \"price_amount\": 500,\n            \"price_currency\": \"usd\",\n            \"pay_amount\": 993.87178656,\n            \"actually_paid\": 0,\n            \"pay_currency\": \"bcd\",\n            \"order_id\": \"RGDBP-21314\",\n            \"order_description\": \"Apple Macbook Pro 2019 x 1\",\n            \"purchase_id\": \"5817305007\",\n            \"outcome_amount\": 988.9016296,\n            \"outcome_currency\": \"bcd\"\n        },\n        {\n            \"payment_id\": 5241856814,\n            \"payment_status\": \"expired\",\n            \"pay_address\": \"qzkshdh94vhdcyuejjf8ltcy2cl246hw0c68t36z69\",\n            \"price_amount\": 500,\n            \"price_currency\": \"usd\",\n            \"pay_amount\": 1.85459941,\n            \"actually_paid\": 0,\n            \"pay_currency\": \"bch\",\n            \"order_id\": \"RGDBP-21314\",\n            \"order_description\": \"Apple Macbook Pro 2019 x 1\",\n            \"purchase_id\": \"5941190675\",\n            \"outcome_amount\": 1.8451261,\n            \"outcome_currency\": \"bch\"\n        },\n        {\n            \"payment_id\": 5751462089,\n            \"payment_status\": \"expired\",\n            \"pay_address\": \"AYyecr8WKVpj2PNonjyUpn9sCHFyFMLdN1\",\n            \"price_amount\": 500,\n            \"price_currency\": \"usd\",\n            \"pay_amount\": 56.4344495,\n            \"actually_paid\": 0,\n            \"pay_currency\": \"btg\",\n            \"order_id\": \"RGDBP-21314\",\n            \"order_description\": \"Apple Macbook Pro 2019 x 1\",\n            \"purchase_id\": \"6229667127\",\n            \"outcome_amount\": 56.151958,\n            \"outcome_currency\": \"btg\"\n        },\n        {\n            \"payment_id\": 6100223670,\n            \"payment_status\": \"expired\",\n            \"pay_address\": \"0x6C3E920D0fdAF45c75b6c00f25Aa6a58429d4efB\",\n            \"price_amount\": 500,\n            \"price_currency\": \"usd\",\n            \"pay_amount\": 496.84604252,\n            \"actually_paid\": 0,\n            \"pay_currency\": \"dai\",\n            \"order_id\": \"RGDBP-21314\",\n            \"order_description\": \"Apple Macbook Pro 2019 x 1\",\n            \"purchase_id\": \"5376931412\",\n            \"outcome_amount\": 489.9433465,\n            \"outcome_currency\": \"dai\"\n        },\n        {\n            \"payment_id\": 4460859238,\n            \"payment_status\": \"expired\",\n            \"pay_address\": \"3C85TUuBKEkoZZsTawiJhYZtVVLgE4GWqj\",\n            \"price_amount\": 500,\n            \"price_currency\": \"usd\",\n            \"pay_amount\": 0.02596608,\n            \"actually_paid\": 0,\n            \"pay_currency\": \"btc\",\n            \"order_id\": \"RGDBP-21314\",\n            \"order_description\": \"Apple Macbook Pro 2019 x 1\",\n            \"purchase_id\": \"5652098489\",\n            \"outcome_amount\": 0.025819,\n            \"outcome_currency\": \"btc\"\n        },\n        {\n            \"payment_id\": 4948632928,\n            \"payment_status\": \"expired\",\n            \"pay_address\": \"DLmK6vLURgHoWVZrQztthSqV71CBePG5k5\",\n            \"price_amount\": 500,\n            \"price_currency\": \"usd\",\n            \"pay_amount\": 154569.92936569,\n            \"actually_paid\": 0,\n            \"pay_currency\": \"doge\",\n            \"order_id\": \"RGDBP-21314\",\n            \"order_description\": \"Apple Macbook Pro 2019 x 1\",\n            \"purchase_id\": \"4811984625\",\n            \"outcome_amount\": 153789.0997188,\n            \"outcome_currency\": \"doge\"\n        }\n    ],\n    \"limit\": 10,\n    \"page\": 0,\n    \"pagesCount\": 6,\n    \"total\": 59\n}"}],"_postman_id":"c8399c0e-d798-4f01-83ae-ddaa6905c2da"},{"name":"Create invoice","id":"3e3ce25e-f43f-4636-bbd9-11560e46048b","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":"{{api-host}}/v1/invoice","description":"Creates an invoice. With this method, the customer is required to follow the generated url to complete the payment. **Data must be sent as a JSON-object payload.**\n\nRequest fields:\n\n*   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. **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.**\n*   price_currency (required) - the fiat currency in which the price_amount is specified (usd, eur, etc).\n*   pay_currency (optional) - the specified crypto currency (btc, eth, etc). If not specified, can be chosen on the invoice_url\n*   ipn_callback_url (optional) - url to receive callbacks, should contain \"http\" or \"https\", eg. \"[https://nowpayments.io\"](https://nowpayments.io)\n*   order_id (optional) - internal store order ID, e.g. \"RGDBP-21314\"\n*   order_description (optional) - internal store order description, e.g. \"Apple Macbook Pro 2019 x 1\"\n*   success_url(optional) - url where the customer will be redirected after successful payment.\n*   cancel_url(optional) - url where the customer will be redirected after failed payment."},"response":[{"id":"9f61aecb-c465-4c0c-8e10-794bc8a65c44","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.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":"3e3ce25e-f43f-4636-bbd9-11560e46048b"}],"id":"84c51632-01ad-49c0-96f8-fb4b5ad2b24a","_postman_id":"84c51632-01ad-49c0-96f8-fb4b5ad2b24a"},{"name":"Currencies","item":[{"name":"Get available currencies","id":"1c268f89-4fe7-471e-81b4-5a3153577b73","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"url":"{{api-host}}/v1/currencies","description":"This is a method for obtaining information about all cryptocurrencies available for payments.  \nOptional parameters:\n\n*   fixed_rate(optional) - boolean, can be **true** or **false**. Returns avaliable currencies with minimum and maximum amount of the exchange."},"response":[{"id":"4372f993-c788-4961-a904-8522d3fa14be","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"<your_api_key>","type":"text"}],"url":"https://api.nowpayments.io/v1/currencies"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 22 Dec 2020 15:04:03 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-dns-prefetch-control","value":"off"},{"key":"x-frame-options","value":"SAMEORIGIN"},{"key":"strict-transport-security","value":"max-age=15552000; includeSubDomains"},{"key":"strict-transport-security","value":"max-age=15768000"},{"key":"x-download-options","value":"noopen"},{"key":"x-content-type-options","value":"nosniff"},{"key":"x-xss-protection","value":"1; mode=block"},{"key":"vary","value":"Origin"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"cf-request-id","value":"072c9386e7000016693802b000000001"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=njJG9MjxLKmoJsxN0xqpdp0MNZJmkCFhw4c9sIQz%2B97S%2FqQTBHWVp28uW4Hx3i1fWSQdR6w48evOdfYoN6u4o6MrXcV%2FZ5sLPQOQJ9ONwKuu4us%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"605abb84abee1669-ARN"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"currencies\": [\n        \"btg\",\n        \"eth\",\n        \"xmr\",\n        \"zec\",\n        \"xvg\",\n        \"ada\",\n        \"ltc\",\n        \"bch\",\n        \"qtum\",\n        \"dash\",\n        \"xlm\",\n        \"xrp\",\n        \"xem\",\n        \"dgb\",\n        \"lsk\",\n        \"doge\",\n        \"trx\",\n        \"kmd\",\n        \"rep\",\n        \"bat\",\n        \"ark\",\n        \"waves\",\n        \"bnb\",\n        \"xzc\",\n        \"nano\",\n        \"tusd\",\n        \"vet\",\n        \"zen\",\n        \"grs\",\n        \"fun\",\n        \"neo\",\n        \"gas\",\n        \"pax\",\n        \"usdc\",\n        \"ont\",\n        \"xtz\",\n        \"link\",\n        \"rvn\",\n        \"bnbmainnet\",\n        \"zil\",\n        \"bcd\",\n        \"usdt\",\n        \"usdterc20\",\n        \"cro\",\n        \"dai\",\n        \"ht\",\n        \"wabi\",\n        \"busd\",\n        \"algo\",\n        \"usdttrc20\",\n        \"gt\",\n        \"stpt\",\n        \"ava\",\n        \"sxp\",\n        \"uni\",\n        \"okb\",\n        \"btc\"\n    ]\n}"}],"_postman_id":"1c268f89-4fe7-471e-81b4-5a3153577b73"},{"name":"Get available currencies (2nd method)","id":"94c66580-f319-4155-b736-7627c91d5f10","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"url":"{{api-host}}/v1/full-currencies","description":"This is a method to obtain detailed information about all cryptocurrencies available for payments."},"response":[{"id":"e4447c0f-454c-475a-a2ed-552fe6d0a04e","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"<your_api_key>","type":"text"}],"url":"https://api.nowpayments.io/v1/full-currencies"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 22 Dec 2020 15:04:03 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-dns-prefetch-control","value":"off"},{"key":"x-frame-options","value":"SAMEORIGIN"},{"key":"strict-transport-security","value":"max-age=15552000; includeSubDomains"},{"key":"strict-transport-security","value":"max-age=15768000"},{"key":"x-download-options","value":"noopen"},{"key":"x-content-type-options","value":"nosniff"},{"key":"x-xss-protection","value":"1; mode=block"},{"key":"vary","value":"Origin"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"cf-request-id","value":"072c9386e7000016693802b000000001"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=njJG9MjxLKmoJsxN0xqpdp0MNZJmkCFhw4c9sIQz%2B97S%2FqQTBHWVp28uW4Hx3i1fWSQdR6w48evOdfYoN6u4o6MrXcV%2FZ5sLPQOQJ9ONwKuu4us%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"605abb84abee1669-ARN"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"\"currencies\": [\n {\n \"id\": 121,\n \"code\": \"AAVE\",\n \"name\": \"Aave\",\n \"enable\": true,\n \"wallet_regex\": \"^(0x)[0-9A-Fa-f]{40}$\",\n \"priority\": 127,\n \"extra_id_exists\": false,\n \"extra_id_regex\": null,\n \"logo_url\": \"/images/coins/aave.svg\",\n \"track\": true,\n \"cg_id\": \"aave\",\n \"is_maxlimit\": false,\n \"network\": \"eth\",\n \"smart_contract\": null,\n \"network_precision\": null\n }\n]"}],"_postman_id":"94c66580-f319-4155-b736-7627c91d5f10"},{"name":"Get available checked currencies","id":"65179fc8-689b-4464-91aa-1e48b6511c5d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"url":"{{api-host}}/v1/merchant/coins","description":"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.  \nOptional parameters:\n\n*   fixed_rate(optional) - boolean, can be **true** or **false**. Returns avaliable currencies with minimum and maximum amount of the exchange."},"response":[{"id":"ee95d9ef-65a1-4a70-8fa5-e0529d093ea0","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"<your_api_key>","type":"text"}],"url":"https://api.nowpayments.io/v1/merchant/coins"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 22 Dec 2020 15:04:03 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-dns-prefetch-control","value":"off"},{"key":"x-frame-options","value":"SAMEORIGIN"},{"key":"strict-transport-security","value":"max-age=15552000; includeSubDomains"},{"key":"strict-transport-security","value":"max-age=15768000"},{"key":"x-download-options","value":"noopen"},{"key":"x-content-type-options","value":"nosniff"},{"key":"x-xss-protection","value":"1; mode=block"},{"key":"vary","value":"Origin"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"cf-request-id","value":"072c9386e7000016693802b000000001"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=njJG9MjxLKmoJsxN0xqpdp0MNZJmkCFhw4c9sIQz%2B97S%2FqQTBHWVp28uW4Hx3i1fWSQdR6w48evOdfYoN6u4o6MrXcV%2FZ5sLPQOQJ9ONwKuu4us%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"605abb84abee1669-ARN"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"currencies\": [\n        \"btg\",\n        \"eth\",\n        \"xmr\",\n        \"zec\",\n        \"xvg\",\n        \"ada\",\n        \"ltc\",\n        \"bch\",\n        \"qtum\",\n        \"dash\",\n        \"xlm\",\n        \"xrp\",\n        \"xem\",\n        \"dgb\",\n        \"lsk\",\n        \"doge\",\n        \"trx\",\n        \"kmd\",\n        \"rep\",\n        \"bat\",\n        \"ark\",\n        \"waves\",\n        \"bnb\",\n        \"xzc\",\n        \"nano\",\n        \"tusd\",\n        \"vet\",\n        \"zen\",\n        \"grs\",\n        \"fun\",\n        \"neo\",\n        \"gas\",\n        \"pax\",\n        \"usdc\",\n        \"ont\",\n        \"xtz\",\n        \"link\",\n        \"rvn\",\n        \"bnbmainnet\",\n        \"zil\",\n        \"bcd\",\n        \"usdt\",\n        \"usdterc20\",\n        \"cro\",\n        \"dai\",\n        \"ht\",\n        \"wabi\",\n        \"busd\",\n        \"algo\",\n        \"usdttrc20\",\n        \"gt\",\n        \"stpt\",\n        \"ava\",\n        \"sxp\",\n        \"uni\",\n        \"okb\",\n        \"btc\"\n    ]\n}"}],"_postman_id":"65179fc8-689b-4464-91aa-1e48b6511c5d"}],"id":"cb80ccdc-8f7c-426c-89df-1ed2241954a5","_postman_id":"cb80ccdc-8f7c-426c-89df-1ed2241954a5"},{"name":"Payouts API","item":[{"name":"Create payout","id":"21331cbf-c7c0-45ff-9709-0653f31d3803","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"}},"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":"{{api-host}}/v1/payout","description":"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:\n\n- address (required) - the address where you want to send funds\n- currency (required) - payout currency\n- amount (required) - amount of the payout. **Must not exceed 6 decimals** (i.e. 0.123456)\n- extra_id (optional) - memo, destination tag, etc.\n- ipn_callback_url(optional) - url to receive callbacks, should contain \"http\" or \"https\", eg. \"[https://nowpayments.io\"](https://nowpayments.io). Please note: you can either set ipn_callback_url for each individual payout, or for all payouts in a batch (see example). **In both cases IPNs will be sent for each payout separately.**\n- payout_description(optional) - a description of the payout. You can set it for all payouts in a batch\n- unique_external_id(optional) - a unique external identifier\n- fiat_amount(optional) - used for setting the payout amount in fiat equivalent. **Overrides \"amount\" parameter**\n- fiat_currency (optional) - used for determining fiat currency to get the fiat equivalent for. **Required for \"fiat_amount\" parameter to work. DOES NOT override \"currency\" parameter. Payouts are made in crypto only, no fiat payouts are available**\n    \n\nHere the list of the available payout statuses:\n\n- waiting\n- processing\n- sending\n- finished\n- failed\n- rejected"},"response":[{"id":"79ae6bbb-b85b-496a-beb4-8d12b15b7a74","name":"200","originalRequest":{"method":"POST","header":[{"key":"x-api-key","type":"text","value":"<your_api_key>"},{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"ipn_callback_url\": \"https://nowpayments.io\",\n    \"withdrawals\": [\n        {\n            \"address\": \"TEmGwPeRTPiLFLVfBxXkSP91yc5GMNQhfS\",\n            \"currency\": \"trx\",\n            \"amount\": 200,\n            \"ipn_callback_url\": \"https://nowpayments.io\"\n        },\n        {\n            \"address\": \"0x1EBAeF7Bee7B3a7B2EEfC72e86593Bf15ED37522\",\n            \"currency\": \"eth\",\n            \"amount\": 0.1,\n            \"ipn_callback_url\": \"https://nowpayments.io\"\n        },\n        {\n            \"address\": \"0x1EBAeF7Bee7B3a7B2EEfC72e86593Bf15ED37522\",\n            \"currency\": \"usdc\",\n            \"amount\": 1,\n            \"fiat_amount\": 100,\n            \"fiat_currency\": \"usd\",\n            \"ipn_callback_url\": \"https://nowpayments.io\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/payout"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n\t\"id\": \"5000000713\",\n\t\"withdrawals\": [\n    {\n    \"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    \"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    \"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":"21331cbf-c7c0-45ff-9709-0653f31d3803"},{"name":"Get payout status","id":"1805a760-8694-4f25-9ab9-09652de4f634","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"host":true,"user-agent":true,"accept":true,"accept-encoding":true,"connection":true}},"request":{"method":"GET","header":[{"key":"x-api-key","type":"text","value":"{{your_api_key}}"}],"body":{"mode":"raw","raw":""},"url":"{{api-host}}/v1/payout/<payout_id>","description":"Get the actual information about the payout. You need to provide the ID of the payout in the request.\n\nNOTE! You should make the get payout status request with the same API key that you used in the creat_payout request.\n\nHere is the list of available statuses:\n- waiting\n- processing\n- sending\n- finished\n- failed\n- rejected"},"response":[{"id":"81404666-13ec-463f-8453-3f8b4366a45a","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","type":"text","value":"<your_api_key>"},{"key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"}],"url":{"raw":"https://api.nowpayments.io/v1/payout/:payout_id","protocol":"https","host":["api","nowpayments","io"],"path":["v1","payout",":payout_id"],"variable":[{"key":"payout_id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"<payout_id>\",\n        \"address\": \"<payout_address>\",\n        \"currency\": \"trx\",\n        \"amount\": \"200\",\n        \"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":"1805a760-8694-4f25-9ab9-09652de4f634"},{"name":"Get balance","id":"c7065536-bf36-4e91-a015-568a2fee642e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","type":"text","value":"{{your_api_key}}"}],"url":"{{api-host}}/v1/balance","description":"This method returns your balance in different currencies.\n\nThe response contains a list of currencies with two parameters:\n\n- amount - avaliable currency amount\n- pendingAmount - currently processing currency amount."},"response":[{"id":"c77c9e2b-8e0a-4eb3-8a1c-330e8883170b","name":"200","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"<your_api_key>","type":"text"},{"key":"Authorization","value":"Bearer *your_jwt_token*","type":"text"}],"url":"https://api.nowpayments.io/v1/balance"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"eth\": {\n        \"amount\": 0.0001817185463659148,\n        \"pendingAmount\": 0\n    },\n    \"trx\": {\n        \"amount\": 0,\n        \"pendingAmount\": 0\n    },\n    \"xmr\": {\n        \"amount\": 0,\n        \"pendingAmount\": 0\n    }\n}"}],"_postman_id":"c7065536-bf36-4e91-a015-568a2fee642e"},{"name":"Verify payout","id":"829efbb2-6b74-4a51-bfca-4db3279423e7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"}},"method":"POST","header":[{"key":"x-api-key","value":"{{your_api_key}}","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"verification_code\": \"123456\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"{{api-host}}/v1/payout/:withdrawals-id/verify","host":["{{api-host}}"],"path":["v1","payout",":withdrawals-id","verify"],"variable":[{"key":"withdrawals-id","value":"5000000191"}]},"description":"This method is required to verify payouts by using your 2fa code.  \nYou’ll have 10 attempts to verify the payout. If it is not verified after 10 attempts, the payout will remain in ‘creating’ status.  \nPayout will be processed only when it is verified.\n\nMake sure to have your 2fa authentication enabled in your NOWPayments Account (in Account Settings).  \nWhen 2fa is disabled, the code automatically goes to your registration email.  \nThe code sent by email is valid for one hour.\n\nNext is a description of the required request fields:\n\n- :batch-withdrawal-id - payout id you received in `2. Create payout` method\n- verification_code - 2fa code you received with your Google Auth app or via email\n    \n\nIn order to establish an automatic verification of payouts, you should switch 2FA through the application.  \nThere are several libraries for different frameworks aimed on generating a 2FA codes based on a secret key from your account settings.  \ne.g: Speakeasy for JavaScript.  \nWe do not recommend to change any default settings.  \n\n```\nconst 2faVerificationCode = speakeasy.totp({\n      your_2fa_secret_key,\n      encoding: 'base32',\n})\n```"},"response":[{"id":"a704f0e6-7b17-486c-899f-bcd2d3c90542","name":"200","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.staging.nowpayments.io/v1/payout/:withdrawals-id/verify","protocol":"https","host":["api","staging","nowpayments","io"],"path":["v1","payout",":withdrawals-id","verify"],"variable":[{"key":"withdrawals-id","value":"5000000191"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"OK"}],"_postman_id":"829efbb2-6b74-4a51-bfca-4db3279423e7"}],"id":"138ee72b-4c4f-40d0-a565-4a1e907f4d94","_postman_id":"138ee72b-4c4f-40d0-a565-4a1e907f4d94"},{"name":"Get API status","id":"9998079f-dcc8-4e07-9ac7-3d52f0fd733a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{api-host}}/v1/status","description":"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."},"response":[{"id":"36ac433e-c44d-4b3b-8881-101ec80ec1d5","name":"200","originalRequest":{"method":"GET","header":[],"url":"https://api.nowpayments.io/v1/status"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 18 Apr 2019 13:37:08 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"16"},{"key":"Connection","value":"keep-alive"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"Strict-Transport-Security","value":"max-age=15768000"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Vary","value":"Origin"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"4c97081ce9509700-FRA"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"OK\"\n}"}],"_postman_id":"9998079f-dcc8-4e07-9ac7-3d52f0fd733a"},{"name":"Authentication","event":[{"listen":"test","script":{"id":"61ce614a-946b-4a7b-afc1-283db7e7bbd2","exec":["const schema = {","  properties: {","    token: {","      type: \"string\",","    }","  },","  required: [","    'token',","  ],","};","","try {","    const jsonData = pm.response.json();","    pm.collectionVariables.set(\"token\", jsonData?.token);","} catch (e) {","    console.warn(e);","}"],"type":"text/javascript"}}],"id":"174cd8c5-5973-4be7-9213-05567f8adf27","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"{{email}}\",\n    \"password\": \"{{password}}\" \n}","options":{"raw":{"language":"json"}}},"url":"{{api-host}}/v1/auth","description":"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."},"response":[{"id":"72fd6532-2009-475c-9ef7-c296d0b164f1","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"your_email\",\n    \"password\": \"your_password\" \n}","options":{"raw":{"language":"json"}}},"url":"https://api.nowpayments.io/v1/auth"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 13 Nov 2020 17:26:24 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Set-Cookie","value":"__cfduid=d100179a7e095065cf498b0371b423b7d1605288381; expires=Sun, 13-Dec-20 17:26:21 GMT; path=/; domain=.nowpayments.io; HttpOnly; SameSite=Lax"},{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"Strict-Transport-Security","value":"max-age=15768000"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"1; mode=block"},{"key":"Vary","value":"Origin"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"cf-request-id","value":"06643de5b900000022542c9000000001"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=%2BQThCuj3D5DwqKzV%2FPRt15xNxPJ2KeOa0YwY8JeNLCpOzK7WTa%2FAv1csNcLl2Q2ZUnQEt4ITZdXfizJUafHl1f9G3F%2BENJmd%2FOe3NKxoFmN5Cjo%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"5f1a3282cac70022-DME"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjU4MjYyNTkxMTUiLCJpYXQiOjE2MDUyODgzODQsImV4cCI6MTYwNTI4ODY4NH0.bk8B5AjoTt8Qfm1zHJxutAtgaTGW-2j67waGQ2DUHUI\"\n}"}],"_postman_id":"174cd8c5-5973-4be7-9213-05567f8adf27"}],"event":[{"listen":"prerequest","script":{"id":"64f73ac7-a39e-40f5-9f64-22783d3c5257","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"b4952051-06a7-4b7e-a061-c62a3a0b10ef","type":"text/javascript","exec":[""]}}],"variable":[{"key":"api-host","value":"https://api.nowpayments.io","type":"string"},{"key":"email","value":"<enter_your_email>","type":"string"},{"key":"password","value":"<enter_your_password>","type":"string"},{"key":"your_api_key","value":"<enter_your_api_key>","type":"string"}]}