SDK Tokens
Generate and manage SoftPOS and mobile SDK tokens from the dashboard.
SDK tokens authenticate DigetPay SoftPOS and mobile SDK applications. Manage them from the Merchant Dashboard or Portal API.
SDK tokens are separate from payment
x-api-keyvalues (your Test and Live API keys). Use Portal Bearer auth for token API endpoints.
Test and Live: SDK tokens are managed in the same Merchant Dashboard (pay.digetpay.com) that you use for both modes. Create and provision tokens for the mode you are working in, use Test tokens on development and test devices only, and Live tokens only on devices that process real payments.
Use cases
| Product | Guide |
|---|---|
| SoftPOS | SoftPOS Overview |
| SmartPOS | SmartPOS Overview |
| Mobile SDK | SDK Overview |
Dashboard flow
- Settings → SDK Tokens (label may appear as Terminals on some accounts)
- Generate token — assign
userId, label, terminal ID if applicable - Copy
tokenPlainonce and provision to device over secure channel - Deactivate lost or compromised tokens immediately
Generate token (Portal API)
sequenceDiagram
autonumber
participant Admin as Merchant Dashboard
participant DigetPay as DigetPay Portal API
participant Device as SoftPOS App
Admin->>DigetPay: POST /merchant/account/sdk-tokens
DigetPay-->>Admin: tokenPlain (once), tokenMasked, active
Admin->>Device: Secure provisioning
{
"userId": "terminal-user-001",
"label": "Store Terminal 1"
}Critical:
tokenPlainis shown once. Provision immediately to the device.
Deactivate token
{
"active": false
}PUT /merchant/account/sdk-tokens/USERID
Lost device: Deactivate before issuing a replacement token.
Portal API endpoints
| Action | Method | Path |
|---|---|---|
| Generate / rotate | POST | /merchant/account/sdk-tokens |
| Update status | PUT | /merchant/account/sdk-tokens/USERID |
| List tokens | GET | /merchant/account/sdk-tokens |
These are Merchant Portal endpoints. Use the Portal API base URL from the API Reference with a Portal Bearer token, not the Payment API base URL.
Security
- One token per terminal or app instance where possible
- Never commit tokens to Git or share in chat
- Rotate on staff change or device loss
- Do not provision a Test token to a live device, or a Live token to a test device
Related
Updated about 2 months ago

