Skip to main content

VOID Payment

This API is used to void an existing 'Provisional Credit' transaction. It is identified by the unique 'Provisional Credit referenceId' and 'customerId'.

Method: POST

{{URL}}/jsonrpc

Example

Request Parameters
ParameterDescription
method
Mandatory
String
RPC method name
Constant Value : "TransactionService.Payment"
id
Mandatory
String
Unique ID for the request
params.api
Mandatory
Object
API authentication block
params.api.signature
Mandatory
String
Sign the request payload (params.payload) using private key.
Sample Value: "MEQCIAbpxHpdOyBEVlmxPYv7m4Z1OvWJJYw7g7u3GE3T9nmvAiBjKHckSvb1M6O4t7FeWsn2z9Y3dMeYn3HyX/k28ek/Dw=="
params.api.keyId
Mandatory
String
Key ID is provided at the time of device registration.
Sample Value : "348076"
params.api.credential
Mandatory
String
Basic (space) [("<Username>:<apiKey>") as Base64 encoded value] to be provided
Sample Value: "Basic bmF2eWEubitlbXBAbmV0eGQuY29tOmY1OWIwY2NlOTU4ZTQ1YTc4MGVhZWIzYWVjOWVjZDAx"
params.api.apiKey
Mandatory
String
API key is provided at the time of device registration.
Sample Value : "f59b0cce958e45a780eaeb3aec9ecd01"
params.payload.type
Mandatory
String
Type of transaction.
Constant Value - "VOID"
params.payload.referenceId
Mandatory
String
Unique Reference ID of PROVISIONALCREDIT transaction.
Sample Value :
"65323564567089"_
params.payload.customerId
Mandatory
String
Unique id of customer.
Sample Value : "100000000076002"
params.payload.notes
Optional
String
Purpose of the transaction.
Sample Value : "Settlement"

curl --location 'http://localhost:5020/PL/jsonrpc' \
--header 'Content-Type: application/json' \
--data '{"method":"TransactionService.Payment","id":"1","params":{"api":{"signature":"MEUCIFt47d3wHdgzwh3nK9Dipfm2KBWV8r/Ner4YLS374fO6AiEAzZPI6aTITZBJBCqGbo53ECEzahs5bsDxhTGNGRtryxA=","keyId":"140","credential":"Basic UEw6YTY4ZTFmODkzYTQ4NGUyOTgxYzczZWNlNjU5ZWI2ZDg=","apiKey":"a68e1f893a484e2981c73ece659eb6d8"},"payload":{"type":"VOID","referenceId":"REF_90011014","customerId":"100000000004001","notes":"void payment"}}}'

Body

{
"method": "TransactionService.Payment",
"id": "1",
"params": {
"api": {
"signature": "{{signature}}",
"keyId": "{{DeviceID}}",
"credential": "{{Credential}}",
"apiKey": "{{ApiKey}}"
},
"payload": {
"type": "VOID",
"ReferenceId": "65323564568000",
"CustomerId": "100000000076002",
"Notes": "void payment"
}
}
}


Response: 200

Response Parameters
ParameterDescription
StatusString
Status of the void request (e.g., COMPLETED)
TransactionIDString
Unique ID for the void transaction
transactionNumberString
System-generated transaction number
referenceIDString
New reference ID assigned to the void
isPartialBoolean
Indicates if the void was partially successful
{
"id": "1",
"result": {
"status": "COMPLETED",
"TransactionID": "15393647",
"transactionNumber": "QA00000002412010",
"referenceID": "1754894295066",
"isPartial": false
},
"jsonrpc": "2.0"
}