SmatPay Merchant Public Api
  1. Fiscalization
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 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 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 Copy
      GET
    • Payment Status Visa Production
      GET
    • Payment Status Mastercard Production
      GET
    • Generate Recurring Payment Sandbox
      POST
    • Generate Payment Token Sandbox
      POST
    • Generate Payment Token With Payment Sandbox
      POST
    • Cancel Recurring Payment Sandbox
      POST
    • Fast Checkout
      POST
    • Fast Checkout Sandbox
      POST
  • Fiscalization
    • add-invoice
      POST
    • add-debit-note
      POST
    • add-credit-note
      POST
    • money-type-list
      GET
  1. Fiscalization

add-invoice

POST
/api/invoice

Request

Header Params

Body Params application/json

Example
{
  "deviceID": "27322",
  "invoiceNo": "INV30505",
  "currency": "ZWG",
	"moneyType": "Card",
  "receiptLines": [
    {
      "productType": "Goods",
      "product": "Laptop",
      "amount": 6000.00,
      "taxPercent": 15.00,
      "quantity": 2

    },
    {
      "productType": "Service",
      "product": "Cleaning",
      "amount": 30.00,
      "taxPercent": 15.00,
      "quantity": 1

    }
  ]
}

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 --request POST '/api/invoice' \
--header 'X-Merchant-Id: 311722504951049' \
--header 'X-Merchant-Api-Key: V8S5M2C3L0nYPz8ZDVRhq' \
--header 'X-Merchant-Key: 959d936d-c79a-4711-9528-2d0dc4399142' \
--header 'Content-Type: application/json' \
--data-raw '{
  "deviceID": "27322",
  "invoiceNo": "INV30505",
  "currency": "ZWG",
	"moneyType": "Card",
  "receiptLines": [
    {
      "productType": "Goods",
      "product": "Laptop",
      "amount": 6000.00,
      "taxPercent": 15.00,
      "quantity": 2

    },
    {
      "productType": "Service",
      "product": "Cleaning",
      "amount": 30.00,
      "taxPercent": 15.00,
      "quantity": 1

    }
  ]
}'

Responses

🟢200add-invoice-example
application/json
Body

Example
{
    "statusCode": 200,
    "message": "Successfully submitted receipt",
    "data": {
        "receiptID": 6405579,
        "serverDate": "2025-09-10T15:56:38",
        "receiptServerSignature": {
            "certificateThumbprint": "967C31EBE3BCE74C0255848E999A727A539FC719",
            "hash": "xGoogqiOTcKOBiLeeFfAdbMpq9Zzd8OjiTpjmx0CsAc=",
            "signature": "nfmh6l8ehOvI80lS8YQtmyI1wVf7tr0YFSq9gv58JOzkFfgrKEbQnp+UGeO02IjUSBw/4YzARYXhXCToFR1OVbR4kJtKOYWYClw+xTGJTnJj4Yaowj2rCZuihI7cng8P5mFBiHPmOY7y31Lg/pAab96XOMgd4VMZsNBXGOowhYJm3CCjSk8Qjo3QV4tr7DxZ8X3w47fdO1idU1TmELMctnIfo7tv/Du/j6S/0PfgJntNtdCBxhMx6hsbQ0QZAtXXL5WWjKqsvlp+uovFYss6kq/6YZZd9GmSMd2ZdwyT7oaHd+T/lLFz5wHAwNCamYIX4ukHLn//5FrJR9yECp4ayA=="
        },
        "validationErrors": [
            {
                "validationErrorCode": "RCPT041",
                "validationErrorColor": "Yellow"
            }
        ],
        "operationID": "0HNFGCGSST8J1:00000001"
    },
    "list": null,
    "qrData": "https://fdmstest.zimra.co.zw/Receipt/Result?ReceiptGlobalNo=0000000033&ReceiptDate=2025-09-10&DeviceId=0000027322&ReceiptQrData=192E-C0AE-CB75-C13D"
}
Modified at 2025-09-11 11:06:10
Previous
Fast Checkout Sandbox
Next
add-debit-note
Built with