1. Payments
SmatPay Merchant Public Api
  • Payments
    • Introduction to the SmatPay API
    • Integration Guide - Quick Start
    • Integration Guide - Payments
    • SmatPay WooCommerce
    • .NET SDK
    • 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 Sandbox
      POST
    • Test Webhook Production
      POST
    • Pay Innbucks Sandbox
      POST
    • Pay Innbucks Sandbox Bulk
      POST
    • Pay Innbucks Production
      POST
    • Pay Innbucks Production Bulk
      POST
    • Pay ZimSwitch Sandbox
      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
    • Pay ZimSwitch Sandbox Bulk
      POST
    • Pay ZimSwitch Production
      POST
    • Pay ZimSwitch Production Bulk
      POST
    • Pay Ecocash Sandbox
      POST
    • Pay Ecocash Sandbox Bulk
      POST
    • Bulk Payouts Sandbox
      POST
    • Bulk Payouts Production
      POST
    • Pay Ecocash Production
      POST
    • Pay Ecocash Production
      POST
    • Pay Ecocash Production Bulk
      POST
    • Payment Status Innbucks Sandbox
      GET
    • Payment Status Innbucks Production
      GET
    • Payment Status Ecocash Sandbox
      GET
    • Payment Status Ecocash Production
      GET
    • Payment Status ZimSwitch Sandbox
      GET
    • Payment Status ZimSwitch Production
      GET
    • Payment Status Visa Sandbox
      GET
    • Payment Status MasterCard Sandbox
      GET
    • Payment Status Visa Production
      GET
    • Payment Status Mastercard Production
      GET
    • Generate Recurring Payment Sandbox
      POST
    • Tokenize Card
      POST
    • Tokenize Card Sandbox
      POST
    • Card Token Payment Sandbox
      POST
    • Cancel Recurring Payment Sandbox
      POST
    • Card Token Payment Production
      POST
    • Delete Card Token Sandbox
      DELETE
    • Fast Checkout
      POST
    • Fast Checkout Sandbox
      POST
    • Production - Tokens by Customer Number
      GET
    • Sandbox - Tokens by Customer Number
      GET
    • 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 Sandbox
      POST
    • Test Webhook Production
      POST
    • Pay Innbucks Sandbox
      POST
    • Pay Innbucks Sandbox Bulk
      POST
    • Pay Innbucks Production
      POST
    • Pay Innbucks Production Bulk
      POST
    • Pay ZimSwitch Sandbox
      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
    • Pay ZimSwitch Sandbox Bulk
      POST
    • Pay ZimSwitch Production
      POST
    • Pay ZimSwitch Production Bulk
      POST
    • Pay Ecocash Sandbox
      POST
    • Pay Ecocash Sandbox Bulk
      POST
    • Bulk Payouts Sandbox
      POST
    • Bulk Payouts Production
      POST
    • Pay Ecocash Production
      POST
    • Pay Ecocash Production
      POST
    • Pay Ecocash Production Bulk
      POST
    • Payment Status Innbucks Sandbox
      GET
    • Payment Status Innbucks Production
      GET
    • Payment Status Ecocash Sandbox
      GET
    • Payment Status Ecocash Production
      GET
    • Payment Status ZimSwitch Sandbox
      GET
    • Payment Status ZimSwitch Production
      GET
    • Payment Status Visa Sandbox
      GET
    • Payment Status MasterCard Sandbox
      GET
    • Payment Status Visa Production
      GET
    • Payment Status Mastercard Production
      GET
    • Generate Recurring Payment Sandbox
      POST
    • Tokenize Card
      POST
    • Tokenize Card Sandbox
      POST
    • Card Token Payment Sandbox
      POST
    • Cancel Recurring Payment Sandbox
      POST
    • Card Token Payment Production
      POST
    • Delete Card Token Sandbox
      DELETE
    • Fast Checkout
      POST
    • Fast Checkout Sandbox
      POST
  • Fiscalization
    • add-invoice
    • add-debit-note
    • add-credit-note
    • money-type-list
  1. Payments

Get Token Sandbox

POST
{{baseUrl}}/auth/authenticate/sandbox/merchant

Request

Body Params application/json

Example
{
     "merchantId":"{{merchantId}}",
    "merchantApiKey":"{{merchantApiKey}}",
    "merchantKey":"{{merchantKey}}"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --globoff '{{baseUrl}}/auth/authenticate/sandbox/merchant' \
--header 'Content-Type: application/json' \
--data '{
     "merchantId":"{{merchantId}}",
    "merchantApiKey":"{{merchantApiKey}}",
    "merchantKey":"{{merchantKey}}"
}'

Responses

🟢200
application/json
Bodyapplication/json

Example
{
    "token": "{{json_web_token_0ub1}}",
    "user": {
        "id": 31,
        "email": "dev@smatpay.africa",
        "firstName": "Udean",
        "lastName": "Mbano",
        "role": "USER",
        "token": "{{json_web_token_0ub1}}",
        "accountId": 11,
        "activationActivated": true
    },
    "errorResponse": {
        "errorMessage": null,
        "statusCode": 0
    }
}
Modified at 2026-09-28 00:06:45
Previous
Sandbox - Tokens by Customer Number
Next
Get Token Production
Built with