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 /#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 docid\ gcgqbiyxg1etcd0ji9chx docid\ gcgqbiyxg1etcd0ji9chx 11 docid\ uqfogb81balhyd0kgradc 54 docid 66ie5avxxl4uqw6hqfpvv 55 docid\ vb63d8suakpyp 4biowx9 58 docid 8 hlezmjtlz45lrjnxcec 47 docid\ n42bapm1t1eoixns ra d 51 docid 3axwe6p6cyhx zun bvgq 78 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 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" }