{"info":{"_postman_id":"4c37e47e-eac6-49f7-b7c5-41c412714564","name":"ALL4PAY DOCUMENTATION","description":"<html><head></head><body><p>Changelog v.3.0</p>\n<hr>\n<ul>\n<li>Authentication summary for only one <code>authentication header</code></li>\n<li>Improved performance allowing for faster responses</li>\n<li>Endpoint summary for easy integration</li>\n<li>Inclusion of PIX withdrawal method</li>\n<li>Review of response return rules</li>\n<li>Inclusion of the Sandbox environment with Swagger</li>\n<li>Interactive approval page for Sandbox simulation</li>\n<li>Postman package availability in the integrated environment</li>\n<li>New get deposit endpoint parameters</li>\n</ul>\n<br>\n\n<p>Overview</p>\n<hr>\n<ol>\n<li>Call Create Deposit or Create Withdraw API method to send request in the All4Pay system.</li>\n<li>All4Pay checks if the deposit or withdrawal is valid.</li>\n<li>If the request is valid, All4Pay responds with 200 HTTP status and returns the data. After receiving 200 HTTP status, you will receive the callback notification, and continue the process to update infos in your system.</li>\n<li>If the request is not valid, All4Pay returns 422 (or other) error HTTP status and an error message.</li>\n<li>Your callback_url is defined on your dashboard. All4Pay sends payment callback when order status is changed to pending, confirmed, expired or to any other status. Read more about All4Pay deposit statuses or withdraw statuses. Please note, that payment notifications are sent using POST method.</li>\n<li>In order to avoid multiple erroneous requests, we block equal deposit and withdrawal requests from the same user ID and same requested amount up to few minutes. (example: bug in the frontend when not disabling submit after clicking once).\n<br><br></li>\n</ol>\n<p>API Request Limits</p>\n<hr>\n<p>216,000 / hour per ip address for all API endpoints.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Environment</th>\n<th>Endpoint</th>\n<th>Request Limit</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Live</td>\n<td>POST /deposit</td>\n<td>50 / seconds</td>\n</tr>\n<tr>\n<td>Live</td>\n<td>GET /witddraw</td>\n<td>50 / seconds</td>\n</tr>\n<tr>\n<td>Live</td>\n<td>POST /deposit</td>\n<td>50 / seconds</td>\n</tr>\n<tr>\n<td>Live</td>\n<td>GET /witddraw</td>\n<td>50 / seconds</td>\n</tr>\n</tbody>\n</table>\n</div><p>API returns 429 HTTP error if limit is exceeded.</p>\n<p>API Requests</p>\n<hr>\n<p>API Request is used to query All4Pay API (examples: Create Deposit, Get Deposit).\nAPI Request attributes:</p>\n<ul>\n<li>Action - Which API method was queried.</li>\n<li>Response - HTTP status returned by All4Pay.</li>\n<li>Parameters - Parameters used to query All4Pay API.</li>\n<li>Response - Parameters returned by All4Pay.</li>\n</ul>\n\n<p>API Authentication</p>\n<hr>\n<p>All All4Pay API calls require authentication. You can authenticate your api by providing header: Token.</p>\n<p>API Key - You can generate your API Token key in account area. From dashboard navigation go to api page and create new API Token key.</p>\n<p>POST {{urlProduction}}/deposit/\nAccept: <em>/</em>\nUser-Agent: PHP\nToken: </p>\n<p>Errors</p>\n<hr>\n<p>Most common API error responses described below. Error response must be identified by HTTP status and reason attribute in your application.</p>\n<p>Please note, that specific API methods, for example Create Deposit has their own errors (422 Illegal Conditions - when parameters are invalid).</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>HTTP Status</th>\n<th>Reason</th>\n<th>Message</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>401(Unauthorized)</td>\n<td>Bad Credentials</td>\n<td>API Credentials is not valid</td>\n</tr>\n<tr>\n<td>401(Unauthorized)</td>\n<td>Illegal Conditions</td>\n<td>We were unable to complete your transaction due to your dayli limit of R$ XX,XX . You Still have R$ XX,XX available to deposit today.</td>\n</tr>\n<tr>\n<td>401(Unauthorized)</td>\n<td>Illegal Conditions</td>\n<td>user CPF blocked by All4pay.</td>\n</tr>\n<tr>\n<td>401(Unauthorized)</td>\n<td>Illegal Conditions</td>\n<td>user_id blocked by All4pay.</td>\n</tr>\n<tr>\n<td>404(Not Found)</td>\n<td>PageNotFound</td>\n<td>Page, action or record not found</td>\n</tr>\n<tr>\n<td>404 (Not Found)</td>\n<td>Results not found</td>\n<td>Results not found</td>\n</tr>\n<tr>\n<td>422 (Unauthorized)</td>\n<td>Illegal Conditions</td>\n<td>Parameters not valid</td>\n</tr>\n<tr>\n<td>429 (Unauthorized)</td>\n<td>Rate Limit Exception</td>\n<td>API request limit is exceeded</td>\n</tr>\n<tr>\n<td>500 (Internal Server Error)</td>\n<td>Internal ServerError</td>\n<td>Something wrong in All4Pay</td>\n</tr>\n</tbody>\n</table>\n</div><p>Issues\nThe common issues why your app or API integration possible not working.</p>\n<hr>\n<p>Unable to create deposit / withdraw or unable to send a request to All4Pay API</p>\n<hr>\n<p>Possible reasons:</p>\n<ul>\n<li>Wrong API credentials. Please check if you have entered them correctly. Make sure that there are no spaces before or after the text.</li>\n<li>Wrong API credentials HMAC. Check your account if the operation option is enabled for the key you are using.</li>\n<li>cURL or other library used to communicate with All4Pay API is outdated or is working incorrectly. Please check library version.</li>\n<li>Your server can not reach All4Pay.com. Please check if All4Pay.com is available and if your server can reach it.</li>\n</ul>\n\n<hr>\n<p>The order status is not updated after payment in your system or All4Pay does not send transaction callback (Callback Notification)</p>\n<hr>\n<p>Possible reasons:</p>\n<ul>\n<li>Your server is on a private network, for example localhost. Please make sure that your application is publicly accessible.</li>\n<li>Your website is disabled (in maintenance mode).</li>\n<li>Your server firewall, third-party security service (cloudflare, incapsula, etc.) or your application is blocking All4Pay IP address.</li>\n<li>Yout return url is incorrect, make sure address entered in your account is correct.</li>\n</ul>\n\n<p>CONDITION TO SOLICITATION WITHDRAW\nIf your balance available is not sufficient to request a withdrawal transaction, we will respond with:</p>\n<hr>\n<pre class=\"js\">{\n    \"message\":\"Withdrawal amount greater than your balance available\",\n    \"reason\":\"IllegalConditions\",\n    \"code\":\"0443\"\n}\n</pre>\n<pre class=\"js\">{\n    \"message\":\"Insufficient balance available due to pending withdrawals\",\n    \"reason\":\"IllegalConditions\",\n    \"code\":\"0442\"\n}\n</pre>\n<pre class=\"js\">{\n    \"message\":\"Withdrawal not allowed due to insufficient balance available\",\n    \"reason\":\"IllegalConditions\",\n    \"code\":\"0441\"\n}\n</pre>\n<p><br><br></p>\n<p>API Request Control(amount limits)</p>\n<hr>\n<p>As a way of avoiding possible fraud, All4pay has a user rating that imposes a daily deposit limit per method. Daily limits for default or VIP users are configured according to your needs. We carry out the control based on the volume, amount of deposits and user activity time, based on your user_id and CPF.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"17337981","collectionId":"4c37e47e-eac6-49f7-b7c5-41c412714564","publishedId":"U16dSoz7","public":true,"customColor":{"top-bar":"012b44","right-sidebar":"424244","highlight":"80b141"},"publishDate":"2021-09-01T20:05:48.000Z"},"item":[{"name":"CREATE DEPOSIT","id":"c71d545a-ff3c-4bde-b162-1cd61f6c402e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Token","value":"Your-Token","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"method\" : \"pix\",\r\n    \"order_id\" : \"Your order id\",\r\n    \"user_id\" : \"123456\",\r\n    \"user_name\" : \"Your Name\",\r\n    \"user_document\" : \"99999999999\",\r\n    \"user_address\" : \"Your address\",\r\n    \"user_district\" : \"Your district\",\r\n    \"user_city\" : \"Your city\",\r\n    \"user_uf\" : \"UF\",\r\n    \"user_cep\" : \"99999999\",\r\n    \"amount\" : \"1.80\"\r\n}\r\n{\r\n    \"method\" : \"invoice\",\r\n    \"order_id\" : \"Your order id\",\r\n    \"user_id\" : \"123456\",\r\n    \"user_name\" : \"Your Name\",\r\n    \"user_document\" : \"99999999999\",\r\n    \"user_address\" : \"Your address\",\r\n    \"user_district\" : \"Your district\",\r\n    \"user_city\" : \"Your city\",\r\n    \"user_uf\" : \"UF\",\r\n    \"user_cep\" : \"99999999\",\r\n    \"bank_code\" : \"100\",\r\n    \"amount\" : \"20.50\"\r\n}\r\n{\r\n    \"method\" : \"shop\",\r\n    \"order_id\" : \"Your order id\",\r\n    \"user_id\" : \"User ID\",\r\n    \"user_name\" : \"User name\",\r\n    \"user_document\" : \"User document\",\r\n    \"user_address\" : \"User address\",\r\n    \"user_district\" : \"User district\",\r\n    \"user_city\" : \"User city\",\r\n    \"user_uf\" : \"User UF\",\r\n    \"user_cep\" : \"User UF\",\r\n    \"bank_code\" : \"341\",\r\n    \"amount\" : \"10.21\"\r\n}\r\n{\r\n    \"method\" : \"creditcard\",\r\n    \"order_id\" : \"123654789158252579\",\r\n    \"user_id\" : \"User ID\",\r\n    \"user_name\" : \"User name\",\r\n    \"user_document\" : \"User document\",\r\n    \"user_email\" : \"User e-mail\",\r\n    \"user_phone\" : \"User phone number\",\r\n    \"card_holder\" : \"User card name\",\r\n    \"card_number\" : \"User card number\",\r\n    \"card_expired\" : \"User card expired\",\r\n    \"card_cvv\" : \"User card cvv\",\r\n    \"card_brand\" : \"User card brand\",\r\n    \"user_address\" : \"User address\",\r\n    \"user_district\" : \"User district\",\r\n    \"user_city\" : \"User city\",\r\n    \"user_uf\" : \"User UF\",\r\n    \"user_cep\" : \"User zip code\",\r\n    \"birth_date\" : \"User birth date\",\r\n    \"user_ip\" : \"User IP address\",\r\n    \"return_url\" : \"Your url to return after request\",\r\n    \"amount\" : \"10.50\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/deposit","description":"<p>Perform the tests in Sandbox on the link below:<br />\n<a href=\"https://apisandbox.all4pay.com/\">https://apisandbox.all4pay.com/</a>\n<br /><br />\nbank_code param (required string)<br />\nCode of operation of the bank in Brazil.</p>\n<hr />\n<p>EXEMPLES INVOICE:<br />\n<b>100</b> (default)</p>\n<br />\n\n<p>Deposit Statuses</p>\n<hr />\n<p>Statuses by priority: <br /></p>\n<ol>\n<li>pending</li>\n<li>confirmed</li>\n<li>canceled</li>\n<li>refund</li>\n<li>chargeback</li>\n<li>freeze</li>\n</ol>\n<br />\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>STATUS</th>\n<th>DESCRIPTION</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Pending</td>\n<td>Awaiting payment from the user.</td>\n</tr>\n<tr>\n<td>Confirmed</td>\n<td>Payment confirmed by All4Pay.</td>\n</tr>\n<tr>\n<td>Canceled</td>\n<td>Cancel deposit.</td>\n</tr>\n<tr>\n<td>Refund</td>\n<td>The user receive the amount refund in your origin account.</td>\n</tr>\n<tr>\n<td>Chargeback</td>\n<td>Card transaction reported by user as unrecognized.</td>\n</tr>\n<tr>\n<td>Freeze</td>\n<td>Frozen transaction in dispute awaiting response from the financial institution.</td>\n</tr>\n</tbody>\n</table>\n</div><p><br /><br /></p>\n<p>CREDIT CARD RECOMMENDATIONS</p>\n<hr />\n<p>Follow the recommendations below to validate the integration process so that your production credentials are enabled <br /></p>\n<ul>\n<li>API Features</li>\n<li>Refund Feature</li>\n<li>Credit Card Verification (between R$ 1,00 to R$ 4,99)</li>\n<li>Multiples clicks disable</li>\n<li>Change Cards</li>\n<li>Block same Cards at different account</li>\n<li>Good practices frontend</li>\n</ul>\n<br />\n\n<p><b>TRANSACTION FLOW (CREDIT CARD)</b>\nAs soon as the user makes a deposit request, we await payment. When the payment is made, the issuing bank sends us the status of the payment confirmation and in sequence we have also sent it to you via Callback\n<br /></p>\n<p>Until we receive any notification from the issuing bank, the status remains pending for you for a period of 24 hours\n<br /></p>\n<p><b>IMPORTANT:</b> To avoid <b>CHARGEBACK</b>, only accept the card enroll from the account holder by checking the registered CPF (identification document). Do not accept the card registration of third parties.\n<br /></p>\n<p>INVOICE</p>\n<hr />\n<p>Invoice transactions have the user's CPF (TAX ID) verification function. <br />\nIf the CPF number is invalid, you will receive the following response from the request:\n<br /></p>\n<pre>{\n  \"message\": \"UNAUTHORIZED TRANSACTION ON BB\",\n  \"reason\": \"IllegalConditions\",\n  \"return\": \"CPF do pagador nao encontrado na base.\",\n  \"code\": \"4028\"\n}\n</pre>\n\n<br />\n\n<p>TRANSACTION TEMPORARILY BLOCKED</p>\n<hr />\n<p>If your user clicks on the purchase button several times, we will prevent multiple transactions from being created so that there is no inconvenience.\n<br /></p>\n<p>Below is the message returned in this case:\n<br /></p>\n<pre>{\n message: \"X minute action interval per user reached, please wait to make a new deposit\",\n reason: \"Illegal Conditions\"\n}\n</pre>\n<br />\n\n<p>Deposit Callback</p>\n<hr />\n<p>Deposit callback (notification) will be sent to client callback_url when deposit statuses is changed to pending, confirmed, expired, refund, refund_pending or refund_confirmed.\n<br /></p>\n<p>Callback example: <br /></p>\n<pre>{\n  \"order_id\": \"6236621\",\n  \"user_id\": \"34234\",\n  \"solicitation_date\": \"12/03/2019 13:15:13\",\n  \"paid_date\": \"13/03/2019 02:04:42\",\n  \"code_identify\": \"64305077\",\n  \"amount_solicitation\": \"580.00\",\n  \"amount_confirmed\": \"580.00\",\n  \"status\": \"confirmed\",\n  \"comission\": \"29.00\",\n  \"disponibilization_date\": \"15/03/2019 00:00:00\"\n}\n</pre>","urlObject":{"path":["deposit"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"55938be9-435d-470f-970c-62a0600c6cba","name":"CREATE DEPOSIT PIX","originalRequest":{"method":"POST","header":[{"key":"Token","value":"Your-Token","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"method\" : \"pix\",\r\n    \"order_id\" : \"Your order id\",\r\n    \"user_id\" : \"123456\",\r\n    \"user_name\" : \"Your Name\",\r\n    \"user_document\" : \"99999999999\",\r\n    \"user_address\" : \"Your address\",\r\n    \"user_district\" : \"Your district\",\r\n    \"user_city\" : \"Your city\",\r\n    \"user_uf\" : \"UF\",\r\n    \"user_cep\" : \"99999999\",\r\n    \"amount\" : \"1.80\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/deposit"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"425"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 31 Aug 2021 15:30:03 GMT"},{"key":"x-amzn-RequestId","value":"d5e6d8a6-7650-4844-a5e3-eb30dbe26184"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"E8CmFEtnCYcFgLA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-612e4af3-73bbe87d07c463ca2b04057e"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 819fb1f29c3038ca3cec04e041a0aa1f.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"GRU1-C1"},{"key":"X-Amz-Cf-Id","value":"YZ-IIL-CNS4tstQyBJOnbl_Tx82_qxJdYdErkv4lgDYVGutvPe2QEw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"order_id\": \"123654789158252570\",\n    \"solicitation_date\": \"2021-08-31 12:30:02\",\n    \"due_date\": \"2021-09-01\",\n    \"code_identify\": \"A4P01388887\",\n    \"amount\": \"1.80\",\n    \"status\": \"pending\",\n    \"link_qr\": \"https://xdash.all4pay.com/qrcodepix/498374/123654789158252571/200x200\",\n    \"content_qr\": \"00020101021226510014BR.GOV.BCB.PIX0114381737280001980211A4P0138888753040000530398654041.805802BR5906Uhupay6014Belo Horizonte61083038040362150511A4P013888876304AE68\"\n}"},{"id":"8e8b2000-abc2-4e28-bb04-6818a5ec8967","name":"CREATE DEPOSIT INVOICE","originalRequest":{"method":"POST","header":[{"key":"Token","value":"Your-Token","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"method\" : \"invoice\",\r\n    \"order_id\" : \"Your order id\",\r\n    \"user_id\" : \"123456\",\r\n    \"user_name\" : \"Your Name\",\r\n    \"user_document\" : \"99999999999\",\r\n    \"user_address\" : \"Your address\",\r\n    \"user_district\" : \"Your district\",\r\n    \"user_city\" : \"Your city\",\r\n    \"user_uf\" : \"UF\",\r\n    \"user_cep\" : \"99999999\",\r\n    \"bank_code\" : \"100\",\r\n    \"amount\" : \"20.50\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/deposit"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"425"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 31 Aug 2021 15:30:03 GMT"},{"key":"x-amzn-RequestId","value":"d5e6d8a6-7650-4844-a5e3-eb30dbe26184"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"E8CmFEtnCYcFgLA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-612e4af3-73bbe87d07c463ca2b04057e"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 819fb1f29c3038ca3cec04e041a0aa1f.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"GRU1-C1"},{"key":"X-Amz-Cf-Id","value":"YZ-IIL-CNS4tstQyBJOnbl_Tx82_qxJdYdErkv4lgDYVGutvPe2QEw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"order_id\": \"123654789158252571\",\n    \"solicitation_date\": \"2021-08-31 12:36:13\",\n    \"due_date\": \"2021-09-05\",\n    \"code_identify\": 75904884,\n    \"amount\": \"20.55\",\n    \"bank_name\": \"BANK\",\n    \"holder\": \"HOLDER ACCOUNT BANK\",\n    \"agency\": \"0000\",\n    \"type_account\": \"corrente\",\n    \"account\": \"0000000\",\n    \"status\": \"pending\",\n    \"link_invoice\": \"https://xdash.all4pay.com/get-invoice-all4pay/token/123654789158252571\",\n    \"bar_code\": \"21890010070605682820900589960384187340000002055\"\n}"},{"id":"b4571173-ca6a-44ce-98a8-3d35ebb7d72c","name":"CREATE DEPOSIT CARD","originalRequest":{"method":"POST","header":[{"key":"Token","value":"Your-Token","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"method\" : \"creditcard\",\r\n    \"order_id\" : \"123654789158252579\",\r\n    \"user_id\" : \"User ID\",\r\n    \"user_name\" : \"User name\",\r\n    \"user_document\" : \"User document\",\r\n    \"user_email\" : \"User e-mail\",\r\n    \"user_phone\" : \"User phone number\",\r\n    \"card_holder\" : \"User card name\",\r\n    \"card_number\" : \"User card number\",\r\n    \"card_expired\" : \"User card expired\",\r\n    \"card_cvv\" : \"User card cvv\",\r\n    \"card_brand\" : \"User card brand\",\r\n    \"user_address\" : \"User address\",\r\n    \"user_district\" : \"User district\",\r\n    \"user_city\" : \"User city\",\r\n    \"user_uf\" : \"User UF\",\r\n    \"user_cep\" : \"User zip code\",\r\n    \"birth_date\" : \"User birth date\",\r\n    \"user_ip\" : \"User IP address\",\r\n    \"return_url\" : \"Your url to return after request\",\r\n    \"amount\" : \"10.50\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/deposit"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"425"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 31 Aug 2021 15:30:03 GMT"},{"key":"x-amzn-RequestId","value":"d5e6d8a6-7650-4844-a5e3-eb30dbe26184"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"E8CmFEtnCYcFgLA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-612e4af3-73bbe87d07c463ca2b04057e"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 819fb1f29c3038ca3cec04e041a0aa1f.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"GRU1-C1"},{"key":"X-Amz-Cf-Id","value":"YZ-IIL-CNS4tstQyBJOnbl_Tx82_qxJdYdErkv4lgDYVGutvPe2QEw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"order_id\": \"123654789158252579\",\n    \"solicitation_date\": \"2021-08-31 13:15:56\",\n    \"due_date\": \"02/09/2021\",\n    \"code_identify\": \"A4P39100754\",\n    \"amount\": \"10.50\",\n    \"fees\": \"5\",\n    \"status\": \"pending\",\n    \"link_shop\": \"https://cred3ds.credpay.com.br/gn/612e55bb756a52470f3729e8d\",\n    \"link_invoice\": \"https://cred3ds.credpay.com.br/gn/612e55bb756a52470f3729e8d\"\n}"},{"id":"6d5da0f7-6f2c-460f-8c57-afbfabc8016c","name":"CREATE DEPOSIT CARD PING","originalRequest":{"method":"POST","header":[{"key":"Token","value":"Your-Token","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"method\" : \"creditcard\",\r\n    \"order_id\" : \"123654789158252578\",\r\n    \"user_id\" : \"User ID\",\r\n    \"user_name\" : \"User name\",\r\n    \"user_document\" : \"User document\",\r\n    \"user_email\" : \"User e-mail\",\r\n    \"user_phone\" : \"User phone number\",\r\n    \"card_holder\" : \"User card name\",\r\n    \"card_number\" : \"User card number\",\r\n    \"card_expired\" : \"User card expired\",\r\n    \"card_cvv\" : \"User card cvv\",\r\n    \"card_brand\" : \"User card brand\",\r\n    \"user_address\" : \"User address\",\r\n    \"user_district\" : \"User district\",\r\n    \"user_city\" : \"User city\",\r\n    \"user_uf\" : \"User UF\",\r\n    \"user_cep\" : \"User zip code\",\r\n    \"birth_date\" : \"User birth date\",\r\n    \"user_ip\" : \"User IP address\",\r\n    \"return_url\" : \"Your url to return after request\",\r\n    \"amount\" : \"1.65\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/deposit"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"425"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 31 Aug 2021 15:30:03 GMT"},{"key":"x-amzn-RequestId","value":"d5e6d8a6-7650-4844-a5e3-eb30dbe26184"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"E8CmFEtnCYcFgLA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-612e4af3-73bbe87d07c463ca2b04057e"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 819fb1f29c3038ca3cec04e041a0aa1f.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"GRU1-C1"},{"key":"X-Amz-Cf-Id","value":"YZ-IIL-CNS4tstQyBJOnbl_Tx82_qxJdYdErkv4lgDYVGutvPe2QEw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"order_id\": \"123654789158252578\",\n    \"solicitation_date\": \"2021-08-31 13:12:59\",\n    \"refund_date\": \"2021-08-31 13:12:59\",\n    \"due_date\": \"02/09/2021\",\n    \"code_identify\": \"A4P94289715\",\n    \"amount\": \"1.65\",\n    \"fees\": \"0.00\",\n    \"status\": \"refund\"\n}"}],"_postman_id":"c71d545a-ff3c-4bde-b162-1cd61f6c402e"},{"name":"GET DEPOSIT","id":"e1c0730d-04fc-4fd2-b6ff-0414069568d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Token","value":"Your-Token","type":"text"}],"url":"{{baseUrl}}/deposit?first_date=2021-07-30&last_date=2021-08-15&status=confirmed&method=pix&order_id","urlObject":{"path":["deposit"],"host":["{{baseUrl}}"],"query":[{"description":{"content":"<p>Initial date of search</p>\n","type":"text/plain"},"key":"first_date","value":"2021-07-30"},{"description":{"content":"<p>Final date of search</p>\n","type":"text/plain"},"key":"last_date","value":"2021-08-15"},{"description":{"content":"<p>Transaction status separated by commas. Ex (confirmed,pending,canceled,refund,chargeback,freeze)</p>\n","type":"text/plain"},"key":"status","value":"confirmed"},{"description":{"content":"<p>Transaction method separated by commas. Ex (pix,invoice,shop,creditcard)</p>\n","type":"text/plain"},"key":"method","value":"pix"},{"description":{"content":"<p>Transaction Order ID</p>\n","type":"text/plain"},"key":"order_id","value":null}],"variable":[]}},"response":[{"id":"6b3686a0-ee62-46a6-84c9-6179d54ce7fc","name":"GET DEPOSIT","originalRequest":{"method":"GET","header":[{"key":"Token","value":"Your-Token","type":"text"}],"url":{"raw":"{{baseUrl}}/deposit?first_date=2021-07-30&last_date=2021-08-01&status=confirmed&method=pix&order_id","host":["{{baseUrl}}"],"path":["deposit"],"query":[{"key":"first_date","value":"2021-07-30","description":"Initial date of search"},{"key":"last_date","value":"2021-08-01","description":"Final date of search"},{"key":"status","value":"confirmed","description":"Transaction status separated by commas. Ex (confirmed,pending,canceled,refund,chargeback,freeze)"},{"key":"method","value":"pix","description":"Transaction method separated by commas. Ex (pix,invoice,shop,creditcard)"},{"key":"order_id","value":null,"description":"Transaction Order ID","type":"text"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"1916"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 31 Aug 2021 16:31:12 GMT"},{"key":"x-amzn-RequestId","value":"e01c0a2f-3ba6-4324-a46c-520a62fbb728"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"E8LkYFPkiYcFz7g="},{"key":"X-Amzn-Trace-Id","value":"Root=1-612e594f-47a3f5c840640d5773c8a3fd"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 b97800dba63a54d15f1e69f88e3a1a3e.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"GRU1-C1"},{"key":"X-Amz-Cf-Id","value":"zGlxCO82D2mRLpde5-bM29h-StH6YIRVli-ndtsZN648SdTNDb_jVQ=="}],"cookie":[],"responseTime":null,"body":"{\n    \"orders\": [\n        {\n            \"id\": 467492,\n            \"order_id\": \"Order ID\",\n            \"paid_date_clear\": \"2021-08-11 13:50:06\",\n            \"paid_date\": \"11/08/2021 13:50:06\",\n            \"due_date\": \"12/08/2021\",\n            \"code_identify\": \"A4P66551490\",\n            \"amount_solicitation\": \"1.65\",\n            \"amount_confirmed\": \"1.65\",\n            \"code_bank\": \"Code Bank\",\n            \"bank_name\": \"Bank Name\",\n            \"holder\": \"Account Bank Name\",\n            \"agency\": \"Agency Bank\",\n            \"type_account\": \"corrente\",\n            \"account\": \"Account Number\",\n            \"status\": \"confirmed\",\n            \"link_invoice\": \"https://xdash.all4pay.com/qrcodepix/467492/2143517/200x200\",\n            \"receipt\": \"\",\n            \"comission\": \"0.9\",\n            \"disponibilization_date\": \"12/08/2021 00:00:00\"\n        },\n        {\n            \"id\": 467493,\n            \"order_id\": \"Order ID\",\n            \"paid_date_clear\": \"2021-08-14 13:50:06\",\n            \"paid_date\": \"14/08/2021 13:50:06\",\n            \"due_date\": \"15/08/2021\",\n            \"code_identify\": \"A4P66551491\",\n            \"amount_solicitation\": \"7.30\",\n            \"amount_confirmed\": \"7.30\",\n            \"code_bank\": \"Code Bank\",\n            \"bank_name\": \"Bank Name\",\n            \"holder\": \"Account Bank Name\",\n            \"agency\": \"Agency Bank\",\n            \"type_account\": \"corrente\",\n            \"account\": \"Account Number\",\n            \"status\": \"confirmed\",\n            \"link_invoice\": \"https://xdash.all4pay.com/qrcodepix/467492/2753517/200x200\",\n            \"receipt\": \"\",\n            \"comission\": \"0.9\",\n            \"disponibilization_date\": \"15/08/2021 00:00:00\"\n        }\n    ]\n}"}],"_postman_id":"e1c0730d-04fc-4fd2-b6ff-0414069568d1"},{"name":"CANCEL DEPOSIT","id":"f4fb2a95-a6bb-4b1b-af2c-ae64da801269","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Token","value":"Your-Token","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"order_id\" : \"Your order id\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/deposit","urlObject":{"path":["deposit"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f4fb2a95-a6bb-4b1b-af2c-ae64da801269"},{"name":"CREATE WITHDRAW","id":"084f2a4f-45b7-4996-8559-334b5170b5da","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Token","value":"Your-Token","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"method\" : \"pix\",\r\n    \"order_id\" : \"123456789\",\r\n    \"user_id\" : \"123456\",\r\n    \"user_name\": \"User name\",\r\n    \"user_document\": \"User document\",\r\n    \"amount\" : \"250.00\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/withdraw","urlObject":{"path":["withdraw"],"host":["{{baseUrl}}"],"query":[],"variable":[]}},"response":[{"id":"5b82e51b-af9e-467a-8e11-b0efc5a7b9b5","name":"CREATE WITHDRAW","originalRequest":{"method":"POST","header":[{"key":"Token","value":"Your-Token","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"method\" : \"pix\",\r\n    \"order_id\" : \"12345678TTT9\",\r\n    \"user_id\" : \"User ID\",\r\n    \"user_name\": \"User name\",\r\n    \"user_document\": \"User document\",\r\n    \"amount\" : \"1.54\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseUrl}}/withdraw"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"300"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 31 Aug 2021 17:42:30 GMT"},{"key":"x-amzn-RequestId","value":"770c9b07-e59f-4686-8535-08967948aa34"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"E8WAWFDWiYcFxwA="},{"key":"X-Amzn-Trace-Id","value":"Root=1-612e6a02-05e1011b2586a8bd30b1e74b"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 5737857b517c9071e8cc21326fd104a6.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"GRU3-C2"},{"key":"X-Amz-Cf-Id","value":"kmfd5oeamHPnmsCXKOWDKybx7eJqSXic1dbS9WVAbd3newPLORZMXA=="}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 498566,\n    \"order_id\": \"12345678TTT9\",\n    \"solicitation_date\": \"2021-08-31 14:42:30\",\n    \"user_id\": \"User ID\",\n    \"user_name\": \"User name\",\n    \"user_document\": \"User document\",\n    \"bank_name\": null,\n    \"agency\": null,\n    \"type_operation\": null,\n    \"account\": null,\n    \"amount_solicitation\": \"1.54\",\n    \"currency\": null,\n    \"status\": \"pending\"\n}"}],"_postman_id":"084f2a4f-45b7-4996-8559-334b5170b5da"},{"name":"GET WITHDRAW","id":"87cd3bb6-ee8f-4609-af6e-c971cb76c989","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Token","value":"Your-Token","type":"text"}],"url":"{{baseUrl}}/withdraw?order_id=TESTE15153561","urlObject":{"path":["withdraw"],"host":["{{baseUrl}}"],"query":[{"key":"order_id","value":"TESTE15153561"}],"variable":[]}},"response":[{"id":"7c335c72-1b5c-4520-a9a7-e3de4f4d5a41","name":"GET WITHDRAW","originalRequest":{"method":"GET","header":[{"key":"Token","value":"Your-Token","type":"text"}],"url":{"raw":"{{baseUrl}}/withdraw?order_id=TESTE15153561","host":["{{baseUrl}}"],"path":["withdraw"],"query":[{"key":"order_id","value":"TESTE15153561"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"330"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Tue, 31 Aug 2021 17:41:24 GMT"},{"key":"x-amzn-RequestId","value":"9523858b-befa-44fa-ab7b-58be0826c7a9"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"E8V2fHTsiYcFUYg="},{"key":"X-Amzn-Trace-Id","value":"Root=1-612e69c2-184f412d6aec985114ca837b"},{"key":"X-Cache","value":"Miss from cloudfront"},{"key":"Via","value":"1.1 5737857b517c9071e8cc21326fd104a6.cloudfront.net (CloudFront)"},{"key":"X-Amz-Cf-Pop","value":"GRU3-C2"},{"key":"X-Amz-Cf-Id","value":"IXjOEzskmMuBNOAgfRbexpYn1X71QAJgMNlUiAMA2E70lHJERrWzYw=="}],"cookie":[],"responseTime":null,"body":"{\n    \"order_id\": \"TESTET15153561\",\n    \"solicitation_date_clear\": \"2021-08-30 16:02:48\",\n    \"solicitation_date\": \"30/08/2021 16:02:48\",\n    \"code_identify\": null,\n    \"amount_solicitation\": \"1.66\",\n    \"code_bank\": \"218\",\n    \"bank_name\": \"---\",\n    \"holder\": \"User name\",\n    \"agency\": \"---\",\n    \"type_account\": \"---\",\n    \"account\": \"---\",\n    \"document\": \"User document\",\n    \"status\": \"canceled\"\n}"}],"_postman_id":"87cd3bb6-ee8f-4609-af6e-c971cb76c989"}]}