Generate Voucher

This endpoint used to generate voucher

POST https://api-dev.netzme.com/payment/aggregator/voucher/generate

Headers

NameTypeDescription

Content-Type*

String

application/json

Authorization*

String

See Authentication Page

Client-Id*

String

See Authentication Page

Request-Time*

String

See Authentication Page

Signature*

String

See Authentication Page

Request Body

NameTypeDescription

requestId*

String

Format {{ClientId}} {{YYYYMMDDHHmmSS}}{{4 digit increments}} sample institution1202106281235010001

type*

String

Value : aggregator_points_voucher_generate

userId*

String

Id user merchant, ex : lFi1IiSr

amount*

Long

ex : 1000

trxId*

String

Transaction id registered on partner

paymentStatus*

String

Only received payment status paid. ex : paid

expired*

Long

Expired in Epoch time

{
    "requestId": "institution1202106281235010001",
    "type": "aggregator_points_voucher_generate",
    "status": 100,
    "statusMessage": "success",
    "ts": "1645424757892",
    "body": {
        "userId": "lFi1IiSr",
        "voucherCode": "PTSWVTBJWSB",
        "expired": 1646029557277
    }
}

Request sample:

{
  "requestId": "institution1202106281235010001",
  "type": "aggregator_points_voucher_generate",
  "body": {
    "userId": "lFi1IiSr",
    "amount": 1000,
    "trxId": "7kylmxiy7y",
    "paymentStatus": "paid"
  }
}

Last updated