{"info":{"_postman_id":"47d3ecb3-8475-4c86-9ca9-02f450b2ee4c","name":"Heropayments API","description":"<html><head></head><body><p>Heropayments is a non-custodial cryptocurrency payment gateway. We provide an infrastructure for online businesses to accept payments in 100+ crypto assets and convert them into stable coin BUSD Binance Smart Chain (bep-20).</p>\n<h2 id=\"standard-flow-to-sell-a-product-through-heropayments-gateway\">Standard flow to sell a product through Heropayments gateway.</h2>\n<ol>\n<li>UI - Ask a customer to select item/items for purchase to determine the total sum;</li>\n<li>API - Call the \"<a href=\"https://documenter.getpostman.com/view/17469357/U16kqjoL#8a324133-ca08-4273-9764-52709d828dc1\">POST Create Invoice</a>\" method to create an invoice.<br>Set \"successUrl\" - parameter to redirect a customer back to your website after successful payment.<br>Set \"failUrl\" - parameter to redirect a customer back to your website when he cancels the order.</li>\n<li>UI - display the invoice url or redirect the user to the generated link.</li>\n<li>Heropayments - the customer completes the payment and is redirected back to your website (only if \"successUrl\"/\"failUrl\" parameter is configured correctly!).</li>\n<li>API - You can get the payment status manually, using \"<a href=\"https://documenter.getpostman.com/view/17469357/U16kqjoL#bd3d6f01-b6b1-4936-a1c2-2bd4638e4482\">GET Payment by id</a>\" and display it to a customer so that they know when their payment has been processed.<br>We are building callbacks to make this process much easier. Ask us for another possible solution.</li>\n<li>API - you call the list of payments made to your account via the \"<a href=\"https://documenter.getpostman.com/view/17469357/U16kqjoL#f49e71f0-4ccf-4750-8828-c474e8b9632c\">GET Query payments</a>\" method. Additionally, you can see all of this information in your <a href=\"https://heropayments.io\">Account</a> on Heropayments website.</li>\n</ol>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"17469357","collectionId":"47d3ecb3-8475-4c86-9ca9-02f450b2ee4c","publishedId":"U16kqjoL","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-09-14T13:24:24.000Z"},"item":[{"name":"Authentication","item":[],"id":"591ce538-abe9-4d77-bf22-472d8316b1eb","description":"<p>To use the Heropayments API you should do the following:</p>\n<ul>\n<li>Sign up at Heropayments.io</li>\n<li>Specify your outcome wallet</li>\n<li>Take your API key</li>\n</ul>\n","_postman_id":"591ce538-abe9-4d77-bf22-472d8316b1eb"},{"name":"Get all available crypto currencies","id":"3d017da7-90f9-457b-b660-30902faa9b19","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"text"}}},"url":"https://api.heropayments.io/v1/currencies","description":"<p>Gets all available crypto currencies to use for customer payments.</p>\n","urlObject":{"path":["currencies"],"host":["https://api.heropayments.io/v1"],"query":[],"variable":[]}},"response":[{"id":"828be98a-bf54-4d63-9190-0bd951ca9690","name":"200 OK","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"text"}}},"url":"https://api.heropayments.io/v1/currencies"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"[\n    {\n        \"ticker\": \"btc\",\n        \"fullName\":\"Bitcoin\",\n        \"extraIdName\": null,\n        \"isStable\": false,\n        \"confirmations\": 1\n    },\n    {\n        \"ticker\": \"eth\",\n        \"fullName\": \"Ethereum\",\n        \"extraIdName\": null,\n        \"isStable\": false,\n        \"confirmations\": 3\n    },\n    {\n        \"ticker\": \"usdc\",\n        \"fullName\": \"USD Coin\",\n        \"extraIdName\": null,\n        \"isStable\": false,\n        \"confirmations\": 3\n    },\n    {\n        \"ticker\": \"xrp\",\n        \"fullName\": \"XRP\",\n        \"extraIdName\": \"Destination tag\",\n        \"isStable\": false,\n        \"confirmations\": 1\n    }\n]"}],"_postman_id":"3d017da7-90f9-457b-b660-30902faa9b19"},{"name":"Create invoice","id":"8a324133-ca08-4273-9764-52709d828dc1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"x-api-key","value":"<your_key>","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"priceAmount\": \"40\",\n    \"priceCurrency\": \"usd\",\n    \"customerId\": \"Jean105@gmail.com\",\n    \"orderId\": \"10000583\",\n    \"orderDescription\": \"Online courses access\",\n    \"successUrl\": \"https://example.com/?status=success&orderId=10000583\",\n    \"failUrl\": \"https://example.com/?status=fail&orderId=10000583\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.heropayments.io/v1/invoices","description":"<p>Creates an invoice.</p>\n<p>With this method, the customer is required to follow the generated url (<strong>invoiceUrl</strong>) to start the payment procedure, where he can see the payment amount, select the desired payment currency and complete the payment.</p>\n<p>Request payload fields:</p>\n<ul><li><p><b>priceAmount - </b>The price set by the merchant which will converted to an equal amount of a chosen cryptocurrency.<br /></p></li><li><p><b>priceCurrency - </b>the fiat currency in which the priceAmount is specified and displayed (usd, eur).<br /></p></li><li><p><b>customerId </b>(optional) -<b> </b>Merchant provides an id that is associated with a particular customer for the invoice and its following payments. it can be <i>an email</i>, <i>a phone number</i> or any other kind of information. (string)<br /></p></li><li><p><b>orderId</b> (optional) - Merchant's custom order ID. Example: <i>RGBPV-12345.</i><br /></p></li><li><p><b>orderDescription</b> (optional) - More details about this order. It can be cart items, product details or other information. Example: 1 x Apple iPhone 13, 1 x Apple MacBook Pro 2020.<br /></p></li><li><p><b>successUrl</b> (optional) - Redirect to Merchant's URL after successful payment (thank-you page).<br /></p></li><li><p><b>failUrl</b> (optional) - Redirect to Merchant's URL when a customer cancels the order (cancel page).</p></li></ul>","urlObject":{"path":["invoices"],"host":["https://api.heropayments.io/v1"],"query":[],"variable":[]}},"response":[{"id":"65b933cb-306b-4b9f-a25e-6285775aaa0f","name":"200 OK","originalRequest":{"method":"POST","header":[{"key":"x-api-key","value":"<your_key>","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"priceAmount\": \"40\",\n    \"priceCurrency\": \"usd\",\n    \"customerId\": \"Jean105@gmail.com\",\n    \"orderId\": \"10000583\",\n    \"orderDescription\": \"Online courses access\",\n    \"successUrl\": \"https://example.com/?status=success&orderId=10000583\",\n    \"failUrl\": \"https://example.com/?status=fail&orderId=10000583\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.heropayments.io/v1/invoices"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 26 Jan 2022 11:21:25 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"vary","value":"Origin"},{"key":"access-control-allow-credentials","value":"true"},{"key":"x-request-id","value":"e0d8fbb84c315da14d355c4a8d1ada8b"},{"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=%2FO8u%2FtKXbCdBRDmjIKFlZVwet%2B07E7khQlbZ3IiBJ4aQT0pVjkn4WFHwZfgFWcqLDpScetxGdIY4KKxwxeOQfWgxz%2BCmfbC3ifnWeK0a2MhOroqfdiLfk12RNCmBJ4J8vnUamVwB\"}],\"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":"6d395b8d6e9357a8-IAD"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"ab4ef769-415a-4a3b-b447-a97ab9d79b7c\",\n    \"priceAmount\": \"40\",\n    \"priceCurrency\": \"usd\",\n    \"customerId\": \"Jean105@gmail.com\",\n    \"orderId\": \"10000583\",\n    \"orderDescription\": \"Online courses access\",\n    \"successUrl\": \"https://example.com/?status=success&orderId=10000583\",\n    \"failUrl\": \"https://example.com/?status=fail&orderId=10000583\",\n    \"invoiceUrl\": \"https://heropayments.io/payment?invoiceId=ab4ef769-415a-4a3b-b447-a97ab9d79b7c\"\n}"}],"_postman_id":"8a324133-ca08-4273-9764-52709d828dc1"},{"name":"Get invoice by id","id":"7a4ff631-5359-4024-a5d8-b4aab50d8ab9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.heropayments.io/v1/invoices/:id","description":"<p>Gets invoice by id.</p>\n","urlObject":{"path":["invoices",":id"],"host":["https://api.heropayments.io/v1"],"query":[],"variable":[{"description":{"content":"<p>invoice id</p>\n","type":"text/plain"},"type":"any","value":"<id>","key":"id"}]}},"response":[{"id":"ffd7b60e-0981-45d5-9749-23b645d11ca9","name":"200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.heropayments.io/v1/invoices/:id","host":["https://api.heropayments.io/v1"],"path":["invoices",":id"],"variable":[{"key":"id","value":"<id>","description":"invoice id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"95d6caed-a4f6-41a9-a529-657f7b8e2d4d\",\n    \"priceAmount\": \"40\",\n    \"priceCurrency\": \"usd\",\n    \"orderId\": \"10000583\",\n    \"orderDescription\": \"Online courses access\",\n    \"successUrl\": \"https://example.com/?status=success&orderId=10000583\",\n    \"failUrl\": \"https://example.com/?status=fail&orderId=10000583\",\n    \"invoiceUrl\": \"https://heropayments.io/payment?invoiceId=95d6caed-a4f6-41a9-a529-657f7b8e2d4d\"\n}"}],"_postman_id":"7a4ff631-5359-4024-a5d8-b4aab50d8ab9"},{"name":"Get current conversion rate","id":"f94ba66c-2ecf-4210-b36d-567d859d3c43","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-api-key","value":"<your_key>","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"priceCurrency\": \"usd\",\n    \"payCurrency\": \"eth\",\n    \"priceAmount\": \"99.9\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.heropayments.io/v1/estimate","description":"<p>Gets current conversion rate from crypto to fiat.</p>\n<p>You will need to provide the initial amount in a fiat currency (priceAmount, priceCurrency) and a necessary cryptocurrency (payCurrency).</p>\n<p>Currently following fiat currencies are available: usd, eur.</p>\n<p>Request payload fields:</p>\n<ul><li><p><b>priceCurrency -</b> fiat currency.<br /></p></li><li><p><b>payCurrency -</b> crypto currency.<br /></p></li><li><p><b>priceAmount -</b> fiat currency amount (order price).<br /></p></li></ul>\n\n<p>Response fields:</p>\n<ul><li><p><b>priceCurrency</b><br /></p></li><li><p><b>payCurrency</b><br /></p></li><li><p><b>priceAmount</b><br /></p></li><li><p><b>payAmount</b> - crypto amount to pay for customer.<br /></p></li><li><p><b>minAmount</b> - minimal amount that can be processed by Heropayments for a given currency.<br /></p></li><li><p><b>maxAmount -</b> maximum amount that can be processed by Heropayments for a given currency.<br /></p></li></ul>","urlObject":{"path":["estimate"],"host":["https://api.heropayments.io/v1"],"query":[],"variable":[]}},"response":[{"id":"a4c41ea3-0d54-4649-878e-143c124e909b","name":"200 OK","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"x-api-key","value":"<your_key>","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"priceCurrency\": \"eur\",\n    \"payCurrency\": \"eth\",\n    \"priceAmount\": \"99.9\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.heropayments.io/v1/estimate"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"priceCurrency\": \"eur\",\n    \"payCurrency\": \"eth\",\n    \"priceAmount\": \"99.9\",\n    \"payAmount\": \"0.05\",\n    \"minAmount\": \"0.01\",\n    \"maxAmount\": \"35\"\n}"}],"_postman_id":"f94ba66c-2ecf-4210-b36d-567d859d3c43"},{"name":"Create payment","id":"be519b3d-624f-46a9-bf1b-0a722d9d01f4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"invoiceId\": \"11bf5b37-e0b8-42e0-8dcf-dc8c4aefc000\",\n    \"payCurrency\": \"eth\",\n    \"email\": \"mike.d@gmail.com\",\n    \"userNotes\": \"available for a call at 6pm\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.heropayments.io/v1/payments","description":"<p>Creates new payment for specified invoice.</p>\n<p>Request payload fields:</p>\n<ul>\n  <li>\n    <b>invoiceId</b>\n  </li>\n  <li>\n    <b>payCurrency</b>\n  </li>\n  <li>\n    <b>email</b> (optional)\n  </li>\n  <li>\n    <b>userNotes</b> (optional)\n  </li>\n</ul>\n\n<p>Response fields:</p>\n<ul>\n  <li>\n    <b>id</b> - payment id. Can also be used in <i>get payment by id</i> method.\n  </li>\n  <li>\n    <b>status</b> can be one of the following:\n    <table>\n      <tr>\n        <td><b>waiting</b></td>\n        <td>waiting for customer payment</td>\n      </tr>\n      <tr>\n        <td><b>confirming</b></td>\n        <td>payment has just received</td>\n      </tr>\n      <tr>\n        <td><b>exchanging</b></td>\n        <td>money is in converting phase</td>\n      </tr>\n      <tr>\n        <td><b>sending</b></td>\n        <td>money is in sending phase on merchant wallet</td>\n      </tr>\n      <tr>\n        <td><b>finished</b></td>\n        <td>money should be received on merchant wallet</td>\n      </tr>\n      <tr>\n        <td><b>partially_paid</b></td>\n        <td>money received, but the amount is under underpayment threshold</td>\n      </tr>\n      <tr>\n        <td><b>failed</b></td>\n        <td>something went wrong</td>\n      </tr>\n      <tr>\n        <td><b>hold</b></td>\n        <td>AML system triggered, the payment is on hold</td>\n      </tr>\n    </table>\n  </li>\n  <li>\n    <b>invoice.id</b>\n  </li>\n  <li>\n    <b>invoice.orderId</b>\n  </li>\n  <li>\n    <b>invoice.orderDescription</b>\n  </li>\n  <li>\n    <b>invoice.priceCurrency</b>\n  </li>\n  <li>\n    <b>invoice.priceAmount</b>\n  </li>\n  <li>\n    <b>payCurrency</b> - a cryptocurrency in which payAmount is specified (btc, eth, usdc).\n  </li>\n  <li>\n    <b>payAmount</b> - the amount that users have to pay in a stated cryptocurrency.\n  </li>\n  <li>\n    <b>payAddress</b> - Heropayments address where a customer should send his funds to so the payment would be processed. \n  </li>\n  <li>\n    <b>payExtra</b> - in case of XRP, BNB, XLM and other coins with memo, destination tag, message, etc.\n  </li>\n  <li>\n    <b>userNotes</b>\n  </li>\n  <li>\n    <b>createdAt</b> - exact time of this payment creation.\n  </li>\n  <li>\n    <b>paidAmount</b> - how many of <b>payCurrency</b> have actually been received.\n  </li>\n  <li>\n    <b>paid</b> becomes <b>true</b> when payment status equals to merchant setting <i>status for a payment confirmation</i> on payment settings page AND money amount is above of underpayment threshold\n  </li>\n</ul>\n\n<p>Note: <b>email</b> is not exposed here since it's used only for sending final receipt to the customer after successful payment.</p>\n","urlObject":{"path":["payments"],"host":["https://api.heropayments.io/v1"],"query":[],"variable":[]}},"response":[{"id":"335d5462-0bf3-41f7-9e34-00140074b809","name":"201 Created","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"invoiceId\": \"11bf5b37-e0b8-42e0-8dcf-dc8c4aefc000\",\n    \"payCurrency\": \"eth\",\n    \"email\": \"mike.d@gmail.com\",\n    \"userNotes\": \"available for a call at 6pm\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.heropayments.io/v1/payments"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"123e4567-e89b-12d3-a456-426614174000\",\n    \"status\": \"waiting\",\n    \"invoice\": {\n        \"id\": \"11bf5b37-e0b8-42e0-8dcf-dc8c4aefc000\",\n        \"orderId\": \"10000583\",\n        \"orderDescription\": \"Online courses access\",\n        \"priceCurrency\": \"usd\",\n        \"priceAmount\": \"40\"\n    },\n    \"payCurrency\": \"eth\",\n    \"payAmount\": \"0.05\",\n    \"payAddress\": \"0x6cc8dcbc0746a6e4fdefb98e1d0df903b107fd21\",\n    \"userNotes\": \"available for a call at 6pm\",\n    \"createdAt\": \"2021-09-15T10:24:09.450Z\",\n    \"paidAmount\": null,\n    \"paid\": false\n}"}],"_postman_id":"be519b3d-624f-46a9-bf1b-0a722d9d01f4"},{"name":"Query payments","id":"f49e71f0-4ccf-4750-8828-c474e8b9632c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"<your_key>","type":"text"}],"url":"https://api.heropayments.io/v1/payments?limit=50&offset=0&invoiceId=<invoiceId>&orderId=<orderId>&status=<status>&priceCurrency=<priceCurrency>&payCurrency=<payCurrency>&dateFrom=<dateFrom>&dateTo=<dateTo>&payHash=<payHash>&payAddress=<payAddress>","description":"<p>Queries payments list by specified filters.</p>\n","urlObject":{"path":["payments"],"host":["https://api.heropayments.io/v1"],"query":[{"description":{"content":"<p>useful for server pagination (50 as maximum value)</p>\n","type":"text/plain"},"key":"limit","value":"50"},{"description":{"content":"<p>useful for server pagination (0 is default value)</p>\n","type":"text/plain"},"key":"offset","value":"0"},{"description":{"content":"<p>invoice id</p>\n","type":"text/plain"},"key":"invoiceId","value":"<invoiceId>"},{"description":{"content":"<p>order id from merchant</p>\n","type":"text/plain"},"key":"orderId","value":"<orderId>"},{"description":{"content":"<p>status</p>\n","type":"text/plain"},"key":"status","value":"<status>"},{"description":{"content":"<p>fiat</p>\n","type":"text/plain"},"key":"priceCurrency","value":"<priceCurrency>"},{"description":{"content":"<p>crypto</p>\n","type":"text/plain"},"key":"payCurrency","value":"<payCurrency>"},{"description":{"content":"<p>date from (ISO)</p>\n","type":"text/plain"},"key":"dateFrom","value":"<dateFrom>"},{"description":{"content":"<p>date to (ISO)</p>\n","type":"text/plain"},"key":"dateTo","value":"<dateTo>"},{"description":{"content":"<p>incoming crypto payment hash</p>\n","type":"text/plain"},"key":"payHash","value":"<payHash>"},{"description":{"content":"<p>payment crypto address</p>\n","type":"text/plain"},"key":"payAddress","value":"<payAddress>"}],"variable":[]}},"response":[{"id":"e03e9ad6-5d4c-41ce-a217-1928c2b02c19","name":"200 OK","originalRequest":{"method":"GET","header":[{"key":"x-api-key","value":"<your_key>","type":"text"}],"url":{"raw":"https://api.heropayments.io/v1/payments?limit=50&offset=0&invoiceId=<invoiceId>&orderId=<orderId>&status=<status>&priceCurrency=<priceCurrency>&payCurrency=<payCurrency>&dateFrom=<dateFrom>&dateTo=<dateTo>&payHash=<payHash>&payAddress=<payAddress>","host":["https://api.heropayments.io/v1"],"path":["payments"],"query":[{"key":"limit","value":"50","description":"useful for server pagination (50 as maximum value)"},{"key":"offset","value":"0","description":"useful for server pagination (0 is default value)"},{"key":"invoiceId","value":"<invoiceId>","description":"invoice id"},{"key":"orderId","value":"<orderId>","description":"order id from merchant"},{"key":"status","value":"<status>","description":"status"},{"key":"priceCurrency","value":"<priceCurrency>","description":"fiat"},{"key":"payCurrency","value":"<payCurrency>","description":"crypto"},{"key":"dateFrom","value":"<dateFrom>","description":"date from"},{"key":"dateTo","value":"<dateTo>","description":"date to"},{"key":"payHash","value":"<payHash>","description":"incoming crypto payment hash"},{"key":"payAddress","value":"<payAddress>","description":"payment crypto address"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"total\": 1,\n    \"items\": [\n        {\n            \"id\": \"123e4567-e89b-12d3-a456-426614174000\",\n            \"status\": \"waiting\",\n            \"invoice\": {\n                \"id\": \"11bf5b37-e0b8-42e0-8dcf-dc8c4aefc000\",\n                \"orderId\": \"10000583\",\n                \"orderDescription\": \"Online courses access\",\n                \"priceCurrency\": \"usd\",\n                \"priceAmount\": \"40\"\n            },\n            \"payCurrency\": \"eth\",\n            \"payAmount\": \"0.05\",\n            \"payAddress\": \"0x6cc8dcbc0746a6e4fdefb98e1d0df903b107fd21\",\n            \"userNotes\": \"available for a call at 6pm\",\n            \"createdAt\": \"2021-09-15T10:24:09.450Z\",\n            \"paidAmount\": \"0.04\",\n            \"paid\": false\n        }\n    ]\n}"}],"_postman_id":"f49e71f0-4ccf-4750-8828-c474e8b9632c"},{"name":"Get payment by id","id":"bd3d6f01-b6b1-4936-a1c2-2bd4638e4482","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.heropayments.io/v1/payments/:id","description":"<p>Gets payment by payment id.</p>\n<p>NOTE! You should make the get payment status request with the same API key that you used in the create payment request. Here is the list of avalable statuses:</p>\n<p>Here the list of available statuses of the payments:</p>\n<p><strong>waiting</strong> - waiting for the customer to send the payment. The initial status of each payment.</p>\n<p><strong>confirming</strong> - the transaction is being processed on the blockchain. Appears when Heropayments detect the funds from the user on the blockchain.</p>\n<p><strong>confirmed</strong> - the process is confirmed by the blockchain. Customer’s funds have accumulated enough confirmations.</p>\n<p><strong>sending</strong> - the funds are being sent to your personal wallet. We are in the process of sending the funds to you.</p>\n<p><strong>finished</strong> - the funds have reached your personal address and the payment is finished.</p>\n<p><strong>failed</strong> - the payment wasn't completed due to the error of some kind.</p>\n<p><strong>refunded</strong> - the funds were refunded back to the user.</p>\n<p><strong>expired</strong> - the user didn't send the funds to the specified address in the 1 hour time window.\"</p>\n","urlObject":{"path":["payments",":id"],"host":["https://api.heropayments.io/v1"],"query":[],"variable":[{"type":"any","value":null,"key":"id"}]}},"response":[{"id":"9cacc7bd-95ca-45de-88e1-8a052cb9fc55","name":"200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.heropayments.io/v1/payments/:id","host":["https://api.heropayments.io/v1"],"path":["payments",":id"],"variable":[{"key":"id","value":null}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"123e4567-e89b-12d3-a456-426614174000\",\n    \"status\": \"confirming\",\n    \"invoice\": {\n        \"id\": \"11bf5b37-e0b8-42e0-8dcf-dc8c4aefc000\",\n        \"orderId\": \"10000583\",\n        \"orderDescription\": \"Online courses access\",\n        \"priceCurrency\": \"usd\",\n        \"priceAmount\": \"40\"\n    },\n    \"priceCurrency\": \"usd\",\n    \"priceAmount\": \"40\",\n    \"payCurrency\": \"eth\",\n    \"payAmount\": \"0.05\",\n    \"payAddress\": \"0x6cc8dcbc0746a6e4fdefb98e1d0df903b107fd21\",\n    \"userNotes\": \"available for a call at 6pm\",\n    \"createdAt\": \"2021-09-15T10:24:09.450Z\",\n    \"paidAmount\": \"0.04\",\n    \"paid\": true\n}\n"}],"_postman_id":"bd3d6f01-b6b1-4936-a1c2-2bd4638e4482"}],"event":[{"listen":"prerequest","script":{"id":"0b35e2a4-93dc-4d07-977a-ca20439e5bfc","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"548868d7-d75d-4b44-9497-b7ffa75eebd9","type":"text/javascript","exec":[""]}}],"variable":[{"key":"baseUrl","value":"https://api.heropayments.io/v1"},{"key":"apiKey","value":"<your_key>"},{"key":"base-url","value":"api.heropayments.io/v1"}]}