{"info":{"_postman_id":"14c7081d-4676-403a-aa0b-2a5e8b667f43","name":"MinatoPay.com API Documentation","description":"<html><head></head><body><p><a href=\"https://minatopay.com/\">MinatoPay.com</a> provides a powerful and easy-to-use REST API that allows you to accept Bitcoin payments on the lightning network.</p>\n<h1 id=\"quickstart\">Quickstart</h1>\n<p>You can get started by getting your API keys at <a href=\"https://app.minatopay.com/api-keys\">app.minatopay.com/api-keys</a></p>\n<img src=\"https://content.pstmn.io/ed43683e-cdb7-4173-9c3f-77ad777b4ee1/bWluYXRvX2FwaV9rZXlzLnBuZw==\" width=\"1000\" height=\"379\">\n\n<p>After Creating your API key, you should see something like this:</p>\n<img src=\"https://content.pstmn.io/5457fccc-a8ba-4417-8e26-8c86e3acab31/bWluYXRvX2FwaV9rZXlzMy5wbmc=\" width=\"1000\" height=\"459\">\n\n<h1 id=\"authorization\">Authorization</h1>\n<p>To authorize your requests, you must pass the API key in the <code>Authorization</code> header with the following format:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Authorization: Api-Key {api_key}\n\n</code></pre><p>In Postman, your <code>Authorization</code> settings should look like this:</p>\n<img src=\"https://content.pstmn.io/bf8a0960-0169-4baa-9626-a195f0afd028/bWluYXRvX2FwaV9rZXlzX3NldHRpbmdzLnBuZw==\" width=\"801\" height=\"543\">\n\n<p>Congrats, you're now ready to start accepting Bitcoin lightning payments! You can skip to the API Collection section below and start making API requests.</p>\n<h1 id=\"api-overview\">API Overview</h1>\n<h2 id=\"hosted-checkout\">Hosted Checkout</h2>\n<p>MinatoPay provides a responsive prebuilt checkout page with great user experience that you can use out of the box.</p>\n<img src=\"https://content.pstmn.io/4d8cb8e9-a489-47a8-9af1-2e6e9eca96b4/ZmluYWxfY2hlY2tvdXQuZ2lm\" width=\"1560\" height=\"1332\">\n\n<p>You can use MinatoPay's hosted checkout by redirecting the user to <a href=\"https://checkout.minatopay.com/%3Cinvoice_id%3E\">https://checkout.minatopay.com/</a>{invoice_id}</p>\n<p>Where <code>{invoice_id}</code> is the id of your invoice. After the user pays, they will be redirected to the <code>success_url</code> that you provide when creating the invoice.</p>\n<h2 id=\"validating-webhook-events\">Validating Webhook Events</h2>\n<p>MinatoPay sends webhooks for certain events, such as when invoices are paid or withdrawals are completed. See the collection below for examples.</p>\n<p>MinatoPay signs all webhook events it sends to your endpoints with a <code>hashed_order</code> field on the event payload. This allows you to validate that the events were sent by MinatoPay and not by a third party.</p>\n<p>You can verify the signatures by computing an HMAC with the SHA256 hash function. Use the used on the <code>Invoice</code> or <code>Withdrawal</code> creation as the key, and the <code>Invoice</code> or <code>Withdrawal</code> id as the message.</p>\n<p>For example, you can validate an <code>Invoice</code> webhook event with the following if you are using NodeJS:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">const crypto = require('crypto');\nconst secret = {{api_key}}; //You have to edit this line\nconst message = {{invoice.id}}; //You have to edit this line\nconst received = {{hashed_order}}; //You have to edit this line\nconst hmac = crypto.createHmac('sha256', secret);\nconst hmac_result = hmac.update(message).digest('base64');\nif (hmac_result === received) {\n    //Signature is valid\n}\nelse {\n    //Signature is invalid. Ignore.\n}\n\n</code></pre>\n<p>Withdrawal webhook events are validated in the same exact way:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">const crypto = require('crypto');\nconst secret = {{api_key}}; //You have to edit this line\nconst message = {{withdrawal.id}}; //You have to edit this line\nconst received = {{hashed_order}}; //You have to edit this line\nconst hmac = crypto.createHmac('sha256', secret);\nconst hmac_result = hmac.update(message).digest('base64');\nif (hmac_result === received) {\n    //Signature is valid\n}\nelse {\n    //Signature is invalid. Ignore.\n}\n\n</code></pre>\n<h1 id=\"api-collection\">API Collection</h1>\n<p>Below you can find the API collection. Feel free to fork it so that you can start running these API requests asap.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Quickstart","slug":"quickstart"},{"content":"Authorization","slug":"authorization"},{"content":"API Overview","slug":"api-overview"},{"content":"API Collection","slug":"api-collection"}],"owner":"23311215","collectionId":"14c7081d-4676-403a-aa0b-2a5e8b667f43","publishedId":"2s7YzwomAB","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-09-20T04:00:02.000Z"},"item":[{"name":"Invoices","item":[{"name":"Create Invoice","id":"72353ed8-7892-4228-848d-723f33adf1d5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"amount\": 100,\n    \"ttl\": 10, \n    \"callback_url\": \"https://webhook.site/db90f319-b953-48b9-bf60-f50c7aa3f47f\",\n    \"success_url\": \"https://www.my-website.com\",\n    \"description\": \"demo description\",\n    \"order_id\": \"1337\",\n    \"customer_note\": \"demo customer note\",\n    \"customer_email\": \"demo_customer_email@email.com\"\n}\n\n","options":{"raw":{"language":"json"}}},"url":"https://api.minatopay.com/v1/invoices/","description":"<p>This request is used to create an invoice that you will provide the user.</p>\n<p>You can redirect the user to the <code>checkout_url</code> or <a href=\"https://checkout.minatopay.com/%7Binvoice_id%7D\">https://checkout.minatopay.com/{invoice_id}</a> to use MinatoPay's hosted checkout. After a successful payment, the user is redirected to the <code>success_url</code> value.</p>\n<h3 id=\"request-fields\">Request Fields</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>amount</td>\n<td><strong>Required</strong> int between 1 and 500,000,000</td>\n<td>invoice amount in satoshis</td>\n</tr>\n<tr>\n<td>ttl</td>\n<td><strong>optional</strong> int between 10 and 1440</td>\n<td>invoice's TTL (time to live) in minutes.</td>\n</tr>\n<tr>\n<td>callback_url</td>\n<td><strong>optional</strong> URL string with 500 max characters</td>\n<td>URL to receive webhooks</td>\n</tr>\n<tr>\n<td>success_url</td>\n<td><strong>optional</strong> URL string with 500 max characters</td>\n<td>URL to redirect user after payment</td>\n</tr>\n<tr>\n<td>description</td>\n<td><strong>optional</strong> string with 500 max characters</td>\n<td>invoice description</td>\n</tr>\n<tr>\n<td>order_id</td>\n<td><strong>optional</strong> string with 100 max characters</td>\n<td>invoice order id that you create</td>\n</tr>\n<tr>\n<td>customer_note</td>\n<td><strong>optional</strong> string with 1000 max characters</td>\n<td>invoice customer note that you create</td>\n</tr>\n<tr>\n<td>customer_email</td>\n<td><strong>optional email</strong> string with 100 max characters</td>\n<td>invoice customer email</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"response-fields\">Response Fields</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>invoice id (auto generated)</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>int between 1 and 500,000,000</td>\n<td>invoice amount in satoshis</td>\n</tr>\n<tr>\n<td>ttl</td>\n<td>int between 10 and 1440</td>\n<td>invoice's TTL (time to live) in minutes.</td>\n</tr>\n<tr>\n<td>hosted_checkout_url</td>\n<td>URL String</td>\n<td>MinatoPay's hosted checkout page that you can direct your users in order to make a payment. They are always of the form <a href=\"https://checkout.minatopay.com/%7Binvoice_id%7D\">https://checkout.minatopay.com/{invoice_id}</a></td>\n</tr>\n<tr>\n<td>callback_url</td>\n<td>URL string with 500 max characters</td>\n<td>URL to receive webhooks</td>\n</tr>\n<tr>\n<td>success_url</td>\n<td>URL string with 500 max characters</td>\n<td>URL to redirect user after payment</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string with 500 max characters</td>\n<td>invoice description</td>\n</tr>\n<tr>\n<td>order_id</td>\n<td>string with 100 max characters</td>\n<td>invoice order id that you create</td>\n</tr>\n<tr>\n<td>customer_note</td>\n<td>string with 1000 max characters</td>\n<td>invoice customer note that you create</td>\n</tr>\n<tr>\n<td>customer_email</td>\n<td><strong>email</strong> string with 100 max characters</td>\n<td>invoice customer email</td>\n</tr>\n<tr>\n<td>created_at</td>\n<td>datetime</td>\n<td>datetime when invoice created</td>\n</tr>\n<tr>\n<td>expires_at</td>\n<td>datetime</td>\n<td>datetime when invoice expires, determined from the ttl parameter</td>\n</tr>\n<tr>\n<td>status</td>\n<td>one of ['unpaid', 'paid', 'expired']</td>\n<td>status of the invoice</td>\n</tr>\n<tr>\n<td>lightning_invoice</td>\n<td>object with the following fields: \"amount\", \"bolt11\", \"expires_at\", \"settled_at\"</td>\n<td>object that contains information about the lightning invoice object. The field descriptions are given in the below rows</td>\n</tr>\n<tr>\n<td>lightning_invoice (amount)</td>\n<td>int between 1 and 500,000,000</td>\n<td>lightning invoice amount in satoshis</td>\n</tr>\n<tr>\n<td>lightning_invoice (bolt11)</td>\n<td>string</td>\n<td>the bolt11 string for the lightning invoice</td>\n</tr>\n<tr>\n<td>lightning_invoice (expires_at)</td>\n<td>datetime</td>\n<td>datetime when the lightning invoice expires, determined from the ttl parameter</td>\n</tr>\n<tr>\n<td>lightning_invoice (settled_at)</td>\n<td>datetime</td>\n<td>the datetime lightning invoice is paid</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"webhook-fields\">Webhook Fields</h3>\n<p>These are the fields returned to the <code>callback_url</code></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>invoice id (auto generated)</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>int between 1 and 500,000,000</td>\n<td>invoice amount in satoshis</td>\n</tr>\n<tr>\n<td>amount_paid</td>\n<td>int between 1 and 500,000,000</td>\n<td>amount that the customer paid</td>\n</tr>\n<tr>\n<td>missing_amount</td>\n<td>int between 0 and 500,000,000</td>\n<td>amount that the customer underpaid (will be used for onchain payments in the future)</td>\n</tr>\n<tr>\n<td>callback_url</td>\n<td>URL string with 500 max characters</td>\n<td>URL to receive webhooks</td>\n</tr>\n<tr>\n<td>success_url</td>\n<td>URL string with 500 max characters</td>\n<td>URL to redirect user after payment</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string with 500 max characters</td>\n<td>invoice description</td>\n</tr>\n<tr>\n<td>order_id</td>\n<td>string with 100 max characters</td>\n<td>invoice order id that you create</td>\n</tr>\n<tr>\n<td>status</td>\n<td>one of ['unpaid', 'paid', 'expired']</td>\n<td>status of the invoice</td>\n</tr>\n<tr>\n<td>settled_at</td>\n<td>datetime</td>\n<td>the datetime invoice is paid</td>\n</tr>\n<tr>\n<td>fee</td>\n<td>int between 1 and 500,000,000</td>\n<td>our fee taken from the payment</td>\n</tr>\n<tr>\n<td>hashed_order</td>\n<td>string</td>\n<td>MinatoPay signs all invoice events it sends to your <code>callback_url</code> so that you can validate that the events were sent by MinatoPay, and not some third party.  <br />  <br />You can verify the signatures by computing an HMAC with the SHA256 hash function. Use the <code>api_key</code> used on the invoice creation as the key, and the invoice <code>id</code> as the message.  <br />  <br />You can see the webhook section for examples on how to do this</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"value":"<value>","key":"<key>"},"isInherited":true,"source":{"_postman_id":"14c7081d-4676-403a-aa0b-2a5e8b667f43","id":"14c7081d-4676-403a-aa0b-2a5e8b667f43","name":"MinatoPay.com API Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","invoices",""],"host":["api","minatopay","com"],"query":[],"variable":[]}},"response":[{"id":"7f779a91-2079-4aa8-ba88-bc18c90aea43","name":"Successful Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"amount\": 100,\n    \"ttl\": 10, \n    \"callback_url\": \"https://www.my-callback-url.com\",\n    \"description\": \"demo description\",\n    \"order_id\": \"1337\",\n    \"success_url\": \"https://www.my-website.com\",\n    \"customer_note\": \"demo customer note\",\n    \"customer_email\": \"demo_customer_email@email.com\"\n}\n\n","options":{"raw":{"language":"json"}}},"url":"https://api.minatopay.com/v1/invoices/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Sun, 18 Sep 2022 23:44:00 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"934"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"results\": {\n        \"id\": \"-NCHzBGaeLkp2iVyy7bx\",\n        \"amount\": 100,\n        \"description\": \"demo description\",\n        \"hosted_checkout_url\": \"https://checkout.minatopay.com/-NCHzBGaeLkp2iVyy7bx\",\n        \"success_url\": \"https://www.my-website.com\",\n        \"callback_url\": \"https://www.my-callback-url.com\",\n        \"created_at\": \"2022-09-18T23:44:00.814503Z\",\n        \"ttl\": 10,\n        \"expires_at\": \"2022-09-18T23:54:00Z\",\n        \"order_id\": \"1337\",\n        \"customer_note\": \"demo customer note\",\n        \"customer_email\": \"demo_customer_email@email.com\",\n        \"status\": \"unpaid\",\n        \"lightning_invoice\": {\n            \"amount\": 100,\n            \"bolt11\": \"lnbc1u1p3j0t2qsp5x3ug8yfcupj4yyhe42y58vr2knrlca8x8evz34s0qwydg03hszfqpp5ejh7qyl29wmmvvhk4y86ahvnt5ewl44c3wq2zqddrt3xzfquzqhsdq6v3jk6meqv3jhxcmjd9c8g6t0dcxqzjccqpjrzjq07wze2n0t4pyzllapg9sa45f4g3jd20sfdnatpjndmpl3trd0engzm6duqqdcqqqyqqqqlgqqqqhwqqrc9qyysgqvjsrz7lxe6uulgjl663s2wpz0eeg0hsu07jfpduxdzcxf0gney5k9c8nv0l9wg68hx3w7ns8dy62vys8rc3qusdnsyeqd9xuv25d46cpaxlnqu\",\n            \"expires_at\": \"2022-09-18T23:54:00Z\",\n            \"settled_at\": null\n        }\n    }\n}"}],"_postman_id":"72353ed8-7892-4228-848d-723f33adf1d5"},{"name":"Invoice Info","id":"d805b10e-49e8-41fd-8211-62c453a93a61","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.minatopay.com/v1/invoices/-NCIMRzG1ZodP9oIQfv8/","description":"<p>This endpoint is used to inspect a specific invoice based on it's id.</p>\n<p>The above endpoint is an example. The general form of this endpoint is <code>https://api.minatopay.com/v1/invoices/{invoice_id}/</code></p>\n<p>The response fields are the same as the response fields from the <code>POST</code> request above, with 4 additional fields shown on the bottom of the below table.</p>\n<h3 id=\"response-fields\">Response Fields</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>invoice id (auto generated)</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>int between 1 and 500,000,000</td>\n<td>invoice amount in satoshis</td>\n</tr>\n<tr>\n<td>ttl</td>\n<td>int between 10 and 1440</td>\n<td>invoice's TTL (time to live) in minutes.</td>\n</tr>\n<tr>\n<td>hosted_checkout_url</td>\n<td>URL String</td>\n<td>MinatoPay's hosted checkout page that you can direct your users in order to make a payment. They are always of the form <a href=\"https://checkout.minatopay.com/%7Binvoice_id%7D\">https://checkout.minatopay.com/{invoice_id}</a></td>\n</tr>\n<tr>\n<td>callback_url</td>\n<td>URL string with 500 max characters</td>\n<td>URL to receive webhooks</td>\n</tr>\n<tr>\n<td>success_url</td>\n<td>URL string with 500 max characters</td>\n<td>URL to redirect user after payment</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string with 500 max characters</td>\n<td>invoice description</td>\n</tr>\n<tr>\n<td>order_id</td>\n<td>string with 100 max characters</td>\n<td>invoice order id that you create</td>\n</tr>\n<tr>\n<td>customer_note</td>\n<td>string with 1000 max characters</td>\n<td>invoice customer note that you create</td>\n</tr>\n<tr>\n<td>customer_email</td>\n<td><strong>email</strong> string with 100 max characters</td>\n<td>invoice customer email</td>\n</tr>\n<tr>\n<td>created_at</td>\n<td>datetime</td>\n<td>datetime when invoice created</td>\n</tr>\n<tr>\n<td>expires_at</td>\n<td>datetime</td>\n<td>datetime when invoice expires, determined from the ttl parameter</td>\n</tr>\n<tr>\n<td>status</td>\n<td>one of ['unpaid', 'paid', 'expired']</td>\n<td>status of the invoice</td>\n</tr>\n<tr>\n<td>lightning_invoice</td>\n<td>object with the following fields: \"amount\", \"bolt11\", \"expires_at\", \"settled_at\"</td>\n<td>object that contains information about the lightning invoice object. The field descriptions are given in the below rows</td>\n</tr>\n<tr>\n<td>lightning_invoice (amount)</td>\n<td>int between 1 and 500,000,000</td>\n<td>lightning invoice amount in satoshis</td>\n</tr>\n<tr>\n<td>lightning_invoice (bolt11)</td>\n<td>string</td>\n<td>the bolt11 string for the lightning invoice</td>\n</tr>\n<tr>\n<td>lightning_invoice (expires_at)</td>\n<td>datetime</td>\n<td>datetime when the lightning invoice expires, determined from the ttl parameter</td>\n</tr>\n<tr>\n<td>lightning_invoice (settled_at)</td>\n<td>datetime</td>\n<td>the datetime lightning invoice is paid</td>\n</tr>\n<tr>\n<td>amount_paid</td>\n<td>int between 1 and 500,000,000</td>\n<td>amount that the customer paid</td>\n</tr>\n<tr>\n<td>fee</td>\n<td>int between 1 and 500,000,000</td>\n<td>our fee taken from the payment</td>\n</tr>\n<tr>\n<td>missing_amount</td>\n<td>int between 1 and 500,000,000</td>\n<td>amount that the customer underpaid (will be used for onchain payments in the future)</td>\n</tr>\n<tr>\n<td>settled_at</td>\n<td>datetime</td>\n<td>the datetime invoice is paid</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"value":"<value>","key":"<key>"},"isInherited":true,"source":{"_postman_id":"14c7081d-4676-403a-aa0b-2a5e8b667f43","id":"14c7081d-4676-403a-aa0b-2a5e8b667f43","name":"MinatoPay.com API Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","invoices","-NCIMRzG1ZodP9oIQfv8",""],"host":["api","minatopay","com"],"query":[],"variable":[]}},"response":[{"id":"53527f48-0299-40e4-8f8e-c40306f8ce70","name":"Successful Response","originalRequest":{"method":"GET","header":[],"url":"https://api.minatopay.com/v1/invoices/-NCIMRzG1ZodP9oIQfv8/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Mon, 19 Sep 2022 01:33:20 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"1051"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"results\": {\n        \"id\": \"-NCIMRzG1ZodP9oIQfv8\",\n        \"amount_paid\": 100,\n        \"fee\": 1,\n        \"missing_amount\": 0,\n        \"created_at\": \"2022-09-19T01:30:00.829257Z\",\n        \"settled_at\": \"2022-09-19T01:30:31.677886Z\",\n        \"expires_at\": \"2022-09-19T01:40:00Z\",\n        \"status\": \"paid\",\n        \"hosted_checkout_url\": \"https://checkout.minatopay.com/-NCIMRzG1ZodP9oIQfv8\",\n        \"lightning_invoice\": {\n            \"amount\": 100,\n            \"bolt11\": \"lnbc1u1p3j03scsp5a0327u3ncaja5ap3kxggqqwyk95n0crtwmd5uguvrtlqukgkvdhspp560ypjfcjcrcjs8a6w8s6truncnjcyqvkydmmk9wajakdf4s7n07sdq6v3jk6meqv3jhxcmjd9c8g6t0dcxqzjccqpjrzjqw87r0vkddwtq4zevdysccc74gvjfckycr4yulwtt4zc9g087tc62zmeycqqy4gqqqqqqqqqqqqqqqqqyg9qyysgqq0zz27mhzz87t00dqrq200n0fkfc7ejnct09zwq9znprv5gufj08q06473l4lq8zqgt4mf35j3dwarep2yqlhjxwjmlm0n0me0rnx4spc5ckhd\",\n            \"expires_at\": \"2022-09-19T01:40:00Z\",\n            \"settled_at\": \"2022-09-19T01:30:31.677886Z\"\n        },\n        \"amount\": 100,\n        \"description\": \"demo description\",\n        \"callback_url\": \"https://www.my-callback-url.com\",\n        \"success_url\": \"https://www.my-website.com\",\n        \"ttl\": 10,\n        \"order_id\": \"1337\",\n        \"customer_note\": \"demo customer note\",\n        \"customer_email\": \"demo_customer_email@email.com\"\n    }\n}"}],"_postman_id":"d805b10e-49e8-41fd-8211-62c453a93a61"},{"name":"List Paid Invoices","id":"7ea58455-44be-4d72-a93a-7e448f4a61cc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.minatopay.com/v1/invoices/","description":"<p>This endpoint provides a paginated list of paid invoices.</p>\n<h3 id=\"response-fields\">Response Fields</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>count</td>\n<td>int</td>\n<td>number of pages</td>\n</tr>\n<tr>\n<td>next</td>\n<td>URL string</td>\n<td>api endpoint that provides the next page of results. It is of the form \"<a href=\"https://api.minatopay.com/v1/invoices/?page=%7Bpage_number%7D\">https://api.minatopay.com/v1/invoices/?page={page_number}</a>\"</td>\n</tr>\n<tr>\n<td>previous</td>\n<td>URL string</td>\n<td>api endpoint that provides the previous page of results. It is of the form \"<a href=\"https://api.minatopay.com/v1/invoices/?page=%7Bpage_number%7D\">https://api.minatopay.com/v1/invoices/?page={page_number}</a>\"</td>\n</tr>\n<tr>\n<td>results</td>\n<td>list of invoice objects</td>\n<td>see GET endpoint above for the fields returned by a single invoice object.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"value":"<value>","key":"<key>"},"isInherited":true,"source":{"_postman_id":"14c7081d-4676-403a-aa0b-2a5e8b667f43","id":"14c7081d-4676-403a-aa0b-2a5e8b667f43","name":"MinatoPay.com API Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","invoices",""],"host":["api","minatopay","com"],"query":[],"variable":[]}},"response":[{"id":"c41ec37e-ae4f-49b9-a8fb-dfbfb2935abf","name":"Successful Response","originalRequest":{"method":"GET","header":[],"url":"https://api.minatopay.com/v1/invoices/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Mon, 19 Sep 2022 01:32:03 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"3174"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 3,\n    \"next\": null,\n    \"previous\": null,\n    \"results\": [\n        {\n            \"id\": \"-NCIMje411hD8djW1XdQ\",\n            \"amount_paid\": 50,\n            \"fee\": 0,\n            \"missing_amount\": 0,\n            \"created_at\": \"2022-09-19T01:31:17.009841Z\",\n            \"settled_at\": \"2022-09-19T01:31:49.732384Z\",\n            \"expires_at\": \"2022-09-19T01:41:17Z\",\n            \"status\": \"paid\",\n            \"hosted_checkout_url\": \"https://checkout.minatopay.com/-NCIMje411hD8djW1XdQ\",\n            \"lightning_invoice\": {\n                \"amount\": 50,\n                \"bolt11\": \"lnbc500n1p3j03nysp50c95ncpwvgakassafw9strw2ctgexvmh7rfafdrcrf4cfvync48qpp5v6lsvdemgfp8vmlddppj9sep9dsa9v8ld8f4m39wa2mt0sncaqdqdq6v3jk6meqv3jhxcmjd9c8g6t0dcxqzjccqpjrzjqgn4tsllfedp6u04w0x6fvc43pluqz57tj02n2z8myul8eghu6d8qzm6duqq0msqqqqqqqlgqqqqhwqqrc9qyysgqnngxxahwnvdgkm97ctgnkgajhrjt9gyzh4faw3fe9tvj0magu7zny4jh50kq35f6u5zjq9zvkttf06w772lmucfpum0t4gp96l7lr7sppxv0nx\",\n                \"expires_at\": \"2022-09-19T01:41:17Z\",\n                \"settled_at\": \"2022-09-19T01:31:49.732384Z\"\n            },\n            \"amount\": 50,\n            \"description\": \"demo description\",\n            \"callback_url\": \"https://www.my-callback-url.com\",\n            \"success_url\": \"https://www.my-website.com\",\n            \"ttl\": 10,\n            \"order_id\": \"1337\",\n            \"customer_note\": \"demo customer note\",\n            \"customer_email\": \"demo_customer_email@email.com\"\n        },\n        {\n            \"id\": \"-NCIMRzG1ZodP9oIQfv8\",\n            \"amount_paid\": 100,\n            \"fee\": 1,\n            \"missing_amount\": 0,\n            \"created_at\": \"2022-09-19T01:30:00.829257Z\",\n            \"settled_at\": \"2022-09-19T01:30:31.677886Z\",\n            \"expires_at\": \"2022-09-19T01:40:00Z\",\n            \"status\": \"paid\",\n            \"hosted_checkout_url\": \"https://checkout.minatopay.com/-NCIMRzG1ZodP9oIQfv8\",\n            \"lightning_invoice\": {\n                \"amount\": 100,\n                \"bolt11\": \"lnbc1u1p3j03scsp5a0327u3ncaja5ap3kxggqqwyk95n0crtwmd5uguvrtlqukgkvdhspp560ypjfcjcrcjs8a6w8s6truncnjcyqvkydmmk9wajakdf4s7n07sdq6v3jk6meqv3jhxcmjd9c8g6t0dcxqzjccqpjrzjqw87r0vkddwtq4zevdysccc74gvjfckycr4yulwtt4zc9g087tc62zmeycqqy4gqqqqqqqqqqqqqqqqqyg9qyysgqq0zz27mhzz87t00dqrq200n0fkfc7ejnct09zwq9znprv5gufj08q06473l4lq8zqgt4mf35j3dwarep2yqlhjxwjmlm0n0me0rnx4spc5ckhd\",\n                \"expires_at\": \"2022-09-19T01:40:00Z\",\n                \"settled_at\": \"2022-09-19T01:30:31.677886Z\"\n            },\n            \"amount\": 100,\n            \"description\": \"demo description\",\n            \"callback_url\": \"https://www.my-callback-url.com\",\n            \"success_url\": \"https://www.my-website.com\",\n            \"ttl\": 10,\n            \"order_id\": \"1337\",\n            \"customer_note\": \"demo customer note\",\n            \"customer_email\": \"demo_customer_email@email.com\"\n        },\n        {\n            \"id\": \"-NCHmuYvUgnnen82vUrd\",\n            \"amount_paid\": 100,\n            \"fee\": 1,\n            \"missing_amount\": 0,\n            \"created_at\": \"2022-09-18T22:50:22.380461Z\",\n            \"settled_at\": \"2022-09-18T22:52:39.845970Z\",\n            \"expires_at\": \"2022-09-19T22:50:22Z\",\n            \"status\": \"paid\",\n            \"hosted_checkout_url\": \"https://checkout.minatopay.com/-NCHmuYvUgnnen82vUrd\",\n            \"lightning_invoice\": {\n                \"amount\": 100,\n                \"bolt11\": \"lnbc1u1p3j0g9wsp5tuvvjxxr20ufn6sqaa9yyy8sra4rxac6kas0e9djy97q47p6wmnspp5w3m0q6mvdamt6ga0zhv9k8lyy7f30rqstca4vqemvdk6qaswutesdq6v3jk6meqv3jhxcmjd9c8g6t0dcxqyz5vqcqpjrzjq07wze2n0t4pyzllapg9sa45f4g3jd20sfdnatpjndmpl3trd0engzm6duqqdcqqqyqqqqlgqqqqhwqqrc9qyysgqmrmwtnfnyq0lgve5g0c0ash0pvqk9t26cjg9mnwppcsnast9hhf4v4sx3djc2tuw9dp560pr6fhc5n5rkpstt7jtxtfxpce30cx0czcqag2naw\",\n                \"expires_at\": \"2022-09-19T22:50:22Z\",\n                \"settled_at\": \"2022-09-18T22:52:39.845970Z\"\n            },\n            \"amount\": 100,\n            \"description\": \"demo description\",\n            \"callback_url\": \"https://www.my-callback-url.com\",\n            \"success_url\": \"https://www.my-website.com\",\n            \"ttl\": 1440,\n            \"order_id\": \"1337\",\n            \"customer_note\": \"demo customer note\",\n            \"customer_email\": \"demo_customer_email@email.com\"\n        }\n    ]\n}"}],"_postman_id":"7ea58455-44be-4d72-a93a-7e448f4a61cc"},{"name":"Decode Invoice","id":"04aa2765-f18e-4f47-8b30-a5fd1f74ef06","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"bolt11\": \"lnbc1u1p3j03scsp5a0327u3ncaja5ap3kxggqqwyk95n0crtwmd5uguvrtlqukgkvdhspp560ypjfcjcrcjs8a6w8s6truncnjcyqvkydmmk9wajakdf4s7n07sdq6v3jk6meqv3jhxcmjd9c8g6t0dcxqzjccqpjrzjqw87r0vkddwtq4zevdysccc74gvjfckycr4yulwtt4zc9g087tc62zmeycqqy4gqqqqqqqqqqqqqqqqqyg9qyysgqq0zz27mhzz87t00dqrq200n0fkfc7ejnct09zwq9znprv5gufj08q06473l4lq8zqgt4mf35j3dwarep2yqlhjxwjmlm0n0me0rnx4spc5ckhd\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.minatopay.com/v1/invoices/decode/","description":"<p>This endpoint decodes a bolt11 invoice string.</p>\n<h3 id=\"request-fields\">Request Fields</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>bolt11</td>\n<td>string</td>\n<td>the bolt11 string of a lightning invoice</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"response-fields\">Response Fields</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>currency</td>\n<td>string</td>\n<td>the BIP173 name for the currency. will always be \"bc\" (Bitcoin) for our purposes</td>\n</tr>\n<tr>\n<td>created_at</td>\n<td>int</td>\n<td>he UNIX-style timestamp of the invoice</td>\n</tr>\n<tr>\n<td>expiry</td>\n<td>int</td>\n<td>the number of seconds this is valid after timestamp</td>\n</tr>\n<tr>\n<td>msaotshi</td>\n<td>int</td>\n<td>amount of invoice in millisatoshis</td>\n</tr>\n<tr>\n<td>description</td>\n<td>string</td>\n<td>invoice description</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"value":"<value>","key":"<key>"},"isInherited":true,"source":{"_postman_id":"14c7081d-4676-403a-aa0b-2a5e8b667f43","id":"14c7081d-4676-403a-aa0b-2a5e8b667f43","name":"MinatoPay.com API Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","invoices","decode",""],"host":["api","minatopay","com"],"query":[],"variable":[]}},"response":[{"id":"e94af1b8-205d-440e-9d3e-457564cc8614","name":"Successful Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"bolt11\": \"lnbc1u1p3j03scsp5a0327u3ncaja5ap3kxggqqwyk95n0crtwmd5uguvrtlqukgkvdhspp560ypjfcjcrcjs8a6w8s6truncnjcyqvkydmmk9wajakdf4s7n07sdq6v3jk6meqv3jhxcmjd9c8g6t0dcxqzjccqpjrzjqw87r0vkddwtq4zevdysccc74gvjfckycr4yulwtt4zc9g087tc62zmeycqqy4gqqqqqqqqqqqqqqqqqyg9qyysgqq0zz27mhzz87t00dqrq200n0fkfc7ejnct09zwq9znprv5gufj08q06473l4lq8zqgt4mf35j3dwarep2yqlhjxwjmlm0n0me0rnx4spc5ckhd\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.minatopay.com/v1/invoices/decode/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Mon, 19 Sep 2022 01:34:22 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"117"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"POST, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"results\": {\n        \"currency\": \"bc\",\n        \"created_at\": 1663551000,\n        \"expiry\": 600,\n        \"msatoshi\": 100000,\n        \"description\": \"demo description\"\n    }\n}"}],"_postman_id":"04aa2765-f18e-4f47-8b30-a5fd1f74ef06"}],"id":"0484a256-4b36-40f1-a6f9-2005250fa0f0","description":"<p>A lightning network invoice is how you receive payments on the lightning network. This folder contains requests related to the creation and management of invoices.</p>\n","_postman_id":"0484a256-4b36-40f1-a6f9-2005250fa0f0","auth":{"type":"apikey","apikey":{"value":"<value>","key":"<key>"},"isInherited":true,"source":{"_postman_id":"14c7081d-4676-403a-aa0b-2a5e8b667f43","id":"14c7081d-4676-403a-aa0b-2a5e8b667f43","name":"MinatoPay.com API Documentation","type":"collection"}}},{"name":"Account","item":[{"name":"New Request","id":"fc631b6e-9ad9-408f-900f-97e8a39e1b52","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.minatopay.com/v1/account/balance/","description":"<p>This endpoint returns your balance in sats.</p>\n<h3 id=\"response-fields\">Response Fields</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>account_balance_sats</td>\n<td>int</td>\n<td>your balance in sats</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"value":"<value>","key":"<key>"},"isInherited":true,"source":{"_postman_id":"14c7081d-4676-403a-aa0b-2a5e8b667f43","id":"14c7081d-4676-403a-aa0b-2a5e8b667f43","name":"MinatoPay.com API Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","account","balance",""],"host":["api","minatopay","com"],"query":[],"variable":[]}},"response":[{"id":"de9be3fb-d708-4e16-b81e-633df350d9e7","name":"Successful Response","originalRequest":{"method":"GET","header":[],"url":"https://api.minatopay.com/v1/account/balance/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Mon, 19 Sep 2022 04:53:12 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"40"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains; preload"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"results\": {\n        \"account_balance_sats\": 297\n    }\n}"}],"_postman_id":"fc631b6e-9ad9-408f-900f-97e8a39e1b52"}],"id":"e3c6dd24-689d-4450-ba22-5e264491d6b1","description":"<p>Endpoints regarding your MinatoPay account, such as inspecting your balance.</p>\n","event":[{"listen":"prerequest","script":{"id":"c1da199d-968a-4cc2-a042-9303901b1a30","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"62487554-31b2-445d-96ea-efac56299eb0","type":"text/javascript","exec":[""]}}],"_postman_id":"e3c6dd24-689d-4450-ba22-5e264491d6b1","auth":{"type":"apikey","apikey":{"value":"<value>","key":"<key>"},"isInherited":true,"source":{"_postman_id":"14c7081d-4676-403a-aa0b-2a5e8b667f43","id":"14c7081d-4676-403a-aa0b-2a5e8b667f43","name":"MinatoPay.com API Documentation","type":"collection"}}},{"name":"Withdrawals","item":[{"name":"Create Withdrawal","id":"9805e4b5-8e53-491e-a491-789fc185473b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"amount\": 56,\n    \"callback_url\": \"https://webhook.site/51407155-3f1e-4203-a6df-a67a515e4928\",\n    \"bolt11\": \"lnbc1p3jjfrdpp5q63rm85mwqwvf3g6gma8sz382073ytu6nxerckgnud9fpe03vwssdqu2askcmr9wssx7e3q2dshgmmndp5scqzpgxqyz5vqsp5yjpexs6c0whw0y843kku6xdhkjk9nrqddzuvlvsj66w5cz0nwm9s9qyyssq29h9csckdxnw6huqnn09pxsh26yqpyv5jupmqshh8y2qzj687rezm0jhu4cgjqw9xf5zmzc4en8nsd7kf6yhtt7ueuelzu0487298xcqvenycc\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.minatopay.com/v1/withdrawals/","description":"<p>This endpoint is used to withdraw funds from your MinatoPay account to your lightning wallet / node of choice.</p>\n<h3 id=\"request-fields\">Request Fields</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>amount</td>\n<td>int</td>\n<td>amount of sats to withdraw</td>\n</tr>\n<tr>\n<td>bolt11</td>\n<td>string</td>\n<td>bolt11 string for the lightning invoice that you would like to be paid</td>\n</tr>\n<tr>\n<td>callback_url</td>\n<td>URL string with 500 max characters</td>\n<td>URL to receive webhooks</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"response-fields\">Response Fields</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>withdrawal id (auto generated)</td>\n</tr>\n<tr>\n<td>amount</td>\n<td>int</td>\n<td>amount of sats to withdraw</td>\n</tr>\n<tr>\n<td>bolt11</td>\n<td>string</td>\n<td>bolt11 string for the lightning invoice that you would like to be paid</td>\n</tr>\n<tr>\n<td>callback_url</td>\n<td>URL string with 500 max characters</td>\n<td>URL to receive webhooks</td>\n</tr>\n<tr>\n<td>updated_at</td>\n<td>datetime</td>\n<td>datetime when the withdrawal status was last updated</td>\n</tr>\n<tr>\n<td>withdrawal_status</td>\n<td>one of ['pending', 'complete', 'expired', 'failed']</td>\n<td>status of the withdrawal</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"webook-fields\">Webook Fields</h3>\n<p>The Webhook Fields are the same as the Respone Fields above with one additional field: <code>hashed_order</code>. See the Webhook section above for an example on how to use this field for validating that the webhook was signed by MinatoPay.</p>\n","auth":{"type":"apikey","apikey":{"value":"<value>","key":"<key>"},"isInherited":true,"source":{"_postman_id":"14c7081d-4676-403a-aa0b-2a5e8b667f43","id":"14c7081d-4676-403a-aa0b-2a5e8b667f43","name":"MinatoPay.com API Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","withdrawals",""],"host":["api","minatopay","com"],"query":[],"variable":[]}},"response":[{"id":"d3c5e8d8-8e28-4886-afe7-9e2d9049dc04","name":"Successful Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"amount\": 100,\n    \"callback_url\": \"https://webhook.site/51407155-3f1e-4203-a6df-a67a515e4928\",\n    \"bolt11\": \"lnbc1p3jjzn4pp5k50g5ykph0nzheyvh2yyvuyymfmjpj77wqnu4utgxucvdfu4qrasdqu2askcmr9wssx7e3q2dshgmmndp5scqzpgxqyz5vqsp5ql95c7yx9vs3n6439v8szs3pzuh76qs92wjuej72qmn73avqzxls9qyyssq5et0ahzxyukh8tyh8hapcy94y056dsapytt6ewqw3g4ksrenarlp0qrrw64araan0gq07fmhxk0wxtttmjz9jaegwxtlrevqd3kahjcq6u77ac\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.minatopay.com/v1/withdrawals/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Tue, 20 Sep 2022 00:34:12 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"496"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains; preload"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"results\": {\n        \"id\": \"-NCNJGDXsBCkD00ZvoTc\",\n        \"amount\": 100,\n        \"bolt11\": \"lnbc1p3jjzn4pp5k50g5ykph0nzheyvh2yyvuyymfmjpj77wqnu4utgxucvdfu4qrasdqu2askcmr9wssx7e3q2dshgmmndp5scqzpgxqyz5vqsp5ql95c7yx9vs3n6439v8szs3pzuh76qs92wjuej72qmn73avqzxls9qyyssq5et0ahzxyukh8tyh8hapcy94y056dsapytt6ewqw3g4ksrenarlp0qrrw64araan0gq07fmhxk0wxtttmjz9jaegwxtlrevqd3kahjcq6u77ac\",\n        \"updated_at\": \"2022-09-20T00:34:12.005297Z\",\n        \"callback_url\": \"https://webhook.site/51407155-3f1e-4203-a6df-a67a515e4928\",\n        \"withdrawal_status\": \"pending\"\n    }\n}"}],"_postman_id":"9805e4b5-8e53-491e-a491-789fc185473b"},{"name":"Withdrawal Info","id":"33b6bfbe-544d-4644-8bcf-20d5260ddf92","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.minatopay.com/v1/withdrawals/-NBsjcNi3YcACdiKG4nJ/","description":"<p>This endpoint is used to inspect a specific withdrawal based on it's id.</p>\n<p>The above endpoint is an example. The general form of this endpoint is <code>https://api.minatopay.com/v1/withdrawals/{invoice_id}/</code></p>\n<p>The response fields are the same as the response fields from the <code>POST</code> request above.</p>\n","auth":{"type":"apikey","apikey":{"value":"<value>","key":"<key>"},"isInherited":true,"source":{"_postman_id":"14c7081d-4676-403a-aa0b-2a5e8b667f43","id":"14c7081d-4676-403a-aa0b-2a5e8b667f43","name":"MinatoPay.com API Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","withdrawals","-NBsjcNi3YcACdiKG4nJ",""],"host":["api","minatopay","com"],"query":[],"variable":[]}},"response":[{"id":"fbba30a8-4c2d-4e62-acfe-aa33aefd7880","name":"Successful Response","originalRequest":{"method":"GET","header":[],"url":"https://api.minatopay.com/v1/withdrawals/-NCNJGDXsBCkD00ZvoTc/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Tue, 20 Sep 2022 00:43:00 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"497"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains; preload"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"results\": {\n        \"id\": \"-NCNJGDXsBCkD00ZvoTc\",\n        \"withdrawal_status\": \"complete\",\n        \"updated_at\": \"2022-09-20T00:34:12.988352Z\",\n        \"amount\": 100,\n        \"bolt11\": \"lnbc1p3jjzn4pp5k50g5ykph0nzheyvh2yyvuyymfmjpj77wqnu4utgxucvdfu4qrasdqu2askcmr9wssx7e3q2dshgmmndp5scqzpgxqyz5vqsp5ql95c7yx9vs3n6439v8szs3pzuh76qs92wjuej72qmn73avqzxls9qyyssq5et0ahzxyukh8tyh8hapcy94y056dsapytt6ewqw3g4ksrenarlp0qrrw64araan0gq07fmhxk0wxtttmjz9jaegwxtlrevqd3kahjcq6u77ac\",\n        \"callback_url\": \"https://webhook.site/51407155-3f1e-4203-a6df-a67a515e4928\"\n    }\n}"}],"_postman_id":"33b6bfbe-544d-4644-8bcf-20d5260ddf92"},{"name":"List Withdrawals","id":"be629322-b2e0-4ab4-87a6-83a20dc2b648","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.minatopay.com/v1/withdrawals/","description":"<p>This endpoint provides a paginated list of withdrawals.</p>\n<h3 id=\"response-fields\">Response Fields</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>count</td>\n<td>int</td>\n<td>number of pages</td>\n</tr>\n<tr>\n<td>next</td>\n<td>URL string</td>\n<td>api endpoint that provides the next page of results. It is of the form \"<a href=\"https://api.minatopay.com/v1/withdrawals/?page=%7Bpage_number%7D\">https://api.minatopay.com/v1/withdrawals/?page={page_number}</a>\"</td>\n</tr>\n<tr>\n<td>previous</td>\n<td>URL string</td>\n<td>api endpoint that provides the previous page of results. It is of the form \"<a href=\"https://api.minatopay.com/v1/withdrawals/?page=%7Bpage_number%7D\">https://api.minatopay.com/v1/withdrawals/?page={page_number}</a>\"</td>\n</tr>\n<tr>\n<td>results</td>\n<td>list of withdrawal objects</td>\n<td>see GET endpoint above for the fields returned by a single withdrawal object.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"apikey","apikey":{"value":"<value>","key":"<key>"},"isInherited":true,"source":{"_postman_id":"14c7081d-4676-403a-aa0b-2a5e8b667f43","id":"14c7081d-4676-403a-aa0b-2a5e8b667f43","name":"MinatoPay.com API Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","withdrawals",""],"host":["api","minatopay","com"],"query":[],"variable":[]}},"response":[{"id":"dd91a2e6-51c7-4ff4-b22a-1943e2cb8dcd","name":"Successful Response","originalRequest":{"method":"GET","header":[],"url":"https://api.minatopay.com/v1/withdrawals/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Tue, 20 Sep 2022 00:43:19 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"6224"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains; preload"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 15,\n    \"next\": \"https://api.minatopay.com/v1/withdrawals/?page=2\",\n    \"previous\": null,\n    \"results\": [\n        {\n            \"id\": \"-NCMjH1hdbjEQFmOFV31\",\n            \"withdrawal_status\": \"pending\",\n            \"updated_at\": \"2022-09-19T21:52:36.364670Z\",\n            \"amount\": 50,\n            \"bolt11\": \"lnbc1p3j3cjfpp55k5ewacw0lnc2gcu7haevsfly4w9txsvn660f4zlva908y37dsgqdqqcqzzgxqyz5vqrzjqwnvuc0u4txn35cafc7w94gxvq5p3cu9dd95f7hlrh0fvs46wpvhd39rjcm8q6upcvqqqqryqqqqthqqpyrzjqw8c7yfutqqy3kz8662fxutjvef7q2ujsxtt45csu0k688lkzu3ld39rjcm8q6upcvqqqqryqqqqthqqpysp5f0wqp334qljz3upekp4tzsmg6agufuh402ph029jlr7jcpkmrnfq9qypqsqw3q0zl673v5lmtpeftepf6v59nttdhun2xerdhua2pnuj9ksyrc5trzfwds6wc2y4ay7e57s90q3rh2ra0wu06hw8ep5t4xxgr4tr4gp7h8hdg\",\n            \"callback_url\": \"https://webhook.site/51407155-3f1e-4203-a6df-a67a515e4928\"\n        },\n        {\n            \"id\": \"-NCMjSPbaRrcunZzw2Bq\",\n            \"withdrawal_status\": \"pending\",\n            \"updated_at\": \"2022-09-19T21:53:22.701668Z\",\n            \"amount\": 50,\n            \"bolt11\": \"lnbc1p3j3cjfpp55k5ewacw0lnc2gcu7haevsfly4w9txsvn660f4zlva908y37dsgqdqqcqzzgxqyz5vqrzjqwnvuc0u4txn35cafc7w94gxvq5p3cu9dd95f7hlrh0fvs46wpvhd39rjcm8q6upcvqqqqryqqqqthqqpyrzjqw8c7yfutqqy3kz8662fxutjvef7q2ujsxtt45csu0k688lkzu3ld39rjcm8q6upcvqqqqryqqqqthqqpysp5f0wqp334qljz3upekp4tzsmg6agufuh402ph029jlr7jcpkmrnfq9qypqsqw3q0zl673v5lmtpeftepf6v59nttdhun2xerdhua2pnuj9ksyrc5trzfwds6wc2y4ay7e57s90q3rh2ra0wu06hw8ep5t4xxgr4tr4gp7h8hdg\",\n            \"callback_url\": \"https://webhook.site/51407155-3f1e-4203-a6df-a67a515e4928\"\n        },\n        {\n            \"id\": \"-NCMjUV8aV5eSQFiC8Bh\",\n            \"withdrawal_status\": \"pending\",\n            \"updated_at\": \"2022-09-19T21:53:31.228067Z\",\n            \"amount\": 50,\n            \"bolt11\": \"lnbc1p3j3cjfpp55k5ewacw0lnc2gcu7haevsfly4w9txsvn660f4zlva908y37dsgqdqqcqzzgxqyz5vqrzjqwnvuc0u4txn35cafc7w94gxvq5p3cu9dd95f7hlrh0fvs46wpvhd39rjcm8q6upcvqqqqryqqqqthqqpyrzjqw8c7yfutqqy3kz8662fxutjvef7q2ujsxtt45csu0k688lkzu3ld39rjcm8q6upcvqqqqryqqqqthqqpysp5f0wqp334qljz3upekp4tzsmg6agufuh402ph029jlr7jcpkmrnfq9qypqsqw3q0zl673v5lmtpeftepf6v59nttdhun2xerdhua2pnuj9ksyrc5trzfwds6wc2y4ay7e57s90q3rh2ra0wu06hw8ep5t4xxgr4tr4gp7h8hdg\",\n            \"callback_url\": \"https://webhook.site/51407155-3f1e-4203-a6df-a67a515e4928\"\n        },\n        {\n            \"id\": \"-NCMj_H8Uh3pIu8kt58T\",\n            \"withdrawal_status\": \"pending\",\n            \"updated_at\": \"2022-09-19T21:53:54.923234Z\",\n            \"amount\": 100,\n            \"bolt11\": \"lnbc1p3j3cjfpp55k5ewacw0lnc2gcu7haevsfly4w9txsvn660f4zlva908y37dsgqdqqcqzzgxqyz5vqrzjqwnvuc0u4txn35cafc7w94gxvq5p3cu9dd95f7hlrh0fvs46wpvhd39rjcm8q6upcvqqqqryqqqqthqqpyrzjqw8c7yfutqqy3kz8662fxutjvef7q2ujsxtt45csu0k688lkzu3ld39rjcm8q6upcvqqqqryqqqqthqqpysp5f0wqp334qljz3upekp4tzsmg6agufuh402ph029jlr7jcpkmrnfq9qypqsqw3q0zl673v5lmtpeftepf6v59nttdhun2xerdhua2pnuj9ksyrc5trzfwds6wc2y4ay7e57s90q3rh2ra0wu06hw8ep5t4xxgr4tr4gp7h8hdg\",\n            \"callback_url\": \"https://webhook.site/51407155-3f1e-4203-a6df-a67a515e4928\"\n        },\n        {\n            \"id\": \"-NCMjaMWdn6GyCymlAEk\",\n            \"withdrawal_status\": \"pending\",\n            \"updated_at\": \"2022-09-19T21:53:59.342206Z\",\n            \"amount\": 200,\n            \"bolt11\": \"lnbc1p3j3cjfpp55k5ewacw0lnc2gcu7haevsfly4w9txsvn660f4zlva908y37dsgqdqqcqzzgxqyz5vqrzjqwnvuc0u4txn35cafc7w94gxvq5p3cu9dd95f7hlrh0fvs46wpvhd39rjcm8q6upcvqqqqryqqqqthqqpyrzjqw8c7yfutqqy3kz8662fxutjvef7q2ujsxtt45csu0k688lkzu3ld39rjcm8q6upcvqqqqryqqqqthqqpysp5f0wqp334qljz3upekp4tzsmg6agufuh402ph029jlr7jcpkmrnfq9qypqsqw3q0zl673v5lmtpeftepf6v59nttdhun2xerdhua2pnuj9ksyrc5trzfwds6wc2y4ay7e57s90q3rh2ra0wu06hw8ep5t4xxgr4tr4gp7h8hdg\",\n            \"callback_url\": \"https://webhook.site/51407155-3f1e-4203-a6df-a67a515e4928\"\n        },\n        {\n            \"id\": \"-NCMjmzk6-zrbr-f_M10\",\n            \"withdrawal_status\": \"pending\",\n            \"updated_at\": \"2022-09-19T21:54:51.076170Z\",\n            \"amount\": 200,\n            \"bolt11\": \"lnbc1p3j3cjfpp55k5ewacw0lnc2gcu7haevsfly4w9txsvn660f4zlva908y37dsgqdqqcqzzgxqyz5vqrzjqwnvuc0u4txn35cafc7w94gxvq5p3cu9dd95f7hlrh0fvs46wpvhd39rjcm8q6upcvqqqqryqqqqthqqpyrzjqw8c7yfutqqy3kz8662fxutjvef7q2ujsxtt45csu0k688lkzu3ld39rjcm8q6upcvqqqqryqqqqthqqpysp5f0wqp334qljz3upekp4tzsmg6agufuh402ph029jlr7jcpkmrnfq9qypqsqw3q0zl673v5lmtpeftepf6v59nttdhun2xerdhua2pnuj9ksyrc5trzfwds6wc2y4ay7e57s90q3rh2ra0wu06hw8ep5t4xxgr4tr4gp7h8hdg\",\n            \"callback_url\": \"https://webhook.site/51407155-3f1e-4203-a6df-a67a515e4928\"\n        },\n        {\n            \"id\": \"-NCMrTtJBXHsGPcZHAkX\",\n            \"withdrawal_status\": \"pending\",\n            \"updated_at\": \"2022-09-19T22:28:26.204913Z\",\n            \"amount\": 200,\n            \"bolt11\": \"lnbc1p3j3cjfpp55k5ewacw0lnc2gcu7haevsfly4w9txsvn660f4zlva908y37dsgqdqqcqzzgxqyz5vqrzjqwnvuc0u4txn35cafc7w94gxvq5p3cu9dd95f7hlrh0fvs46wpvhd39rjcm8q6upcvqqqqryqqqqthqqpyrzjqw8c7yfutqqy3kz8662fxutjvef7q2ujsxtt45csu0k688lkzu3ld39rjcm8q6upcvqqqqryqqqqthqqpysp5f0wqp334qljz3upekp4tzsmg6agufuh402ph029jlr7jcpkmrnfq9qypqsqw3q0zl673v5lmtpeftepf6v59nttdhun2xerdhua2pnuj9ksyrc5trzfwds6wc2y4ay7e57s90q3rh2ra0wu06hw8ep5t4xxgr4tr4gp7h8hdg\",\n            \"callback_url\": \"https://webhook.site/51407155-3f1e-4203-a6df-a67a515e4928\"\n        },\n        {\n            \"id\": \"-NCMsCeoDGAiYuSlv7Cv\",\n            \"withdrawal_status\": \"pending\",\n            \"updated_at\": \"2022-09-19T22:31:37.512745Z\",\n            \"amount\": 200,\n            \"bolt11\": \"lnbc1p3j3cjfpp55k5ewacw0lnc2gcu7haevsfly4w9txsvn660f4zlva908y37dsgqdqqcqzzgxqyz5vqrzjqwnvuc0u4txn35cafc7w94gxvq5p3cu9dd95f7hlrh0fvs46wpvhd39rjcm8q6upcvqqqqryqqqqthqqpyrzjqw8c7yfutqqy3kz8662fxutjvef7q2ujsxtt45csu0k688lkzu3ld39rjcm8q6upcvqqqqryqqqqthqqpysp5f0wqp334qljz3upekp4tzsmg6agufuh402ph029jlr7jcpkmrnfq9qypqsqw3q0zl673v5lmtpeftepf6v59nttdhun2xerdhua2pnuj9ksyrc5trzfwds6wc2y4ay7e57s90q3rh2ra0wu06hw8ep5t4xxgr4tr4gp7h8hdg\",\n            \"callback_url\": \"https://webhook.site/51407155-3f1e-4203-a6df-a67a515e4928\"\n        },\n        {\n            \"id\": \"-NCMsFpyffOTs3qYSGvg\",\n            \"withdrawal_status\": \"pending\",\n            \"updated_at\": \"2022-09-19T22:31:50.510813Z\",\n            \"amount\": 8000,\n            \"bolt11\": \"lnbc1p3j3cjfpp55k5ewacw0lnc2gcu7haevsfly4w9txsvn660f4zlva908y37dsgqdqqcqzzgxqyz5vqrzjqwnvuc0u4txn35cafc7w94gxvq5p3cu9dd95f7hlrh0fvs46wpvhd39rjcm8q6upcvqqqqryqqqqthqqpyrzjqw8c7yfutqqy3kz8662fxutjvef7q2ujsxtt45csu0k688lkzu3ld39rjcm8q6upcvqqqqryqqqqthqqpysp5f0wqp334qljz3upekp4tzsmg6agufuh402ph029jlr7jcpkmrnfq9qypqsqw3q0zl673v5lmtpeftepf6v59nttdhun2xerdhua2pnuj9ksyrc5trzfwds6wc2y4ay7e57s90q3rh2ra0wu06hw8ep5t4xxgr4tr4gp7h8hdg\",\n            \"callback_url\": \"https://webhook.site/51407155-3f1e-4203-a6df-a67a515e4928\"\n        },\n        {\n            \"id\": \"-NCMtUts7gMuyEMJZtWq\",\n            \"withdrawal_status\": \"pending\",\n            \"updated_at\": \"2022-09-19T22:37:14.305456Z\",\n            \"amount\": 100,\n            \"bolt11\": \"lnbc1p3j3mhtpp5k2z23hr3l35z3nt6g8g35kwann2w3wka5f3zxcxdh5xenvunzq7qdqu2askcmr9wssx7e3q2dshgmmndp5scqzpgxqyz5vqsp583jjedden3kpzkvylx4jegq2gkjynn2ahnj4yayvt50vma6zmxyq9qyyssqh0j3wv90xxv3kuc3pne7tglmhgkag488nlud7ghfq7llrawuagrz6x9vd8xav6t76v74nwtc7wejex9da502t70nxp3320lpmjgwt5qqd9u9w0\",\n            \"callback_url\": \"https://webhook.site/51407155-3f1e-4203-a6df-a67a515e4928\"\n        }\n    ]\n}"}],"_postman_id":"be629322-b2e0-4ab4-87a6-83a20dc2b648"}],"id":"f60ab175-07b7-4dce-9800-b61e909d6466","description":"<p>The withdrawal endpoints allow you to move your funds from your MinatoPay account to your lightning wallet / lightning node.</p>\n","_postman_id":"f60ab175-07b7-4dce-9800-b61e909d6466","auth":{"type":"apikey","apikey":{"value":"<value>","key":"<key>"},"isInherited":true,"source":{"_postman_id":"14c7081d-4676-403a-aa0b-2a5e8b667f43","id":"14c7081d-4676-403a-aa0b-2a5e8b667f43","name":"MinatoPay.com API Documentation","type":"collection"}}}],"auth":{"type":"apikey","apikey":{"value":"<value>","key":"<key>"}},"event":[{"listen":"prerequest","script":{"id":"813062a1-2b5a-463b-9730-293d272326e8","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"4cdb0bf0-234e-4c78-894a-6f5843afc56c","type":"text/javascript","exec":[""]}}]}