NICEPAY API
API SNAP BI
Request Access Token API - SNAP
9 min
tentang request access token api snap bagian ini berisi tentang rincian {{informasi}} terkait akses token {{api}} dengan standar {{snap}} {{yang}} digunakan untuk melakukan {{transaksi}} {{pembayaran}} , pemeriksaan {{status}} {{transaksi}} , dan pengembalian dana request access token api snap get access token service code request access token api snap /#api snap service code api endpoint /nicepay/v1 0/access token/b2b https //dev nicepay co id/nicepay/v1 0/access token/b2b http method post description request token for authentication content type application/json api snap service code service code api reference 73 request access token api snap docid\ gcgqbiyxg1etcd0ji9chx request access token api snap docid\ gcgqbiyxg1etcd0ji9chx 11 balance inquiry api payout (disbursement) snap docid\ uqfogb81balhyd0kgradc 54 registration api e wallet (direct debit) snap docid 66ie5avxxl4uqw6hqfpvv 55 check status transaction api e wallet (direct debit) snap docid\ vb63d8suakpyp 4biowx9 58 refund transaction api e wallet (direct debit) snap docid 8 hlezmjtlz45lrjnxcec 47 registration api qris snap docid\ n42bapm1t1eoixns ra d 51 check status transaction api qris snap docid 3axwe6p6cyhx zun bvgq 78 refund transaction api qris snap docid\ u1upknc78xeyuhgd4cxpd get header request access token header nama parameter header tipe atribut konten content type string mandatory application/json x timestamp string mandatory yyyy mm ddthh\ mm\ ss (2022 03 21t10 11 40+07 00) x client key string mandatory {{nicepay}} provided ( x client key = client id ) x signature string mandatory generated by {{partner}} / {{merchant}} created using asymmetric signature sha256withrsa algorithm ( private key , stringtosign ) stringtosign = client id + “ | ” + x timestamp request access token body parameter tipe kebutuhan deskripsi granttype string mandatory only “ client credentials ” additionalinfo object optional response parameter parameter bi parameter nicepay tipe ukuran kebutuhan deskripsi responsecode responsecd string optional general response code and message api snap docid\ lkqjxsl5cmkdxyxxhyyss error code to specify {{the}} error returned responsemessage responsemsg string optional response message debug message to provide more accesstoken string 2048 mandatory sebuah string {{yang}} mewakili autorisasi dikeluarkan untuk klien {{yang}} digunakan untuk mengakses protected resources tokentype string mandatory token type value “bearer” expiresin string mandatory session expiry in seconds 900 (15 minutes) sample parameter sample request //header section content type application/json x signature afhq5sndwo5pq2vwzk4ztd9cu3ovblg6nezgwlx3gc2mrjordhpezpr3v+rxrpc8ojcycwqy01fsipma8ydqvz1hoth7aekxzhigycrns34ehyeofgd1ymhvfrvxn2fu8had6wtvpny2x2rbus3hwrjsfa5chu8wkvb7zpcuxnc= x client key normaltest x timestamp 2024 12 31t10 11 40+07 00 { "granttype" "client credentials" "additionalinfo" { } } sample response { "responsecode" "2007300", "responsemessage" "successful", "accesstoken" "xy8duzzavv9bwdxxrxcb89tsuvk4mf4kx4lgfe4acrvxr7xderhbe1", "tokentype" "bearer", "expiresin" "900" }