{"info":{"_postman_id":"e9908b7b-7460-44a9-a3fa-1d4f65e55ee9","name":"Nukupay h2h","description":"<html><head></head><body><h1 id=\"overview\">📄 Overview</h1>\n<p>Nukupay Host to Host adalah penyedia layanan digital produk seperti pulsa, paket data, token pln, pembayaran online (PPOB) dan lainnya dengan menyediakan jalur transaksi via API, Jabber, dan Http get. Dokumentasi ini menjelaskan bagaimana cara untuk mengintegrasikan layanan anda dengan kami menggunakan Application Programming Interface (API)</p>\n<h2 id=\"persiapan\">Persiapan</h2>\n<ul>\n<li><p>Client ID</p>\n</li>\n<li><p>Client Secret</p>\n</li>\n<li><p>URL Webhook dari anda (digunakan untuk menerima status update transaksi)</p>\n</li>\n<li><p>Webhook Secret Key</p>\n</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Nama</strong></th>\n<th><strong>Base URL</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Sandbox</td>\n<td><a href=\"https://h2h-sandbox.nukupay.com\">https://h2h-sandbox.nukupay.com</a></td>\n</tr>\n<tr>\n<td>Production</td>\n<td><a href=\"https://h2h.nukupay.com\">https://h2h.nukupay.com</a></td>\n</tr>\n</tbody>\n</table>\n</div><hr>\n<h2 id=\"signature-auth\">Signature Auth</h2>\n<p><em>Signature auth</em> digunakan untuk memastikan bahwa data yang anda kirimkan adalah asli dan tidak bisa disanggah. Signature dihasilkan dari anda dan diverifikasi oleh kami.</p>\n<p><em>Signature auth</em> dibentuk oleh payload yang sudah kami tentukan dengan mengimplementasikan algoritma <em>HMAC_512</em> dengan <strong>Client Secret</strong> sebagai kuncinya</p>\n<h3 id=\"format-payload\">Format Payload</h3>\n<blockquote>\n<p>client_id:timestamp </p>\n</blockquote>\n<h2 id=\"signature\">Signature</h2>\n<p><em>Signature</em> digunakan untuk memastikan bahwa data yang anda kirimkan adalah asli dan tidak bisa disanggah. Signature dihasilkan dari anda dan diverifikasi oleh kami.</p>\n<p><em>Signature</em> dibentuk oleh payload yang sudah kami tentukan dengan mengimplementasikan algoritma <em>HMAC_512</em> dengan <strong>Client Secret</strong> sebagai kuncinya</p>\n<h3 id=\"format-payload-1\">Format Payload</h3>\n<blockquote>\n<p>http_method:client_id:access_token:payload:timestamp </p>\n</blockquote>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>nama</strong></th>\n<th><strong>keterangan</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>http_method</td>\n<td>Http method request API. contoh: POST</td>\n</tr>\n<tr>\n<td>client_id</td>\n<td>Client ID yang didapat dari dashboard mitra</td>\n</tr>\n<tr>\n<td>access_token</td>\n<td>Token yang didapatkan dari API Credentials</td>\n</tr>\n<tr>\n<td>payload</td>\n<td>body data yang disignature menggunakan algoritma SHA-256. contoh: SHA-256(JSON.stringify({\"ref_id\" : \"1\"})).diggest (\"hex\")</td>\n</tr>\n<tr>\n<td>timestamp</td>\n<td>Waktu saat ini ketika melakukan request API. format timestamp ISO8601</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"daftar-response-code\">Daftar Response Code</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Response Code</th>\n<th>Keterangan</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>00</td>\n<td>Sukses</td>\n</tr>\n<tr>\n<td>10</td>\n<td>Akun anda belum terverifikasi</td>\n</tr>\n<tr>\n<td>11</td>\n<td>KYC belum terverifikasi</td>\n</tr>\n<tr>\n<td>12</td>\n<td>Akun anda disuspend</td>\n</tr>\n<tr>\n<td>20</td>\n<td>Saldo anda kurang</td>\n</tr>\n<tr>\n<td>30</td>\n<td>Produk tidak tersedia</td>\n</tr>\n<tr>\n<td>31</td>\n<td>Produk sedang gangguan</td>\n</tr>\n<tr>\n<td>40</td>\n<td>Transaksi tidak ditemukan</td>\n</tr>\n<tr>\n<td>41</td>\n<td>Tagihan belum tersedia</td>\n</tr>\n<tr>\n<td>49</td>\n<td>Transaksi cut off</td>\n</tr>\n<tr>\n<td>99</td>\n<td>Error tidak diketahui</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"status-transaksi\">Status Transaksi</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Status Number</strong></th>\n<th><strong>Keterangan</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>0</td>\n<td>Pending</td>\n</tr>\n<tr>\n<td>1</td>\n<td>Sukses</td>\n</tr>\n<tr>\n<td>2</td>\n<td>Gagal</td>\n</tr>\n<tr>\n<td>3</td>\n<td>Tertahan</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":"📄 Overview","slug":"overview"}],"owner":"7310263","collectionId":"e9908b7b-7460-44a9-a3fa-1d4f65e55ee9","publishedId":"2s9YyqkNfh","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-01-31T07:32:53.000Z"},"item":[{"name":"credentials","item":[{"name":"get access token","event":[{"listen":"prerequest","script":{"id":"fac0ef11-c442-4c56-93aa-b6eb4bd8cbe9","exec":["const clientId = pm.environment.get('client_id');","const clientSecret = pm.environment.get('client_secret_sandbox');","const timestamp = pm.environment.get('timestamp');","const body = pm.request.body","","","const messageSignature = CryptoJS.enc.Hex.stringify(CryptoJS.HmacSHA512(clientId + \":\" + timestamp, clientSecret));","pm.environment.set('signature', messageSignature);"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"458ca537-ab11-40e7-bfc9-741a9df943b7","exec":["const responseData = pm.response.json();","if(typeof responseData.data.access_token !== 'undefined') {","    pm.environment.set(\"access_token\", responseData.data.access_token);","}"],"type":"text/javascript","packages":{}}}],"id":"d9c98568-d2e0-4e75-8867-d3d5973f5be0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"X-Signature","value":"{{signature_auth}}"},{"key":"X-Client-ID","value":"{{client_id}}"},{"key":"X-Timestamp","value":"{{timestamp}}"}],"url":"https://h2h-sandbox.nukupay.com/v1/credentials/token/access","urlObject":{"protocol":"https","path":["v1","credentials","token","access"],"host":["h2h-sandbox","nukupay","com"],"query":[],"variable":[]}},"response":[{"id":"a042f448-808f-45c5-95e0-2e02be502a83","name":"negative response","originalRequest":{"method":"POST","header":[{"key":"X-Signature","value":"{{signature}}","type":"text"},{"key":"X-Client-ID","value":"{{client_id}}","type":"text"},{"key":"X-Timestamp","value":"{{timestamp}}","type":"text"}],"url":"https://h2h-sandbox.nukupay.com/v1/credentials/token/access"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"status\": 2,\n        \"message\": \"Not authorization signature\",\n        \"responseCode\": \"51\"\n    }\n}"},{"id":"f94cc4b8-72d3-490e-bba8-f4775fa06646","name":"positive response","originalRequest":{"method":"POST","header":[{"key":"X-Signature","value":"{{signature}}","type":"text"},{"key":"X-Client-ID","value":"{{client_id}}","type":"text"},{"key":"X-Timestamp","value":"{{timestamp}}","type":"text"}],"url":"https://h2h-sandbox.nukupay.com/v1/credentials/token/access"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"responseCode\": \"00\",\n        \"client_id\": \"3361532541\",\n        \"access_token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiIxIiwiY2xpZW50X2lkIjoiMzM2MTUzMjU0MSIsImlhdCI6MTcwOTg4MjY3MiwiZXhwIjoxNzA5ODgzNTcyfQ.9b-Mq1Vsgv706gdeSQ8_xj0H2OdOGioG2ZbDTbMBL8A\"\n    }\n}"}],"_postman_id":"d9c98568-d2e0-4e75-8867-d3d5973f5be0"}],"id":"52590d43-8ce9-41e0-b12a-a570b8b16dc3","_postman_id":"52590d43-8ce9-41e0-b12a-a570b8b16dc3","description":""},{"name":"product","item":[{"name":"get product prabayar","event":[{"listen":"prerequest","script":{"id":"a7a45ece-1ace-4596-988f-7180418be6f7","exec":["const clientId = pm.environment.get('client_id');","const clientSecret = pm.environment.get('client_secret_sandbox');","const timestamp = pm.environment.get('timestamp');","const accessToken = pm.environment.get('access_token');","const signature_payload = CryptoJS.SHA256(\"{}\");","","const messageSignature = CryptoJS.enc.Hex.stringify(CryptoJS.HmacSHA512(\"POST:\" + clientId + \":\" + accessToken + \":\" + signature_payload + \":\" + timestamp, clientSecret));","pm.environment.set('signature', messageSignature);"],"type":"text/javascript"}}],"id":"b0e3c840-3099-493a-b0c7-b828e005421f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access_token}}","type":"text"},{"key":"X-Signature","value":"{{signature}}","type":"text"},{"key":"X-Client-ID","value":"{{client_id}}","type":"text"},{"key":"X-Timestamp","value":"{{timestamp}}","type":"text"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"https://h2h-sandbox.nukupay.com/v1/product/prabayar","urlObject":{"protocol":"https","path":["v1","product","prabayar"],"host":["h2h-sandbox","nukupay","com"],"query":[],"variable":[]}},"response":[{"id":"729932aa-6f11-4db9-8cc1-019610192c82","name":"negative response","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access_token}}","type":"text"},{"key":"X-Signature","value":"{{signature}}","type":"text"},{"key":"X-Client-ID","value":"{{client_id}}","type":"text"},{"key":"X-Timestamp","value":"{{timestamp}}","type":"text"}],"body":{"mode":"raw","raw":"{\"data\" : \"hello world\"}","options":{"raw":{"language":"json"}}},"url":"https://h2h-sandbox.nukupay.com/v1/product/prabayar"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"status\": 2,\n        \"message\": \"Signature not authorization\",\n        \"responseCode\": \"52\"\n    }\n}"},{"id":"e35257b5-08f6-4f7e-be7c-46b07c039753","name":"positive response","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access_token}}","type":"text"},{"key":"X-Signature","value":"{{signature}}","type":"text"},{"key":"X-Client-ID","value":"{{client_id}}","type":"text"},{"key":"X-Timestamp","value":"{{timestamp}}","type":"text"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"https://h2h-sandbox.nukupay.com/v1/product/prabayar"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"product_code\": \"SB5\",\n            \"product_name\": \"Telkomsel 5.000\",\n            \"base_price\": 5270,\n            \"markup\": 100,\n            \"price\": 5370,\n            \"description\": \"Pulsa Telkomsel Rp 5.000\",\n            \"status\": 1\n        },\n        {\n            \"product_code\": \"SB10\",\n            \"product_name\": \"Telkomsel 10.000\",\n            \"base_price\": 10255,\n            \"markup\": 150,\n            \"price\": 10405,\n            \"description\": \"Pulsa Telkomsel Rp 10.000\",\n            \"status\": 1\n        },\n        {\n            \"product_code\": \"SB15\",\n            \"product_name\": \"Telkomsel 15.000\",\n            \"base_price\": 15020,\n            \"markup\": 150,\n            \"price\": 15170,\n            \"description\": \"Pulsa Telkomsel Rp 15.000\",\n            \"status\": 1\n        },\n        {\n            \"product_code\": \"SB20\",\n            \"product_name\": \"Telkomsel 20.000\",\n            \"base_price\": 19920,\n            \"markup\": 150,\n            \"price\": 20070,\n            \"description\": \"Pulsa Telkomsel Rp 20.000\",\n            \"status\": 1\n        }\n    ],\n    \"responseCode\": \"00\"\n}"}],"_postman_id":"b0e3c840-3099-493a-b0c7-b828e005421f"},{"name":"get product pascabayar","event":[{"listen":"prerequest","script":{"id":"a7a45ece-1ace-4596-988f-7180418be6f7","exec":["const clientId = pm.environment.get('client_id');","const clientSecret = pm.environment.get('client_secret_sandbox');","const timestamp = pm.environment.get('timestamp');","const accessToken = pm.environment.get('access_token');","const signature_payload = CryptoJS.SHA256(\"{}\");","","const messageSignature = CryptoJS.enc.Hex.stringify(CryptoJS.HmacSHA512(\"POST:\" + clientId + \":\" + accessToken + \":\" + signature_payload + \":\" + timestamp, clientSecret));","pm.environment.set('signature', messageSignature);"],"type":"text/javascript"}}],"id":"dae71fef-d45d-46dc-9640-4d7be23c693e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access_token}}","type":"text"},{"key":"X-Signature","value":"{{signature}}","type":"text"},{"key":"X-Client-ID","value":"{{client_id}}","type":"text"},{"key":"X-Timestamp","value":"{{timestamp}}","type":"text"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"https://h2h-sandbox.nukupay.com/v1/product/pascabayar","urlObject":{"protocol":"https","path":["v1","product","pascabayar"],"host":["h2h-sandbox","nukupay","com"],"query":[],"variable":[]}},"response":[{"id":"b91ac88e-5c43-4579-a3c6-d8c3b148ecce","name":"negative response","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access_token}}","type":"text"},{"key":"X-Signature","value":"{{signature}}","type":"text"},{"key":"X-Client-ID","value":"{{client_id}}","type":"text"},{"key":"X-Timestamp","value":"{{timestamp}}","type":"text"}],"body":{"mode":"raw","raw":"{\"data\" : \"hello world\"}","options":{"raw":{"language":"json"}}},"url":"https://h2h-sandbox.nukupay.com/v1/product/pascabayar"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"status\": 2,\n        \"message\": \"Signature not authorization\",\n        \"responseCode\": \"52\"\n    }\n}"},{"id":"ad2cdca4-d0bb-4e40-8dc2-2883bfa21c3f","name":"positive response","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access_token}}","type":"text"},{"key":"X-Signature","value":"{{signature}}","type":"text"},{"key":"X-Client-ID","value":"{{client_id}}","type":"text"},{"key":"X-Timestamp","value":"{{timestamp}}","type":"text"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"https://h2h-sandbox.nukupay.com/v1/product/pascabayar"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"product_code\": \"PLNPASCA\",\n            \"product_name\": \"PLN Pascabayar\",\n            \"admin_fee\": 2750,\n            \"commission\": 2075,\n            \"description\": \"-\",\n            \"status\": 1\n        },\n        {\n            \"product_code\": \"PLNPASCANON\",\n            \"product_name\": \"PLN Nontaglis\",\n            \"admin_fee\": 5000,\n            \"commission\": 1600,\n            \"description\": \"-\",\n            \"status\": 1\n        }\n    ],\n    \"responseCode\": \"00\"\n}"}],"_postman_id":"dae71fef-d45d-46dc-9640-4d7be23c693e"}],"id":"3efa61c6-a67d-4e99-b4b7-8ff721015e9d","_postman_id":"3efa61c6-a67d-4e99-b4b7-8ff721015e9d","description":""},{"name":"deposit","item":[{"name":"get balances","event":[{"listen":"prerequest","script":{"id":"2efb9ae1-c3c1-43dd-84f1-33fe9aab947b","exec":["const clientId = pm.environment.get('client_id');","const clientSecret = pm.environment.get('client_secret_sandbox');","const timestamp = pm.environment.get('timestamp');","const accessToken = pm.environment.get('access_token');","const signature_payload = CryptoJS.SHA256(\"{}\");","","const messageSignature = CryptoJS.enc.Hex.stringify(CryptoJS.HmacSHA512(\"POST:\" + clientId + \":\" + accessToken + \":\" + signature_payload + \":\" + timestamp, clientSecret));","pm.environment.set('signature', messageSignature);"],"type":"text/javascript"}}],"id":"35c00d87-f241-47f7-b7e3-68e801e3bed5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access_token}}","type":"text"},{"key":"X-Signature","value":"{{signature}}","type":"text"},{"key":"X-Client-ID","value":"{{client_id}}","type":"text"},{"key":"X-Timestamp","value":"{{timestamp}}","type":"text"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"https://h2h-sandbox.nukupay.com/v1/deposit/balance/inquiry","urlObject":{"protocol":"https","path":["v1","deposit","balance","inquiry"],"host":["h2h-sandbox","nukupay","com"],"query":[],"variable":[]}},"response":[{"id":"dca61d42-5548-498b-a5a9-5359bd8dfc3b","name":"negative response","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access_token}}s","type":"text"},{"key":"X-Signature","value":"{{signature}}","type":"text"},{"key":"X-Client-ID","value":"{{client_id}}","type":"text"},{"key":"X-Timestamp","value":"{{timestamp}}","type":"text"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"https://h2h-sandbox.nukupay.com/v1/deposit/balance/inquiry"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"status\": 2,\n        \"message\": \"Session not found or has expired\",\n        \"responseCode\": \"51\"\n    }\n}"},{"id":"9fe2f132-7336-45a1-8fdb-2cc61e9d3307","name":"positive response","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access_token}}","type":"text"},{"key":"X-Signature","value":"{{signature}}","type":"text"},{"key":"X-Client-ID","value":"{{client_id}}","type":"text"},{"key":"X-Timestamp","value":"{{timestamp}}","type":"text"}],"body":{"mode":"raw","raw":"{}","options":{"raw":{"language":"json"}}},"url":"https://h2h-sandbox.nukupay.com/v1/deposit/balance/inquiry"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"balance\": 1000000,\n        \"responseCode\": \"00\"\n    }\n}"}],"_postman_id":"35c00d87-f241-47f7-b7e3-68e801e3bed5"}],"id":"2efb886e-5d7a-4357-a925-2804336aa8a9","_postman_id":"2efb886e-5d7a-4357-a925-2804336aa8a9","description":""},{"name":"transaction","item":[{"name":"purchase","event":[{"listen":"prerequest","script":{"id":"df691fbb-8422-4d5a-9d75-df5dd84c19ea","exec":["var Property = require('postman-collection').Property;","","const clientId = pm.environment.get('client_id');","const clientSecret = pm.environment.get('client_secret_sandbox');","const timestamp = pm.environment.get('timestamp');","const accessToken = pm.environment.get('access_token');","const signature_payload = CryptoJS.SHA256('{\"customer_no\":\"0811111111111\",\"product_code\":\"I5\",\"ref_id\":\"1\"}');","","const messageSignature = CryptoJS.enc.Hex.stringify(CryptoJS.HmacSHA512(\"POST:\" + clientId + \":\" + accessToken + \":\" + signature_payload + \":\" + timestamp, clientSecret));","pm.environment.set('signature', messageSignature);"],"type":"text/javascript"}}],"id":"16bf8f83-15d7-45ce-9745-9ab79330a530","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access_token}}","type":"text"},{"key":"X-Signature","value":"{{signature}}","type":"text"},{"key":"X-Client-ID","value":"{{client_id}}","type":"text"},{"key":"X-Timestamp","value":"{{timestamp}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"customer_no\" : \"0811111111111\",\n    \"product_code\" : \"I5\",\n    \"ref_id\": \"1\"\n}","options":{"raw":{"language":"json"}}},"url":"https://h2h-sandbox.nukupay.com/v1/transaction/prabayar/purchase","urlObject":{"protocol":"https","path":["v1","transaction","prabayar","purchase"],"host":["h2h-sandbox","nukupay","com"],"query":[],"variable":[]}},"response":[{"id":"05a6c5b3-b66b-4061-b8d7-751305aef423","name":"negative response","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access_token}}","type":"text"},{"key":"X-Signature","value":"{{signature}}","type":"text"},{"key":"X-Client-ID","value":"{{client_id}}","type":"text"},{"key":"X-Timestamp","value":"{{timestamp}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"customer_no\" : \"0811111111111\",\n    \"product_code\" : \"I5\",\n    \"ref_id\": \"1\"\n}","options":{"raw":{"language":"json"}}},"url":"https://h2h-sandbox.nukupay.com/v1/transaction/prabayar/purchase"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"status\": 2,\n        \"message\": \"Not authorization signature\",\n        \"responseCode\": \"51\"\n    }\n}"},{"id":"7a41cd3e-164d-4395-a26d-e7cdd629c17e","name":"positive response","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access_token}}","type":"text"},{"key":"X-Signature","value":"{{signature}}","type":"text"},{"key":"X-Client-ID","value":"{{client_id}}","type":"text"},{"key":"X-Timestamp","value":"{{timestamp}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"customer_no\" : \"0811111111111\",\n    \"product_code\" : \"I5\",\n    \"ref_id\": \"1\"\n}","options":{"raw":{"language":"json"}}},"url":"https://h2h-sandbox.nukupay.com/v1/transaction/prabayar/purchase"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"ref_id\": \"1\",\n        \"customer_no\": \"0811111111111\",\n        \"product_code\": \"I5\",\n        \"message\": \"Transaksi anda sedang diproses\",\n        \"status\": 0,\n        \"sn\": \"\",\n        \"price\": 5705,\n        \"last_saldo\": 994295,\n        \"responseCode\": \"00\"\n    }\n}"}],"_postman_id":"16bf8f83-15d7-45ce-9745-9ab79330a530"},{"name":"inquiry tagihan","event":[{"listen":"prerequest","script":{"id":"1284007e-88de-4bde-ae77-659edcd97b79","exec":["const clientId = pm.environment.get('client_id');","const clientSecret = pm.environment.get('client_secret_sandbox');","const timestamp = pm.environment.get('timestamp');","const accessToken = pm.environment.get('access_token');","const signature_payload = CryptoJS.SHA256('{\"customer_no\":\"12345678\",\"product_code\":\"PLNPASCA\",\"ref_id\":\"1\"}');","","","const messageSignature = CryptoJS.enc.Hex.stringify(CryptoJS.HmacSHA512(\"POST:\" + clientId + \":\" + accessToken + \":\" + signature_payload + \":\" + timestamp, clientSecret));","pm.environment.set('signature', messageSignature);"],"type":"text/javascript"}}],"id":"7bc9fc44-90c0-42bd-b7d2-b84ba9c9b663","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access_token}}","type":"text"},{"key":"X-Signature","value":"{{signature}}","type":"text"},{"key":"X-Client-ID","value":"{{client_id}}","type":"text"},{"key":"X-Timestamp","value":"{{timestamp}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"customer_no\" : \"12345678\",\n    \"product_code\" : \"PLNPASCA\",\n    \"ref_id\" : \"1\"\n}","options":{"raw":{"language":"json"}}},"url":"https://h2h-sandbox.nukupay.com/v1/transaction/pascabayar/inquiry","urlObject":{"protocol":"https","path":["v1","transaction","pascabayar","inquiry"],"host":["h2h-sandbox","nukupay","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"7bc9fc44-90c0-42bd-b7d2-b84ba9c9b663"},{"name":"pay","event":[{"listen":"prerequest","script":{"id":"5cb65cd0-7fda-4541-b237-b176913915e3","exec":["const clientId = pm.environment.get('client_id');","const clientSecret = pm.environment.get('client_secret_sandbox');","const timestamp = pm.environment.get('timestamp');","const accessToken = pm.environment.get('access_token');","const signature_payload = CryptoJS.SHA256('{\"ref_id\":\"1\"}');","","const messageSignature = CryptoJS.enc.Hex.stringify(CryptoJS.HmacSHA512(\"POST:\" + clientId + \":\" + accessToken + \":\" + signature_payload + \":\" + timestamp, clientSecret));","pm.environment.set('signature', messageSignature);"],"type":"text/javascript"}}],"id":"6cc36eca-d311-4d73-9785-6d0ad36bb71b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access_token}}","type":"text"},{"key":"X-Signature","value":"{{signature}}","type":"text"},{"key":"X-Client-ID","value":"{{client_id}}","type":"text"},{"key":"X-Timestamp","value":"{{timestamp}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"ref_id\" : \"1\"\n}","options":{"raw":{"language":"json"}}},"url":"https://h2h-sandbox.nukupay.com/v1/transaction/pascabayar/pay","urlObject":{"protocol":"https","path":["v1","transaction","pascabayar","pay"],"host":["h2h-sandbox","nukupay","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"6cc36eca-d311-4d73-9785-6d0ad36bb71b"},{"name":"inquiry pln","event":[{"listen":"prerequest","script":{"id":"963bb264-76fa-4bc4-a0b5-17a0c3aa6cf7","exec":["const clientId = pm.environment.get('client_id');","const clientSecret = pm.environment.get('client_secret_sandbox');","const timestamp = pm.environment.get('timestamp');","const accessToken = pm.environment.get('access_token');","const signature_payload = CryptoJS.SHA256('{\"customer_no\":\"123456\"}');","","const messageSignature = CryptoJS.enc.Hex.stringify(CryptoJS.HmacSHA512(\"POST:\" + clientId + \":\" + accessToken + \":\" + signature_payload + \":\" + timestamp, clientSecret));","pm.environment.set('signature', messageSignature);"],"type":"text/javascript"}}],"id":"5b16c156-e0f6-4852-a0e3-048e3f96b035","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{access_token}}","type":"text"},{"key":"X-Signature","value":"{{signature}}","type":"text"},{"key":"X-Client-ID","value":"{{client_id}}","type":"text"},{"key":"X-Timestamp","value":"{{timestamp}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"customer_no\" : \"123456\"\n}","options":{"raw":{"language":"json"}}},"url":"https://h2h-sandbox.nukupay.com/v1/transaction/pln/inquiry","urlObject":{"protocol":"https","path":["v1","transaction","pln","inquiry"],"host":["h2h-sandbox","nukupay","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"5b16c156-e0f6-4852-a0e3-048e3f96b035"}],"id":"4d72d231-db48-472f-beac-5c0397f5daef","_postman_id":"4d72d231-db48-472f-beac-5c0397f5daef","description":""}],"event":[{"listen":"prerequest","script":{"id":"76578cdc-e897-4f15-a67f-2db7ea2b5b33","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"967c67e9-bf2b-42ef-af2b-f0eace6101bf","type":"text/javascript","exec":[""]}}]}