{"info":{"_postman_id":"1f782e0f-ed90-4fdb-bccc-4ca271ae31cf","name":"Vinpay2s Payment gateway document","description":"<html><head></head><body><p>Documentation for using the APIs to integrate the payment system via Vinpay2s.<br>To integrate payments via Vinpay2s, your payment page will need to call our order creation API: <code>/api/orders/create</code>.<br>The required input information is as follows:</p>\n<p><strong>Header</strong>:</p>\n<ul>\n<li><code>token</code>: The secret code provided to your system upon registration.</li>\n</ul>\n<p><strong>Body (form-data)</strong>:</p>\n<ul>\n<li><p><code>orderId</code>: Your system's order ID (used for reconciliation and payment status checks).</p>\n</li>\n<li><p><code>amount</code>: Payment amount.</p>\n</li>\n<li><p><code>redirectUrl</code>: URL to redirect to after a successful payment.</p>\n</li>\n<li><p><code>ipnUrl</code>: Callback address for payment data.</p>\n</li>\n<li><p><code>orderInfo</code>: JSON order details.</p>\n</li>\n<li><p><code>description</code>: Product name for payment.</p>\n</li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"1787459","collectionId":"1f782e0f-ed90-4fdb-bccc-4ca271ae31cf","publishedId":"2sAY4x9gXS","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-11-01T16:37:16.000Z"},"item":[{"name":"API create order","id":"dd573924-1a95-4d5b-b304-1950b03d074d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"token","value":"GW1m4PIHXkhUtRtuxMmxt5jQ20heE99C","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"orderId","value":"DM0046","description":"<p>Order ID</p>\n","type":"text"},{"key":"amount","value":"2000","description":"<p>Amount</p>\n","type":"text"},{"key":"redirectUrl","value":"https://shopee.vn/%C4%90%E1%BA%BF-S%E1%BA%A1c-Kh%C3%B4ng-D%C3%A2y-4-Trong-1-C%C3%B3-Th%E1%BB%83-G%E1%BA%ADp-L%E1%BA%A1i-%C4%90%C6%B0%E1%BB%A3c-Cho-Apple-iphone-samsung-i.844385377.21539795013","description":"<p>URL redirect if payment success</p>\n","type":"text"},{"key":"orderInfo","value":"{\"productName\": \"Usb token\", \"color\": \"Red\" }","description":"<p>Order info Json</p>\n","type":"text"},{"key":"description","value":"USB Token red","description":"<p>Order name</p>\n","type":"text"}]},"url":"http://localhost:8000/api/orders/create","description":"<p>To integrate payments via Vinpay2s, your payment page will need to call our order creation API: <code>/api/orders/create</code>.<br />The required input information is as follows:</p>\n<p><strong>Header</strong>:</p>\n<ul>\n<li><code>token</code>: The secret code provided to your system upon registration.</li>\n</ul>\n<p><strong>Body (form-data)</strong>:</p>\n<ul>\n<li><p><code>orderId</code>: Your system's order ID (used for reconciliation and payment status checks).</p>\n</li>\n<li><p><code>amount</code>: Payment amount.</p>\n</li>\n<li><p><code>redirectUrl</code>: URL to redirect to after a successful payment.</p>\n</li>\n<li><p><code>ipnUrl</code>: Callback address for payment data.</p>\n</li>\n<li><p><code>orderInfo</code>: JSON order details.</p>\n</li>\n<li><p><code>description</code>: Product name for payment.</p>\n</li>\n</ul>\n<p>When the order creation API is successfully called, the system will return a response like this:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"status\": 1,\n    \"order_code\": \"SPAY672a38f749b7aEGW\",\n    \"redirectUrl\": \"http://localhost:8000/pay?code=SPAY672a38f749b7aEGW\",\n    \"message\": \"Success\"\n}\n\n</code></pre>\n<p>The key part is the <code>redirectUrl</code>. Your website must redirect to this URL for payment. Vinpay2s will display a payment page with a QR code. After the customer transfers funds, Vinpay2s will notify success and redirect the website according to the URL you specified.</p>\n<p>When you receive a payment for the specified orderID, the system will callback to your API as follows:</p>\n<ul>\n<li><p><strong>Method</strong>: POST</p>\n</li>\n<li><p><strong>Data</strong>:</p>\n</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"bank_id\": 1,\n  \"bank\": \"TCB\",\n  \"accountNo\": \"11061978\",\n  \"amount\": 2000,\n  \"type\": \"in\",\n  \"description\": \"SPoDOL5pEG\",\n  \"refNo\": \"FT25006309520802\",\n  \"benAccountName\": \"\",\n  \"bankName\": \"\",\n  \"benAccountNo\": \"\",\n  \"transactionDate\": \"2025-01-06 00:00:00\",\n  \"order_id\": \"KK202501060122343223\",\n  \"order_code\": \"SPoDOL5pEG\"\n}\n\n</code></pre>\n<p>Your system only needs to use <strong>order_id</strong> or <strong>order_code</strong> to process and update the order status.</p>\n","urlObject":{"protocol":"http","port":"8000","path":["api","orders","create"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"968afc1b-3c31-42e7-9c92-962dc56256b4","name":"API create order => Success","originalRequest":{"method":"POST","header":[{"key":"token","value":"JtumHOD54mqgvarl2C6IrxhGRaCuR4fj","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"orderId","value":"DH0009","description":"Order ID","type":"text"},{"key":"amount","value":"2000","description":"Amount","type":"text"},{"key":"redirectUrl","value":"https://shopee.vn/%C4%90%E1%BA%BF-S%E1%BA%A1c-Kh%C3%B4ng-D%C3%A2y-4-Trong-1-C%C3%B3-Th%E1%BB%83-G%E1%BA%ADp-L%E1%BA%A1i-%C4%90%C6%B0%E1%BB%A3c-Cho-Apple-iphone-samsung-i.844385377.21539795013","description":"URL redirect if payment success","type":"text"},{"key":"orderInfo","value":"{\"productName\": \"Usb token\", \"color\": \"Red\" }","description":"Order info Json","type":"text"},{"key":"description","value":"USB Token red","description":"Order name","type":"text"}]},"url":"{{host}}/api/orders/create"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Sat, 09 Nov 2024 09:38:52 GMT"},{"key":"Date","value":"Sat, 09 Nov 2024 09:38:52 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.33"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 1,\n    \"order_code\": \"SPAY672f2dabf3690EGW\",\n    \"id\": 8,\n    \"data\": \"{\\\"order_id\\\":\\\"DH0009\\\",\\\"order_code\\\":\\\"SPAY672f2dabf3690EGW\\\",\\\"redirectUrl\\\":\\\"https:\\\\/\\\\/shopee.vn\\\\/%C4%90%E1%BA%BF-S%E1%BA%A1c-Kh%C3%B4ng-D%C3%A2y-4-Trong-1-C%C3%B3-Th%E1%BB%83-G%E1%BA%ADp-L%E1%BA%A1i-%C4%90%C6%B0%E1%BB%A3c-Cho-Apple-iphone-samsung-i.844385377.21539795013\\\",\\\"data\\\":\\\"{\\\\\\\"productName\\\\\\\": \\\\\\\"Usb token\\\\\\\", \\\\\\\"color\\\\\\\": \\\\\\\"Red\\\\\\\" }\\\",\\\"amount\\\":\\\"2000\\\",\\\"description\\\":\\\"USB Token red\\\",\\\"user_id\\\":1,\\\"expired_at\\\":\\\"2024-11-09 16:48:51\\\",\\\"status\\\":\\\"processing\\\",\\\"updated_at\\\":\\\"2024-11-09T09:38:51.000000Z\\\",\\\"created_at\\\":\\\"2024-11-09T09:38:51.000000Z\\\",\\\"id\\\":8}\",\n    \"redirectUrl\": \"http://localhost:8000/pay?code=SPAY672f2dabf3690EGW\",\n    \"message\": \"Success\"\n}"},{"id":"98caca68-341b-4301-9022-9338747a90c3","name":"API create order -> Error orderID exist","originalRequest":{"method":"POST","header":[{"key":"token","value":"JtumHOD54mqgvarl2C6IrxhGRaCuR4fj","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"orderId","value":"DH0009","description":"Order ID","type":"text"},{"key":"amount","value":"2000","description":"Amount","type":"text"},{"key":"redirectUrl","value":"https://shopee.vn/%C4%90%E1%BA%BF-S%E1%BA%A1c-Kh%C3%B4ng-D%C3%A2y-4-Trong-1-C%C3%B3-Th%E1%BB%83-G%E1%BA%ADp-L%E1%BA%A1i-%C4%90%C6%B0%E1%BB%A3c-Cho-Apple-iphone-samsung-i.844385377.21539795013","description":"URL redirect if payment success","type":"text"},{"key":"orderInfo","value":"{\"productName\": \"Usb token\", \"color\": \"Red\" }","description":"Order info Json","type":"text"},{"key":"description","value":"USB Token red","description":"Order name","type":"text"}]},"url":"{{host}}/api/orders/create"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Sat, 09 Nov 2024 15:00:29 GMT"},{"key":"Date","value":"Sat, 09 Nov 2024 15:00:29 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.33"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 0,\n    \"errors\": [\n        \"OrderId already exists\"\n    ]\n}"},{"id":"74048bb4-86af-45a2-8ec9-c35df3e7332f","name":"API create order => Error missing param input","originalRequest":{"method":"POST","header":[{"key":"token","value":"JtumHOD54mqgvarl2C6IrxhGRaCuR4fj","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"orderId","value":"DH0010","description":"Order ID","type":"text"},{"key":"amount","value":"2000","description":"Amount","type":"text"},{"key":"redirectUrl","value":"https://shopee.vn/%C4%90%E1%BA%BF-S%E1%BA%A1c-Kh%C3%B4ng-D%C3%A2y-4-Trong-1-C%C3%B3-Th%E1%BB%83-G%E1%BA%ADp-L%E1%BA%A1i-%C4%90%C6%B0%E1%BB%A3c-Cho-Apple-iphone-samsung-i.844385377.21539795013","description":"URL redirect if payment success","type":"text","disabled":true},{"key":"orderInfo","value":"{\"productName\": \"Usb token\", \"color\": \"Red\" }","description":"Order info Json","type":"text"},{"key":"description","value":"USB Token red","description":"Order name","type":"text"}]},"url":"{{host}}/api/orders/create"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Sat, 09 Nov 2024 15:01:24 GMT"},{"key":"Date","value":"Sat, 09 Nov 2024 15:01:24 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.33"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 0,\n    \"errors\": [\n        \"RedirectUrl is required\"\n    ]\n}"}],"_postman_id":"dd573924-1a95-4d5b-b304-1950b03d074d"},{"name":"Create withdraw","id":"57439d59-0768-4f84-94c3-e08dd227f102","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"token","value":"GW1m4PIHXkhUtRtuxMmxt5jQ20heE99C","description":"<p>Lita: GW1m4PIHXkhUtRtuxMmxt5jQ20heE99C</p>\n","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"bank","value":"MBBANK","description":"<p>Name of receiving bank example Techcombank</p>\n","type":"text"},{"key":"accNo","value":"0984838200","description":"<p>Bank account number example: 3939999999</p>\n","type":"text"},{"key":"fullname","value":"NGUYENHOANGNAM","description":"<p>Bank account name example: NGUYEN VAN A</p>\n","type":"text"},{"key":"amount","value":"5000","description":"<p>Amount to withdraw</p>\n","type":"text"},{"key":"description","value":"rut tien lan 1","description":"<p>Withdrawal content</p>\n","type":"text"},{"key":"orderId","value":"ORCU010121","description":"<p>Order ID</p>\n","type":"text"}]},"url":"http://localhost:8000/api/withdraw/create","description":"<p>To create a withdrawal request from Vinpay2s to your account, use the API <code>api/withdraw/create</code>.</p>\n<p><strong>Method</strong>: POST<br /><strong>Header</strong>:</p>\n<ul>\n<li><code>token</code>: The secret code provided to your system upon registration.</li>\n</ul>\n<p><strong>Data</strong>:</p>\n<ul>\n<li><p><code>bank</code>: Your bank name (e.g., Techcombank).</p>\n</li>\n<li><p><code>accNo</code>: Your bank account number (e.g., 199999999).</p>\n</li>\n<li><p><code>fullname</code>: Account holder's name (e.g., NGUYEN VAN A).</p>\n</li>\n<li><p><code>amount</code>: The amount to withdraw. (Min: 500000, Max: 300000000)</p>\n</li>\n<li><p><code>description</code>: Withdrawal description, allow blank</p>\n</li>\n<li><p><code>orderId</code>: OrderID</p>\n</li>\n</ul>\n<p>List bank supported:</p>\n<blockquote>\n<p>VIETCOMBANK<br />AGRIBANK<br />BIDV<br />SACOMBANK<br />TECHCOMBANK<br />TPBANK<br />HDBank<br />VPBANK<br />MBBANK<br />OCEANBANK<br />MSB<br />LIENVIETPOSTBANK<br />ACB<br />ABBANK<br />NCB<br />EXIMBANK<br />SeABank<br />SCB<br />DongA<br />DongABank<br />DAB<br />PVcomBank<br />Kienlongbank<br />VietCapitalBank<br />VietinBank<br />OCB<br />VIETBANK<br />SHB<br />NAMABANK<br />SHINHAN BANK VIETNAM<br />CIMB<br />SAIGONBANK<br />BACABANK<br />VAB<br />BVB<br />GPBANK<br />HSBC<br />VRB<br />VIB </p>\n</blockquote>\n<p>In the case of a successful withdrawal, our system will callback with the following information:</p>\n<ul>\n<li><p><strong>Method</strong>: POST</p>\n</li>\n<li><p><strong>Data</strong>: JSON</p>\n</li>\n</ul>\n<p><strong>Sample Data</strong>:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"id\": 22,\n  \"bank\": \"VIETCOMBANK\",\n  \"accNo\": \"3939999999\",\n  \"fullname\": \"NGUYEN VAN A\",\n  \"user_id\": 1,\n  \"amount\": 1000,\n  \"description\": \"Withdrawal content\",\n  \"status\": \"success\",\n  \"created_at\": \"2024-11-09T14:57:26.000000Z\",\n  \"updated_at\": \"2025-01-14T14:59:04.000000Z\",\n  \"reason\": \"\",\n  \"order_id\": \"ORCU010103\"\n}\n\n</code></pre>\n<p>In the case of a failed withdrawal, the data returned will be:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"id\": 22,\n  \"bank\": \"VIETCOMBANK\",\n  \"accNo\": \"3939999999\",\n  \"fullname\": \"NGUYEN VAN A\",\n  \"user_id\": 1,\n  \"amount\": 1000,\n  \"description\": \"Withdrawal content\",\n  \"status\": \"failed\",\n  \"created_at\": \"2024-11-09T14:57:26.000000Z\",\n  \"updated_at\": \"2025-01-14T14:59:34.000000Z\",\n  \"reason\": \"2: Account name mismatch\",\n  \"order_id\": \"ORCU010103\"\n}\n\n</code></pre>\n<p>There are 4 types of failure reasons, as follows:</p>\n<ul>\n<li><p><strong>1</strong>: Incorrect account number</p>\n</li>\n<li><p><strong>2</strong>: Account name mismatch</p>\n</li>\n<li><p><strong>3</strong>: Bank mismatch</p>\n</li>\n<li><p><strong>4</strong>: Bank is under maintenance</p>\n</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8000","path":["api","withdraw","create"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"1ed2d504-cc54-49ca-961a-e44b5abdd779","name":"With Draw Success","originalRequest":{"method":"POST","header":[{"key":"token","value":"JtumHOD54mqgvarl2C6IrxhGRaCuR4fj","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"bank","value":"Techcombank","description":"Name of receiving bank example Techcombank","type":"text"},{"key":"accNo","value":"3939999999","description":"Bank account number example: 3939999999","type":"text"},{"key":"fullname","value":"NGUYEN VAN A","description":"Bank account name example: NGUYEN VAN A","type":"text"},{"key":"amount","value":"1000","description":"Amount to withdraw","type":"text"},{"key":"description","value":"Withdrawal content","description":"Withdrawal content","type":"text"}]},"url":"{{host}}/api/withdraw/create"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Sat, 09 Nov 2024 14:57:27 GMT"},{"key":"Date","value":"Sat, 09 Nov 2024 14:57:27 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.33"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 1,\n    \"data\": {\n        \"bank\": \"Techcombank\",\n        \"accNo\": \"3939999999\",\n        \"fullname\": \"NGUYEN VAN A\",\n        \"user_id\": 1,\n        \"amount\": \"1000\",\n        \"description\": \"Withdrawal content\",\n        \"status\": \"processing\",\n        \"updated_at\": \"2024-11-09T14:57:26.000000Z\",\n        \"created_at\": \"2024-11-09T14:57:26.000000Z\",\n        \"id\": 22\n    }\n}"},{"id":"6db424cb-0106-421a-95aa-c4a5b007e8d4","name":"With Draw Error","originalRequest":{"method":"POST","header":[{"key":"token","value":"JtumHOD54mqgvarl2C6IrxhGRaCuR4fj","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"bank","value":"Techcombank","description":"Name of receiving bank example Techcombank","type":"text"},{"key":"accNo","value":"3939999999","description":"Bank account number example: 3939999999","type":"text"},{"key":"fullname","value":"NGUYEN VAN A","description":"Bank account name example: NGUYEN VAN A","type":"text"},{"key":"amount","value":"1000","description":"Amount to withdraw","type":"text"},{"key":"description","value":"Withdrawal content","description":"Withdrawal content","type":"text"}]},"url":"{{host}}/api/withdraw/create"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Sat, 09 Nov 2024 11:01:44 GMT"},{"key":"Date","value":"Sat, 09 Nov 2024 11:01:44 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.33"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 0,\n    \"errors\": [\n        \"You cannot create a withdrawal order because of insufficient balance\"\n    ]\n}"}],"_postman_id":"57439d59-0768-4f84-94c3-e08dd227f102"},{"name":"Get Order","id":"c6ff5316-063f-4c0e-9a7d-4aaa559c4203","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"token","value":"{{token}}","type":"text"}],"url":"https://api.cuoctienich.com/api/orders/list?page=1&limit=20&status=processing","description":"<p>To get detailed information about orders, use the API <code>api/orders/list?page=1&amp;limit=20&amp;status=processing</code>.</p>\n<p><strong>Method</strong>: GET<br /><strong>Header</strong>:</p>\n<ul>\n<li><code>token</code>: The secret code provided to your system upon registration.</li>\n</ul>\n<p><strong>Data</strong>:</p>\n<ul>\n<li><p><code>page</code>: The page number to retrieve, default is 1.</p>\n</li>\n<li><p><code>limit</code>: The number of records per page.</p>\n</li>\n<li><p><code>status</code>: Filter by the payment status of the order (<code>all</code>: all orders, <code>processing</code>: orders in process, <code>success</code>: successful orders).</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","orders","list"],"host":["api","cuoctienich","com"],"query":[{"key":"page","value":"1"},{"key":"limit","value":"20"},{"key":"status","value":"processing"}],"variable":[]}},"response":[{"id":"d231e90d-442d-4bf6-bd5b-906e581eee2c","name":"Get list order processing => Success","originalRequest":{"method":"GET","header":[{"key":"token","value":"JtumHOD54mqgvarl2C6IrxhGRaCuR4fj","type":"text"}],"url":{"raw":"{{host}}/api/orders/list?page=1&limit=20&status=processing","host":["{{host}}"],"path":["api","orders","list"],"query":[{"key":"page","value":"1"},{"key":"limit","value":"20"},{"key":"status","value":"processing"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Sat, 09 Nov 2024 09:16:52 GMT"},{"key":"Date","value":"Sat, 09 Nov 2024 09:16:52 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.33"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 1,\n    \"data\": [\n        {\n            \"id\": 7,\n            \"order_id\": \"DH0008\",\n            \"order_code\": \"SPAY672e241ae1892EGW\",\n            \"data\": \"{\\\"productName\\\": \\\"Usb token\\\", \\\"color\\\": \\\"Red\\\" }\",\n            \"redirectUrl\": \"https://shopee.vn/%C4%90%E1%BA%BF-S%E1%BA%A1c-Kh%C3%B4ng-D%C3%A2y-4-Trong-1-C%C3%B3-Th%E1%BB%83-G%E1%BA%ADp-L%E1%BA%A1i-%C4%90%C6%B0%E1%BB%A3c-Cho-Apple-iphone-samsung-i.844385377.21539795013\",\n            \"ipnUrl\": \"\",\n            \"amount\": 2000,\n            \"description\": \"USB Token red\",\n            \"expired_at\": \"2024-11-08 21:55:46\",\n            \"status\": \"processing\",\n            \"user_id\": 1,\n            \"created_at\": \"2024-11-08T14:45:46.000000Z\",\n            \"updated_at\": \"2024-11-08T14:45:46.000000Z\"\n        }\n    ]\n}"}],"_postman_id":"c6ff5316-063f-4c0e-9a7d-4aaa559c4203"},{"name":"Order detail","id":"fb79148f-072e-4d79-86c8-0fea9330a7cf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"token","value":"{{token}}","type":"text"}],"url":"https://api.cuoctienich.com/api/orders/detail?order=DH0002","description":"<p>To check the payment status of an order, use the following API:<br /><code>api/orders/detail?order=DH0001</code></p>\n<p><strong>Method</strong>: GET<br /><strong>Header</strong>:</p>\n<ul>\n<li><code>token</code>: The secret code provided to your system upon registration.</li>\n</ul>\n<p><strong>Data</strong>:</p>\n<ul>\n<li><code>order</code>: The order ID.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","orders","detail"],"host":["api","cuoctienich","com"],"query":[{"key":"order","value":"DH0002"}],"variable":[]}},"response":[{"id":"14797cbc-c808-41ad-93dd-440e0e369b36","name":"Order detail => Success","originalRequest":{"method":"GET","header":[{"key":"token","value":"JtumHOD54mqgvarl2C6IrxhGRaCuR4fj","type":"text"}],"url":{"raw":"{{host}}/api/orders/detail?order=DH0002","host":["{{host}}"],"path":["api","orders","detail"],"query":[{"key":"order","value":"DH0002"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Sat, 09 Nov 2024 15:03:22 GMT"},{"key":"Date","value":"Sat, 09 Nov 2024 15:03:22 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.33"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 1,\n    \"data\": [\n        {\n            \"id\": 2,\n            \"order_id\": \"DH0002\",\n            \"order_code\": \"SPAY6723aa812bbd3EGW\",\n            \"data\": \"{\\\"productName\\\": \\\"Usb token\\\", \\\"color\\\": \\\"Red\\\" }\",\n            \"redirectUrl\": \"http://mysite.com/detail/124\",\n            \"ipnUrl\": \"https://webhook.site/4a40bc2a-6355-4475-95ae-ebe959abd8ce\",\n            \"amount\": 2000,\n            \"description\": \"USB Token red\",\n            \"expired_at\": \"0000-00-00 00:00:00\",\n            \"status\": \"success\",\n            \"user_id\": 1,\n            \"created_at\": \"2024-10-31T16:04:17.000000Z\",\n            \"updated_at\": \"2024-10-31T16:47:48.000000Z\"\n        }\n    ]\n}"},{"id":"e8c9b94a-7c25-4c36-bbbf-23c06bdb5494","name":"Order detail => Order not exist","originalRequest":{"method":"GET","header":[{"key":"token","value":"JtumHOD54mqgvarl2C6IrxhGRaCuR4fj","type":"text"}],"url":{"raw":"{{host}}/api/orders/detail?order=DH00022","host":["{{host}}"],"path":["api","orders","detail"],"query":[{"key":"order","value":"DH00022"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Sat, 09 Nov 2024 15:02:48 GMT"},{"key":"Date","value":"Sat, 09 Nov 2024 15:02:48 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.33"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 1,\n    \"data\": []\n}"}],"_postman_id":"fb79148f-072e-4d79-86c8-0fea9330a7cf"}],"event":[{"listen":"prerequest","script":{"id":"e87fea8d-7047-4985-b6a6-36bb25341faf","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"5baea952-b759-40c0-89ff-e45e76d4e92e","type":"text/javascript","packages":{},"exec":[""]}}]}