{"info":{"_postman_id":"cfc27218-a907-43d0-83b1-87078565001a","name":"VCGamers Mitra Open API","description":"<html><head></head><body><p>Dear <em>valued partners</em>, we are excited to announce our new feature VCGamers Mitra API, marking a significant upgrade to our current Open API. With the introduction of this advanced API, we offer <strong>enhanced host-to-host connectivity</strong>, ensuring seamless and secure communication between our platform and your systems.</p>\n<p>This improvement will facilitate faster data exchange, streamline processes, and ultimately enhance the overall experience for both our partners and their customers. We firmly believe that this <strong>host-to-host integration</strong> will greatly contribute to the success and growth of our partnership ecosystem.</p>\n<h1 id=\"url\">URL</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Type</strong></th>\n<th><strong>URL</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Development</td>\n<td><code>https://h2h-api.vcg.my.id</code></td>\n</tr>\n<tr>\n<td>Production</td>\n<td><code>https://mitra-api.vcgamers.com</code></td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"changelogs\">Changelogs</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Release Date</strong></th>\n<th><strong>Changelogs</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>11 September 2025</td>\n<td>Add Postpaid Products and Variations ( PLN, BPJS, etc. )  <br>  <br>Add Inquiry for postpaid products  <br>  <br>Create Order and Order Status now support for postpaid transaction. Please refer to the related documentation</td>\n</tr>\n<tr>\n<td>16 June 2024</td>\n<td>Add V2 API : recommended product choices, simpler API  <br>  <br>Remove check id process inside \"Create Order\" endpoint, you have to call the \"Check ID\" endpoint separately  <br>  <br>When a transaction fails / refunded, the reason message is placed inside sn at the Order Status endpoint ( if any )  <br>  <br>API performance improvements</td>\n</tr>\n<tr>\n<td>03 September 2024</td>\n<td>Add Authorization guide  <br>Add Create Order Scenario Test guide  <br>Add Webhook Setup guide  <br>Add Create Order Flow guide  <br>Add Rate Limit Information</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"http-codes\">HTTP Codes</h1>\n<ul>\n<li><p>200 OK</p>\n</li>\n<li><p>400 Bad Request</p>\n</li>\n<li><p>404 Not Found</p>\n</li>\n<li><p>500 Internal Server Error</p>\n</li>\n</ul>\n<h1 id=\"status-codes\">Status Codes</h1>\n<ul>\n<li><p>SUCCESS</p>\n</li>\n<li><p>CLIENT_ERROR</p>\n</li>\n<li><p>SIGNATURE_INVALID</p>\n</li>\n<li><p>INTERNAL_SERVER_ERROR</p>\n</li>\n<li><p>NOT_FOUND</p>\n</li>\n<li><p>BAD_REQUEST</p>\n</li>\n<li><p>UNAUTHENTICATED</p>\n</li>\n<li><p>VALIDATION_ERROR</p>\n</li>\n</ul>\n<h1 id=\"authorization\">Authorization</h1>\n<p>Prerequisites :</p>\n<ol>\n<li><p>Whitelisted IP Address</p>\n</li>\n<li><p>Your <strong>API Access Key</strong> for Authorization using Bearer Token</p>\n</li>\n<li><p>Your <strong>Secret Key</strong> for signature generate algorithm</p>\n</li>\n</ol>\n<h1 id=\"signature-algorithm\">Signature Algorithm</h1>\n<p><strong>VCGamers Mitra API</strong> verifies the identity of each API request, and the server will also verify whether the call parameters are valid. Therefore, each HTTP request must contain the signature information. The requests with invalid signature will be rejected.</p>\n<p>The process of generating the signature is as follows :</p>\n<ol>\n<li>Get your <strong>Secret Key</strong> and <strong>API Access Key</strong> in your Mitra App &gt; Setting &gt; API Integration &gt; Access Key</li>\n</ol>\n<blockquote>\n<p>if you don't have an access token yet, you can generate one. Each user can only have a maximum of 2 access tokens </p>\n</blockquote>\n<ol>\n<li><p>Concatenate your <strong>secret key</strong> and all parameters into a string. For example:<br> <code>{yoursecret}+category</code></p>\n</li>\n<li><p>Encode the concatenated string in UTF-8 format and make a digest by the signature algorithm (using <strong>HMAC_SHA512</strong>). For example :<br> <code>hmac_sha512({yoursecret}+category)</code></p>\n</li>\n<li><p>Convert the digest to hexadecimal format. For example :<br> <code>hex(\"helloworld\".getBytes(\"utf-8\")) = \"68656C6C6F776F726C64\"</code></p>\n</li>\n<li><p>Encode hexadecimal value into <strong>Base64</strong>. For example :<br> <code>base_64(\"68656C6C6F776F726C64\")</code></p>\n</li>\n<li><p>Finally, put Base64 encoded signature into query parameter : <strong>sign</strong></p>\n</li>\n</ol>\n<h2 id=\"signing-example\">Signing Example</h2>\n<blockquote>\n<p>API documentation emphasizes the importance of cryptography, <em>which refers to cryptographic techniques</em>, <strong>not currency</strong>. It utilizes hashing to ensure data integrity and verification, and encryption to protect sensitive information. Authorized parties can decrypt the ciphertext to access the original data. By incorporating these cryptographic techniques, our API aims to maintain data security and user trust. </p>\n</blockquote>\n<h3 id=\"php\">PHP</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-php\">$secret = \"YourVerySecretKey\";\n$price = 9999;\n$qty = 1;\n$product = \"VCGS33-S22\";\n$trx_code = \"TRX0005\";\n$total = $price * $qty;\n$str = $secret.$total.$product.$price.$trx_code;\n$hmac = hash_hmac(\"sha512\", $str, $secret, false);\n$signature = base64_encode($hmac);\n\n</code></pre>\n<h3 id=\"nodejs\">NodeJS</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">const CryptoJS = require(\"crypto-js\");\nconst secret = \"YourVerySecretKey\";\nconst price = 9999;\nconst qty = 1;\nconst product = \"VCGS33-S22\";\nconst trx_code = \"TRX0006\";\nconst total = price * qty;\nconst str = `${secret}${total}${product}${price}${trx_code}`;\nconst hmac = CryptoJS.HmacSHA512(str, secret).toString();\nconst signature = CryptoJS.enc.Base64.stringify(CryptoJS.enc.Utf8.parse(hmac));\n\n</code></pre>\n<h3 id=\"go\">Go</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-go\">package main\nimport (\n    \"crypto/hmac\"\n    \"crypto/sha512\"\n    \"encoding/hex\"\n    \"encoding/base64\"\n    \"fmt\"\n)\nfunc main() {\n    secret := \"YourVerySecretKey\"\n    price := 9999\n    product := \"VCGS33-S22\"\n    data := fmt.Sprintf(\"%s%d%s\", secret, price, product)\n    fmt.Printf(\"Secret: %s Data: %s\\n\", secret, data)\n    // Create a new HMAC by defining the hash type and the key (as byte array)\n    h := hmac.New(sha512.New, []byte(secret))\n    // Write Data to it\n    h.Write([]byte(data))\n    // Get result and encode as hexadecimal string\n    hashSign := hex.EncodeToString(h.Sum(nil))\n    // convert hash result into base64\n    signature := base64.StdEncoding.EncodeToString([]byte(hashSign))\n}\n\n</code></pre>\n<h1 id=\"create-order-scenario-test\">Create Order Scenario Test</h1>\n<ul>\n<li><p><strong>SUCESS</strong> ( Via Callback - Top Up )<br>  <code>variation_key = \"MLBB112\"</code></p>\n</li>\n<li><p><strong>SUCCESS</strong> ( Via Callback - Voucher )<br>  <code>variation_key = \"STEAMV50\"</code></p>\n</li>\n<li><p><strong>PRODUCT_NOT_FOUND</strong><br>  <code>variation_key = \"VCG\"</code></p>\n</li>\n<li><p><strong>CLIENT_ERROR</strong><br>  <code>variation_key = \"MLBB112\"</code><br>  <code>ref_id = empty string</code></p>\n</li>\n<li><p><strong>VALIDATION_ERROR</strong><br>  <code>variation_key = \"MLBB112\"</code><br>  <code>data = empty array / null</code></p>\n</li>\n</ul>\n<h1 id=\"webhook-setup\">Webhook Setup</h1>\n<p>Currently we support 4 types of webhooks :</p>\n<ul>\n<li><p><strong>Top Up</strong><br>  Triggered whenever topup was completed.</p>\n</li>\n<li><p><strong>New Transaction</strong><br>  Triggered whenever there are new transaction.</p>\n</li>\n<li><p><strong>Status Update</strong><br>  Triggered whenever there are status updates on your transactions.</p>\n</li>\n<li><p><strong>Product Status</strong><br>  Triggered whenever there are update status on product for example : price change or status active/inactive change.</p>\n</li>\n</ul>\n<h1 id=\"create-order-flow\">Create Order Flow</h1>\n<img src=\"https://content.pstmn.io/18dcd45b-39ec-44a0-a457-0f996ec0fd01/cHJvZHVjdCAmIHRyYW5hY3Rpb24gZmxvdy5kcmF3aW8ucG5n\">\n\n<ol>\n<li><p>Find a product</p>\n</li>\n<li><p>Find an Item SKU from products</p>\n</li>\n<li><p>Fill <code>ref_id</code>, <code>product_code</code>, <code>sku_code</code>, <code>price</code> and <code>data</code> into request body</p>\n</li>\n<li><p>For <code>data</code> parameter, use this example :</p>\n</li>\n</ol>\n<blockquote>\n<p>Look for <code>forms</code> parameter ini step 1 response. example : </p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n   {\n      \"key\": \"user_id\",\n      \"type\": \"numeric\",\n      \"alias\": \"UID\"\n   },\n   {\n      \"key\": \"additional_id\",\n      \"type\": \"option\",\n      \"options\": [\n         \"SEA\",\n         \"NA\",\n         \"JP\",\n         \"KR\"\n      ],\n      \"alias\": \"SERVER\"\n   }\n]\n\n</code></pre>\n<blockquote>\n<p>Copy those structures, remove <code>type</code>, <code>options</code>, and <code>alias</code>; then add <code>value</code> on each objects inside the array. The <code>value</code> depends on the <code>type</code> parameter </p>\n</blockquote>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>text</td>\n<td>Put alphanumeric characters</td>\n</tr>\n<tr>\n<td>numeric</td>\n<td>Put only numeric characters ( use <code>string</code> data-type )</td>\n</tr>\n<tr>\n<td>option</td>\n<td>Put from one of the <code>options</code> value</td>\n</tr>\n</tbody>\n</table>\n</div><blockquote>\n<p>Reform your array of objects structure into <code>data</code> parameter. Example : </p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n   {\n      \"key\": \"user_id\",\n      \"value\": \"12345678\"\n   },\n   {\n      \"key\": \"additional_id\",\n      \"value\": \"SEA\"\n   }\n]\n\n</code></pre>\n<h1 id=\"rate-limit\">Rate Limit</h1>\n<p>For system security purposes, we apply API rate limiter to all endpoints per user IP address, furthermore the limit is 200 requests / 60 seconds.</p>\n<h1 id=\"ip-whitelist\">IP Whitelist</h1>\n<p>Please make sure to add our IP to your whitelist :</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Type</strong></th>\n<th><strong>IP</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>ipv4</td>\n<td>172.236.143.138</td>\n</tr>\n<tr>\n<td>ipv6</td>\n<td>2600:3c15::f03c:95ff:fe98:ef07</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"rc-code-list\">RC Code List</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>RC Code</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>00</td>\n<td>Success / OK</td>\n</tr>\n<tr>\n<td>21</td>\n<td>Check ID feature is currently not available</td>\n</tr>\n<tr>\n<td>22</td>\n<td>Check ID feature error</td>\n</tr>\n<tr>\n<td>23</td>\n<td>Ref ID is already exist</td>\n</tr>\n<tr>\n<td>24</td>\n<td>Product price limit exceeded</td>\n</tr>\n<tr>\n<td>25</td>\n<td>Insufficient Balance</td>\n</tr>\n<tr>\n<td>26</td>\n<td>Payment Unavailable / Already Paid</td>\n</tr>\n<tr>\n<td>40</td>\n<td>Invalid Parameter, check <code>message</code> parameter for more explanation</td>\n</tr>\n<tr>\n<td>41</td>\n<td>Parse token error</td>\n</tr>\n<tr>\n<td>42</td>\n<td>Unauthenticated</td>\n</tr>\n<tr>\n<td>43</td>\n<td>Signature Invalid</td>\n</tr>\n<tr>\n<td>44</td>\n<td>Data Not Found / Transaction Not Available</td>\n</tr>\n<tr>\n<td>45</td>\n<td>Traffic limit exceeded, please try again after a while</td>\n</tr>\n<tr>\n<td>46</td>\n<td>User limit exceeded, please contact Admin</td>\n</tr>\n<tr>\n<td>47</td>\n<td>Inquiry Failed / Error ( Postpaid )</td>\n</tr>\n<tr>\n<td>50</td>\n<td>Server Error / Server Maintenance Error</td>\n</tr>\n</tbody>\n</table>\n</div></body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"URL","slug":"url"},{"content":"Changelogs","slug":"changelogs"},{"content":"HTTP Codes","slug":"http-codes"},{"content":"Status Codes","slug":"status-codes"},{"content":"Authorization","slug":"authorization"},{"content":"Signature Algorithm","slug":"signature-algorithm"},{"content":"Create Order Scenario Test","slug":"create-order-scenario-test"},{"content":"Webhook Setup","slug":"webhook-setup"},{"content":"Create Order Flow","slug":"create-order-flow"},{"content":"Rate Limit","slug":"rate-limit"},{"content":"IP Whitelist","slug":"ip-whitelist"},{"content":"RC Code List","slug":"rc-code-list"}],"owner":"18660785","collectionId":"cfc27218-a907-43d0-83b1-87078565001a","publishedId":"2s93sc3CBe","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-08-29T06:27:27.000Z"},"item":[{"name":"V2","item":[{"name":"Get Balance","event":[{"listen":"prerequest","script":{"id":"1f6966f4-1143-41fa-aebe-6bd7369e46e4","exec":["const cryptojs = require('crypto-js')\r","const secret = pm.collectionVariables.get(\"secret\");\r","var params = secret+\"saldo\";\r","var hmac = cryptojs.HmacSHA512(params, secret).toString();\r","var sign = cryptojs.enc.Base64.stringify(cryptojs.enc.Utf8.parse(hmac));\r","\r","pm.request.addQueryParams(\"sign=\"+sign);"],"type":"text/javascript","packages":{}}}],"id":"b5f21dff-28b6-45ec-8e87-2f92d12d46ed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ","type":"text"}],"url":"https://mitra-api.vcgamers.com/v1/public/balance","description":"<p>This endpoint informs of your Mitra Balance.</p>\n<h2 id=\"query-parameters\">Query parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>sign</td>\n<td>String</td>\n<td>Yes</td>\n<td>The signature formula is <code>{secret}+\"saldo\"</code></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"headers\">Headers</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Authorization</td>\n<td>Yes</td>\n<td>Your access token. The value is : <code>Bearer {access_token}</code></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"inherit","inherit":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"cfc27218-a907-43d0-83b1-87078565001a","id":"cfc27218-a907-43d0-83b1-87078565001a","name":"VCGamers Mitra Open API","type":"collection"}},"urlObject":{"path":["v1","public","balance"],"host":["https://mitra-api.vcgamers.com"],"query":[],"variable":[]}},"response":[{"id":"b59ed185-6434-4b46-8628-a5643b31dd0e","name":"SUCCESS","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_key}}","type":"text"}],"url":{"raw":"https://mitra-api.vcgamers.com/v1/public/balance?sign=your-generated-signature","host":["https://mitra-api.vcgamers.com"],"path":["v1","public","balance"],"query":[{"key":"sign","value":"your-generated-signature","type":"text"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 26 May 2023 09:03:42 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"58"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"status\": \"SUCCESS\",\n    \"data\": {\n        \"balance\": 1699108\n    }\n}"}],"_postman_id":"b5f21dff-28b6-45ec-8e87-2f92d12d46ed"},{"name":"Products","event":[{"listen":"prerequest","script":{"id":"ca63e966-7be4-45e2-a0fa-ed33e1f7e589","exec":["const secret = pm.collectionVariables.get(\"secret\");\r","var params = secret+\"brand\";\r","var hmac = CryptoJS.HmacSHA512(params, secret).toString();\r","var sign = CryptoJS.enc.Base64.stringify(CryptoJS.enc.Utf8.parse(hmac));\r","pm.request.addQueryParams(\"sign=\"+sign);"],"type":"text/javascript","packages":{}}}],"id":"03e01c8d-355a-43b0-8afe-9edcff71f1c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer "}],"url":"https://mitra-api.vcgamers.com/v2/public/brands","description":"<h2 id=\"query-parameters\">Query parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>sign</td>\n<td>String</td>\n<td>Yes</td>\n<td>The signature formula is <code>{secret}+\"brand\"</code></td>\n</tr>\n<tr>\n<td>search</td>\n<td>String</td>\n<td>No</td>\n<td>Search brands by key or name</td>\n</tr>\n<tr>\n<td>is_postpaid</td>\n<td>Boolean</td>\n<td>No</td>\n<td>Get prepaid or postpaid products</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"headers\">Headers</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Authorization</td>\n<td>Yes</td>\n<td>Your access token. The value is : <code>Bearer {access_token}</code></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-parameters\">Response parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>key</td>\n<td>Variation key</td>\n</tr>\n<tr>\n<td>name</td>\n<td>Variation name</td>\n</tr>\n<tr>\n<td>image_url</td>\n<td>Variation Image URL</td>\n</tr>\n<tr>\n<td>is_voucher</td>\n<td>Check whether the variation status is voucher or not</td>\n</tr>\n<tr>\n<td>is_active</td>\n<td>Check whether the variation status is active or not</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"inherit","inherit":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"cfc27218-a907-43d0-83b1-87078565001a","id":"cfc27218-a907-43d0-83b1-87078565001a","name":"VCGamers Mitra Open API","type":"collection"}},"urlObject":{"path":["v2","public","brands"],"host":["https://mitra-api.vcgamers.com"],"query":[],"variable":[]}},"response":[{"id":"9b87944f-8f3c-4d57-8dfe-250692dc6f65","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer your-access-token"}],"url":{"raw":"https://mitra-api.vcgamers.com/v2/public/brands?sign=your-signature-key","protocol":"https","host":["mitra-api","vcgamers","com"],"path":["v2","public","brands"],"query":[{"key":"sign","value":"your-signature-key"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 15 May 2024 04:36:08 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"vary","value":"Origin"},{"key":"access-control-allow-origin","value":"*"},{"key":"strict-transport-security","value":"max-age=15724800; includeSubDomains"},{"key":"x-forwarded-for","value":"103.86.116.35"},{"key":"x-frame-options","value":"sameorigin"},{"key":"x-content-type-options","value":"nosniff"},{"key":"referrer-policy","value":"same-origin"},{"key":"permissions-policy","value":"accelerometer=(), camera=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), payment=(), usb=()"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=pJUCUrV5dtmnN47NZRsq0Wl0oy9S5lhB40ZtUQAFbbXGiUYw8mdvFlWzuAfwHV%2BbDz9o8ey85r0m98tC%2BTXpVCX5qsttuz6%2Fl7Ps2kM0mEFvECnYNV34%2FnFJT5y1KkhgygMjUQ%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"X-Robots-Tag","value":"noindex, nofollow, nosnippet, noarchive"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"88406ce18e68df8b-CGK"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"status\": \"SUCCESS\",\n    \"data\": [\n        {\n            \"key\": \"10\",\n            \"name\": \"Steam\",\n            \"image_url\": \"\",\n            \"is_voucher\": false,\n            \"is_active\": true,\n            \"description\": \"\",\n            \"has_check_id\": false,\n            \"is_postpaid\": false,\n            \"forms\": []\n        },\n        {\n            \"key\": \"CODM\",\n            \"name\": \"Call Of Duty Mobile\",\n            \"image_url\": \"\",\n            \"is_voucher\": false,\n            \"is_active\": true,\n            \"description\": \"\",\n            \"has_check_id\": false,\n            \"is_postpaid\": false,\n            \"forms\": [\n                {\n                    \"key\": \"COD\",\n                    \"type\": \"text\",\n                    \"alias\": \"User ID\"\n                }\n            ]\n        },\n        {\n            \"key\": \"FreeFire\",\n            \"name\": \"Free Fire \",\n            \"image_url\": \"\",\n            \"is_voucher\": false,\n            \"is_active\": true,\n            \"description\": \"\",\n            \"has_check_id\": true,\n            \"is_postpaid\": false,\n            \"forms\": [\n                {\n                    \"key\": \"FF\",\n                    \"type\": \"text\",\n                    \"alias\": \"User ID\"\n                }\n            ]\n        },\n        {\n            \"key\": \"MLBB\",\n            \"name\": \"Mobile Legends\",\n            \"image_url\": \"\",\n            \"is_voucher\": false,\n            \"is_active\": true,\n            \"description\": \"\",\n            \"has_check_id\": true,\n            \"is_postpaid\": false,\n            \"forms\": [\n                {\n                    \"key\": \"additional_id\",\n                    \"type\": \"text\",\n                    \"alias\": \"Server ID\"\n                },\n                {\n                    \"key\": \"user_id\",\n                    \"type\": \"text\",\n                    \"alias\": \"User ID\"\n                }\n            ]\n        },\n        {\n            \"key\": \"Unipin\",\n            \"name\": \"unipin\",\n            \"image_url\": \"\",\n            \"is_voucher\": false,\n            \"is_active\": true,\n            \"description\": \"\",\n            \"has_check_id\": false,\n            \"is_postpaid\": false,\n            \"forms\": []\n        }\n    ]\n}"}],"_postman_id":"03e01c8d-355a-43b0-8afe-9edcff71f1c0"},{"name":"Variations","event":[{"listen":"prerequest","script":{"id":"1059b3d6-4a72-4f06-b3f3-8daf23c6a611","exec":["const secret = pm.collectionVariables.get(\"secret\");\r","var brandKey = pm.request.url.query.get(\"brand_key\").toString()\r","var params = secret+\"variation\"+brandKey;\r","var hmac = CryptoJS.HmacSHA512(params, secret).toString();\r","var sign = CryptoJS.enc.Base64.stringify(CryptoJS.enc.Utf8.parse(hmac));\r","pm.request.addQueryParams(\"sign=\"+sign);"],"type":"text/javascript","packages":{}}}],"id":"d2b3d928-7b75-4263-80f1-118efdab2749","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer "}],"url":"https://mitra-api.vcgamers.com/v2/public/variations?brand_key=MLBB","description":"<h2 id=\"query-parameters\">Query parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>sign</td>\n<td>String</td>\n<td>Yes</td>\n<td>The signature formula is <code>{secret}+\"variation+{brand_key}\"</code></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"headers\">Headers</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Authorization</td>\n<td>Yes</td>\n<td>Your access token. The value is : <code>Bearer {access_token}</code></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"inherit","inherit":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"cfc27218-a907-43d0-83b1-87078565001a","id":"cfc27218-a907-43d0-83b1-87078565001a","name":"VCGamers Mitra Open API","type":"collection"}},"urlObject":{"path":["v2","public","variations"],"host":["https://mitra-api.vcgamers.com"],"query":[{"key":"brand_key","value":"MLBB"}],"variable":[]}},"response":[{"id":"0b4bdece-64f8-4e68-abf1-b00f0e3a830d","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer "}],"url":{"raw":"https://mitra-api.vcgamers.com/v2/public/variations?brand_key=MLBB","host":["https://mitra-api.vcgamers.com"],"path":["v2","public","variations"],"query":[{"key":"brand_key","value":"MLBB"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 15 May 2024 04:38:28 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"vary","value":"Origin"},{"key":"access-control-allow-origin","value":"*"},{"key":"strict-transport-security","value":"max-age=15724800; includeSubDomains"},{"key":"x-forwarded-for","value":"103.86.116.35"},{"key":"x-frame-options","value":"sameorigin"},{"key":"x-content-type-options","value":"nosniff"},{"key":"referrer-policy","value":"same-origin"},{"key":"permissions-policy","value":"accelerometer=(), camera=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), payment=(), usb=()"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=wN4SAUuywCSEZ3d%2F7bgNp0wHrhIXuXxLwky%2BspZrQw%2BQvOi7A9A4EC3gykczNHNX%2BrI48kSFm2MwhP6zUih9tgOUegd7U3UzZtpt5gQCL1rJrzkWb55VPmKOg2tnn%2BBCk7P15A%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"X-Robots-Tag","value":"noindex, nofollow, nosnippet, noarchive"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"8840704dada2df8b-CGK"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"status\": \"SUCCESS\",\n    \"data\": [\n        {\n            \"key\": \"MLBB10\",\n            \"variation_name\": \"10 Diamonds\",\n            \"brand_name\": \"Mobile Legends\",\n            \"price\": 103,\n            \"is_active\": true,\n            \"sla\": 1964,\n            \"is_new\": false\n        },\n        {\n            \"key\": \"MLBB100\",\n            \"variation_name\": \"100 Diamonds\",\n            \"brand_name\": \"Mobile Legends\",\n            \"price\": 5665,\n            \"is_active\": true,\n            \"sla\": 0,\n            \"is_new\": false\n        },\n        {\n            \"key\": \"MLBB112\",\n            \"variation_name\": \"112 Diamonds\",\n            \"brand_name\": \"Mobile Legends\",\n            \"price\": 29273,\n            \"is_active\": true,\n            \"sla\": 0,\n            \"is_new\": false\n        }\n    ]\n}"}],"_postman_id":"d2b3d928-7b75-4263-80f1-118efdab2749"},{"name":"Check ID ( Prepaid )","event":[{"listen":"prerequest","script":{"id":"6efd7ff1-7a2c-4931-bb82-e8b8a5491ef5","exec":["crjs = require('crypto-js')\r","const moment = require('moment')\r","var timestampts = moment().unix()\r","pm.variables.set(\"timestampts\", timestampts)\r","var req = pm.request.body.toJSON();\r","var reqJson = JSON.parse(req.raw);\r","var secret = pm.collectionVariables.get(\"secret\");\r","var params = secret+\"checkid\"+reqJson.brand_key+reqJson.variation_key+timestampts.toString()\r","console.log(params)\r","var hmac = crjs.HmacSHA512(params, secret).toString();\r","var base64Encode = crjs.enc.Base64.stringify(crjs.enc.Utf8.parse(hmac));\r","\r","pm.request.addQueryParams(\"sign=\"+base64Encode)"],"type":"text/javascript","packages":{}}}],"id":"1197b8ac-96ea-4c07-a6db-fbd1f081d069","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer "}],"body":{"mode":"raw","raw":"{\r\n    \"brand_key\": \"MLBB\",\r\n    \"variation_key\": \"MLBBX3\",\r\n    \"data\": [\r\n        {\r\n            \"key\": \"user_id\",\r\n            \"value\": \"37387416\"\r\n        },\r\n        {\r\n            \"key\": \"zone_id\",\r\n            \"value\": \"2055\"\r\n        }\r\n    ],\r\n    \"timestamp\": \"{{timestampts}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://mitra-api.vcgamers.com/v2/public/check-id","description":"<h2 id=\"query-parameters\">Query parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>sign</td>\n<td>String</td>\n<td>Yes</td>\n<td>The signature formula is <code>{secret}+\"+checkid+{brand_key}+{variation_key}+{timestamp}\"</code></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"headers\">Headers</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Authorization</td>\n<td>Yes</td>\n<td>Your access token. The value is : <code>Bearer {access_token}</code></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"inherit","inherit":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"cfc27218-a907-43d0-83b1-87078565001a","id":"cfc27218-a907-43d0-83b1-87078565001a","name":"VCGamers Mitra Open API","type":"collection"}},"urlObject":{"path":["v2","public","check-id"],"host":["https://mitra-api.vcgamers.com"],"query":[],"variable":[]}},"response":[{"id":"fa1d666d-c006-4475-aa67-be55ab0286b1","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer access-token"}],"body":{"mode":"raw","raw":"{\r\n    \"brand_key\": \"MLBB\",\r\n    \"variation_key\": \"MLBB10\",\r\n    \"data\": [\r\n        {\r\n            \"key\": \"user_id\",\r\n            \"value\": \"12345678\"\r\n        },\r\n        {\r\n            \"key\": \"zone\",\r\n            \"value\": \"1234\"\r\n        }\r\n    ],\r\n    \"timestamp\": \"1778145750\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://mitra-api.vcgamers.com/v2/public/check-id?sign=your-generated-signature","host":["https://mitra-api.vcgamers.com"],"path":["v2","public","check-id"],"query":[{"key":"sign","value":"your-generated-signature"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":""}],"cookie":[],"responseTime":null,"body":"{\r\n  \"code\": 200,\r\n  \"status\": \"SUCCESS\",\r\n  \"data\": {\r\n    \"is_valid\": true,\r\n    \"nickname\": \"K*****n\"\r\n  }\r\n}"}],"_postman_id":"1197b8ac-96ea-4c07-a6db-fbd1f081d069"},{"name":"Inquiry ( Postpaid )","event":[{"listen":"prerequest","script":{"id":"7cd39ee8-e43d-4db1-a38c-bbac23238acc","exec":["const moment = require('moment')\r","pm.variables.set(\"timestampts\", moment().unix())\r","var req = pm.request.body.toJSON();\r","var reqJson = JSON.parse(req.raw);\r","var secret = pm.collectionVariables.get(\"secret\");\r","var params = secret+\"order\"+reqJson.brand_key+reqJson.variation_key+reqJson.price.toString()+reqJson.ref_id+pm.variables.get(\"timestampts\").toString()\r","console.log(params)\r","var hmac = CryptoJS.HmacSHA512(params, secret).toString();\r","var base64Encode = CryptoJS.enc.Base64.stringify(CryptoJS.enc.Utf8.parse(hmac));\r","\r","pm.request.addQueryParams(\"sign=\"+base64Encode)"],"type":"text/javascript","packages":{}}}],"id":"5a936f34-b8a6-4a9a-b186-8b93b93aff50","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer "}],"body":{"mode":"raw","raw":"{\r\n    \"brand_key\": \"PLN\",\r\n    \"variation_key\": \"PLN\",\r\n    \"price\": 103,\r\n    \"ref_id\": \"ref-123456\",\r\n    \"data\": [\r\n        {\r\n            \"key\": \"customerno\",\r\n            \"value\": \"530000000001\"\r\n        }\r\n    ],\r\n    \"timestamp\": \"{{timestampts}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://mitra-api.vcgamers.com/v2/public/inquiry","description":"<h2 id=\"query-parameters\">Query parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>sign</td>\n<td>String</td>\n<td>Yes</td>\n<td>The signature formula is <code>{secret}+\"inquiry\"+{brand_key}+{variation_key}+{price}+{ref_id}+{timestamp}</code></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"headers\">Headers</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Authorization</td>\n<td>Yes</td>\n<td>Your access token. The value is : <code>Bearer {access_token}</code></td>\n</tr>\n<tr>\n<td>Content-Type</td>\n<td>Yes</td>\n<td><code>application/json</code></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"body\">Body</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>brand_key</td>\n<td>String</td>\n<td>Yes</td>\n<td>Brand code</td>\n</tr>\n<tr>\n<td>variation_key</td>\n<td>String</td>\n<td>Yes</td>\n<td>Variation SKU code</td>\n</tr>\n<tr>\n<td>price</td>\n<td>Integer</td>\n<td>Yes</td>\n<td>Item SKU price</td>\n</tr>\n<tr>\n<td>data</td>\n<td>Array of Objects</td>\n<td>Yes</td>\n<td>An array of objects from products &gt; forms</td>\n</tr>\n<tr>\n<td>ref_id</td>\n<td>String</td>\n<td>Yes</td>\n<td>Your inquiry reference id</td>\n</tr>\n<tr>\n<td>timestamp</td>\n<td>String</td>\n<td>Yes</td>\n<td>Current timestamp with UNIX format style</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"inherit","inherit":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"cfc27218-a907-43d0-83b1-87078565001a","id":"cfc27218-a907-43d0-83b1-87078565001a","name":"VCGamers Mitra Open API","type":"collection"}},"urlObject":{"path":["v2","public","inquiry"],"host":["https://mitra-api.vcgamers.com"],"query":[{"disabled":true,"key":"sign","value":"your-signature-id"}],"variable":[]}},"response":[{"id":"9d85c408-14f7-4921-8798-1e6182d03314","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer "}],"body":{"mode":"raw","raw":"{\r\n    \"brand_key\": \"PLN\",\r\n    \"variation_key\": \"PLN\",\r\n    \"price\": 103,\r\n    \"ref_id\": \"ref-123456\",\r\n    \"data\": [\r\n        {\r\n            \"key\": \"customerno\",\r\n            \"value\": \"530000000001\"\r\n        }\r\n    ],\r\n    \"timestamp\": \"{{timestampts}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://mitra-api.vcgamers.com/v2/public/inquiry","host":["https://mitra-api.vcgamers.com"],"path":["v2","public","inquiry"],"query":[{"key":"sign","value":"your-signature-id","disabled":true}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"code\": 200,\r\n    \"rc_code\": \"00\",\r\n    \"status\": \"SUCCESS\",\r\n    \"data\": {\r\n        \"product_code\": \"PLN\",\r\n        \"product_name\": \"PLN Pascabayar\",\r\n        \"sku_code\": \"PLN\",\r\n        \"sku_name\": \"PLN\",\r\n        \"customer_no\": \"530000000001\",\r\n        \"customer_name\": \"Nama Pelanggan Pertama\",\r\n        \"ref_id\": \"ref-123456\",\r\n        \"bill_total\": 10000,\r\n        \"admin_total\": 4750,\r\n        \"form_data\": [\r\n            {\r\n                \"key\": \"customerno\",\r\n                \"alias\": \"No Tagihan\",\r\n                \"value\": \"530000000001\"\r\n            }\r\n        ],\r\n        \"bill_detail\": {\r\n            \"headers\": [\r\n                {\r\n                    \"key\": \"Tarif\",\r\n                    \"value\": \"R1\"\r\n                },\r\n                {\r\n                    \"key\": \"Daya\",\r\n                    \"value\": 1300\r\n                },\r\n                {\r\n                    \"key\": \"Lembar Tagihan\",\r\n                    \"value\": 1\r\n                }\r\n            ],\r\n            \"details\": [\r\n                [\r\n                    {\r\n                        \"key\": \"Admin\",\r\n                        \"value\": \"2500\"\r\n                    },\r\n                    {\r\n                        \"key\": \"Denda\",\r\n                        \"value\": \"500\"\r\n                    },\r\n                    {\r\n                        \"key\": \"Periode\",\r\n                        \"value\": \"201901\"\r\n                    },\r\n                    {\r\n                        \"key\": \"Nilai Tagihan\",\r\n                        \"value\": \"8000\"\r\n                    }\r\n                ]\r\n            ]\r\n        }\r\n    }\r\n}"}],"_postman_id":"5a936f34-b8a6-4a9a-b186-8b93b93aff50"},{"name":"Create Order","event":[{"listen":"prerequest","script":{"id":"7cd39ee8-e43d-4db1-a38c-bbac23238acc","exec":["const moment = require('moment')\r","pm.variables.set(\"timestampts\", moment().unix())\r","var req = pm.request.body.toJSON();\r","var reqJson = JSON.parse(req.raw);\r","var secret = pm.collectionVariables.get(\"secret\");\r","var params = secret+\"order\"+reqJson.brand_key+reqJson.variation_key+reqJson.price.toString()+reqJson.ref_id+pm.variables.get(\"timestampts\").toString()\r","console.log(params)\r","var hmac = CryptoJS.HmacSHA512(params, secret).toString();\r","var base64Encode = CryptoJS.enc.Base64.stringify(CryptoJS.enc.Utf8.parse(hmac));\r","\r","pm.request.addQueryParams(\"sign=\"+base64Encode)"],"type":"text/javascript","packages":{}}}],"id":"ba1b0940-4438-482c-8c8c-2eb612355933","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer "}],"body":{"mode":"raw","raw":"{\r\n    \"brand_key\": \"MLBB\",\r\n    \"variation_key\": \"MLBB10\",\r\n    \"price\": 103,\r\n    \"ref_id\": \"TRX0000123\",\r\n    \"data\": [\r\n        {\r\n            \"key\": \"user_id\",\r\n            \"value\": \"12345678\"\r\n        },\r\n        {\r\n            \"key\": \"additional_id\",\r\n            \"value\": \"1234\"\r\n        }\r\n    ],\r\n    \"timestamp\": \"{{timestampts}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://mitra-api.vcgamers.com/v2/public/order","description":"<h2 id=\"query-parameters\">Query parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>sign</td>\n<td>String</td>\n<td>Yes</td>\n<td>The signature formula is <code>{secret}+\"order\"+{brand_key}+{variation_key}+{price}+{ref_id}+{timestamp}</code></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"headers\">Headers</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Authorization</td>\n<td>Yes</td>\n<td>Your access token. The value is : <code>Bearer {access_token}</code></td>\n</tr>\n<tr>\n<td>Content-Type</td>\n<td>Yes</td>\n<td><code>application/json</code></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"body\">Body</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>brand_key</td>\n<td>String</td>\n<td>Yes</td>\n<td>Brand code</td>\n</tr>\n<tr>\n<td>variation_key</td>\n<td>String</td>\n<td>Yes</td>\n<td>Variation SKU code</td>\n</tr>\n<tr>\n<td>price</td>\n<td>Integer</td>\n<td>Yes</td>\n<td>Item SKU price</td>\n</tr>\n<tr>\n<td>data</td>\n<td>Array of Objects</td>\n<td>Yes</td>\n<td>An array of objects from products &gt; forms</td>\n</tr>\n<tr>\n<td>ref_id</td>\n<td>String</td>\n<td>Yes</td>\n<td>Your order reference id</td>\n</tr>\n<tr>\n<td>timestamp</td>\n<td>String</td>\n<td>Yes</td>\n<td>Current timestamp with UNIX format style</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"error-response\"><strong>Error Response</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>HTTP Status</strong></th>\n<th><strong>Response Body</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>500</td>\n<td>{  <br />\"code\": 500,  <br />\"status\": \"INTERNAL_SERVER_ERROR\",  <br />\"data\": \"unexpected error\"  <br />}</td>\n<td>Internal Server Problem</td>\n</tr>\n<tr>\n<td>400</td>\n<td>{  <br />\"code\": 400,  <br />\"status\": \"CLIENT_ERROR\",  <br />\"data\": \"Product tidak ditemukan\"  <br />}</td>\n<td>Product Not Found</td>\n</tr>\n<tr>\n<td>400</td>\n<td>{  <br />\"code\": 400,  <br />\"status\": \"CLIENT_ERROR\",  <br />\"data\": \"Parameter \"data\" tidak valid, silahkan cek request payload anda\"  <br />}</td>\n<td>Invalid <code>data</code> parameter</td>\n</tr>\n<tr>\n<td>400</td>\n<td>{  <br />\"code\": 400,  <br />\"status\": \"CLIENT_ERROR\",  <br />\"data\": \"{any} harus diisi\"  <br />}</td>\n<td>Missing value in <code>{any}</code> parameter. Example : <code>\"user_id harus diisi\"</code></td>\n</tr>\n<tr>\n<td>404</td>\n<td>{  <br />\"code\": 404,  <br />\"status\": \"NOT_FOUND\",  <br />\"data\": \"SKU not found\"  <br />}</td>\n<td>Product Item not found</td>\n</tr>\n<tr>\n<td>400</td>\n<td>{  <br />\"code\": 400,  <br />\"status\": \"CLIENT_ERROR\",  <br />\"data\": \"Product Inactive\"  <br />}</td>\n<td>Inactive Product Item</td>\n</tr>\n<tr>\n<td>400</td>\n<td>{  <br />\"code\": 400,  <br />\"status\": \"CLIENT_ERROR\",  <br />\"data\": \"Insufficient Balance\"  <br />}</td>\n<td>Insufficient Mitra Balance</td>\n</tr>\n<tr>\n<td>400</td>\n<td>{  <br />\"code\": 400,  <br />\"status\": \"CLIENT_ERROR\",  <br />\"data\": \"Ref Id exists\",  <br />\"trx_code\": \"TX-1234\"  <br />}</td>\n<td>Ref id already exist</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"transaction-status\">Transaction Status</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Status Name</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>SUCCESS</code></td>\n<td>The transaction has been processed and is successful</td>\n</tr>\n<tr>\n<td><code>PENDING</code></td>\n<td>The transaction has been processed but is still pending, use <strong>Order Status</strong> to get the latest status</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"inherit","inherit":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"cfc27218-a907-43d0-83b1-87078565001a","id":"cfc27218-a907-43d0-83b1-87078565001a","name":"VCGamers Mitra Open API","type":"collection"}},"urlObject":{"path":["v2","public","order"],"host":["https://mitra-api.vcgamers.com"],"query":[{"disabled":true,"key":"sign","value":"your-signature-id"}],"variable":[]}},"response":[{"id":"443cfb92-bde1-423d-a3a3-5b3683ce5a43","name":"Success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer "}],"body":{"mode":"raw","raw":"{\r\n    \"brand_key\": \"MLBB\",\r\n    \"variation_key\": \"MLBB10\",\r\n    \"price\": 103,\r\n    \"ref_id\": \"TRX0000123\",\r\n    \"data\": [\r\n        {\r\n            \"key\": \"user_id\",\r\n            \"value\": \"12345678\"\r\n        },\r\n        {\r\n            \"key\": \"additional_id\",\r\n            \"value\": \"1234\"\r\n        }\r\n    ],\r\n    \"timestamp\": \"{{timestampts}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://mitra-api.vcgamers.com/v2/public/order","host":["https://mitra-api.vcgamers.com"],"path":["v2","public","order"],"query":[{"key":"sign","value":"your-signature-id","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 15 May 2024 05:03:12 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"vary","value":"Origin"},{"key":"access-control-allow-origin","value":"*"},{"key":"strict-transport-security","value":"max-age=15724800; includeSubDomains"},{"key":"x-forwarded-for","value":"103.86.116.35"},{"key":"x-frame-options","value":"sameorigin"},{"key":"x-content-type-options","value":"nosniff"},{"key":"referrer-policy","value":"same-origin"},{"key":"permissions-policy","value":"accelerometer=(), camera=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), payment=(), usb=()"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=m7gZaw8%2BNc9bE8Ia7ASZyplOLVuH0lR1dw4vmvh1JbvAROVe4p2KCIf%2BRbPlzrUEdYpTmZKSOpbbjJ44YQlAsciDQoXzAA%2BDXxo5eEU8ptv920JzoCMdYcX4Sb3P%2B4NruOQB3g%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"X-Robots-Tag","value":"noindex, nofollow, nosnippet, noarchive"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"884094803a5fdf8f-CGK"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"status\": \"SUCCESS\",\n    \"data\": {\n        \"selling_total\": 103,\n        \"transaction_status\": \"PENDING\",\n        \"trx_code\": \"TX-202451512311B76C2124\"\n    }\n}"}],"_postman_id":"ba1b0940-4438-482c-8c8c-2eb612355933"},{"name":"Order Status","event":[{"listen":"prerequest","script":{"id":"37c74abb-7134-4f82-93a5-d8a77edb0e1e","exec":["const secret = pm.collectionVariables.get(\"secret\");\r","var tid = \"\"\r","pm.request.url.query.all().forEach((param) => { \r","    if (param.key == \"tid\") {\r","        tid = param.value\r","    }\r","});\r","var params = secret+\"orderstatus\"+tid;\r","var hmac = CryptoJS.HmacSHA512(params, secret).toString();\r","var sign = CryptoJS.enc.Base64.stringify(CryptoJS.enc.Utf8.parse(hmac));\r","pm.request.addQueryParams(\"sign=\"+sign);"],"type":"text/javascript","packages":{}}}],"id":"b0b8649d-2c72-4716-bb01-4bc0648156b5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"GET","header":[],"url":"https://mitra-api.vcgamers.com/v2/public/order-status?tid=TX-202451512311B76C2124","description":"<h2 id=\"query-parameters\">Query parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>tid</td>\n<td>String</td>\n<td>Yes</td>\n<td>Transaction code or Ref Id</td>\n</tr>\n<tr>\n<td>sign</td>\n<td>String</td>\n<td>Yes</td>\n<td>The signature formula is <code>{secret}+\"orderstatus\"+{tid}</code></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"headers\">Headers</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Authorization</td>\n<td>Yes</td>\n<td>Your access token. The value is : <code>Bearer {access_token}</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v2","public","order-status"],"host":["https://mitra-api.vcgamers.com"],"query":[{"key":"tid","value":"TX-202451512311B76C2124"}],"variable":[]}},"response":[{"id":"93c10ab5-4234-443f-b1e7-b88e8a0f4f7e","name":"Success","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://mitra-api.vcgamers.com/v2/public/order-status?tid=TX-202451512311B76C2124","host":["https://mitra-api.vcgamers.com"],"path":["v2","public","order-status"],"query":[{"key":"tid","value":"TX-202451512311B76C2124"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 15 May 2024 05:09:41 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"vary","value":"Origin"},{"key":"access-control-allow-origin","value":"*"},{"key":"strict-transport-security","value":"max-age=15724800; includeSubDomains"},{"key":"x-forwarded-for","value":"103.86.116.35"},{"key":"x-frame-options","value":"sameorigin"},{"key":"x-content-type-options","value":"nosniff"},{"key":"referrer-policy","value":"same-origin"},{"key":"permissions-policy","value":"accelerometer=(), camera=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), payment=(), usb=()"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v4?s=8CSLBSlG3RXmuidr%2Bt1LfULYxCi%2F8zqRTc0PuPz3NsOvokfv0lRLRDbkL5v8o7q5x8uqwWU3mM3Q%2F0QTLnoYXK2BbrxccaqENUCa8Yw7W4jgy0kwPWB43BmZJmMXv%2FpD1JGdEA%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"X-Robots-Tag","value":"noindex, nofollow, nosnippet, noarchive"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"88409e080c9edf8f-CGK"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"status\": \"SUCCESS\",\n    \"data\": {\n        \"code\": \"TX-202451512311B76C2124\",\n        \"status\": 1,\n        \"date\": \"2024-05-15T12:03:11+07:00\",\n        \"grand_total\": 103,\n        \"delivery_duration\": 0,\n        \"ref_id\": \"TRX0000123\",\n        \"detail\": {\n            \"variation_key\": \"MLBB10\",\n            \"variation_name\": \"10 Diamonds\",\n            \"price\": 103,\n            \"customer_data\": {\n                \"User ID\": \"12345678\",\n                \"Zone ID\": \"1234\"\n            },\n            \"voucher_code\": \"\",\n            \"order_param\": [\n                {\n                    \"alias\": \"User ID\",\n                    \"key\": \"user_id\",\n                    \"value\": \"12345678\"\n                },\n                {\n                    \"alias\": \"Server ID\",\n                    \"key\": \"additional_id\",\n                    \"value\": \"1234\"\n                }\n            ]\n        },\n        \"history_status\": [\n            {\n                \"status_name\": \"Order Dibuat\",\n                \"timestamp\": \"2024-05-15T12:03:11+07:00\"\n            },\n            {\n                \"status_name\": \"Order Diproses\",\n                \"timestamp\": \"2024-05-15T12:03:12.678376Z\"\n            }\n        ]\n    }\n}"}],"_postman_id":"b0b8649d-2c72-4716-bb01-4bc0648156b5"}],"id":"4450519e-336b-4e3b-a99b-a1de5fe63f55","_postman_id":"4450519e-336b-4e3b-a99b-a1de5fe63f55","description":"","auth":{"type":"inherit","inherit":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"cfc27218-a907-43d0-83b1-87078565001a","id":"cfc27218-a907-43d0-83b1-87078565001a","name":"VCGamers Mitra Open API","type":"collection"}}},{"name":"V1 (Legacy)","item":[{"name":"Products","event":[{"listen":"prerequest","script":{"exec":["const secret = pm.collectionVariables.get(\"secret\");\r","var params = secret+\"category\";\r","var hmac = CryptoJS.HmacSHA512(params, secret).toString();\r","var sign = CryptoJS.enc.Base64.stringify(CryptoJS.enc.Utf8.parse(hmac));\r","\r","pm.request.addQueryParams(\"sign=\"+sign);"],"type":"text/javascript","id":"7f17ea70-1bfe-4bd4-a059-5af31b4bfc6a"}}],"id":"8a2c8830-0ea3-47a0-ade0-fdbee82131a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://mitra-api.vcgamers.com/v1/public/category","description":"<h2 id=\"query-parameters\">Query parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>sign</td>\n<td>String</td>\n<td>Yes</td>\n<td>The signature formula is <code>{secret}+\"category\"</code></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"headers\">Headers</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Authorization</td>\n<td>Yes</td>\n<td>Your access token. The value is : <code>Bearer {access_token}</code></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"inherit","inherit":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"cfc27218-a907-43d0-83b1-87078565001a","id":"cfc27218-a907-43d0-83b1-87078565001a","name":"VCGamers Mitra Open API","type":"collection"}},"urlObject":{"path":["v1","public","category"],"host":["https://mitra-api.vcgamers.com"],"query":[],"variable":[]}},"response":[{"id":"749e329d-aba8-4b85-9ff4-adf40ba1f932","name":"SUCCESS","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer c6ca20a6aae08358e9afa755dae10319946aa674f1cee33003ffde28a1ba1998a4b13bb83325489b0e3818a6269f404f11e0","type":"text","disabled":true}],"url":{"raw":"https://mitra-api.vcgamers.com/v1/public/category?sign=your-generated-signature","protocol":"https","host":["mitra-api","vcgamers","com"],"path":["v1","public","category"],"query":[{"key":"sign","value":"your-generated-signature"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 26 May 2023 09:10:42 GMT"},{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"},{"key":"Content-Length","value":"38573"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"status\": \"SUCCESS\",\n    \"data\": [\n        {\n            \"code\": \"ArenaOfValor-C\",\n            \"name\": \"Arena of Valor-S2\",\n            \"status\": 2,\n            \"mark_device\": \"default\",\n            \"has_check_id\": true,\n            \"is_voucher\": false,\n            \"image\":\"\",\n            \"forms\": [\n                {\n                    \"key\": \"user_id\",\n                    \"type\": \"numeric\",\n                    \"alias\": \"ID USER\"\n                },\n                {\n                    \"key\": \"server\",\n                    \"type\": \"option\",\n                    \"options\": [\n                        \"Asia\",\n                        \"Europe\",\n                        \"America\"\n                    ],\n                    \"alias\": \"SERVER\"\n                }\n            ]\n        },\n        {\n            \"code\": \"AR\",\n            \"name\": \"Atlantica Rebirthx\",\n            \"status\": 2,\n            \"mark_device\": \"default\",\n            \"has_check_id\": false,\n            \"is_voucher\": false,\n            \"image\":\"\",\n            \"forms\": [\n                {\n                    \"key\": \"user_id\",\n                    \"type\": \"text\",\n                    \"alias\": \"USER_ID\"\n                },\n                {\n                    \"key\": \"additional_id\",\n                    \"type\": \"option\",\n                    \"options\": [\n                        \"All Server\"\n                    ],\n                    \"alias\": \"ADDITIONAL_ID\"\n                }\n            ]\n        },\n        {\n            \"code\": \"Au2Mobile-C\",\n            \"name\": \"AU2 MOBILE\",\n            \"status\": 2,\n            \"mark_device\": \"default\",\n            \"has_check_id\": false,\n            \"is_voucher\": false,\n            \"image\":\"\",\n            \"forms\": []\n        }\n    ]\n}"}],"_postman_id":"8a2c8830-0ea3-47a0-ade0-fdbee82131a5"},{"name":"Product Items","event":[{"listen":"prerequest","script":{"exec":["const secret = pm.collectionVariables.get(\"secret\");\r","var productCode = \"\"\r","pm.request.url.query.all().forEach((param) => { \r","    if (param.key == \"category_code\") {\r","        productCode = param.value\r","    }\r","});\r","var params = secret+\"product\"+productCode;\r","var hmac = CryptoJS.HmacSHA512(params, secret).toString();\r","var sign = CryptoJS.enc.Base64.stringify(CryptoJS.enc.Utf8.parse(hmac));\r","pm.request.addQueryParams(\"sign=\"+sign);"],"type":"text/javascript","id":"87a0a322-e75b-41cf-be5e-b6ab79739180"}}],"id":"d8b74724-a9c4-4b0b-9141-a6a351284883","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://mitra-api.vcgamers.com/v1/public/product?category_code=BTK","description":"<h2 id=\"query-parameters\">Query parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>category_code</td>\n<td>String</td>\n<td>Yes</td>\n<td>Product code</td>\n</tr>\n<tr>\n<td>sign</td>\n<td>String</td>\n<td>Yes</td>\n<td>The signature formula is <code>{secret}+\"product\"+{category_code}</code></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"headers\">Headers</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Authorization</td>\n<td>Yes</td>\n<td>Your access token. The value is : <code>Bearer {access_token}</code></td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"inherit","inherit":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"cfc27218-a907-43d0-83b1-87078565001a","id":"cfc27218-a907-43d0-83b1-87078565001a","name":"VCGamers Mitra Open API","type":"collection"}},"urlObject":{"path":["v1","public","product"],"host":["https://mitra-api.vcgamers.com"],"query":[{"key":"category_code","value":"BTK"}],"variable":[]}},"response":[{"id":"22e53b05-bad7-43b2-a6af-93b90a623554","name":"SUCCESS","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_key}}","type":"text","disabled":true}],"url":{"raw":"https://mitra-api.vcgamers.com/v1/public/product?category_code=GoPay-C&sign=your-generated-signature","host":["https://mitra-api.vcgamers.com"],"path":["v1","public","product"],"query":[{"key":"category_code","value":"GoPay-C"},{"key":"sign","value":"your-generated-signature"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 19 May 2023 04:00:04 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"1051"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"status\": \"SUCCESS\",\n    \"data\": [\n        {\n            \"sku_code\": \"gp1\",\n            \"sku_name\": \"Go Pay 10.000\",\n            \"price\": 10867,\n            \"status\": 2,\n            \"description\": \"Masukan no HP\",\n            \"mark_device\": \"default\"\n        },\n        {\n            \"sku_code\": \"gp2\",\n            \"sku_name\": \"Go Pay 20.000\",\n            \"price\": 21367,\n            \"status\": 2,\n            \"description\": \"Masukan no HP\",\n            \"mark_device\": \"default\",\n            \"image\":\"\",\n        },\n        {\n            \"sku_code\": \"gp3\",\n            \"sku_name\": \"Go Pay 50.000\",\n            \"price\": 52867,\n            \"status\": 2,\n            \"description\": \"Masukan no HP\",\n            \"mark_device\": \"default\"\n        },\n        {\n            \"sku_code\": \"gp4\",\n            \"sku_name\": \"Go Pay 100.000\",\n            \"price\": 105420,\n            \"status\": 2,\n            \"description\": \"Masukan no HP\",\n            \"mark_device\": \"default\",\n            \"image\":\"\"\n        },\n        {\n            \"sku_code\": \"gp5\",\n            \"sku_name\": \"Go Pay 150.000\",\n            \"price\": 158051,\n            \"status\": 2,\n            \"description\": \"Masukan no HP\",\n            \"mark_device\": \"default\",\n            \"image\":\"\"\n        },\n        {\n            \"sku_code\": \"gp6\",\n            \"sku_name\": \"Go Pay 200.000\",\n            \"price\": 210341,\n            \"status\": 2,\n            \"description\": \"Masukan no HP\",\n            \"mark_device\": \"default\",\n            \"image\":\"\"\n        },\n        {\n            \"sku_code\": \"gp7\",\n            \"sku_name\": \"Go Pay 300.000\",\n            \"price\": 315341,\n            \"status\": 2,\n            \"description\": \"Masukkan no HP\",\n            \"mark_device\": \"default\",\n            \"image\":\"\"\n        },\n        {\n            \"sku_code\": \"gp8\",\n            \"sku_name\": \"Go Pay 500.000\",\n            \"price\": 525525,\n            \"status\": 2,\n            \"description\": \"Masukan no HP\",\n            \"mark_device\": \"default\",\n            \"image\":\"\"\n        }\n    ]\n}"},{"id":"47d8709d-3265-435b-8e04-e52851b55645","name":"CLIENT_ERROR","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_key}}","type":"text","disabled":true}],"url":{"raw":"https://mitra-api.vcgamers.com/v1/public/product?category_code=GoPay&sign=your-generated-signature","host":["https://mitra-api.vcgamers.com"],"path":["v1","public","product"],"query":[{"key":"category_code","value":"GoPay"},{"key":"sign","value":"your-generated-signature","type":"text"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 19 May 2023 04:00:36 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"69"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 400,\n    \"status\": \"CLIENT_ERROR\",\n    \"data\": \"category code not valid\"\n}"}],"_postman_id":"d8b74724-a9c4-4b0b-9141-a6a351284883"},{"name":"Check ID","event":[{"listen":"prerequest","script":{"id":"7723ed5f-802f-4752-8495-69fa66cf84a6","exec":["var req = pm.request.body.toJSON();\r","var reqJson = JSON.parse(req.raw);\r","var secret = pm.environment.get(\"secret\");\r","console.log(secret)\r","var params = secret+\"checkid\"+reqJson.product_code+reqJson.sku_code\r","console.log(params)\r","var hmac = CryptoJS.HmacSHA512(params, secret).toString();\r","var base64Encode = CryptoJS.enc.Base64.stringify(CryptoJS.enc.Utf8.parse(hmac));\r","\r","pm.request.addQueryParams(\"sign=\"+base64Encode)"],"type":"text/javascript"}}],"id":"9c91275d-670a-4782-8378-0d25e7ab3e6a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"product_code\": \"GI\",\r\n    \"sku_code\": \"GIWELKIN-S1000\",\r\n    \"data\": [\r\n        {\r\n            \"key\": \"user_id\",\r\n            \"value\": \"811350036\"\r\n        },\r\n        {\r\n            \"key\": \"additional_id\",\r\n            \"value\": \"America\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://mitra-api.vcgamers.com/v1/public/check-id","description":"<h2 id=\"query-parameters\">Query parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>sign</td>\n<td>String</td>\n<td>Yes</td>\n<td>The signature formula is <code>{secret}+\"checkid\"+{product_code}+{item_code}</code></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"headers\">Headers</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Authorization</td>\n<td>Yes</td>\n<td>Your access token. The value is : <code>Bearer {access_token}</code></td>\n</tr>\n<tr>\n<td>Content-Type</td>\n<td>Yes</td>\n<td><code>application/json</code></td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"payload-body-description\">Payload Body Description</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>product_code</td>\n<td>String</td>\n<td>Yes</td>\n<td>Product code</td>\n</tr>\n<tr>\n<td>sku_code</td>\n<td>String</td>\n<td>Yes</td>\n<td>Item SKU code</td>\n</tr>\n<tr>\n<td>data</td>\n<td>Array of Objects</td>\n<td>Yes</td>\n<td>An array of objects from products &gt; forms</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"inherit","inherit":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"cfc27218-a907-43d0-83b1-87078565001a","id":"cfc27218-a907-43d0-83b1-87078565001a","name":"VCGamers Mitra Open API","type":"collection"}},"urlObject":{"path":["v1","public","check-id"],"host":["https://mitra-api.vcgamers.com"],"query":[],"variable":[]}},"response":[{"id":"448b4bbe-fba3-42a5-aa89-d0ee316138f6","name":"SUCCESS","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"product_code\": \"GI\",\r\n    \"sku_code\": \"GIWELKIN-S1000\",\r\n    \"data\": [\r\n        {\r\n            \"key\": \"user_id\",\r\n            \"value\": \"811350036\"\r\n        },\r\n        {\r\n            \"key\": \"additional_id\",\r\n            \"value\": \"Asia\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://mitra-api.vcgamers.com/v1/public/check-id?sign=your-generated-signature","host":["https://mitra-api.vcgamers.com"],"path":["v1","public","check-id"],"query":[{"key":"sign","value":"your-generated-signature","type":"text"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 21 Aug 2023 08:27:30 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-origin","value":"*"},{"key":"accesscontrolmaxage","value":"100"},{"key":"addvaryheader","value":"true"},{"key":"contenttypenosniff","value":"true"},{"key":"framedeny","value":"true"},{"key":"permissions-policy","value":"geolocation=(self), microphone=(), camera=(), fullscreen=*"},{"key":"referrer-policy","value":"strict-origin-when-cross-origin"},{"key":"sslredirect","value":"true"},{"key":"strict-transport-security","value":"max-age=15552000; includeSubDomains; preload"},{"key":"stsincludesubdomains","value":"true"},{"key":"stspreload","value":"true"},{"key":"vary","value":"Origin"},{"key":"x-content-type-options","value":"nosniff"},{"key":"x-frame-options","value":"DENY"},{"key":"x-permitted-cross-domain-policies","value":"none"},{"key":"x-xss-protection","value":"1; mode=block"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=t8gJZvdGtZtDnYDhtfqZqaTy%2FUuz9xVIh8szR%2F4j0C0a%2FIbj9Dic8YHTW573RKNSlLuGmLqVYC%2FAd0nDKEoTVI62HJxr5LiHnSmgxdu2mkfVbzhZB54uMhXhvXTrdYR9YN3b\"}],\"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":"7fa17f48796adf78-CGK"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"status\": \"SUCCESS\",\n    \"data\": {\n        \"is_valid\": true,\n        \"nickname\": \"K*****n\"\n    }\n}"},{"id":"fe78d51d-0a2f-4f29-9fe2-9eb2bfeca6f9","name":"SUCCESS (ID INVALID)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"product_code\": \"GI\",\r\n    \"sku_code\": \"GIWELKIN-S1000\",\r\n    \"data\": [\r\n        {\r\n            \"key\": \"user_id\",\r\n            \"value\": \"811350036\"\r\n        },\r\n        {\r\n            \"key\": \"additional_id\",\r\n            \"value\": \"America\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://mitra-api.vcgamers.com/v1/public/check-id?sign=your-generated-signature","host":["https://mitra-api.vcgamers.com"],"path":["v1","public","check-id"],"query":[{"key":"sign","value":"your-generated-signature","type":"text"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 21 Aug 2023 08:28:03 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-origin","value":"*"},{"key":"accesscontrolmaxage","value":"100"},{"key":"addvaryheader","value":"true"},{"key":"contenttypenosniff","value":"true"},{"key":"framedeny","value":"true"},{"key":"permissions-policy","value":"geolocation=(self), microphone=(), camera=(), fullscreen=*"},{"key":"referrer-policy","value":"strict-origin-when-cross-origin"},{"key":"sslredirect","value":"true"},{"key":"strict-transport-security","value":"max-age=15552000; includeSubDomains; preload"},{"key":"stsincludesubdomains","value":"true"},{"key":"stspreload","value":"true"},{"key":"vary","value":"Origin"},{"key":"x-content-type-options","value":"nosniff"},{"key":"x-frame-options","value":"DENY"},{"key":"x-permitted-cross-domain-policies","value":"none"},{"key":"x-xss-protection","value":"1; mode=block"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=fQhR%2FVhoMP5Loc1aEXWjQYJJGZB5qGpeKmUyHalhMEveRFRMfEgUX4DlhPUdSkTNyIzfjh9ppyMRxvy0KkoxD0gcr5QPjGMN51cELln9Qbkz%2BIyQsphvZNH5Iet2Prs5nOpj\"}],\"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":"7fa17fd38993df78-CGK"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"status\": \"SUCCESS\",\n    \"data\": {\n        \"is_valid\": false,\n        \"nickname\": \"\"\n    }\n}"}],"_postman_id":"9c91275d-670a-4782-8378-0d25e7ab3e6a"},{"name":"Create Order","event":[{"listen":"prerequest","script":{"id":"7723ed5f-802f-4752-8495-69fa66cf84a6","exec":["var req = pm.request.body.toJSON();\r","var reqJson = JSON.parse(req.raw);\r","var secret = pm.collectionVariables.get(\"secret\");\r","var params = secret+\"order\"+reqJson.product_code+reqJson.sku_code+reqJson.price.toString()+reqJson.ref_id;\r","console.log(params)\r","var hmac = CryptoJS.HmacSHA512(params, secret).toString();\r","var base64Encode = CryptoJS.enc.Base64.stringify(CryptoJS.enc.Utf8.parse(hmac));\r","\r","pm.request.addQueryParams(\"sign=\"+base64Encode)"],"type":"text/javascript","packages":{}}}],"id":"2e2376ee-bd82-458f-a4ab-d4b9422d9c6f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer ","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"product_code\": \"MobileLegends-C\",\r\n    \"sku_code\": \"MLBBX5A\",\r\n    \"price\": 1424,\r\n    \"data\": [\r\n        {\r\n            \"key\": \"id\",\r\n            \"value\": \"33348486\"\r\n        },\r\n        {\r\n            \"key\": \"zone\",\r\n            \"value\": \"2051\"\r\n        }\r\n    ],\r\n    \"ref_id\": \"1712504961-B4119BA1-A86EE47D\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://mitra-api.vcgamers.com/v1/public/order","description":"<h2 id=\"query-parameters\">Query parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>sign</td>\n<td>String</td>\n<td>Yes</td>\n<td>The signature formula is <code>{secret}+\"order\"+{product_code}+{item_code}+{price}+{ref_id}</code></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"headers\">Headers</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Authorization</td>\n<td>Yes</td>\n<td>Your access token. The value is : <code>Bearer {access_token}</code></td>\n</tr>\n<tr>\n<td>Content-Type</td>\n<td>Yes</td>\n<td><code>application/json</code></td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"payload-body-description\">Payload Body Description</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>product_code</td>\n<td>String</td>\n<td>Yes</td>\n<td>Product code</td>\n</tr>\n<tr>\n<td>sku_code</td>\n<td>String</td>\n<td>Yes</td>\n<td>Item SKU code</td>\n</tr>\n<tr>\n<td>price</td>\n<td>Integer</td>\n<td>Yes</td>\n<td>Item SKU price</td>\n</tr>\n<tr>\n<td>data</td>\n<td>Array of Objects</td>\n<td>Yes</td>\n<td>An array of objects from products &gt; forms</td>\n</tr>\n<tr>\n<td>ref_id</td>\n<td>String</td>\n<td>Yes</td>\n<td>Your order reference id</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"error-response\"><strong>Error Response</strong></h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>HTTP Status</strong></th>\n<th><strong>Response Body</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>500</td>\n<td>{  <br />\"code\": 500,  <br />\"status\": \"INTERNAL_SERVER_ERROR\",  <br />\"data\": \"unexpected error\"  <br />}</td>\n<td>Internal Server Problem</td>\n</tr>\n<tr>\n<td>400</td>\n<td>{  <br />\"code\": 400,  <br />\"status\": \"CLIENT_ERROR\",  <br />\"data\": \"Product tidak ditemukan\"  <br />}</td>\n<td>Product Not Found</td>\n</tr>\n<tr>\n<td>400</td>\n<td>{  <br />\"code\": 400,  <br />\"status\": \"CLIENT_ERROR\",  <br />\"data\": \"Parameter \"data\" tidak valid, silahkan cek request payload anda\"  <br />}</td>\n<td>Invalid <code>data</code> parameter</td>\n</tr>\n<tr>\n<td>400</td>\n<td>{  <br />\"code\": 400,  <br />\"status\": \"CLIENT_ERROR\",  <br />\"data\": \"{any} harus diisi\"  <br />}</td>\n<td>Missing value in <code>{any}</code> parameter. Example : <code>\"user_id harus diisi\"</code></td>\n</tr>\n<tr>\n<td>404</td>\n<td>{  <br />\"code\": 404,  <br />\"status\": \"NOT_FOUND\",  <br />\"data\": \"SKU not found\"  <br />}</td>\n<td>Product Item not found</td>\n</tr>\n<tr>\n<td>400</td>\n<td>{  <br />\"code\": 400,  <br />\"status\": \"CLIENT_ERROR\",  <br />\"data\": \"Product Inactive\"  <br />}</td>\n<td>Inactive Product Item</td>\n</tr>\n<tr>\n<td>400</td>\n<td>{  <br />\"code\": 400,  <br />\"status\": \"CLIENT_ERROR\",  <br />\"data\": \"Insufficient Balance\"  <br />}</td>\n<td>Insufficient Mitra Balance</td>\n</tr>\n<tr>\n<td>400</td>\n<td>{  <br />\"code\": 400,  <br />\"status\": \"CLIENT_ERROR\",  <br />\"data\": \"Ref Id exists\",  <br />\"trx_code\": \"TX-1234\"  <br />}</td>\n<td>Ref id already exist</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"transaction-status\">Transaction Status</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Status Name</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>SUCCESS</code></td>\n<td>The transaction has been processed and is successful</td>\n</tr>\n<tr>\n<td><code>PENDING</code></td>\n<td>The transaction has been processed but is still pending, use <strong>Order Status</strong> to get the latest status</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"inherit","inherit":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"cfc27218-a907-43d0-83b1-87078565001a","id":"cfc27218-a907-43d0-83b1-87078565001a","name":"VCGamers Mitra Open API","type":"collection"}},"urlObject":{"path":["v1","public","order"],"host":["https://mitra-api.vcgamers.com"],"query":[],"variable":[]}},"response":[{"id":"e8e84b86-8b20-4110-bf30-49e330cdd8bc","name":"SUCCESS","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access_key}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"product_code\": \"HGD\",\r\n    \"sku_code\": \"HGD30M-S13\",\r\n    \"price\": 4449,\r\n    \"data\": [\r\n        {\r\n            \"key\": \"user_id\",\r\n            \"value\": \"12345\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://mitra-api.vcgamers.com/v1/public/order?sign=your-generated-signature","protocol":"https","host":["mitra-api","vcgamers","com"],"path":["v1","public","order"],"query":[{"key":"sign","value":"your-generated-signature"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 28 May 2023 04:34:11 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"99"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"status\": \"SUCCESS\",\n    \"data\": {\n        \"selling_total\": 4449,\n        \"trx_code\": \"TX-20235281134102B21284A\",\n        \"transaction_status\":\"PENDING\"\n    }\n}"},{"id":"eefa9b7d-0ac2-479a-bee9-4fcc3a864a36","name":"CLIENT_ERROR","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access_key}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"product_code\": \"HGD\",\r\n    \"sku_code\": \"HGD30M-S13\",\r\n    \"price\": 6700,\r\n    \"data\": [\r\n        {\r\n            \"key\": \"user_id\",\r\n            \"value\": \"12345\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://mitra-api.vcgamers.com/v1/public/order?sign=your-generated-signature","host":["https://mitra-api.vcgamers.com"],"path":["v1","public","order"],"query":[{"key":"sign","value":"your-generated-signature"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 28 May 2023 04:31:26 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"61"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 400,\n    \"status\": \"CLIENT_ERROR\",\n    \"data\": \"Price not match\"\n}"},{"id":"3095cb12-ad31-43f9-a287-e14ec2220964","name":"NOT_FOUND","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access_key}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"product_code\": \"HGDO\",\r\n    \"sku_code\": \"HGD30M-S13\",\r\n    \"price\": 4449,\r\n    \"data\": [\r\n        {\r\n            \"key\": \"user_id\",\r\n            \"value\": \"12345\"\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://mitra-api.vcgamers.com/v1/public/order?sign=your-generated-signature","host":["https://mitra-api.vcgamers.com"],"path":["v1","public","order"],"query":[{"key":"sign","value":"your-generated-signature"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 28 May 2023 04:32:53 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"60"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 404,\n    \"status\": \"NOT_FOUND\",\n    \"data\": \"Product not found\"\n}"}],"_postman_id":"2e2376ee-bd82-458f-a4ab-d4b9422d9c6f"},{"name":"Order Status","event":[{"listen":"prerequest","script":{"exec":["const secret = pm.collectionVariables.get(\"secret\");\r","var tid = \"\"\r","pm.request.url.query.all().forEach((param) => { \r","    if (param.key == \"tid\") {\r","        tid = param.value\r","    }\r","});\r","var params = secret+\"orderstatus\"+tid;\r","var hmac = CryptoJS.HmacSHA512(params, secret).toString();\r","var sign = CryptoJS.enc.Base64.stringify(CryptoJS.enc.Utf8.parse(hmac));\r","pm.request.addQueryParams(\"sign=\"+sign);"],"type":"text/javascript","id":"b1b1eff0-ffb2-43db-929a-5dbc7266a577"}}],"id":"d8be3d80-b580-4116-bade-5920207a5bd4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://mitra-api.vcgamers.com/v1/public/order-status?tid=TX-20235298591075E026DE","description":"<h2 id=\"query-parameters\">Query parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>tid</td>\n<td>String</td>\n<td>Yes</td>\n<td>Transaction code or Ref Id</td>\n</tr>\n<tr>\n<td>sign</td>\n<td>String</td>\n<td>Yes</td>\n<td>The signature formula is <code>{secret}+\"orderstatus\"+{tid}</code></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"headers\">Headers</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Name</strong></th>\n<th><strong>Required</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Authorization</td>\n<td>Yes</td>\n<td>Your access token. The value is : <code>Bearer {access_token}</code></td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"response-body-description\">Response Body Description</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>data.status</code></td>\n<td>Status Transaction :  <br />- <code>1</code> = PENDING  <br />- <code>2</code> = SUCCESS  <br />- <code>4</code> = REFUND</td>\n</tr>\n<tr>\n<td><code>data.delivery_duration</code></td>\n<td>Delivery duration in seconds</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"inherit","inherit":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"cfc27218-a907-43d0-83b1-87078565001a","id":"cfc27218-a907-43d0-83b1-87078565001a","name":"VCGamers Mitra Open API","type":"collection"}},"urlObject":{"path":["v1","public","order-status"],"host":["https://mitra-api.vcgamers.com"],"query":[{"key":"tid","value":"TX-20235298591075E026DE"}],"variable":[]}},"response":[{"id":"943e7af1-6622-40a8-94a3-26c43358766a","name":"SUCCESS","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_key}}","type":"text","disabled":true}],"url":{"raw":"https://mitra-api.vcgamers.com/v1/public/order-status?tid=TX-20235181316141CE84D31&sign=your-generated-signature","host":["https://mitra-api.vcgamers.com"],"path":["v1","public","order-status"],"query":[{"key":"tid","value":"TX-20235181316141CE84D31"},{"key":"sign","value":"your-generated-signature","type":"text"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 19 May 2023 03:57:52 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"592"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 200,\n    \"status\": \"SUCCESS\",\n    \"data\": {\n        \"code\": \"TX-20235181316141CE84D31\",\n        \"status\": 2,\n        \"transaction_status\": \"SUCCESS\",\n        \"date\": \"2023-05-18T13:16:14+07:00\",\n        \"vendor_trx_id\": \"ABC1234\",\n        \"ref_id\": \"ABC1234\",\n        \"selling_total\": 10500,\n        \"delivery_duration\": 0,\n        \"history_status\": [\n            {\n                \"status_name\": \"Order Dibuat\",\n                \"timestamp\": \"2023-05-18T13:16:14+07:00\"\n            },\n            {\n                \"status_name\": \"Order Sukses\",\n                \"timestamp\": \"2023-05-18T13:16:16+07:00\"\n            }\n        ],\n        \"details\": [\n            {\n                \"product_code\": \"28171\",\n                \"product_name\": \"IDR 6.000\",\n                \"category_name\": \"Steam Fast\",\n                \"qty\": 1,\n                \"selling_price\": 10500,\n                \"external_id\": \"TRX-1684390575-35623\",\n                \"selling_total\": 10500,\n                \"customer_data\": {\n                    \"user_id\": \"STEAM12345\"\n                },\n                \"voucher_code\": \"kode 17\"\n            }\n        ]\n    }\n}"},{"id":"ee95aee2-789f-4c09-b414-163e330bb66d","name":"NOT_FOUND","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{access_key}}","type":"text","disabled":true}],"url":{"raw":"https://mitra-api.vcgamers.com/v1/public/order-status?tid=TX-20235181316141CE84D3&sign=your-generated-signature","host":["https://mitra-api.vcgamers.com"],"path":["v1","public","order-status"],"query":[{"key":"tid","value":"TX-20235181316141CE84D3"},{"key":"sign","value":"your-generated-signature","type":"text"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 19 May 2023 03:58:06 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"57"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 404,\n    \"status\": \"NOT_FOUND\",\n    \"data\": \"Data not found\"\n}"}],"_postman_id":"d8be3d80-b580-4116-bade-5920207a5bd4"}],"id":"2ffadbff-c8fd-4736-b8f2-c5181b60c92d","_postman_id":"2ffadbff-c8fd-4736-b8f2-c5181b60c92d","description":"","auth":{"type":"inherit","inherit":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"cfc27218-a907-43d0-83b1-87078565001a","id":"cfc27218-a907-43d0-83b1-87078565001a","name":"VCGamers Mitra Open API","type":"collection"}}},{"name":"Webhook","id":"a1c61585-8f4c-4aa3-a4b7-62d8b445da75","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://your_url_callback","description":"<p>Webhook Message Types :</p>\n<ol>\n<li>Top Up</li>\n<li>New Order Transaction</li>\n<li>Order Transaction Status Update</li>\n<li>Product Status Update</li>\n</ol>\n<h3 id=\"onevent-top-up\"><code>OnEvent</code> Top Up</h3>\n<p>Topup webhook will be send when you request a topup and when topup status has updated</p>\n<p>Payload :</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n   \"vendor_id\": \"aa8da7ee-bbc9-4ffb-9fe2-8448b5296615\",\n   \"message_type\": 1,\n   \"timestamp\": \"2023-07-16T04:50:20.678413855Z\",\n   \"data\": {\n      \"topup_id\": \"TU-2023716254BDABC\",\n      \"topup_amount\": 50000,\n      \"paid_amount\": 53500,\n      \"status\": \"PENDING\",\n      \"description\": \"\"\n   }\n}\n\n</code></pre>\n<p>Payload Description :</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>data.topup_id</code></td>\n<td>Integer</td>\n<td>Topup transaction ID</td>\n</tr>\n<tr>\n<td><code>data.topup_amount</code></td>\n<td>Integer</td>\n<td>Topup amount to be added in your account</td>\n</tr>\n<tr>\n<td><code>data.paid_amount</code></td>\n<td>Integer</td>\n<td>Your payment amount</td>\n</tr>\n<tr>\n<td><code>data.status</code></td>\n<td>String</td>\n<td>Topup Status. The value is one of :  <br />- <code>PENDING</code>  <br />- <code>SUCCESS</code>  <br />- <code>EXPIRED</code></td>\n</tr>\n<tr>\n<td><code>data.description</code></td>\n<td>String</td>\n<td>Topup description</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"onevent-new-transaction\"><code>OnEvent</code> New Transaction</h3>\n<p>New transaction webhook will be sent when you create new order</p>\n<p>Payload :</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n   \"vendor_id\": \"aa8da7ee-bbc9-4ffb-9fe2-8448b5296615\",\n   \"message_type\": 2,\n   \"timestamp\": \"2023-07-16T09:45:47.483191877Z\",\n   \"data\": {\n      \"code\": \"TX-20237161645464F865867\",\n      \"ref_id\": \"ABC1234\",\n      \"order_date\": \"2023-07-16T16:45:46.221281109+07:00\",\n      \"status\": \"PENDING\",\n      \"skus\": [\n         {\n            \"product_code\": \"115\",\n            \"product_name\": \"Free Fire\",\n            \"sku_code\": \"P-018\",\n            \"sku_name\": \"5 Diamonds\",\n            \"qty\": 1,\n            \"price\": 103,\n            \"total_price\": 1030\n         }\n      ]\n   }\n}\n\n</code></pre>\n<p>Payload Description :</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>data.code</code></td>\n<td>String</td>\n<td>Transaction code generated from our system</td>\n</tr>\n<tr>\n<td><code>data.ref_id</code></td>\n<td>String</td>\n<td>Your <code>ref_id</code> from create transaction</td>\n</tr>\n<tr>\n<td><code>data.order_date</code></td>\n<td>Timestamp</td>\n<td>Create order timestamp</td>\n</tr>\n<tr>\n<td><code>data.status</code></td>\n<td>String</td>\n<td>Order status. The value is one of :  <br />- <code>PENDING</code>  <br />- <code>SUCCESS</code>  <br />- <code>REFUND</code></td>\n</tr>\n<tr>\n<td><code>data.skus</code></td>\n<td>Array Objects</td>\n<td></td>\n</tr>\n<tr>\n<td><code>data.skus[].product_code</code></td>\n<td>String</td>\n<td>Product code</td>\n</tr>\n<tr>\n<td><code>data.skus[].product_name</code></td>\n<td>String</td>\n<td>Product name</td>\n</tr>\n<tr>\n<td><code>data.skus[].sku_code</code></td>\n<td>String</td>\n<td>Product SKU code</td>\n</tr>\n<tr>\n<td><code>data.skus[].sku_name</code></td>\n<td>String</td>\n<td>Product SKU name</td>\n</tr>\n<tr>\n<td><code>data.skus[].qty</code></td>\n<td>Integer</td>\n<td>Item quantity</td>\n</tr>\n<tr>\n<td><code>data.skus[].price</code></td>\n<td>Integer</td>\n<td>Item price</td>\n</tr>\n<tr>\n<td><code>data.skus[].total_price</code></td>\n<td>Integer</td>\n<td>Total price</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"onevent-update-status-transaction\"><code>OnEvent</code> Update Status Transaction</h3>\n<p>Update status transaction webhook will be sent when a transaction have an status update</p>\n<p>Payload :</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n   \"vendor_id\": \"aa8da7ee-bbc9-4ffb-9fe2-8448b5296615\",\n   \"message_type\": 3,\n   \"timestamp\": \"2023-07-16T09:45:47.483191877Z\",\n   \"data\": {\n      \"code\": \"TX-20237161645464F865867\",\n      \"ref_id\": \"ABC1234\",\n      \"status\": \"PENDING\"\n   }\n}\n\n</code></pre>\n<p>Payload Description :</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>data.code</code></td>\n<td>String</td>\n<td>Transaction code</td>\n</tr>\n<tr>\n<td><code>data.ref_id</code></td>\n<td>String</td>\n<td>Your <code>ref_id</code> from create transaction</td>\n</tr>\n<tr>\n<td><code>data.status</code></td>\n<td>String</td>\n<td>Order status. The value is one of :  <br />- <code>PENDING</code>  <br />- <code>SUCCESS</code>  <br />- <code>REFUND</code></td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"onevent-product-status-update\"><code>OnEvent</code> Product Status Update</h3>\n<p>Product status update webhook will be sent when product's status or price got update</p>\n<p>Payload :</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n   \"vendor_id\": \"aa8da7ee-bbc9-4ffb-9fe2-8448b5296615\",\n   \"message_type\": 4,\n   \"timestamp\": \"2023-07-16T09:45:47.483191877Z\",\n   \"data\": {\n      \"product_code\": \"115\",\n      \"product_name\": \"Free Fire\",\n      \"sku_code\": \"P-018\",\n      \"sku_name\": \"5 Diamonds\",\n      \"status\": \"ACTIVE\",\n      \"price\": 1030\n   }\n}\n\n</code></pre>\n<p>Payload Description :</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>data.product_code</code></td>\n<td>String</td>\n<td>Product code</td>\n</tr>\n<tr>\n<td><code>data.product_name</code></td>\n<td>String</td>\n<td>Product name</td>\n</tr>\n<tr>\n<td><code>data.sku_code</code></td>\n<td>String</td>\n<td>Product SKU code</td>\n</tr>\n<tr>\n<td><code>data.sku_name</code></td>\n<td>String</td>\n<td>Product SKU name</td>\n</tr>\n<tr>\n<td><code>data.status</code></td>\n<td>String</td>\n<td>Product status. The value is one of :  <br />- <code>ACTIVE</code>  <br />- <code>INCATIVE</code></td>\n</tr>\n<tr>\n<td><code>data.price</code></td>\n<td>Integer</td>\n<td>Product price</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"inherit","inherit":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"cfc27218-a907-43d0-83b1-87078565001a","id":"cfc27218-a907-43d0-83b1-87078565001a","name":"VCGamers Mitra Open API","type":"collection"}},"urlObject":{"protocol":"https","host":["your_url_callback"],"query":[],"variable":[]}},"response":[],"_postman_id":"a1c61585-8f4c-4aa3-a4b7-62d8b445da75"}],"auth":{"type":"inherit","inherit":{"basicConfig":[]}},"event":[{"listen":"prerequest","script":{"id":"f4897ce1-587c-454f-b693-1aced5e1a040","type":"text/javascript","requests":{},"exec":[""]}},{"listen":"test","script":{"id":"ffc38703-09ae-48f1-ba9c-d971d72c73de","type":"text/javascript","requests":{},"exec":[""]}}],"variable":[{"key":"api_url","value":"https://h2h-api.vcg.my.id","disabled":true},{"key":"secret","value":"","disabled":true},{"key":"vendor_key","value":"","disabled":true},{"key":"api_url","value":"https://mitra-api.vcgamers.com"},{"key":"secret","value":"a57bbdcd97858b98a5f6c4c13570c8eb","disabled":true},{"key":"vendor_key","value":"f4de635e683be18af84469b8282e601b83bd30625c1a854912476681a97513f1a74e4da00180f7e2a629fd52ba166e6457e7","disabled":true},{"key":"secret","value":"secretkey","disabled":true},{"key":"vendor_key","value":"vendorkey","disabled":true},{"key":"secret","value":"d1c79feb439a037ca285b39fe7aefb43","disabled":true},{"key":"vendor_key","value":"03ce3594c7fb0de2350141b871f1d4ded77b58b72167474c09264126f12cc22db6ec1ed5dc7ce49dc08b97eb09891009bbf3","disabled":true},{"key":"api_url","value":"","disabled":true},{"key":"secret","value":""},{"key":"vendor_key","value":""}]}