SDK Tokens

How SDK tokens work for SoftPOS, SmartPOS, and mobile SDK apps.

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-key values (your Test and Live API keys). Use Portal Bearer auth for token API endpoints. For more details about SDK token authentication and provisioning, see SDK Tokens & Authentication.

🧪

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

ProductGuide
SoftPOSSoftPOS Overview
SmartPOSSmartPOS Overview
Mobile SDKSDK Overview

Dashboard flow

  1. Settings → SDK Tokens (label may appear as Terminals on some accounts)
  2. Generate token — assign userId, label, terminal ID if applicable
  3. Copy tokenPlain once and provision to device over secure channel
  4. 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: tokenPlain is 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

ActionMethodPath
Generate / rotatePOST/merchant/account/sdk-tokens
Update statusPUT/merchant/account/sdk-tokens/USERID
List tokensGET/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
📘

For additional guidance on SDK token authentication, provisioning, and token usage, see SDK Tokens & Authentication.


Related


Did this page help you?