{"info":{"_postman_id":"60114573-1def-0df1-4d55-df7e7c07d3f3","name":"Accept Bitcoin and Crypto with Bancryp","description":"**Welcome to Bancryp API Documentation!**\n\nYou can integrate your application to **accept Bitcoin and others cryptocurrencies and receive in FIAT MONEY**. If you need know more about the Bancryp access our website: https://bancryp.com\n\nYou can use our API to your e-commerce, mobile app, ERP Software, CRM Software for you or for your customers.\n\n**ALERT: For payments with automatic conversion to be guaranteed in the quotation offered, the payment must be confirmed within 3 minutes, otherwise the payment will be approved and the funds will be deposited in the payment currency.**\n\nTo help or issues report send a email to dev@bancryp.com.\n\n# Environments\n\n|                |ACCOUNT                        |API                          |\n|----------------|-------------------------------|-----------------------------|\n|SANDBOX         |https://app.bancryp.info       | `https://service.bancryp.info/api` |\n|PRODUCTION      |https://app.bancryp.com        | `https://api.bancryp.com/api` |\n\n\n# Authentication\n\nTo make requests you need an API token, the token must be included in the `Authorization` header as a `Bearer` token.\n\n**How can I get my API Token?**\n1. First create an account in the SANDBOX environment\n2. Go to https://app.bancryp.info/integration\n3. Create your API Token\n\n**SLACK DEVELOPERS:**\nWe created this channel for you to answer your questions, talk about our API's, report problems and send your feedback. Request an invitation.\n\n# Tests\nYou can install the sandbox mobile app to test using the \"Pay with QRCode\".\nIf you need Bitcoin funds to test, you can request with our support team.\n\n&nbsp;\nDownload Sandbox Mobile APP (select the last version):\n\n&nbsp;\nhttps://drive.google.com/drive/folders/1hBxFXV6p6-05D0kpSnYJMt4sjNL37_Q4?usp=sharing .\n\n#Flow\n&nbsp;\n1 - You must initiate a payment by sending the amount in Reais.\n\n&nbsp;\n2 - Show the customer a QR Code with the BTC address and the amount that must be sent\n\n&nbsp;\n3 - Check the status of the transaction\n\n&nbsp;\n\n# Errors\n\n\nHTTPCODE         | CODE |   RESPONSE    |  DESCRIPTION\n---------        | ----------- | ----------- | --------------\n**200** |  200 | OK | request has been correctly processed\n**401** | 401 | Not Authorized | Unauthenticated\n**422** | 422 | nprocessable Entity | mandatory parameters have not been sent\n**422** | 422-1 | Unprocessable Entity | The amount of funds exceeds the maximum\n**422** | 422-2 | Unprocessable Entity | The amount of funds is below the minimum required \n**406** | 406 | Not Acceptable | Billing currency is not yet supported\n**500** | 500 | Internal Server Error | internal error / exception on server that prevented from serving the request\n**503** | 503 | Service Unavailable | transient / temporary condition that is causing the server to be unavailable.\n\n\nWhen returning error conditions (http status codes 400 / 403 / 500 / 503), the server may send a JSON object with the following format:\n\n`'{\n    \"message\": <message STRING>,\n    \"code\": <error code INTEGER>,\n    \"errors\": (optional STRING)\n }'`","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json"},"item":[{"name":"RECEIVER","item":[{"name":"Payment Start","id":"48197853-e3f4-c9ea-04ca-7a8d00ddd848","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"}},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"sequence_id\": \"PPEO82736812612\",\n  \"coin\": \"BTC\",\n  \"value_brl\": 100,\n  \"coin_receive\": \"BRL\"\n}"},"url":"{{host}}/payment/start","description":"## Parameters\n\nParameter     |  Type    |  Description\n--------- | ----------- | --------------\n**sequence_id**        |   Strig  | You must send an order identifier for your system, it will be the reference between your system and the payment. You can also find a payment using `sequence_id`. (Ex: Customer order number)\n**coin**        |   Strig  | Inform the acronym of the currency that your client should send the funds. For now you can use `BTC` or `BRL`\n**value_brl**     |   INTEGER  | You must inform the total amount of the payment of Reais in cents. (Ex: for you to start a payment of **R$10,00** you must enter `1000`)\n**coin_receive**     |   STRING (Optional)  | You choose to receive the payment converted into reais and do not worry about the price changes of cryptocurrencies, for this you must enter `BRL`. If you want to keep the funds in cryptocurrency just leave it as `null`.\n\n\n## Response JSON\n\nParameter        |  Description\n---------  | --------------\n**payment_id**            | Payment identifier\n**sequence_id**          | \n**coin**              | Cryptocurrency selected for payment\n**coin_value**            | This is the exact total number of cryptocurrencies that the customer must send to the address\n**coin_rate_brl**          | This is the value of the quote we use to convert to the total cryptocurrency, you can choose to show or not show it to your client.\n**coin_addr**              | This is a unique public address that we generate for receiving cryptocurrency funds, it must be informed to the customer.\n**value_brl**           | Total payment requested on fiat money\n**qrcode_url**          | To simplify your integration and to simplify the customer's life, this QRCode can be informed to the user on the payment page. When read by a wallet, the address and the amount of funds to be sent will be collected.\n**expire_at**          | The waiting time for a payment is considered only if you have chosen to receive it in Reais, it serves as a form of security to guarantee the quote used. Rest assured, if the customer pays after the due date, the payment will also be approved and you will receive the cryptocurrency funds that can be converted into cash and withdrawn to your bank.\n**created_at**          | Payment creation date (UTC)\n**ts_event**          | Payment creation date (UTC)"},"response":[{"id":"86782787-58c1-463b-86d8-e5308f52957f","name":"Success Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"sequence_id\": \"1243s23x2\",\n  \"coin\": \"BTC\",\n  \"value_brl\": 15,\n  \"coin_receive\": \"BRL\"\n}"},"url":"{{host}}/payment/start"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Oct 2020 12:49:26 GMT"},{"key":"Server","value":"Apache"},{"key":"Vary","value":"Authorization"},{"key":"X-Powered-By","value":"PHP/7.4.2"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Length","value":"454"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"payment_id\": 432,\n    \"sequence_id\": \"1243s23x2\",\n    \"coin\": \"BTC\",\n    \"coin_value\": \"0.00025920\",\n    \"coin_rate_brl\": \"57871.36\",\n    \"coin_addr\": \"161vtCwMSyhmuiDGxfDQ6nNSYmMXADTHW7\",\n    \"value_brl\": \"15.00\",\n    \"coin_receive\": \"BRL\",\n    \"qrcode_url\": \"https://service.bancryp.info/payment/qrcode?coin=BTC&address=161vtCwMSyhmuiDGxfDQ6nNSYmMXADTHW7&amount=0.00025920&id=432&theme=light\",\n    \"expire_at\": \"2020-10-07 12:51:46\",\n    \"created_at\": \"2020-10-07T12:49:46.000000Z\",\n    \"ts_event\": 1602074986611\n}"},{"id":"df9f3f87-6497-48c4-85e6-8bcf7cacb4bd","name":"Error Response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"sequence_id\": \"23452432\",\n  \"coin\": \"BTC\",\n  \"value_brl\": 110000020222\n}"},"url":{"raw":"{{host}}/payment/start?apikey={{apikey}}&secret={{secret}}","host":["{{host}}"],"path":["payment","start"],"query":[{"key":"apikey","value":"{{apikey}}"},{"key":"secret","value":"{{secret}}"}]}},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 30 Jul 2020 02:26:25 GMT"},{"key":"Server","value":"Apache"},{"key":"X-Powered-By","value":"PHP/7.4.2"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Length","value":"102"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"},{"key":"X-Pad","value":"avoid browser bug"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The value_brl is greater than allowed\",\n    \"code\": \"422-1\",\n    \"errors\": \"The maximum is 100000.00\"\n}"}],"_postman_id":"48197853-e3f4-c9ea-04ca-7a8d00ddd848"},{"name":"Get payment detail","id":"e1065add-6d3d-02ba-0f12-161e10f30462","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"}},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"payment_id\": 32776\n}"},"url":"{{host}}/payment/detail","description":"For you to confirm whether the payment was authorized or not just consult this endpoint\n\n\n#Parameters\n--\n\nParameter     |  Type      |  Description\n---------    | -----------  | --------------\n**payment_id**     |   Integer    | Send the Payment request identifier\n\n\n#Response\n--\n\nParameter       |  Type    |  Description\n---------      | ----------- | --------------\n**sequence_id**        |   string    |\n**status**        |   Integer    | If `0` = PENDINDG or `1` = SUCCESS or `-1` = CANCELED\n**ts_event**      |   String  | event timestamp on the format \"YYYYMMDDmmhhss\"\n**payment_id**    |   Integer    | Payment identity number\n**confirmations**    |   Integer    | Confirmation in the blockchain\n**coin**        |   Number    | Cryptocurrency selected\n**coin_value**      |   Decimal    | Cryptocurrency amount for receive\n**coin_rate_brl**   |   Decimal    | Cryptocurrency quote\n**value_brl**      |   Decimal    | Total payment requested on fiat money\n**coin_addr**      |   String    | Address to receive the funds\n**coin_received**      |   Decimal    | Amount cryprocurrency received\n**txid**   |   Strig    | Blockchain Transaction ID \n**approval_type**   |   Strig    | list of payment source addresses separated by \"|\""},"response":[{"id":"6cc45a67-3cc9-497c-8ada-cb0e9eff0453","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"payment_id\": 431\n}"},"url":"{{host}}/payment/detail"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Oct 2020 11:31:24 GMT"},{"key":"Server","value":"Apache"},{"key":"Vary","value":"Authorization"},{"key":"X-Powered-By","value":"PHP/7.4.2"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Length","value":"544"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"payload\": {\n        \"payment_id\": 431,\n        \"from\": \"Blockchain\",\n        \"txid\": \"241c204238160379710e867f47c5eb5966c13d37726f19e30ff767ce6160d6b3\",\n        \"sequence_id\": \"124323x2\",\n        \"status\": 1,\n        \"ts_event\": 1601950079660,\n        \"coin_value\": \"0.00025560\",\n        \"coin_rate_brl\": \"58684.84\",\n        \"coin_addr\": \"15dR7t4vhSxBAk8hZ96d8tWxqCS53giw9M\",\n        \"value_brl\": \"15.00\",\n        \"coin\": \"BTC\",\n        \"webhook\": null,\n        \"expire_at\": \"2020-10-06 02:09:59\",\n        \"created_at\": \"2020-10-06T02:07:59.000000Z\",\n        \"identity\": {\n            \"name\": \"RAZÃO SOCIAL LTDA\",\n            \"doc_number\": \"14054665000192\"\n        },\n        \"address\": \"rua cnk, tfb, gjn, hch - gfdh, PI - 97097669\"\n    }\n}"}],"_postman_id":"e1065add-6d3d-02ba-0f12-161e10f30462"},{"name":"Cashout Type","id":"a9ea9716-5ac3-456c-9054-d1cba963f67e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"}},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"cashout_type\": 0\n}"},"url":"{{host}}/payment/cashout","description":"If you want to guarantee receipt of payments in REAL you need to use this endpoint and define the cashout method.\n\nValue     |  Title    |  Description\n--------- | ----------- | --------------\n**0**     |   Criptomoeda  | You accept cryptocurrency payments and keep the funds in your Bancryp account\n**1**        |   Reais  | You accept cryptocurrency payments and receive the amount in Reais without risk of price variation"},"response":[],"_postman_id":"a9ea9716-5ac3-456c-9054-d1cba963f67e"},{"name":"Get avaiable coin","id":"6860683a-220d-42ba-9706-41b012f01012","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"}},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{host}}/payment/coin","description":"Here you can check the currencies available to accept the payment method.\nWe advise you to make a request before starting each payment to keep currencies up to date.\n\nThis will ensure that your application receives new currencies and also avoids generating charges with currencies that may no longer be available."},"response":[{"id":"c26be1e7-2055-45e4-81e9-24426e3e27c1","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{host}}/payment/coin"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Oct 2020 11:27:33 GMT"},{"key":"Server","value":"Apache"},{"key":"Vary","value":"Authorization"},{"key":"X-Powered-By","value":"PHP/7.4.2"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Length","value":"130"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Moedas disponíveis para este método de pagamento\",\n    \"payload\": [\n        {\n            \"coin_name\": \"Bitcoin\",\n            \"coin_initials\": \"BTC\"\n        }\n    ]\n}"}],"_postman_id":"6860683a-220d-42ba-9706-41b012f01012"},{"name":"List Payment","id":"febd7208-42b0-b20e-5a38-b526a514e5f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"}},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Auth-Token","value":"","disabled":true}],"body":{"mode":"raw","raw":"{\n  \"status\": null,\n  \"coin\": null,\n  \"start_date\": null,\n  \"end_date\": null,\n  \"limit\": 3\n}"},"url":"{{host}}/payment/history","description":"Use this endpoint if you need to list payments initiated, you can also filter the results by sending different parameters.\n\n#Parameters\n--\n\nParameter     |  Type      |  Description\n---------    | -----------  | --------------\n**status**     |   Integer    | Filter results by status\n**coin**     |   String    | Filter results by coin (Ex: 'BTC')\n**start_date**     |   DATETIME    | Filter results from a specific date and time in the format 'YYYY-MM-DD HH:mm:ss'\n**end_date**     |   DATETIME    | Filter results by a specific date and time in the format 'YYYY-MM-DD HH:mm:ss'"},"response":[{"id":"31cf6280-1674-4a0f-a27b-c727ddd22120","name":"Waiting Payment","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Auth-Token","value":"","disabled":true}],"body":{"mode":"raw","raw":"{\n  \"status\": 0,\n  \"coin\": null,\n  \"start_date\": null,\n  \"end_date\": null\n}"},"url":"{{host}}/payment/history"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Oct 2020 11:45:49 GMT"},{"key":"Server","value":"Apache"},{"key":"Vary","value":"Authorization"},{"key":"X-Powered-By","value":"PHP/7.4.2"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Length","value":"1811"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"payload\": {\n        \"current_page\": 1,\n        \"data\": [\n            {\n                \"payment_id\": 430,\n                \"sequence_id\": \"124323x2\",\n                \"ts_event\": 1601929603492,\n                \"status\": 0,\n                \"coin_value\": 25599,\n                \"coin_rate_brl\": 5859673,\n                \"coin_addr\": \"1LQq5LNUbyBfKMcVKbnzCm3KBi8pY1RN9f\",\n                \"value_brl\": 1500,\n                \"coin\": \"BTC\",\n                \"webhook\": null,\n                \"expire_at\": \"2020-10-05 20:28:43\",\n                \"created_at\": \"2020-10-05T20:26:43.000000Z\"\n            },\n            {\n                \"payment_id\": 429,\n                \"sequence_id\": \"124323x2\",\n                \"ts_event\": 1601929570991,\n                \"status\": 0,\n                \"coin_value\": 25599,\n                \"coin_rate_brl\": 5859673,\n                \"coin_addr\": \"1NcV7zuBwDSZ2ij1MW2VspSecFTGkYs2HA\",\n                \"value_brl\": 1500,\n                \"coin\": \"BTC\",\n                \"webhook\": null,\n                \"expire_at\": \"2020-10-05 20:28:10\",\n                \"created_at\": \"2020-10-05T20:26:10.000000Z\"\n            },\n            {\n                \"payment_id\": 428,\n                \"sequence_id\": \"124323x2\",\n                \"ts_event\": 1601929356539,\n                \"status\": 0,\n                \"coin_value\": 25548,\n                \"coin_rate_brl\": 5871201,\n                \"coin_addr\": \"1QE9CyrhDszZfjXzRkV6FB7yJ8HynefnCZ\",\n                \"value_brl\": 1500,\n                \"coin\": \"BTC\",\n                \"webhook\": null,\n                \"expire_at\": \"2020-10-05 20:24:36\",\n                \"created_at\": \"2020-10-05T20:22:36.000000Z\"\n            },\n            {\n                \"payment_id\": 427,\n                \"sequence_id\": \"124323x2\",\n                \"ts_event\": 1601929316613,\n                \"status\": 0,\n                \"coin_value\": 25604,\n                \"coin_rate_brl\": 5858412,\n                \"coin_addr\": \"1L7d5NbRhc3wHC2pJ1uEAQxmpayDhtE45h\",\n                \"value_brl\": 1500,\n                \"coin\": \"BTC\",\n                \"webhook\": null,\n                \"expire_at\": \"2020-10-05 20:23:56\",\n                \"created_at\": \"2020-10-05T20:21:56.000000Z\"\n            },\n            {\n                \"payment_id\": 283,\n                \"sequence_id\": \"23452432\",\n                \"ts_event\": 1596082899797,\n                \"status\": 0,\n                \"coin_value\": 179805,\n                \"coin_rate_brl\": 5561574,\n                \"coin_addr\": \"1C65smM1Jjr12nD7VLqGjubiRbCcr5EXZB\",\n                \"value_brl\": 10000,\n                \"coin\": \"BTC\",\n                \"webhook\": null,\n                \"expire_at\": \"2020-07-30 04:23:39\",\n                \"created_at\": \"2020-07-30T04:21:39.000000Z\"\n            }\n        ],\n        \"first_page_url\": \"http://apiservice:8888/api/payment/history?page=1\",\n        \"from\": 1,\n        \"last_page\": 1,\n        \"last_page_url\": \"http://apiservice:8888/api/payment/history?page=1\",\n        \"next_page_url\": null,\n        \"path\": \"http://apiservice:8888/api/payment/history\",\n        \"per_page\": 20,\n        \"prev_page_url\": null,\n        \"to\": 5,\n        \"total\": 5\n    }\n}"},{"id":"975dd8ec-2461-4822-a9ce-7fc2e998a9d6","name":"Paid","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Auth-Token","value":"","disabled":true}],"body":{"mode":"raw","raw":"{\n  \"status\": 1,\n  \"coin\": null,\n  \"start_date\": null,\n  \"end_date\": null\n}"},"url":"{{host}}/payment/history"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Oct 2020 11:43:06 GMT"},{"key":"Server","value":"Apache"},{"key":"Vary","value":"Authorization"},{"key":"X-Powered-By","value":"PHP/7.4.2"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Length","value":"928"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"payload\": {\n        \"current_page\": 1,\n        \"data\": [\n            {\n                \"payment_id\": 431,\n                \"sequence_id\": \"124323x2\",\n                \"ts_event\": 1601950079660,\n                \"status\": 1,\n                \"coin_value\": 25560,\n                \"coin_rate_brl\": 5868484,\n                \"coin_addr\": \"15dR7t4vhSxBAk8hZ96d8tWxqCS53giw9M\",\n                \"value_brl\": 1500,\n                \"coin\": \"BTC\",\n                \"webhook\": null,\n                \"expire_at\": \"2020-10-06 02:09:59\",\n                \"created_at\": \"2020-10-06T02:07:59.000000Z\"\n            },\n            {\n                \"payment_id\": 426,\n                \"sequence_id\": \"g73265473\",\n                \"ts_event\": 1601918366490,\n                \"status\": 1,\n                \"coin_value\": 17079,\n                \"coin_rate_brl\": 5855017,\n                \"coin_addr\": \"1KA1hBY8YkmC4uAivDMyNbS2tq8srMQKLS\",\n                \"value_brl\": 1000,\n                \"coin\": \"BTC\",\n                \"webhook\": null,\n                \"expire_at\": \"2020-10-05 17:21:26\",\n                \"created_at\": \"2020-10-05T17:19:26.000000Z\"\n            }\n        ],\n        \"first_page_url\": \"http://apiservice:8888/api/payment/history?page=1\",\n        \"from\": 1,\n        \"last_page\": 1,\n        \"last_page_url\": \"http://apiservice:8888/api/payment/history?page=1\",\n        \"next_page_url\": null,\n        \"path\": \"http://apiservice:8888/api/payment/history\",\n        \"per_page\": 20,\n        \"prev_page_url\": null,\n        \"to\": 2,\n        \"total\": 2\n    }\n}"}],"_postman_id":"febd7208-42b0-b20e-5a38-b526a514e5f6"}],"id":"6620299b-9348-414d-b296-474ee8f6d27d","event":[{"listen":"prerequest","script":{"id":"8eb23784-3b94-46bb-a5c7-8f4f89f4ea2d","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"8514f90e-5bc2-421c-b191-64747fee9a2f","type":"text/javascript","exec":[""]}}],"_postman_id":"6620299b-9348-414d-b296-474ee8f6d27d"},{"name":"PAYER","item":[{"name":"Check Address","id":"d06e5e30-f785-46cc-9693-439a9b450a18","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"}},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"address\": \"1EeGFs8oNcF6J5F3F5dLoEji2ptZtuZnGz\"\n}"},"url":"{{host}}/payment/address/check","description":"Check if address is a Bancryp Cryptocurrencies Payments"},"response":[],"_postman_id":"d06e5e30-f785-46cc-9693-439a9b450a18"},{"name":"Pay","id":"e853282b-0dc4-46e0-8b6a-21faef62b76a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"}},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"address\": \"14gpHpM4UXEvGu9xKU2HieC3pY2jbmfTyR\"\n}"},"url":"{{host}}/payment/pay","description":"Use this endpoint to make a payment for an order informing the cryptocurrency address.\n\nAttention: You cannot make a payment from the same account, use a different account to be a payer."},"response":[],"_postman_id":"e853282b-0dc4-46e0-8b6a-21faef62b76a"}],"id":"caa84db3-fa3b-4c28-aa52-52deafa574a3","event":[{"listen":"prerequest","script":{"id":"89d0b2c5-2d79-4369-9dba-d02ea9d8d174","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"034ae79b-3a17-41d7-95b3-8bd05282b3df","type":"text/javascript","exec":[""]}}],"_postman_id":"caa84db3-fa3b-4c28-aa52-52deafa574a3"},{"name":"POS","item":[{"name":"Block Force","id":"c61ff10f-8f96-4409-940d-5ca0e8d065a0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"}},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"payment_id\": 431\n}"},"url":"{{host}}/payment/block-force","description":"The Block Force service can be used as a forced verification feature on the blockchain.\n\nFor charges that require a quick confirmation, there may be failures in the internet connection or other reasons that do not approve the transaction even if the customer sends the exact amount of funds.\n\nMake a request by sending your payment ID and we will verify at the exact moment whether the transaction was successful or not."},"response":[{"id":"374b45c0-6c2e-465e-ac0d-12fd210fbc23","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"payment_id\": 431\n}"},"url":"{{host}}/payment/block-force"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Oct 2020 12:34:34 GMT"},{"key":"Server","value":"Apache"},{"key":"Vary","value":"Authorization"},{"key":"X-Powered-By","value":"PHP/7.4.2"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Length","value":"544"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"payload\": {\n        \"payment_id\": 431,\n        \"from\": \"Blockchain\",\n        \"txid\": \"241c204238160379710e867f47c5eb5966c13d37726f19e30ff767ce6160d6b3\",\n        \"sequence_id\": \"124323x2\",\n        \"status\": 1,\n        \"ts_event\": 1601950079660,\n        \"coin_value\": \"0.00025560\",\n        \"coin_rate_brl\": \"58684.84\",\n        \"coin_addr\": \"15dR7t4vhSxBAk8hZ96d8tWxqCS53giw9M\",\n        \"value_brl\": \"15.00\",\n        \"coin\": \"BTC\",\n        \"webhook\": null,\n        \"expire_at\": \"2020-10-06 02:09:59\",\n        \"created_at\": \"2020-10-06T02:07:59.000000Z\",\n        \"identity\": {\n            \"name\": \"RAZÃO SOCIAL LTDA\",\n            \"doc_number\": \"14054665000192\"\n        },\n        \"address\": \"rua cnk, tfb, gjn, hch - gfdh, PI - 97097669\"\n    }\n}"}],"_postman_id":"c61ff10f-8f96-4409-940d-5ca0e8d065a0"},{"name":"POS Activate","id":"b7d19839-eaac-4043-9ef2-3ea51ed7558b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"}},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"code\": \"872638712\"\n}"},"url":"{{host}}/payment/pos/activate"},"response":[],"_postman_id":"b7d19839-eaac-4043-9ef2-3ea51ed7558b"},{"name":"Check Authentication","id":"3c31cab1-06d3-49ea-947a-f14258a3d075","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"}},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{host}}/payment/check","description":"\nCheck that the credentials are valid and that the authentication was successful.\n\nGenerally, this endpoint is used only by applications that perform pairing and authentication by QRCode."},"response":[{"id":"2ac9dda2-78c1-404e-a61b-dcb8372e0704","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{host}}/payment/check"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Oct 2020 11:14:55 GMT"},{"key":"Server","value":"Apache"},{"key":"Vary","value":"Authorization"},{"key":"X-Powered-By","value":"PHP/7.4.2"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Length","value":"177"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Credentials are valid for elvis@eainterativa.com.br\",\n    \"payload\": {\n        \"user_id\": 165190,\n        \"user\": \"elvis@eainterativa.com.br\",\n        \"cashout_type\": 0,\n        \"cod_ativacao_uol\": \"872638712\"\n    }\n}"},{"id":"bfdc73f1-c61e-4029-8324-7ad2b6b4e9ab","name":"Error","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"{{host}}/payment/check"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 07 Oct 2020 11:16:00 GMT"},{"key":"Server","value":"Apache"},{"key":"Vary","value":"Authorization"},{"key":"X-Powered-By","value":"PHP/7.4.2"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Length","value":"30"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Unauthenticated.\"\n}"}],"_postman_id":"3c31cab1-06d3-49ea-947a-f14258a3d075"}],"id":"783bd35a-3e7d-41f9-9a74-3e2e4ce7a614","event":[{"listen":"prerequest","script":{"id":"8e0632a3-4bcd-46f6-8a48-37636acd619f","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"5d5e0d68-e0de-4459-8d09-6a15e281309e","type":"text/javascript","exec":[""]}}],"_postman_id":"783bd35a-3e7d-41f9-9a74-3e2e4ce7a614"},{"name":"LOCAL CRYPTO EXPRESS","item":[{"name":"Start","id":"4ea81976-9640-42ad-a02d-a4094f7028c9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"token":"{{token}}"}},"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"ref_id\":\"1313213\",\n    \"type\":\"pix\",\n\t\"email\":\"email@email.com.br\",\n\t\"phone\":\"+55999999999\",\n\t\"currency\":\"BRL\",\n\t\"to_coin\":\"BTC\",\n\t\"birthdate\":\"04071988\",\n\t\"name\":\"Nome completo do cliente\",\n\t\"document_number\":\"16648909048\",\n\t\"total\": 100,\n\t\"country\":\"BRA\",\n\t\"address\":\n\t{\n\t\t\"street\":\"Rua teste\",\n\t\t\"street_number\":\"6969\",\n\t\t\"neighborhood\":\"Campeche\",\n\t\t\"address_opt\":\"nao tem\",\n\t\t\"city\":\"Florianopolis\",\n\t\t\"state\":\"SC\",\n\t\t\"country\":\"BRA\",\n\t\t\"zipcode\":\"88048-302\"\n\t\n\t}\n\t\n\t\n}"},"url":"{{host}}/payment/express/start"},"response":[{"id":"64161e47-a024-467f-a2a0-c211dc62ffaf","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"ref_id\":\"1313213\",\n    \"type\":\"pix\",\n\t\"email\":\"email@email.com.br\",\n\t\"phone\":\"+55999999999\",\n\t\"currency\":\"BRL\",\n\t\"to_coin\":\"BTC\",\n\t\"birthdate\":\"04071988\",\n\t\"name\":\"Nome completo do cliente\",\n\t\"document_number\":\"16648909048\",\n\t\"total\": 100,\n\t\"country\":\"BRA\",\n\t\"address\":\n\t{\n\t\t\"street\":\"Rua teste\",\n\t\t\"street_number\":\"6969\",\n\t\t\"neighborhood\":\"Campeche\",\n\t\t\"address_opt\":\"nao tem\",\n\t\t\"city\":\"Florianopolis\",\n\t\t\"state\":\"SC\",\n\t\t\"country\":\"BRA\",\n\t\t\"zipcode\":\"88048-302\"\n\t\n\t}\n\t\n\t\n}"},"url":"{{host}}/payment/express/start"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 22 Feb 2022 17:55:40 GMT"},{"key":"Server","value":"Apache/2.4.46 (Unix) OpenSSL/1.0.2u PHP/7.4.9 mod_wsgi/3.5 Python/2.7.13 mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_perl/2.0.11 Perl/v5.30.1"},{"key":"Vary","value":"Authorization"},{"key":"X-Powered-By","value":"PHP/7.4.9"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Length","value":"212"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Payment generated successfully\",\n    \"payload\": {\n        \"uuid\": \"TP8k1DnN0tvifuPN8lpCWSiQ2Tzv47aUDbV9Pglm9iaWk\",\n        \"public_url\": \"http://bancrypapp:8888/pay/express/TP8k1DnN0tvifuPN8lpCWSiQ2Tzv47aUDbV9Pglm9iaWk\"\n    }\n}"}],"_postman_id":"4ea81976-9640-42ad-a02d-a4094f7028c9"}],"id":"ac93ad67-b42f-4fed-800c-0093a8474770","event":[{"listen":"prerequest","script":{"id":"7697ce2a-4cd7-4546-881d-7a6d009a50fc","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"317f3113-e322-4f86-9577-c63ac7f63a1d","type":"text/javascript","exec":[""]}}],"_postman_id":"ac93ad67-b42f-4fed-800c-0093a8474770"},{"name":"Webhook","id":"1cee77a9-425f-42a7-8207-f3aa7a7c8acf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Signature","value":"your_secret_key","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"payment_id\": 431,\n    \"from\": \"Blockchain\",\n    \"txid\": \"241c204238160379710e867f47c5eb5966c13d37726f19e30ff767ce6160d6b3\",\n    \"sequence_id\": \"124323x2\",\n    \"status\": 1,\n    \"ts_event\": 1601950079660,\n    \"coin_value\": \"0.00025560\",\n    \"coin_rate_brl\": \"58684.84\",\n    \"coin_addr\": \"15dR7t4vhSxBAk8hZ96d8tWxqCS53giw9M\",\n    \"value_brl\": \"15.00\",\n    \"coin\": \"BTC\",\n    \"webhook\": null,\n    \"expire_at\": \"2020-10-06 02:09:59\",\n    \"created_at\": \"2020-10-06T02:07:59.000000Z\",\n    }","options":{"raw":{"language":"json"}}},"url":"your_url","description":"# WEBHOOK\nYou can register a URL to receive notifications whenever there is an update on initiated payments.\n\n**Create a Webhook**\n1. First access your Bancryp account in the SANDBOX ou PRODUCTION environment\n2. Go to INTEGRATION\n3. Add your URL\n\nThis will send a post request to `YOUR_URL`. The body of the request will be JSON encoded version of the array passed to payload. The request will have a header called `Signature` that will contain a signature with your **SECRET**, soon the receiving app can use to verify the payload hasn't been tampered with.\n\nIf the receiving app doesn't respond with a response code starting with 2, we will retry calling the webhook after 10 seconds. If that second attempt fails, the package will attempt to call the webhook a final time after 100 seconds."},"response":[],"_postman_id":"1cee77a9-425f-42a7-8207-f3aa7a7c8acf"}],"auth":{"type":"bearer","bearer":{"token":"{{token}}"}},"event":[{"listen":"prerequest","script":{"id":"09da7a3f-9dfd-41bb-9894-c6cd15e91d87","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"79ef837f-e4ce-4a64-a971-d4cc11c90fbe","type":"text/javascript","exec":[""]}}]}