Skip to main content

Create a new NQR Terminals

POST /payments/nqr/terminals

Description​

Register a new NQR (Quick Response) terminal for a merchant.

Required Headers​

TypeDescription
apiKeystring(Required). Wallet API key for authentication. Include in the request header.
Authorizationstring(Required). Authentication token. Include in the request header using the "Bearer" scheme. Example: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2NGQ2Nm...

Request Body​

  • Media Type: application/json
NameTypeDescription
merchantID*string(Required) Identifier for the merchant.
accountId*string(Required) Identifier for the user's account.
TerminalName*string(Required) Name or label for the NQR terminal.
Email*string(Required) Email address associated with the NQR terminal.
PhoneNumber*string(Required) Phone number associated with the NQR terminal.
QrType*string(Required) Type of QR code supported by the terminal.

Example​

cURL

curl --location 'http://20.87.230.105/platform/wallets/payments/nqr/terminals' \
--header 'apiKey: yourApiKey' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer yourAccessToken' \
--data-raw '{
"merchantID": "merchant_id_123",
"accountId": "user_account_456",
"TerminalName": "POS Terminal",
"Email": "terminal@example.com",
"PhoneNumber": "+1234567890",
"QrType": "STATIC"
}'

Responses

This section outlines the possible responses from the USSD payment initiation API.

Success Response (200)​

The Success Response (200) is returned when the USSD payment request is successfully initiated.

Response Fields​

FieldTypeDescription
statusbooleanIndicates the success of the USSD payment request.
statusCodeintegerNumeric code representing the status of the response (e.g., 0 for success).
messagestringA message indicating the outcome of the operation.
dataobjectAn empty object, as no additional data is returned in a successful response.
errorsarrayAn array of objects providing details about any errors encountered during the request.

Example​

JSON:

{
"status": true,
"statusCode": 0,
"message": "USSD payment request initiated successfully",
"data": {},
"errors": []
}

Example Value​

Schema:

{
"status": true,
"statusCode": 0,
"message": "string",
"data": {},
"errors": [
{
"message": "string",
"descriptiveMessage": "string"
}
]
}

Method: POST​

>http://20.87.230.105/platform/wallets/payments/nqr/terminals

Headers​

Content-TypeValue
apiKey{{apiKey}}

Body (raw)​

{
"merchantID": "merchant_id_123",
"accountId": "user_account_456",
"TerminalName": "POS Terminal",
"Email": "terminal@example.com",
"PhoneNumber": "+1234567890",
"QrType": "STATIC"
}

🔑 Authentication bearer​

ParamvalueType
token{{accessCode}}string

LANGUAGE

AUTHORIZATION

Bearer

CURL REQUEST


curl --request POST \ 
--url /payments/nqr/terminals \
--header 'accept: application/json' \
--header 'content-type: application/json'

RESPONSE


Click Try It! to start a request and see the response here!