Quick Start
1. Daftar Akun
Section titled “1. Daftar Akun”Buka dashboard.snapdev.site/register dan buat akun developer.
2. Buat Project
Section titled “2. Buat Project”Di dashboard, klik “Buat Project” — ini akan mengelompokkan API keys kamu.
3. Generate API Key
Section titled “3. Generate API Key”Di halaman API Keys, klik “Generate Key Baru”. Kamu akan mendapatkan:
- Client ID — identifikasi unik client kamu
- Client Secret — untuk HMAC signature
- Partner ID — identifikasi partner
- Private Key (PEM) — untuk menandatangani request
- Public Key (PEM) — yang disimpan server untuk verifikasi
4. Dapatkan Access Token
Section titled “4. Dapatkan Access Token”curl -X POST https://api.snapdev.site/bca/v1.0/access-token/b2b \ -H "Authorization: Basic <base64(clientId:clientSecret)>" \ -H "X-TIMESTAMP: 2026-07-01T10:30:00+07:00" \ -H "X-SIGNATURE: <RSA_SHA256_signature>" \ -H "CHANNEL-ID: 95161"Response:
{ "responseCode": "00", "responseMessage": "Successful", "accessToken": "eyJhbGciOi...", "tokenType": "Bearer", "expiresIn": 900}5. Panggil API
Section titled “5. Panggil API”Gunakan access token untuk memanggil service SNAP:
curl -X POST https://api.snapdev.site/bca/v1.0/balance-inquiry \ -H "Authorization: Bearer <accessToken>" \ -H "Content-Type: application/json" \ -H "X-TIMESTAMP: 2026-07-01T10:30:00+07:00" \ -H "X-SIGNATURE: <HMAC_SHA512_signature>" \ -H "CHANNEL-ID: 95161" \ -d '{ "accountNo": "1234567890", "currency": "IDR" }'6. Test Berbagai Skenario
Section titled “6. Test Berbagai Skenario”Gunakan Nomor Ajaib untuk memicu outcome berbeda:
| Nomor | Outcome |
|---|---|
9999999999 | Success |
8888888888 | Pending (webhook delayed) |
7777777777 | Failed |
6666666666 | Expired |