{"info":{"_postman_id":"bd187f64-7bf7-4587-a717-ff0ecbdb5515","name":"Toss Games","description":"<html><head></head><body><p>Halo👋, Berikut adalah dokumentasi untuk menghubungkan Toss Games dengan website kalian.</p>\n<p>Harap membaca note dibawah sebelum memulai integrasi :</p>\n<ol>\n<li><p>Seluruh transaksi berhasil akan memotong saldo pada akun Anda di Toss Games.</p>\n</li>\n<li><p>Semua HTTP Request URL diarahkan ke url API kami yaitu <code>https://api.tossgames.com</code></p>\n</li>\n<li><p>Kami membungkus semua HTTP Response menggunakan <code>Content-Type: application/json</code></p>\n</li>\n<li><p>Kami menggunakan apikey sebagai keamanan untuk mengakses API kami. Anda bisa dapatkan pada dashboard kami pada menu <code>Kredensial</code>. Lalu gunakan sebagai <code>Authorization Header</code></p>\n</li>\n<li><p>Jika Anda mengingikan keamanan ekstra, harap whitelist IP Address Anda pada dashboard kami pada menu <code>Whitelist IP</code></p>\n</li>\n<li><p>Jika Anda ingin menerima callback, harap mengatur URL Callback Anda pada dashboard kami pada menu <code>Webhook</code>. Anda juga bisa mengatur callback pada setiap transaksi yang Anda buat.</p>\n</li>\n<li><p>Jika pada sistem Anda menerapkan whitelist IP, harap whitelist IP server kami yaitu <code>157.230.42.1</code></p>\n</li>\n</ol>\n<p>Berikut Reponse Message yang mungkin akan Anda temui pada api kami :</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Response Message</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>API_KEY_NOT_FOUND</td>\n<td>Apikey tidak valid atau tidak ditemukan.</td>\n</tr>\n<tr>\n<td>IP_NOT_WHITELISTED</td>\n<td>IP Address Anda tidak masuk kedalam whitelist server kami, harap cek menu dashboard <code>Whitelist IP</code> Anda kembali.</td>\n</tr>\n<tr>\n<td>INSUFFICIENT_BALANCE</td>\n<td>Saldo Anda tidak mencukupi untuk melakukan pembelian.</td>\n</tr>\n<tr>\n<td>INVOICE_NOT_FOUND</td>\n<td>Nomor invoice tidak ditemukan, Anda hanya bisa melihat invoice yang di generate dengan apikey Anda.</td>\n</tr>\n<tr>\n<td>INVALID_USER_ID</td>\n<td>User ID tidak ditemukan, coba cek kembali inputan Anda.</td>\n</tr>\n<tr>\n<td>NICKNAME_NOT_FOUND</td>\n<td>Nickname dengan user id dan/atau server id tidak ditemukan.</td>\n</tr>\n<tr>\n<td>DUPLICATE_TRX_ID</td>\n<td><code>trx_id</code> telah digunakan sebelumnya.</td>\n</tr>\n<tr>\n<td>PRODUCT_NOT_FOUND</td>\n<td>Kode produk tidak ditemukan.</td>\n</tr>\n<tr>\n<td>PRODUCT_INACTIVE</td>\n<td>Produk sedang tidak aktif.</td>\n</tr>\n<tr>\n<td>INVALID_CALLBACK_URL</td>\n<td>Callback url tidak valid.</td>\n</tr>\n<tr>\n<td>PAYMENT_METHOD_NOT_ALLOWED</td>\n<td>Untuk kategori e-wallet tidak dapat menggunakan saldo sebagai metode pembayaran.</td>\n</tr>\n<tr>\n<td>SERVER_ERROR</td>\n<td>Server mengalami error pada sisi kami.</td>\n</tr>\n</tbody>\n</table>\n</div></body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"26453152","collectionId":"bd187f64-7bf7-4587-a717-ff0ecbdb5515","publishedId":"2sA3kUH2go","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-08-02T11:17:49.000Z"},"item":[{"name":"API","item":[{"name":"Get user detail","id":"2ca4780b-499f-4c8b-996b-5a2b1dddd8b7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"{apikey}","type":"text"}],"url":"https://api.tossgames.com/v1/user","description":"<p>Untuk mendapatkan informasi user seperti, nama pengguna, sisa saldo, dll.</p>\n","urlObject":{"path":["v1","user"],"host":["https://api.tossgames.com"],"query":[],"variable":[]}},"response":[{"id":"a0a4e85c-e56b-470b-9288-f2399c9b9cf3","name":"200 - User found","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{apikey}","type":"text"}],"url":"https://api.tossgames.com/v1/user"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 22 Mar 2023 22:42:20 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=VjFgCs8qWpXfa8lIf9mBmHx7EWETpCHhlvExlk4pYcuRPAM1bHzWjchxVqU%2BBPff90M2aaFLrnAQqRlXzioEGY6Y8pwdA%2B4Zhbu%2B9ZvTq%2FTLSNqznlcT8%2B5k6YOuekDGxD4%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7ac1f27b6a89410c-SIN"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 200,\n    \"message\": \"success\",\n    \"data\": {\n        \"user_name\": \"TopupKuy\",\n        \"user_email\": \"email@topupkuy.id\",\n        \"user_phone\": \"628xxxxx\",\n        \"user_balance\": 123123,\n        \"user_created_at\": \"2023-03-23T00:00:00.000Z\",\n        \"user_updated_at\": \"2023-03-23T00:00:00.000Z\",\n        \"role_name\": \"Platinum Member\",\n        \"role_code\": \"platinum\"\n    }\n}"},{"id":"e4120a7a-a085-4f1e-a2d8-c830a439a65c","name":"404 - Apikey not found","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{apikey}","type":"text"}],"url":"https://api.tossgames.com/v1/user"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 22 Mar 2023 22:40:12 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=PrEQPDC7oCVZ6Q6ThRs6iv%2B3dUy1gPhPB22QTmG1mybZScVaY1f4tulYFsxNRRyuiZpR7WeaH4UhS1F82A4r0GsINhLO0E5BWG67lcNN2CXLtiXUbjB%2FTkot8MW5VWDrIIA%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7ac1ef60ce9040aa-SIN"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 404,\n    \"message\": \"API_KEY_NOT_FOUND\",\n    \"error\": \"Not Found\"\n}"}],"_postman_id":"2ca4780b-499f-4c8b-996b-5a2b1dddd8b7"},{"name":"Get products","id":"7981270d-a091-4c24-89cc-b7fc503b11c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"{apikey}","type":"text"}],"url":"https://api.tossgames.com/v1/products","description":"<p>Digunakan untuk mendapatkan semua produk pada website kami.</p>\n","urlObject":{"path":["v1","products"],"host":["https://api.tossgames.com"],"query":[],"variable":[]}},"response":[{"id":"1e9ec51f-0756-4e86-8981-edb21b7dae05","name":"200 - Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{apikey}","type":"text"}],"url":"https://api.tossgames.com/v1/products"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 22 Mar 2023 23:29:29 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=dGbzUWDoeveXyMs013WzO0aLFt%2B43ZcWO%2FQn4hCYKohW4EHCEw0hngOHPwBpCO6bCiZ77FtKA3OPpr%2B9yKBWOk1ajaJi68GCGS%2F8Z4uX0pV8%2BlKbv9Mq74kQB6tIyFS0sII%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7ac2378fd90f48ee-SIN"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 200,\n    \"message\": \"success\",\n    \"data\": [\n        {\n            \"product_id\": \"d8ccc4ea-e19d-4255-a7d0-f85d6fad0d77\",\n            \"product_name\": \"86 Diamonds\",\n            \"product_code\": \"S4_ML86\",\n            \"product_price\": 18624,\n            \"is_active\": true,\n            \"category_type\": \"game\",\n            \"category_title\": \"Mobile Legends\",\n            \"category_subtitle\": null\n        }\n    ]\n}"}],"_postman_id":"7981270d-a091-4c24-89cc-b7fc503b11c3"},{"name":"Get products","id":"8e2dae48-3e20-424b-af44-5066960eda1e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"{apikey}","type":"text"}],"url":"https://api.tossgames.com/v1/products","description":"<p>Digunakan untuk mendapatkan semua produk pada website kami.</p>\n","urlObject":{"path":["v1","products"],"host":["https://api.tossgames.com"],"query":[],"variable":[]}},"response":[{"id":"903ca654-830f-422d-b66f-fd6a3dd24567","name":"200 - Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{apikey}","type":"text"}],"url":"https://api.tossgames.com/v1/products"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 22 Mar 2023 23:29:29 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=dGbzUWDoeveXyMs013WzO0aLFt%2B43ZcWO%2FQn4hCYKohW4EHCEw0hngOHPwBpCO6bCiZ77FtKA3OPpr%2B9yKBWOk1ajaJi68GCGS%2F8Z4uX0pV8%2BlKbv9Mq74kQB6tIyFS0sII%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7ac2378fd90f48ee-SIN"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 200,\n    \"message\": \"success\",\n    \"data\": [\n        {\n            \"product_id\": \"d8ccc4ea-e19d-4255-a7d0-f85d6fad0d77\",\n            \"product_name\": \"86 Diamonds\",\n            \"product_code\": \"S4_ML86\",\n            \"product_price\": 18624,\n            \"is_active\": true,\n            \"category_type\": \"game\",\n            \"category_title\": \"Mobile Legends\",\n            \"category_subtitle\": null\n        }\n    ]\n}"}],"_postman_id":"8e2dae48-3e20-424b-af44-5066960eda1e"},{"name":"Get category","id":"51fbf28c-9035-404f-8bde-05739a1ce943","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"{apikey}","type":"text"}],"url":"https://api.tossgames.comv1/category","description":"<p>Digunakan untuk mendapatkan semua produk pada website kami.</p>\n","urlObject":{"path":["category"],"host":["https://api.tossgames.comv1"],"query":[],"variable":[]}},"response":[{"id":"a239919e-e9ec-409d-ba8e-4b6d7fb23e1b","name":"200 - Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{apikey}","type":"text"}],"url":"https://api.tossgames.com/v1/category"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"content-length","value":"24317"},{"key":"Date","value":"Wed, 17 Jan 2024 02:33:44 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=72"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 200,\n    \"message\": \"success\",\n    \"data\": [\n        {\n            \"category_id\": \"dca1a711-b6e2-4158-98da-014eb5caf458\",\n            \"category_type\": \"game\",\n            \"category_title\": \"Mobile Legends\",\n            \"category_subtitle\": \"Montoon\",\n            \"category_banner\": null,\n            \"category_photo\": \"http://res.cloudinary.com/dk2yxqi3y/image/upload/v1700591984/logo/tnxifn7hdnpuz5ufgvzd.webp\",\n            \"category_slug\": \"mobile-legends\",\n            \"is_active\": 1,\n            \"is_server\": 1,\n            \"is_popular\": 1,\n            \"is_hotsale\": 0,\n            \"category_order\": 1\n        }\n    ]\n}"}],"_postman_id":"51fbf28c-9035-404f-8bde-05739a1ce943"},{"name":"Get products by category","id":"1b63e387-1f9a-4f69-be3f-c788ac6899a2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"{apikey}","type":"text"}],"url":"https://api.tossgames.com/v1/products?category_id=dca1a711-b6e2-4158-98da-014eb5caf458","description":"<p>Digunakan untuk mendapatkan semua produk pada website kami.</p>\n","urlObject":{"path":["v1","products"],"host":["https://api.tossgames.com"],"query":[{"key":"category_id","value":"dca1a711-b6e2-4158-98da-014eb5caf458"}],"variable":[]}},"response":[{"id":"99f15608-149b-4561-a297-9471c919d4dc","name":"200 - Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{apikey}","type":"text"}],"url":"https://api.tossgames.com/v1/products"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 22 Mar 2023 23:29:29 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=dGbzUWDoeveXyMs013WzO0aLFt%2B43ZcWO%2FQn4hCYKohW4EHCEw0hngOHPwBpCO6bCiZ77FtKA3OPpr%2B9yKBWOk1ajaJi68GCGS%2F8Z4uX0pV8%2BlKbv9Mq74kQB6tIyFS0sII%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7ac2378fd90f48ee-SIN"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 200,\n    \"message\": \"success\",\n    \"data\": [\n        {\n            \"product_id\": \"d8ccc4ea-e19d-4255-a7d0-f85d6fad0d77\",\n            \"product_name\": \"86 Diamonds\",\n            \"product_code\": \"S4_ML86\",\n            \"product_price\": 18624,\n            \"is_active\": true,\n            \"category_type\": \"game\",\n            \"category_title\": \"Mobile Legends\",\n            \"category_subtitle\": null\n        }\n    ]\n}"}],"_postman_id":"1b63e387-1f9a-4f69-be3f-c788ac6899a2"},{"name":"Get product detail by code","id":"4ba7c541-42ab-4957-a114-1dddddacfb91","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"{apikey}","type":"text"}],"url":"https://api.tossgames.com/v1/product?product_code={product_code}","description":"<p>Digunakan untuk mendapatkan semua produk pada website kami.</p>\n","urlObject":{"path":["v1","product"],"host":["https://api.tossgames.com"],"query":[{"key":"product_code","value":"{product_code}"}],"variable":[]}},"response":[{"id":"0c44ec06-7fc2-48c9-a8d0-182a5859b6d8","name":"200 - Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{apikey}","type":"text"}],"url":{"raw":"https://api.tossgames.com/v1/product?product_code=S1_10835","host":["https://api.tossgames.com"],"path":["v1","product"],"query":[{"key":"product_code","value":"S1_10835"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 22 Mar 2023 23:29:29 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=dGbzUWDoeveXyMs013WzO0aLFt%2B43ZcWO%2FQn4hCYKohW4EHCEw0hngOHPwBpCO6bCiZ77FtKA3OPpr%2B9yKBWOk1ajaJi68GCGS%2F8Z4uX0pV8%2BlKbv9Mq74kQB6tIyFS0sII%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7ac2378fd90f48ee-SIN"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 200,\n    \"message\": \"success\",\n    \"data\": {\n        \"product_id\": \"00116691-900f-4753-a5d2-62f11a43469d\",\n        \"product_name\": \"60 + 1 Gems\",\n        \"product_code\": \"S1_10835\",\n        \"product_logo\": null,\n        \"product_price\": 11327,\n        \"is_active\": 1,\n        \"category_type\": \"game\",\n        \"category_title\": \"Goddess of Victory: Nikke\",\n        \"category_subtitle\": \"Level Infinite\"\n    }\n}"},{"id":"af05759b-6b21-4346-82a9-41b515d948ab","name":"404 - Not Found","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{apikey}","type":"text"}],"url":{"raw":"https://api.tossgames.com/v1/product?product_code=aaaaa","host":["https://api.tossgames.com"],"path":["v1","product"],"query":[{"key":"product_code","value":"aaaaa"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 03 Aug 2023 17:31:04 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=NnXdXKkivd5iP3ilp2om9FUMIEvoZb5ZxXfURW%2BZzPc4bLQGMR5i6Iw6kJa9VQwkCAq%2BQGXv3kCY3B3nGG%2FxyPCwTCHAbE24OU1qx2zt5CcguBxEQhqH19wW2ZGPBebmWA%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7f104ac7b9533dfa-SIN"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 404,\n    \"message\": \"PRODUCT_NOT_FOUND\",\n    \"error\": \"Not Found\"\n}"}],"_postman_id":"4ba7c541-42ab-4957-a114-1dddddacfb91"},{"name":"Get product detail by id","id":"10997fe2-fb7f-40c3-a0ec-e7c015a67f8b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"{apikey}","type":"text"}],"url":"https://api.tossgames.com/v1/product?product_id={product_id}","description":"<p>Digunakan untuk mendapatkan semua produk pada website kami.</p>\n","urlObject":{"path":["v1","product"],"host":["https://api.tossgames.com"],"query":[{"key":"product_id","value":"{product_id}"}],"variable":[]}},"response":[{"id":"33f5f6eb-4e55-4357-badf-3a876c22e2e8","name":"200 - Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{apikey}","type":"text"}],"url":{"raw":"https://api.tossgames.com/v1/product?product_id=00116691-900f-4753-a5d2-62f11a43469d","host":["https://api.tossgames.com"],"path":["v1","product"],"query":[{"key":"product_id","value":"00116691-900f-4753-a5d2-62f11a43469d"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 22 Mar 2023 23:29:29 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=dGbzUWDoeveXyMs013WzO0aLFt%2B43ZcWO%2FQn4hCYKohW4EHCEw0hngOHPwBpCO6bCiZ77FtKA3OPpr%2B9yKBWOk1ajaJi68GCGS%2F8Z4uX0pV8%2BlKbv9Mq74kQB6tIyFS0sII%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7ac2378fd90f48ee-SIN"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 200,\n    \"message\": \"success\",\n    \"data\": {\n        \"product_id\": \"00116691-900f-4753-a5d2-62f11a43469d\",\n        \"product_name\": \"60 + 1 Gems\",\n        \"product_code\": \"S1_10835\",\n        \"product_logo\": null,\n        \"product_price\": 11327,\n        \"is_active\": 1,\n        \"category_type\": \"game\",\n        \"category_title\": \"Goddess of Victory: Nikke\",\n        \"category_subtitle\": \"Level Infinite\"\n    }\n}"},{"id":"ae73d022-8b6d-401e-a92a-f89efbb360ab","name":"404 - Not Found","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{apikey}","type":"text"}],"url":{"raw":"https://api.tossgames.com/v1/product?product_id=aaaaa","host":["https://api.tossgames.com"],"path":["v1","product"],"query":[{"key":"product_id","value":"aaaaa"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 03 Aug 2023 17:31:04 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=NnXdXKkivd5iP3ilp2om9FUMIEvoZb5ZxXfURW%2BZzPc4bLQGMR5i6Iw6kJa9VQwkCAq%2BQGXv3kCY3B3nGG%2FxyPCwTCHAbE24OU1qx2zt5CcguBxEQhqH19wW2ZGPBebmWA%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7f104ac7b9533dfa-SIN"},{"key":"Content-Encoding","value":"br"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 404,\n    \"message\": \"PRODUCT_NOT_FOUND\",\n    \"error\": \"Not Found\"\n}"}],"_postman_id":"10997fe2-fb7f-40c3-a0ec-e7c015a67f8b"},{"name":"Get invoice detail","id":"af51d09b-c567-4e0f-b12d-06029476d6e7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"{apikey}","type":"text"}],"url":"https://api.tossgames.com/v1/status/:invoice_number","description":"<p>Digunakan untuk melihat detail invoice pada website kami berdasarkan invoice_number.</p>\n","urlObject":{"path":["v1","status",":invoice_number"],"host":["https://api.tossgames.com"],"query":[],"variable":[{"id":"651d9614-0198-4da8-b29d-f775501ecf92","type":"any","value":"APIKUY_XX_1679528285_4321","key":"invoice_number"}]}},"response":[{"id":"a179e42f-ce34-4cbf-8268-969e2877e1b7","name":"200 - Invoice found","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{apikey}","type":"text"}],"url":{"raw":"https://api.tossgames.com/v1/status/:invoice_number","host":["https://api.tossgames.com"],"path":["v1","status",":invoice_number"],"variable":[{"key":"invoice_number","value":"APIKUY_XX_1679528285_4321"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 22 Mar 2023 23:39:15 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=CngbXb3Y1nmHYyh3NcY68y0wXGxOYFPj9DmNvaB3DQWWSCpchFnC2HSjtoGxxaLtf0fI0TBjYIat%2BlyDlLbMg54%2FCbB0jtWk%2FLiEOgb1Thk0x4Zp4B3HlKaQUr9E%2FBGIu2o%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7ac245e05cc648ee-SIN"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 200,\n    \"message\": \"success\",\n    \"data\": {\n        \"invoice_number\": \"APIKUY_XX_1679528285_4321\",\n        \"trx_id\": null,\n        \"response_note\": \"Nickname - 123456789(1234) . RefId: XX_1679528285_1234\",\n        \"category\": {\n            \"title\": \"Mobile Legends\",\n            \"subtitle\": null,\n            \"type\": \"game\"\n        },\n        \"product\": {\n            \"name\": \"5 (5+0) Diamonds\",\n            \"code\": \"S1_1187\",\n            \"price\": 1511\n        },\n        \"user_input\": {\n            \"user_id\": \"123456789\",\n            \"server_id\": \"1234\",\n            \"nickname\": \"Nickname\"\n        },\n        \"amount\": 1511,\n        \"status\": \"SUCCESS\", // SUCCESS | PARTIAL_SUCCESS | PENDING | PAID | REFUNDED | FAILED\n        \"voucher\": null,\n        \"created_at\": \"2023-03-22T23:38:05.000Z\"\n    }\n}"},{"id":"652b2920-b9fe-46f2-b8fa-436165fce51b","name":"404 - Inovoice not found","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{apikey}","type":"text"}],"url":{"raw":"https://api.tossgames.com/v1/status/:invoice_number","host":["https://api.tossgames.com"],"path":["v1","status",":invoice_number"],"variable":[{"key":"invoice_number","value":"APIKUY_XX_1679528285_4321"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 22 Mar 2023 23:45:49 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=ZttWnLFm8c0Bx8bqA6JN76DDLH%2FJI6GszO8e0l5MXp7vGyvK9kQjtRV5pBw6tnnn4NpBgJBr5rBylLTetNxF3rCbZulJHtSrAWpMhaOghcQ8H1tb3Y5R2ITyWpBwUo9cPj4%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7ac24f7dd83948ee-SIN"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 404,\n    \"message\": \"INVOICE_NOT_FOUND\",\n    \"error\": \"Not Found\"\n}"}],"_postman_id":"af51d09b-c567-4e0f-b12d-06029476d6e7"},{"name":"Get invoice detail by trx_id","id":"19043bdd-3f3d-4327-8cfe-042a33b56633","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[{"key":"Authorization","value":"{apikey}","type":"text"}],"url":"https://api.tossgames.com/v1/status/trx-id/:trx_id","description":"<p>Digunakan untuk melihat detail invoice pada website kami berdasarkan trx_id.</p>\n","urlObject":{"path":["v1","status","trx-id",":trx_id"],"host":["https://api.tossgames.com"],"query":[],"variable":[{"id":"76e8d464-3cca-4dd1-91a8-d896e2d8f237","type":"any","value":"xxxxxxxxx","key":"trx_id"}]}},"response":[{"id":"6dc68e24-e0c1-4b0a-a4e4-fd0ff7476d6e","name":"200 - Invoice found","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{apikey}","type":"text"}],"url":{"raw":"https://api.tossgames.com/v1/status/trx-id/:trx_id","host":["https://api.tossgames.com"],"path":["v1","status","trx-id",":trx_id"],"variable":[{"key":"trx_id","value":"xxxxxxxxx"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 22 Mar 2023 23:39:15 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=CngbXb3Y1nmHYyh3NcY68y0wXGxOYFPj9DmNvaB3DQWWSCpchFnC2HSjtoGxxaLtf0fI0TBjYIat%2BlyDlLbMg54%2FCbB0jtWk%2FLiEOgb1Thk0x4Zp4B3HlKaQUr9E%2FBGIu2o%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7ac245e05cc648ee-SIN"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 200,\n    \"message\": \"success\",\n    \"data\": {\n        \"invoice_number\": \"APIKUY_XX_1679528285_4321\",\n        \"trx_id\": \"xxxxxxxxx\",\n        \"response_note\": \"Nickname - 123456789(1234) . RefId: XX_1679528285_1234\",\n        \"category\": {\n            \"title\": \"Mobile Legends\",\n            \"subtitle\": null,\n            \"type\": \"game\"\n        },\n        \"product\": {\n            \"name\": \"5 (5+0) Diamonds\",\n            \"code\": \"S1_1187\",\n            \"price\": 1511\n        },\n        \"user_input\": {\n            \"user_id\": \"123456789\",\n            \"server_id\": \"1234\",\n            \"nickname\": \"Nickname\"\n        },\n        \"amount\": 1511,\n        \"status\": \"SUCCESS\", // SUCCESS | PARTIAL_SUCCESS | PENDING | PAID | REFUNDED | FAILED\n        \"voucher\": null,\n        \"created_at\": \"2023-03-22T23:38:05.000Z\"\n    }\n}"},{"id":"4d36eb4d-83c0-4773-aaca-e099cc1ba58a","name":"404 - Inovoice not found","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"{apikey}","type":"text"}],"url":{"raw":"https://api.tossgames.com/v1/status/trx-id/:trx_id","host":["https://api.tossgames.com"],"path":["v1","status","trx-id",":trx_id"],"variable":[{"key":"trx_id","value":"xxxxxxxxx"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 22 Mar 2023 23:45:49 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=ZttWnLFm8c0Bx8bqA6JN76DDLH%2FJI6GszO8e0l5MXp7vGyvK9kQjtRV5pBw6tnnn4NpBgJBr5rBylLTetNxF3rCbZulJHtSrAWpMhaOghcQ8H1tb3Y5R2ITyWpBwUo9cPj4%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7ac24f7dd83948ee-SIN"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 404,\n    \"message\": \"INVOICE_NOT_FOUND\",\n    \"error\": \"Not Found\"\n}"}],"_postman_id":"19043bdd-3f3d-4327-8cfe-042a33b56633"},{"name":"Create api order","id":"d5019be9-9eb2-4e3b-9123-0a2cbd87f3a9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"{apikey}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"product_code\": \"S1_1187\",\r\n    \"user_id\": \"123456789\",\r\n    \"server_id\": \"1234\",\r\n    \"trx_id\": \"853cdef4-7cf6-453a-b3a1-ba85d1e1c28a\",\r\n    \"callback_url\": \"https://your-website.com/callback\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.tossgames.com/v1/order","description":"<p>Digunakan untuk melakukan pembelian melalui api pada website kami.</p>\n","urlObject":{"path":["v1","order"],"host":["https://api.tossgames.com"],"query":[],"variable":[]}},"response":[{"id":"be7ea0f0-2419-436f-a831-bfb301dc729c","name":"200 - Order created","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"{apikey}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"product_code\": \"S1_1187\",\r\n    \"user_id\": \"123456789\",\r\n    \"server_id\": \"1234\",\r\n    \"trx_id\": \"853cdef4-7cf6-453a-b3a1-ba85d1e1c28a\",\r\n    \"callback_url\": \"https://your-website.com/callback\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.tossgames.com/v1/order"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 22 Mar 2023 23:38:07 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"445"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=1GcRUBJ2VJH9iVvUm8QvWX1sDg1D%2BYBj59M7jFy6jucZRcWH%2Fh9JFF3oc3CKdCGxlLMNI0cnboj7aqGW%2FgbS2ToXGktW7eZRJjS9L953en4W2yxLpP%2FNqMiVc%2F473PrwagM%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7ac244289f3e48ee-SIN"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 200,\n    \"message\": \"success\",\n    \"data\": {\n        \"invoice_number\": \"APIKUY_XX_1679528285_4321\",\n        \"trx_id\": null,\n        \"response_note\": \"Nickname - 123456789(1234) . RefId: XX_1679528285_1234\",\n        \"category\": {\n            \"title\": \"Mobile Legends\",\n            \"subtitle\": null,\n            \"type\": \"game\"\n        },\n        \"product\": {\n            \"name\": \"5 (5+0) Diamonds\",\n            \"code\": \"S1_1187\",\n            \"price\": 1511\n        },\n        \"user_input\": {\n            \"user_id\": \"123456789\",\n            \"server_id\": \"1234\",\n            \"nickname\": \"Nickname\"\n        },\n        \"amount\": 1511,\n        \"status\": \"SUCCESS\", // SUCCESS | PARTIAL_SUCCESS | PENDING | PAID | REFUNDED | FAILED\n        \"voucher\": null,\n        \"created_at\": \"2023-03-22T23:38:05.000Z\"\n    }\n}"}],"_postman_id":"d5019be9-9eb2-4e3b-9123-0a2cbd87f3a9"},{"name":"Create api order v2","id":"03f6469c-5964-4db3-9726-d1063f7954c7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"{apikey}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"product_code\": \"S1_1187\",\r\n    \"user_id\": \"123456789\",\r\n    \"server_id\": \"1234\",\r\n    \"trx_id\": \"853cdef4-7cf6-453a-b3a1-ba85d1e1c28a\",\r\n    \"callback_url\": \"https://your-website.com/callback\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.tossgames.com/v2/order","description":"<p>Digunakan untuk melakukan pembelian melalui api pada website kami. Jika Anda memasukkan trx_id yang sama maka akan kami anggap sebagai cek status transaksi.</p>\n","urlObject":{"path":["v2","order"],"host":["https://api.tossgames.com"],"query":[],"variable":[]}},"response":[{"id":"88090b8c-d828-4962-811b-d2839a9da3a4","name":"200 - Order created","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"{apikey}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"product_code\": \"S1_1187\",\r\n    \"user_id\": \"123456789\",\r\n    \"server_id\": \"1234\",\r\n    \"trx_id\": \"853cdef4-7cf6-453a-b3a1-ba85d1e1c28a\",\r\n    \"callback_url\": \"https://your-website.com/callback\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api.tossgames.com/v2/order"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 22 Mar 2023 23:38:07 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"445"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=1GcRUBJ2VJH9iVvUm8QvWX1sDg1D%2BYBj59M7jFy6jucZRcWH%2Fh9JFF3oc3CKdCGxlLMNI0cnboj7aqGW%2FgbS2ToXGktW7eZRJjS9L953en4W2yxLpP%2FNqMiVc%2F473PrwagM%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7ac244289f3e48ee-SIN"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 200,\n    \"message\": \"success\",\n    \"data\": {\n        \"invoice_number\": \"APIKUY_XX_1679528285_4321\",\n        \"trx_id\": null,\n        \"response_note\": \"Nickname - 123456789(1234) . RefId: XX_1679528285_1234\",\n        \"category\": {\n            \"title\": \"Mobile Legends\",\n            \"subtitle\": null,\n            \"type\": \"game\"\n        },\n        \"product\": {\n            \"name\": \"5 (5+0) Diamonds\",\n            \"code\": \"S1_1187\",\n            \"price\": 1511\n        },\n        \"user_input\": {\n            \"user_id\": \"123456789\",\n            \"server_id\": \"1234\",\n            \"nickname\": \"Nickname\"\n        },\n        \"amount\": 1511,\n        \"status\": \"SUCCESS\", // SUCCESS | PARTIAL_SUCCESS | PENDING | PAID | REFUNDED | FAILED\n        \"voucher\": null,\n        \"created_at\": \"2023-03-22T23:38:05.000Z\"\n    }\n}"}],"_postman_id":"03f6469c-5964-4db3-9726-d1063f7954c7"}],"id":"67a39fdf-ed32-477d-b658-f79437767691","_postman_id":"67a39fdf-ed32-477d-b658-f79437767691","description":"","auth":{"type":"apikey","apikey":{"value":"{apikey}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"bd187f64-7bf7-4587-a717-ff0ecbdb5515","id":"bd187f64-7bf7-4587-a717-ff0ecbdb5515","name":"Toss Games","type":"collection"}}},{"name":"H2H (Otomax)","item":[{"name":"Create otomax order","id":"bf1a61c2-9edf-4778-9550-25f5a4dc918f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"https://api.tossgames.com/v1/otomax/order?apikey={apikey}&product_code=S1_1187&user_id=123456789&server_id=1234&trx_id=1234243244&callback_url=https://your-website.com/callback","description":"<p>Digunakan untuk melakukan pembelian melalui otomax pada website kami.</p>\n","urlObject":{"path":["v1","otomax","order"],"host":["https://api.tossgames.com"],"query":[{"key":"apikey","value":"{apikey}"},{"key":"product_code","value":"S1_1187"},{"key":"user_id","value":"123456789"},{"key":"server_id","value":"1234"},{"key":"trx_id","value":"1234243244"},{"key":"callback_url","value":"https://your-website.com/callback"}],"variable":[]}},"response":[{"id":"90f60e16-8b8d-4ecf-8ba7-631e156b26da","name":"200 - Order created","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.tossgames.com/v1/otomax/order?apikey={apikey}&product_code=S1_1187&user_id=123456789&server_id=1234&trx_id=123424324","host":["https://api.tossgames.com"],"path":["v1","otomax","order"],"query":[{"key":"apikey","value":"{apikey}"},{"key":"product_code","value":"S1_1187"},{"key":"user_id","value":"123456789"},{"key":"server_id","value":"1234"},{"key":"trx_id","value":"123424324"}]}},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Sun, 02 Apr 2023 03:24:38 GMT"},{"key":"Content-Type","value":"text/plain; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=WtbFyW7re1Etk6PSXEPKG3ROec2g1EQnkJE4gCVBLwj9NEL6OcdbGUrvfiBnW4aGLKZzkqe1hF1HPslmrory3Frg7xjKdg6ZJ0zfbABmYaHNQwJrqbiocX0akUMdK4qR3aw%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7b15f5b6f823473f-SIN"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"R#123424324 S1_1187.123456789|1234, status PENDING. RefId : ML_1680405885_1234 . Sisa saldo 12345"}],"_postman_id":"bf1a61c2-9edf-4778-9550-25f5a4dc918f"},{"name":"Create otomax order v2","id":"dff768b5-f867-4bb0-8b64-f681699fb3c9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"https://api.tossgames.com/v2/otomax/order?apikey={apikey}&product_code=S1_1187&user_id=1234567891234&trx_id=1234243244&callback_url=https://your-website.com/callback","description":"<p>Digunakan untuk melakukan pembelian melalui otomax pada website kami.</p>\n","urlObject":{"path":["v2","otomax","order"],"host":["https://api.tossgames.com"],"query":[{"key":"apikey","value":"{apikey}"},{"key":"product_code","value":"S1_1187"},{"key":"user_id","value":"1234567891234"},{"key":"trx_id","value":"1234243244"},{"key":"callback_url","value":"https://your-website.com/callback"}],"variable":[]}},"response":[{"id":"c6c03719-6ffa-436f-9f19-0002c4686595","name":"200 - Order created","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.tossgames.com/v1/otomax/order?apikey={apikey}&product_code=S1_1187&user_id=123456789&server_id=1234&trx_id=123424324","host":["https://api.tossgames.com"],"path":["v1","otomax","order"],"query":[{"key":"apikey","value":"{apikey}"},{"key":"product_code","value":"S1_1187"},{"key":"user_id","value":"123456789"},{"key":"server_id","value":"1234"},{"key":"trx_id","value":"123424324"}]}},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Sun, 02 Apr 2023 03:24:38 GMT"},{"key":"Content-Type","value":"text/plain; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=WtbFyW7re1Etk6PSXEPKG3ROec2g1EQnkJE4gCVBLwj9NEL6OcdbGUrvfiBnW4aGLKZzkqe1hF1HPslmrory3Frg7xjKdg6ZJ0zfbABmYaHNQwJrqbiocX0akUMdK4qR3aw%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7b15f5b6f823473f-SIN"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"R#123424324 S1_1187.123456789|1234, status PENDING. RefId : ML_1680405885_1234 . Sisa saldo 12345"}],"_postman_id":"dff768b5-f867-4bb0-8b64-f681699fb3c9"},{"name":"Create otomax order v3","id":"4a7aebd8-f6f3-4d47-aeb6-dc6a89924c92","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"https://api.tossgames.com/v3/otomax/order?apikey={apikey}&product_code=S1_1187&user_id=1234567891234&trx_id=1234243244&callback_url=https://your-website.com/callback","description":"<p>Digunakan untuk melakukan pembelian melalui otomax pada website kami. Jika Anda memasukkan trx_id yang sama maka akan kami anggap sebagai cek status transaksi.</p>\n","urlObject":{"path":["v3","otomax","order"],"host":["https://api.tossgames.com"],"query":[{"key":"apikey","value":"{apikey}"},{"key":"product_code","value":"S1_1187"},{"key":"user_id","value":"1234567891234"},{"key":"trx_id","value":"1234243244"},{"key":"callback_url","value":"https://your-website.com/callback"}],"variable":[]}},"response":[{"id":"fc9ea092-a5f0-496b-a59d-320c5782b9fc","name":"200 - Order created","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.tossgames.com/v1/otomax/order?apikey={apikey}&product_code=S1_1187&user_id=123456789&server_id=1234&trx_id=123424324","host":["https://api.tossgames.com"],"path":["v1","otomax","order"],"query":[{"key":"apikey","value":"{apikey}"},{"key":"product_code","value":"S1_1187"},{"key":"user_id","value":"123456789"},{"key":"server_id","value":"1234"},{"key":"trx_id","value":"123424324"}]}},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Sun, 02 Apr 2023 03:24:38 GMT"},{"key":"Content-Type","value":"text/plain; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=WtbFyW7re1Etk6PSXEPKG3ROec2g1EQnkJE4gCVBLwj9NEL6OcdbGUrvfiBnW4aGLKZzkqe1hF1HPslmrory3Frg7xjKdg6ZJ0zfbABmYaHNQwJrqbiocX0akUMdK4qR3aw%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7b15f5b6f823473f-SIN"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"R#123424324 S1_1187.123456789|1234, status PENDING. RefId : ML_1680405885_1234 . Sisa saldo 12345"}],"_postman_id":"4a7aebd8-f6f3-4d47-aeb6-dc6a89924c92"},{"name":"Get otomax invoice detail","id":"61f0878f-ea49-4187-9d5c-3053fb98cc55","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"https://api.tossgames.com/v1/otomax/status/:invoice_number?apikey={apikey}","description":"<p>StartFragment</p>\n<p>Digunakan untuk melakukan pembelian melalui otomax pada website kami.</p>\n","urlObject":{"path":["v1","otomax","status",":invoice_number"],"host":["https://api.tossgames.com"],"query":[{"key":"apikey","value":"{apikey}"}],"variable":[{"id":"e704c2f6-1d85-41ca-b104-0132146822d5","type":"any","value":"APIKUY_XX_1679528285_4321","key":"invoice_number"}]}},"response":[{"id":"97a0b4a2-ecb9-4bf9-ac44-15771b2e9acb","name":"200 - Invoice found","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.tossgames.com/v1/otomax/status/:invoice_number?apikey={apikey}","host":["https://api.tossgames.com"],"path":["v1","otomax","status",":invoice_number"],"query":[{"key":"apikey","value":"{apikey}"}],"variable":[{"key":"invoice_number","value":"APIKUY_XX_1679528285_4321"}]}},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Sun, 02 Apr 2023 07:58:10 GMT"},{"key":"Content-Type","value":"text/plain; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=AcxVAHxgxUqOS8hbwHoHXwretdzsTQOLr74yUFNyH3H8jn0%2BtvbS4Am44QVp%2B14TgAWC%2BV3s1m81xJze3pBRD5Wx0KCKsIt392xvQK5vaKymlcade8PR6r6pZDv%2Bi4iF9ds%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7b178671e9899e20-SIN"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"R#1234243244 APIKUY_XX_1679528285_4321 S1_1187.123456789(1234), status SUCCESS. Nickname - 123456789(1234) . RefId: XX_1679528285_4321 . Sisa saldo 12343"}],"_postman_id":"61f0878f-ea49-4187-9d5c-3053fb98cc55"},{"name":"Get otomax user detail","id":"2cb9153c-1c07-4c79-ab2c-0ea060f13e61","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"https://api.tossgames.com/v1/otomax/user?apikey={apikey}","description":"<p>Untuk mendapatkan informasi user seperti, nama pengguna, sisa saldo, dll.</p>\n","urlObject":{"path":["v1","otomax","user"],"host":["https://api.tossgames.com"],"query":[{"key":"apikey","value":"{apikey}"}],"variable":[]}},"response":[{"id":"2fd9ced4-97ac-4129-abd9-1c289109fda3","name":"200 - User found","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.tossgames.com/v1/otomax/user?apikey={apikey}","host":["https://api.tossgames.com"],"path":["v1","otomax","user"],"query":[{"key":"apikey","value":"{apikey}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Sun, 02 Apr 2023 08:01:02 GMT"},{"key":"Content-Type","value":"text/plain; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=FXtpK%2F6lyEF53qsdWJ%2B0XV5PcUzyCsl50zHspr%2BAyoEn%2FKmF6NtJMT1ucDU0OEo%2BZExJBKzBHtdvMVE%2FbeY79MftlRWzcFQz2XwrFgj1bua%2FIkNazF0240YWWKwXX0phbZo%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"7b178aa7e9ae9e20-SIN"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"TopupKuy. topupkuy@topupkuy.id. plan Platinum Member. balance 1234344"}],"_postman_id":"2cb9153c-1c07-4c79-ab2c-0ea060f13e61"}],"id":"b3feee2f-7dcc-406d-a088-edf8c3395e3f","_postman_id":"b3feee2f-7dcc-406d-a088-edf8c3395e3f","description":"","auth":{"type":"apikey","apikey":{"value":"{apikey}","key":"<key>"},"isInherited":true,"source":{"_postman_id":"bd187f64-7bf7-4587-a717-ff0ecbdb5515","id":"bd187f64-7bf7-4587-a717-ff0ecbdb5515","name":"Toss Games","type":"collection"}}},{"name":"Callback","item":[{"name":"Callback API","item":[],"id":"688eb467-532d-4143-93de-c1031978f53f","description":"<p>Berikut contoh data Callback / Webhook yang akan kami kirimkan:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"invoice_number\": \"APIKUY_XX_1679528285_4321\",\n    \"trx_id\": null,\n    \"response_note\": \"Nickname - 123456789(1234) . RefId: XX_1679528285_1234\",\n    \"category\": {\n        \"title\": \"Mobile Legends\",\n        \"subtitle\": null,\n        \"type\": \"game\"\n    },\n    \"product\": {\n        \"name\": \"5 (5+0) Diamonds\",\n        \"code\": \"S1_1187\",\n        \"price\": 1511\n    },\n    \"user_input\": {\n        \"user_id\": \"123456789\",\n        \"server_id\": \"1234\",\n        \"nickname\": \"Nickname\"\n    },\n    \"balance\": 12345678,\n    \"amount\": 1511,\n    \"status\": \"SUCCESS\", // SUCCESS | PARTIAL_SUCCESS | REFUNDED | FAILED\n    \"voucher\": null,\n    \"created_at\": \"2023-03-22T23:38:05.000Z\"\n}\n\n</code></pre>\n<p>Dengan tambahan header <code>x-signature</code> untuk validasi data dengan formula HMAC-SHA256 dengan apikey sebagai secret key, berikut contoh pembuatan signature :</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">const { createHmac } = require('crypto')\nconst data = {\n    \"invoice_number\": \"APIKUY_XX_1679528285_4321\",\n    \"trx_id\": null,\n    \"response_note\": \"Nickname - 123456789(1234) . RefId: XX_1679528285_1234\",\n    \"category\": {\n        \"title\": \"Mobile Legends\",\n        \"subtitle\": null,\n        \"type\": \"game\"\n    },\n    \"product\": {\n        \"name\": \"5 (5+0) Diamonds\",\n        \"code\": \"S1_1187\",\n        \"price\": 1511\n    },\n    \"user_input\": {\n        \"user_id\": \"123456789\",\n        \"server_id\": \"1234\",\n        \"nickname\": \"Nickname\"\n    },\n    \"balance\": 12345678,\n    \"amount\": 1511,\n    \"status\": \"SUCCESS\", // SUCCESS | PARTIAL_SUCCESS | REFUNDED | FAILED\n    \"voucher\": null,\n    \"created_at\": \"2023-03-22T23:38:05.000Z\"\n}\nconst apikey = '{apikey}'\nconst signature = createHmac('sha256', apikey).update(JSON.stringify(data)).digest('hex')\nconsole.log(signature)\n\n</code></pre>\n","_postman_id":"688eb467-532d-4143-93de-c1031978f53f","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"9c0d45a2-371b-405c-83c6-abc120775b96","id":"9c0d45a2-371b-405c-83c6-abc120775b96","name":"Callback","type":"folder"}}},{"name":"Callback Otomax","item":[],"id":"650cac0b-b31c-4fd0-b491-9928f99a51d7","description":"<p>Berikut adalah HTTP Request dengan HTTP Method GET yang akan kami kirimkan ke URL Callback Anda:</p>\n<p><code>https://your-website.com/callback?invoice_number=APIKUY_XX_1679528285_4321&amp;trx_id=1234243244&amp;status=SUCCESS&amp;sn=Nickname%20-%20123456789(1234)%20.%20RefId:%20XX_1679528285_4321&amp;msg=R#1234243244%20APIKUY_XX_1679528285_4321%20S1_1187.123456789(1234),%20status%20SUCCESS.%20Nickname%20-%20123456789(1234)%20.%20RefId:%20XX_1679528285_4321%20.%20Sisa%20saldo%2012343</code></p>\n<p>Dengan data seperti berikut:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"invoice_number\": \"APIKUY_XX_1679528285_4321\",\n    \"trx_id\": \"1234243244\",\n    \"status\": \"SUCCESS\", // SUCCESS | PARTIAL_SUCCESS | REFUNDED | FAILED\n    \"product_price\": 1000,\n    \"sn\": \"Nickname - 123456789(1234) . RefId: XX_1679528285_4321\",\n    \"msg\": \"R#1234243244 APIKUY_XX_1679528285_4321 S1_1187.123456789(1234), status SUCCESS. Nickname - 123456789(1234) . RefId: XX_1679528285_4321 . Sisa saldo 12343\"\n}\n\n</code></pre>\n","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"dd2af5a0-306d-4c45-9b79-be004de660b2","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"3cd79215-6f35-4dc1-9315-32a53139004f","type":"text/javascript","exec":[""]}}],"_postman_id":"650cac0b-b31c-4fd0-b491-9928f99a51d7"}],"id":"9c0d45a2-371b-405c-83c6-abc120775b96","description":"<p>Ini adalah dokumentasi untuk callback dari server kami. Sebelum lanjut, jika pada sistem Anda terdapat whitelist ip, harap whitelist ip address server kami yaitu <code>157.230.42.1.</code></p>\n","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"40987d36-20b5-4523-9b20-94821e697d26","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"265e73ce-a1b9-4a15-968f-e07cc37f8a3e","type":"text/javascript","exec":[""]}}],"_postman_id":"9c0d45a2-371b-405c-83c6-abc120775b96"}],"auth":{"type":"apikey","apikey":{"value":"{apikey}","key":"<key>"}},"event":[{"listen":"prerequest","script":{"id":"3da2bd92-b49f-436c-bf03-74d78931bdfa","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"976cf1c6-dd77-485c-9642-b4dcc6cf4fe2","type":"text/javascript","exec":[""]}}],"variable":[{"key":"apikey","value":"{apikey}","type":"string"},{"key":"base_url","value":"https://api.tossgames.com"},{"key":"website_name","value":"Toss Games","type":"string"},{"key":"website_ip","value":"157.230.42.1","type":"string"}]}