{"info":{"_postman_id":"ac8fa180-087c-4000-9c37-5f7a7fa930bb","name":"Desend API","description":"<html><head></head><body><blockquote>\n<p><strong>Desend API</strong> allows to use all features of <strong>Desend</strong></p>\n</blockquote>\n<blockquote>\n<p><strong>Key Pairs:</strong></p>\n</blockquote>\n<p><strong>ApiPublic -</strong> it is Base API Key</p>\n<p><strong>ApiPrivate</strong> - it is Private Key <em><strong>(do not share with any body)</strong></em></p>\n<blockquote>\n<p><strong>Authorization:</strong></p>\n</blockquote>\n<p><strong>ApiPublic</strong> header</p>\n<p><strong>Signature</strong> header - generates by signing your body(POST), ApiPublic(GET) by <strong>ApiPrivate</strong></p>\n<p>Here is a few examples of <strong>Signature</strong> generation Go/Python</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-go\">//POST query\nmac := hmac.New(sha512.New, []byte(secret))\nmac.Write([]byte(body))\nreturn hex.EncodeToString(mac.Sum(nil))\n\n//GET query\nmac := hmac.New(sha512.New, []byte(secret))\nmac.Write([]byte(public))\nreturn hex.EncodeToString(mac.Sum(nil))\n\n</code></pre>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-python\">return {\n    \"Content-Type\": \"application/json\",\n    \"ApiPublic\": self.api_key,\n    \"Signature\": hmac.new(\n        self.api_private.encode(\"utf-8\"),\n        \"{}\".format(string_body).encode(\"utf-8\"),\n        hashlib.sha512,\n    ).hexdigest(),\n}\n\n\n\nreturn {\n    \"Content-Type\": \"application/json\",\n    \"ApiPublic\": self.api_key,\n    \"Signature\": hmac.new(\n        self.api_private.encode(\"utf-8\"),\n        \"{}\".format(self.api_key).encode(\"utf-8\"),\n        hashlib.sha512,\n    ).hexdigest(),\n}\n\n</code></pre>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"23240955","collectionId":"ac8fa180-087c-4000-9c37-5f7a7fa930bb","publishedId":"VVBashoA","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-09-09T12:28:01.000Z"},"item":[{"name":"Balance","id":"c9abc202-bd00-4a70-b49c-5fd40e538f4b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"ApiPublic","value":"ApiPublic","type":"text"},{"key":"Signature","value":"Signature","type":"text"}],"url":"https://desend.ru/api/balance","urlObject":{"path":["balance"],"host":["https://desend.ru/api"],"query":[],"variable":[]}},"response":[{"id":"d86327a0-1b23-404a-bedc-0ff00e3ccf97","name":"Balance example","originalRequest":{"method":"GET","header":[{"key":"ApiPublic","value":"ApiPublic","type":"text"},{"key":"Signature","value":"Signature","type":"text"}],"url":"https://desend.ru/api/balance"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Thu, 08 Sep 2022 14:20:44 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"59"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": [\n        {\n            \"currency\": \"USDT\",\n            \"amount\": 56.13100592263254\n        }\n    ]\n}"}],"_postman_id":"c9abc202-bd00-4a70-b49c-5fd40e538f4b"},{"name":"Create Refer","id":"5642b79b-c842-476a-9bfb-ec346b33f664","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"ApiPublic","value":"Public","type":"text"},{"key":"Signature","value":"Signature","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"amount\": 3001,\n    \"callback_url\": \"http://localhost:1234\",\n    \"type\": \"MARKET\",\n    \"currency\": \"SBERRUB\",\n    \"tail\": \"1234\",\n    \"client_tx_id\": \"<your internal id>\",\n    \"form_redirect_url\": \"https://example.com\"\n}","options":{"raw":{"language":"json"}}},"url":"https://desend.ru/api/create_refer","description":"<p>Creates fiat invoice.</p>\n<ul>\n<li>Right now, only MARKET type is supported.</li>\n<li>You will receive <strong>GET</strong> request on <em>callback_url</em> when status is changed.</li>\n<li>Tail is the last 4 digits of card, that user provided. Used for transaction recognition.</li>\n<li>There is optional field <code>client_tx_id</code> which will be returned in the <strong>Get transaction status</strong> response</li>\n<li>There is optional field <code>form_redirect_url</code>. You can configure where your client will be redirected after p2p payment form (<code>form_link</code> in the response)</li>\n</ul>\n<p>The flow of working:</p>\n<ol>\n<li>Merchant creates refer to invoice fiat amount to his desend balance</li>\n<li>Desend returns card number</li>\n<li>Client of merchant invoice refer's amount to the card from <em>item 2</em></li>\n<li>System fixes transaction and increases the merchant balance</li>\n</ol>\n<p>The currencies that we are supporting:</p>\n<p>+-------+----------------------------+<br />| name | description |<br />+-------+----------------------------+<br />|SBERRUB|Сбербанк RUB |<br />|TCSBRUB|Tinkoff RUB |<br />|RFBRUB |Райффайзен RUB |<br />|CARDRUB|Visa/Mastercard RUB |<br />|MIRCRUB|MIR RUB |<br />|OPNBRUB|Openbank RUB |<br />|ACRUB |Alfa-Bank RUB |<br />|TBRUB |VTB Rub |<br />|MKBRUB |МКБ RUB |<br />|SOVKRUB|Совкомбанк RUB |<br />|SBPRUB |Система Быстрых Платежей RUB|<br />+-------+----------------------------+</p>\n","urlObject":{"path":["create_refer"],"host":["https://desend.ru/api"],"query":[],"variable":[]}},"response":[{"id":"029cd381-4c9e-4251-b04b-4870041d225c","name":"Success","originalRequest":{"method":"POST","header":[{"key":"ApiPublic","value":"Public","type":"text"},{"key":"Signature","value":"Signature","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"amount\": 3001,\n    \"callback_url\": \"http://localhost:1234\",\n    \"type\": \"MARKET\",\n    \"currency\": \"SBERRUB\",\n    \"tail\": \"1234\"\n}","options":{"raw":{"language":"json"}}},"url":"https://desend.ru/api/create_refer"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Fri, 09 Sep 2022 10:19:02 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"436"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"result\": {\n        \"currency\": \"SBERRUB\",\n        \"address\": \"************0673\", // displayed full\n        \"amount\": 3001,\n        \"internal_id\": \"8b8f7187984d4bc07e620453f60847e7d75607021c8ccf93c645445a1bd162268e472d704dbd1c5d1c12cbde789229660e92dec1cb23203829ae78e48acd71e5\",\n        \"form_link\": \"https://desend.ru/?id=8b8f7187984d4bc07e620453f60847e7d75607021c8ccf93c645445a1bd162268e472d704dbd1c5d1c12cbde789229660e92dec1cb23203829ae78e48acd71e5\",\n        \"expire_at\": \"0001-01-01T00:00:00Z\"\n    }\n}"},{"id":"83b6ae9a-387e-4d09-a067-a985019271f8","name":"Unauthorized","originalRequest":{"method":"POST","header":[{"key":"ApiPublic","value":"Public","type":"text"},{"key":"Signature","value":"Signature","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"amount\": 3001,\n    \"callback_url\": \"http://localhost:1234\",\n    \"type\": \"MARKET\",\n    \"currency\": \"SBERRUB\",\n    \"tail\": \"1234\"\n}","options":{"raw":{"language":"json"}}},"url":"https://desend.ru/api/create_refer"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"plain","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Fri, 09 Sep 2022 10:17:10 GMT"},{"key":"Content-Type","value":"text/plain; charset=utf-8"},{"key":"Content-Length","value":"12"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"Unauthorized"},{"id":"9203732e-62b0-47d0-87d3-5cc026a5a29f","name":"Unsupported amount","originalRequest":{"method":"POST","header":[{"key":"ApiPublic","value":"Public","type":"text"},{"key":"Signature","value":"Signature","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"amount\": 2900,\n    \"callback_url\": \"http://localhost:1234\",\n    \"type\": \"MARKET\",\n    \"currency\": \"SBERRUB\",\n    \"tail\": \"1234\"\n}","options":{"raw":{"language":"json"}}},"url":"https://desend.ru/api/create_refer"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Fri, 09 Sep 2022 10:18:30 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"78"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"error\": \"Cannot provide refer for this amount\",\n    \"result\": null\n}"}],"_postman_id":"5642b79b-c842-476a-9bfb-ec346b33f664"},{"name":"Withdraw","id":"480f3504-f55b-4105-bc71-383e8b611367","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"ApiPublic","value":"Public","type":"text"},{"key":"Signature","value":"Signature","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"amount\": 5000.5,\n    \"callback_url\": \"http://localhost:1234\",\n    \"type\": \"MARKET\",\n    \"currency\": \"SBERRUB\",\n    \"address\": \"1234 5678 9101 1121\"\n}","options":{"raw":{"language":"json"}}},"url":"https://desend.ru/api/withdraw","urlObject":{"path":["withdraw"],"host":["https://desend.ru/api"],"query":[],"variable":[]}},"response":[{"id":"d1815f9a-922f-4178-8146-4160c4601bba","name":"Success","originalRequest":{"method":"POST","header":[{"key":"ApiPublic","value":"Public","type":"text"},{"key":"Signature","value":"Signature","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"amount\": 5000.5,\n    \"callback_url\": \"http://localhost:1234\",\n    \"type\": \"MARKET\",\n    \"currency\": \"SBERRUB\",\n    \"address\": \"1234 5678 9101 1121\"\n}","options":{"raw":{"language":"json"}}},"url":"https://desend.ru/api/withdraw"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"internal_id\": \"ac856015d082211a455a3b17b1203ca30848ac3408032ad643a9dbc51dc9608e9b9e8e4b8cff40319f7026d0947898ff514a70ae8f6e56480ba1cde0484ed015\"\n}"}],"_postman_id":"480f3504-f55b-4105-bc71-383e8b611367"},{"name":"Get transaction status","id":"18f92164-7f09-4099-b42d-e90549ac2a5d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://desend.ru/api/transaction/:internalId","description":"<p>Return info about transaction <strong>internalId</strong></p>\n<p>Statuses:<br />1 - FAILED<br />2 - PENDING<br />3 - DONE<br />4 - CONFIRMED<br />5 - CANCELLED</p>\n","urlObject":{"path":["transaction",":internalId"],"host":["https://desend.ru/api"],"query":[],"variable":[{"type":"any","value":null,"key":"internalId"}]}},"response":[{"id":"33879a58-f67c-422c-af78-94394deb2544","name":"Get transaction status","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://desend.ru/api/transaction/:internalId","host":["https://desend.ru/api"],"path":["transaction",":internalId"],"variable":[{"key":"internalId","value":null}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Fri, 09 Sep 2022 11:32:25 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"813"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"type\": \"IN\",\n    \"stock_type\": \"MARKET\",\n    \"fiat_amount\": 5000,\n    \"crypto_amount\": 77.76049766718508,\n    \"commission\": 0.10567336122507243,\n    \"status_id\": 3,\n    \"internal_id\": \"ba857f2e9a7e41f701161c66ffe5f8f56d69df3f63b65e8ebaecdefa23807c462734b96bcad67442bf9a04c12dfab150fc8a8e478e8e60266b76543b7121e5fd\",\n    \"create_time\": \"2022-08-30T16:10:51.585896Z\",\n    \"done_time\": \"2022-08-30T16:29:32.970847Z\",\n    \"course\": 64.3,\n    \"callback_url\": \"http://188.34.183.152:8000\",\n    \"currency\": \"SBERRUB\",\n    \"address\": \"4444222233334444\",\n    \"client_tx_id\": \"<passed internal id>\"\n}"}],"_postman_id":"18f92164-7f09-4099-b42d-e90549ac2a5d"},{"name":"Course","id":"15bd967a-b858-4d38-8a6b-8f23883d2ab9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"ApiPublic","value":"ApiPublic","type":"text"},{"key":"Signature","value":"Signature","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"left\": \"USDTTRC\",\n    \"right\": \"SBERRUB\"\n}","options":{"raw":{"language":"json"}}},"url":"https://desend.ru/api/fetch_course","urlObject":{"path":["fetch_course"],"host":["https://desend.ru/api"],"query":[],"variable":[]}},"response":[{"id":"cba1f761-ad16-4c45-818a-3b387afc1bd1","name":"Course","originalRequest":{"method":"POST","header":[{"key":"ApiPublic","value":"ApiPublic","type":"text"},{"key":"Signature","value":"Signature","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"left\": \"USDTTRC\",\n    \"right\": \"SBERRUB\"\n}","options":{"raw":{"language":"json"}}},"url":"https://desend.ru/api/fetch_course"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.18.0 (Ubuntu)"},{"key":"Date","value":"Fri, 09 Sep 2022 11:44:00 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"52"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"left\": \"USDTTRC\",\n    \"right\": \"SBERRUB\",\n    \"price\": 64.1985\n}"}],"_postman_id":"15bd967a-b858-4d38-8a6b-8f23883d2ab9"},{"name":"Create Invoice","id":"0340cecc-b22d-4d4d-a762-59691b49fdaf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"ApiPublic","value":"Public","type":"text"},{"key":"Signature","value":"Signature","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"callback_url\": \"http://localhost:1234\",\n    \"currency\": \"USDTTRC\"\n}","options":{"raw":{"language":"json"}}},"url":"https://desend.ru/api/create_invoice","urlObject":{"path":["create_invoice"],"host":["https://desend.ru/api"],"query":[],"variable":[]}},"response":[{"id":"b1cf8156-67a4-406a-a66e-e5b280f30102","name":"Create Invoice","originalRequest":{"method":"GET","header":[{"key":"ApiPublic","name":"Content-Type","value":"Public","type":"text"},{"key":"Signature","value":"Signature","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"callback_url\": \"http://localhost:1234\",\n    \"currency\": \"USDTTRC\"\n}","options":{"raw":{"language":"json"}}}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"result\": {\n        \"internal_id\": \"<internal id of transaction>\",\n        \"currency\": \"USDTTRC\",\n        \"amount\": 1234.56,\n        \"address\": \"<TRC address>\"\n    }\n}"}],"_postman_id":"0340cecc-b22d-4d4d-a762-59691b49fdaf"},{"name":"Withdraw crypto","id":"cd0630da-5efe-4c7e-a7eb-ae3395ef804c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"ApiPublic","value":"Public","type":"text"},{"key":"Signature","value":"Signature","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"amount\": 123.45,\n    \"currency\": \"USDTTRC\",\n    \"address\": \"<tether address>\"\n}","options":{"raw":{"language":"json"}}},"url":"https://desend.ru/api/withdraw_crypto","urlObject":{"path":["withdraw_crypto"],"host":["https://desend.ru/api"],"query":[],"variable":[]}},"response":[{"id":"bca19288-6d6f-472f-9aab-3873f41f643e","name":"Withdraw crypto","originalRequest":{"method":"GET","header":[{"key":"ApiPublic","value":"Public","type":"text"},{"key":"Signature","value":"Signature","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"amount\": 1234.56,\n    \"currency\": \"USDTTRC\",\n    \"address\": \"<tether address>\"\n}","options":{"raw":{"language":"json"}}},"url":"https://desend.ru/api/withdraw_crypto"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"result\": {\n        \"internal_id\": \"<internal id of transaction>\",\n        \"currency\": \"USDTTRC\",\n        \"amount\": 1234.56,\n        \"address\": \"<TRC address>\"\n    }\n}"}],"_postman_id":"cd0630da-5efe-4c7e-a7eb-ae3395ef804c"},{"name":"Create appeal","id":"7736b32a-8d83-4a30-83fc-3af212c7984c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"ApiPublic","value":"Public","type":"text"},{"key":"Signature","value":"Signature","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"tx_id\": \"9dcb8f5a90b7ff774ebac8e55d440ab9ef62382bbe126b79f6c235b66e96925a48bbd4deb708103ac216ad141d61f17e79246ec10ed9536e1584be4f8eed3175\",\n\t\"message\": \"message\",\n    \"files\": [\"<base64 encoded bytes>\", \"<base64 encoded bytes 2>\"]\n}","options":{"raw":{"language":"json"}}},"url":"https://desend.ru/api/appeal","description":"<p>Creates appeal.</p>\n<p>Fields <strong>message</strong> and <strong>files</strong> are optional, but it's not allowed to send them both empty.</p>\n<p><strong>files</strong> is an array of strings (base64 encoded image bytes). To leave it empty, just set the value to <em>null.</em></p>\n","urlObject":{"path":["appeal"],"host":["https://desend.ru/api"],"query":[],"variable":[]}},"response":[{"id":"93920427-d996-4f7e-add9-0f0664a42409","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"ApiPublic","value":"Public","type":"text"},{"key":"Signature","value":"Signature","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"tx_id\": \"9dcb8f5a90b7ff774ebac8e55d440ab9ef62382bbe126b79f6c235b66e96925a48bbd4deb708103ac216ad141d61f17e79246ec10ed9536e1584be4f8eed3175\",\n\t\"message\": \"message\",\n    \"files\": [\"<base64 encoded bytes>\", \"<base64 encoded bytes 2>\"]\n}","options":{"raw":{"language":"json"}}},"url":"https://desend.ru/api/appeal"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n\t\"success\": true,\n\t\"result\": {\n        // internal id of appeal\n\t\t\"internal_id\": \"974e13e53eb7f0d08848bf09821b1eb52cfb9c576efd3cafd074712720e69c61ef04929a75435081d6a6ffd9258b43d88fb96f8812e24d0305f20cbd1df7c7d5\",\n\t\t\"is_closed\": false,\n        // tx id\n\t\t\"external_tx_id\": \"9dcb8f5a90b7ff774ebac8e55d440ab9ef62382bbe126b79f6c235b66e96925a48bbd4deb708103ac216ad141d61f17e79246ec10ed9536e1584be4f8eed3175\",\n        // order id (first 10 characters in your personal account)\n\t\t\"external_order_id\": \"caf5c5504b0d9ad600cfb32b4d62ffd57cb5abb2ffe1a9604f430b22d069dea15057b5865f11be3169989df8f85e54b370c39749527a55f0874718d59acd91c2\",\n\t\t\"create_time\": \"2022-11-20T19:50:16.507563682Z\",\n\t\t\"message\": \"message\",\n\t\t\"files\": [\"<base64 encoded bytes>\", \"<base64 encoded bytes 2>\"]\n\t}\n}"},{"id":"7e336bc2-f63a-4ab6-8924-63bdbb5f6a1e","name":"Error","originalRequest":{"method":"POST","header":[{"key":"ApiPublic","value":"Public","type":"text"},{"key":"Signature","value":"Signature","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"tx_id\": \"<incorrect tx id>\",\n\t\"message\": \"message\"\n}","options":{"raw":{"language":"json"}}},"url":"http://payment.desend.ru/api/appeal"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n\t\"success\": false,\n\t\"error\": \"<error>\"\n}"}],"_postman_id":"7736b32a-8d83-4a30-83fc-3af212c7984c"},{"name":"Get appeals","id":"8e8f7561-ac87-4f90-b2dc-7617a186cf4a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"ApiPublic","value":"Public","type":"text"},{"key":"Signature","value":"Signature","type":"text"}],"url":"https://desend.ru/api/appeals","description":"<p>The universal endpoint for getting information about your appeals.</p>\n<p><strong>Query params</strong></p>\n<ul>\n<li><code>limit</code> (default <code>100</code>)</li>\n<li><code>offset</code> (default <code>0</code>)</li>\n<li><code>external_tx_id</code> - to get all appeals for specific transaction</li>\n<li><code>appeal_internal_id</code> - to get specific appeal by id</li>\n</ul>\n<p>All query params are optional</p>\n","urlObject":{"path":["appeals"],"host":["https://desend.ru/api"],"query":[{"disabled":true,"key":"limit","value":"100"},{"disabled":true,"key":"offset","value":"0"},{"disabled":true,"description":{"content":"<p>appeal id</p>\n","type":"text/plain"},"key":"appeal_internal_id","value":"<appeal_internal_id>"},{"disabled":true,"description":{"content":"<p>tx id</p>\n","type":"text/plain"},"key":"external_tx_id","value":"<external_tx_id>"}],"variable":[]}},"response":[{"id":"ccc9a4ff-df23-4eea-ae64-b7a081f6f383","name":"Success (by appeal id)","originalRequest":{"method":"GET","header":[{"key":"ApiPublic","value":"Public","type":"text"},{"key":"Signature","value":"Signature","type":"text"}],"url":{"raw":"https://desend.ru/api/appeals?appeal_internal_id=<appeal_internal_id>","host":["https://desend.ru/api"],"path":["appeals"],"query":[{"key":"limit","value":"100","disabled":true},{"key":"offset","value":"0","disabled":true},{"key":"appeal_internal_id","value":"<appeal_internal_id>","description":"appeal id"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n\t\"success\": true,\n\t\"result\": [\n\t\t{\n\t\t\t\"internal_id\": \"974e13e53eb7f0d08848bf09821b1eb52cfb9c576efd3cafd074712720e69c61ef04929a75435081d6a6ffd9258b43d88fb96f8812e24d0305f20cbd1df7c7d5\",\n\t\t\t\"is_closed\": false,\n\t\t\t\"external_tx_id\": \"cde78962c290d7d29b780fb2f99afc4b1c70ce9c656e00ef617b3c92ca8565f2db9a434056bba428eb69d9f6b64516e7b9cc5026342da4b12cef36c04caa2be2\",\n\t\t\t\"external_order_id\": \"caf5c5504b0d9ad600cfb32b4d62ffd57cb5abb2ffe1a9604f430b22d069dea15057b5865f11be3169989df8f85e54b370c39749527a55f0874718d59acd91c2\",\n\t\t\t\"create_time\": \"2022-11-20T19:50:16.507563Z\",\n\t\t\t\"message\": \"message\",\n\t\t\t\"files\": [\"<base64 encoded bytes>\"]\n\t\t}\n\t]\n}"},{"id":"2a4391fc-0365-4b8c-8be6-8efbefdba8e2","name":"Success (by tx id)","originalRequest":{"method":"GET","header":[{"key":"ApiPublic","value":"Public","type":"text"},{"key":"Signature","value":"Signature","type":"text"}],"url":{"raw":"https://desend.ru/api/appeals?external_tx_id=<external_tx_id>","host":["https://desend.ru/api"],"path":["appeals"],"query":[{"key":"limit","value":"100","disabled":true},{"key":"offset","value":"0","disabled":true},{"key":"external_tx_id","value":"<external_tx_id>","description":"tx id"}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"result\": [\n        {\n            \"internal_id\": \"974e13e53eb7f0d08848bf09821b1eb52cfb9c576efd3cafd074712720e69c61ef04929a75435081d6a6ffd9258b43d88fb96f8812e24d0305f20cbd1df7c7d5\",\n            \"is_closed\": false,\n            \"external_tx_id\": \"cde78962c290d7d29b780fb2f99afc4b1c70ce9c656e00ef617b3c92ca8565f2db9a434056bba428eb69d9f6b64516e7b9cc5026342da4b12cef36c04caa2be2\",\n            \"external_order_id\": \"caf5c5504b0d9ad600cfb32b4d62ffd57cb5abb2ffe1a9604f430b22d069dea15057b5865f11be3169989df8f85e54b370c39749527a55f0874718d59acd91c2\",\n            \"create_time\": \"2022-11-20T19:50:16.507563Z\",\n            \"message\": \"message\",\n            \"files\": [\"<base64 encoded bytes>\"]\n        }\n    ]\n}"}],"_postman_id":"8e8f7561-ac87-4f90-b2dc-7617a186cf4a"},{"name":"Get token pairs","id":"11dfec99-e9bf-45fa-8383-be89649831a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"ApiPublic","value":"ApiPublic","type":"text"},{"key":"Signature","value":"Signature","type":"text"}],"url":"https://desend.ru/api/token/pairs","urlObject":{"path":["token","pairs"],"host":["https://desend.ru/api"],"query":[],"variable":[]}},"response":[{"id":"ead5d2e7-c531-4f12-b259-eae109973859","name":"Get token pairs","originalRequest":{"method":"GET","header":[{"key":"ApiPublic","value":"ApiPublic","type":"text"},{"key":"Signature","value":"Signature","type":"text"}],"url":"https://desend.ru/api/token/pairs"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"from\": {\n            \"id\": 4,\n            \"name\": \"QWRUB\",\n            \"full_name\": \"QIWI RUB\",\n            \"is_crypto\": false\n        },\n        \"to\": {\n            \"id\": 2,\n            \"name\": \"USDTTRC\",\n            \"full_name\": \"USDTTRC\",\n            \"is_crypto\": true\n        },\n        \"min_limit\": 0,\n        \"max_limit\": 0\n    },\n    {\n        \"from\": {\n            \"id\": 3,\n            \"name\": \"SBERRUB\",\n            \"full_name\": \"Сбербанк RUB\",\n            \"is_crypto\": false\n        },\n        \"to\": {\n            \"id\": 2,\n            \"name\": \"USDTTRC\",\n            \"full_name\": \"USDTTRC\",\n            \"is_crypto\": true\n        },\n        \"min_limit\": 5000,\n        \"max_limit\": 250000\n    },\n    {\n        \"from\": {\n            \"id\": 2,\n            \"name\": \"USDTTRC\",\n            \"full_name\": \"USDTTRC\",\n            \"is_crypto\": true\n        },\n        \"to\": {\n            \"id\": 4,\n            \"name\": \"QWRUB\",\n            \"full_name\": \"QIWI RUB\",\n            \"is_crypto\": false\n        },\n        \"min_limit\": 0,\n        \"max_limit\": 0\n    },\n    {\n        \"from\": {\n            \"id\": 2,\n            \"name\": \"USDTTRC\",\n            \"full_name\": \"USDTTRC\",\n            \"is_crypto\": true\n        },\n        \"to\": {\n            \"id\": 3,\n            \"name\": \"SBERRUB\",\n            \"full_name\": \"Сбербанк RUB\",\n            \"is_crypto\": false\n        },\n        \"min_limit\": 500,\n        \"max_limit\": 160000\n    },\n    {\n        \"from\": {\n            \"id\": 2,\n            \"name\": \"USDTTRC\",\n            \"full_name\": \"USDTTRC\",\n            \"is_crypto\": true\n        },\n        \"to\": {\n            \"id\": 5,\n            \"name\": \"TCSBRUB\",\n            \"full_name\": \"Tinkoff RUB\",\n            \"is_crypto\": false\n        },\n        \"min_limit\": 500,\n        \"max_limit\": 180000\n    },\n    {\n        \"from\": {\n            \"id\": 2,\n            \"name\": \"USDTTRC\",\n            \"full_name\": \"USDTTRC\",\n            \"is_crypto\": true\n        },\n        \"to\": {\n            \"id\": 6,\n            \"name\": \"RFBRUB\",\n            \"full_name\": \"Райффайзен RUB\",\n            \"is_crypto\": false\n        },\n        \"min_limit\": 10,\n        \"max_limit\": 150000\n    },\n    {\n        \"from\": {\n            \"id\": 2,\n            \"name\": \"USDTTRC\",\n            \"full_name\": \"USDTTRC\",\n            \"is_crypto\": true\n        },\n        \"to\": {\n            \"id\": 7,\n            \"name\": \"CARDRUB\",\n            \"full_name\": \"Visa/Mastercard RUB\",\n            \"is_crypto\": false\n        },\n        \"min_limit\": 0,\n        \"max_limit\": 0\n    },\n    {\n        \"from\": {\n            \"id\": 2,\n            \"name\": \"USDTTRC\",\n            \"full_name\": \"USDTTRC\",\n            \"is_crypto\": true\n        },\n        \"to\": {\n            \"id\": 8,\n            \"name\": \"SBPRUB\",\n            \"full_name\": \"СБП RUB\",\n            \"is_crypto\": false\n        },\n        \"min_limit\": 0,\n        \"max_limit\": 0\n    },\n    {\n        \"from\": {\n            \"id\": 5,\n            \"name\": \"TCSBRUB\",\n            \"full_name\": \"Tinkoff RUB\",\n            \"is_crypto\": false\n        },\n        \"to\": {\n            \"id\": 2,\n            \"name\": \"USDTTRC\",\n            \"full_name\": \"USDTTRC\",\n            \"is_crypto\": true\n        },\n        \"min_limit\": 3000,\n        \"max_limit\": 160000\n    },\n    {\n        \"from\": {\n            \"id\": 6,\n            \"name\": \"RFBRUB\",\n            \"full_name\": \"Райффайзен RUB\",\n            \"is_crypto\": false\n        },\n        \"to\": {\n            \"id\": 2,\n            \"name\": \"USDTTRC\",\n            \"full_name\": \"USDTTRC\",\n            \"is_crypto\": true\n        },\n        \"min_limit\": 0,\n        \"max_limit\": 0\n    },\n    {\n        \"from\": {\n            \"id\": 7,\n            \"name\": \"CARDRUB\",\n            \"full_name\": \"Visa/Mastercard RUB\",\n            \"is_crypto\": false\n        },\n        \"to\": {\n            \"id\": 2,\n            \"name\": \"USDTTRC\",\n            \"full_name\": \"USDTTRC\",\n            \"is_crypto\": true\n        },\n        \"min_limit\": 0,\n        \"max_limit\": 0\n    },\n    {\n        \"from\": {\n            \"id\": 8,\n            \"name\": \"SBPRUB\",\n            \"full_name\": \"СБП RUB\",\n            \"is_crypto\": false\n        },\n        \"to\": {\n            \"id\": 2,\n            \"name\": \"USDTTRC\",\n            \"full_name\": \"USDTTRC\",\n            \"is_crypto\": true\n        },\n        \"min_limit\": 0,\n        \"max_limit\": 0\n    }\n]"}],"_postman_id":"11dfec99-e9bf-45fa-8383-be89649831a4"},{"name":"Confirm refer by client","id":"16808d0b-e020-49ff-86af-1a6ce684c03a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://desend.ru/api/transaction/confirm/:internalId","description":"<p>Confirm refer by client.</p>\n<ul>\n<li>All transactions have 2 types of confirmations:<ul>\n<li>By client.</li>\n<li>By desend.</li>\n</ul>\n</li>\n<li>The transaction is considered completed after confirmation of desend.</li>\n<li>The confirmation of client is only necessary to increase the speed of transaction processing.</li>\n</ul>\n","urlObject":{"path":["transaction","confirm",":internalId"],"host":["https://desend.ru/api"],"query":[],"variable":[{"type":"any","value":null,"key":"internalId"}]}},"response":[{"id":"27948404-773d-432e-b9de-70ba7e6115ac","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"ApiPublic","value":"Public","type":"text"},{"key":"Signature","value":"Signature","type":"text"}],"url":{"raw":"https://desend.ru/api/transaction/confirm/:internalId","host":["https://desend.ru/api"],"path":["transaction","confirm",":internalId"],"variable":[{"key":"internalId","value":null}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n\t\"success\": true\n}"},{"id":"250ce573-c30b-4e37-829b-afa0e66b7905","name":"Error","originalRequest":{"method":"POST","header":[{"key":"ApiPublic","value":"Public","type":"text"},{"key":"Signature","value":"Signature","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://desend.ru/api/transaction/confirm/:internalId","host":["https://desend.ru/api"],"path":["transaction","confirm",":internalId"],"variable":[{"key":"internalId","value":null}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n\t\"success\": false,\n\t\"error\": \"<error>\"\n}"}],"_postman_id":"16808d0b-e020-49ff-86af-1a6ce684c03a"}],"event":[{"listen":"prerequest","script":{"id":"926b4adf-c735-486a-b00b-be087edc39d1","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"aa7c60fe-39ff-4901-94ae-0c7c65d2cca0","type":"text/javascript","exec":[""]}}],"variable":[{"key":"baseUrl","value":"https://desend.ru/api"}]}