X-Pay Merchant Public Api
  1. XPayMerchant Public API
X-Pay Merchant Public Api
  • Payments
    • Introduction to the X-Pay API
    • Integration Guide - Quick Start
    • Integration Guide - Payments
    • X-Pay WooCommerce
    • X-Pay Flutter Plugin
    • .NET SDK
  • XPayMerchant Public API
    • Get Token Sandbox
      POST
    • Get Token Production
      POST
    • Get Currencies
      GET
    • Get Banks
      GET
    • Get Payment intervals
      GET
    • Payment Calculator
      POST
    • Test Webhook Sandbox
      POST
    • Test Webhook Production
      POST
    • Pay Visa Sandbox
      POST
    • Pay Visa Production
      POST
    • Pay Mastercard Sandbox
      POST
    • Pay Mastercard Production
      POST
    • Pay Mastercard Sandbox Bulk
      POST
    • Pay Mastercard Production Bulk
      POST
    • Pay Visa Sandbox Bulk
      POST
    • Pay Visa Production Bulk
      POST
    • Payment Status Visa Sandbox
      GET
    • Payment Status MasterCard Sandbox
      GET
    • Payment Status Visa Production
      GET
    • Payment Status Mastercard Production
      GET
    • Generate Payment Token Sandbox
      POST
    • Generate Payment Token Production
      POST
    • Card Token Payment Sandbox
      POST
    • Card Token Payment Production
      POST
    • Delete Card Token Sandbox
      DELETE
    • Fast Checkout
      POST
    • Fast Checkout Sandbox
      POST
  1. XPayMerchant Public API

Get Token Sandbox

POST
/auth/authenticate/sandbox/merchant

Request

Body Params application/json

Examples

Responses

🟢200Authentication
text/plain
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/auth/authenticate/sandbox/merchant' \
--header 'Content-Type: application/json' \
--data-raw '{
     "merchantId":"{{merchantId}}",
    "merchantApiKey":"{{merchantApiKey}}",
    "merchantKey":"{{merchantKey}}"
}'
Response Response Example
{
    "token": "eyJhbGciOiJIUzUxMiJ9.eyJVc2VySWQiOjMxLCJyb2xlcyI6WyJVU0VSIl0sInN1YiI6ImRldkBzbWF0cGF5LmFmcmljYSIsImlhdCI6MTcyMzcyODU3MCwiZXhwIjoxNzIzNzQ2NTcwfQ.mgAJ0Ufobw1SgBSbAdRofzFMLRjcsVT0k_bHdfxvlkelWCwBRUJcNSv4s8DaLVfxGpmcP8bxO3txwFBvBZzuiQ",
    "user": {
        "id": 31,
        "email": "dev@smatpay.africa",
        "firstName": "Udean",
        "lastName": "Mbano",
        "role": "USER",
        "token": "eyJhbGciOiJIUzUxMiJ9.eyJVc2VySWQiOjMxLCJyb2xlcyI6WyJVU0VSIl0sInN1YiI6ImRldkBzbWF0cGF5LmFmcmljYSIsImlhdCI6MTcyMzcyODU3MCwiZXhwIjoxNzIzNzQ2NTcwfQ.mgAJ0Ufobw1SgBSbAdRofzFMLRjcsVT0k_bHdfxvlkelWCwBRUJcNSv4s8DaLVfxGpmcP8bxO3txwFBvBZzuiQ",
        "accountId": 11,
        "activationActivated": true
    },
    "errorResponse": {
        "errorMessage": null,
        "statusCode": 0
    }
}
Modified at 2025-11-17 18:57:29
Previous
.NET SDK
Next
Get Token Production
Built with