Void
POST
/v2/Payment/VoidVoid cancels a previously processed transaction before it is settled. All the responses have GeneralResponse section that informs about successful result or error. See Error Codes and Messages.
Body Parameters
Amount*
numberPaymentType*
enumReferenceId*
stringPrintReceipt
enumGetReceipt
enumMerchantNumber
numberCaptureSignature
booleanGetExtendedData
booleanIsReadyForIS
booleanCallbackInfo
objectReconId
stringIsvId
stringTpn
stringRegisterId
stringAuthkey*
stringSPInProxyTimeout
numberCustomFields
objectPOST/v2/Payment/Void
1curl --location 'https://test.spinpos.net/v2/Payment/Void' \
2--header 'Content-Type: application/json' \
3--data '{
4 "Amount": 1,
5 "PaymentType": "Credit",
6 "ReferenceId": "d6c871b6a580",
7 "PrintReceipt": "No",
8 "GetReceipt": "No",
9 "MerchantNumber": "",
10 "CaptureSignature": false,
11 "GetExtendedData": true,
12 "IsReadyForIS": false,
13 "CallbackInfo": {
14 "Url": ""
15 },
16 "ReconId": "",
17 "IsvId": "",
18 "Tpn": "",
19 "RegisterId": "",
20 "Authkey": "",
21 "SPInProxyTimeout": "",
22 "CustomFields": {}
23}'
Response
// Awaiting response…
Sample response
{
"GeneralResponse": {
"HostResponseCode": "",
"HostResponseMessage": "",
"ResultCode": "0",
"StatusCode": "0000",
"Message": "",
"DetailedMessage": "",
"DelayBeforeNextRequest": null
},
"PaymentType": "Credit",
"TransactionType": "",
"Amounts": {
"TotalAmount": null,
"Amount": null,
"TipAmount": null,
"FeeAmount": null,
"TaxAmount": null
},
"AuthCode": "",
"ReferenceId": "",
"InvoiceNumber": "",
"SerialNumber": "",
"BatchNumber": "",
"TransactionNumber": "",
"Voided": false,
"Signature": "",
"IPosToken": "",
"Token": "",
"RRN": "",
"PNReferenceId": "",
"MerchantNumber": null,
"MerchantName": "",
"ExtendedDataByApplication": {},
"CardData": {
"CardType": "None",
"EntryType": "None",
"Last4": "",
"First4": "",
"BIN": "",
"ExpirationDate": "",
"Name": "",
"CardBrand": ""
},
"EMVData": {
"ApplicationName": "",
"AID": "",
"TVR": "",
"TSI": "",
"IAD": "",
"ARC": ""
},
"Receipts": {
"Customer": "",
"Merchant": ""
},
"L2L3ValidationError": {
"Description": "",
"PoNumber": "",
"PurchaseIdentifier": "",
"SummaryCommodityCode": "",
"LineItemCount": "",
"TaxAmount": "",
"Quantity": "",
"UnitOfMeasure": "",
"UnitCost": "",
"TaxRate": "",
"DiscountAmount": "",
"DebitCreditIndicator": "",
"ExtLineAmount": "",
"QuantityExpIndicator": "",
"UnitPriceDecimal": ""
},
"AutoRentalValidationError": {
"AdjustmentAmount": "",
"AdjustmentAuditIndicatorCode": "",
"AgreementReferenceNumber": "",
"PickupAddress": "",
"PickupCity": "",
"PickupCountry": "",
"PickupCountryCode": "",
"PickupDate": "",
"PickupLocation": "",
"PickupRegionCode": "",
"PickupState": "",
"RentalDistance": "",
"RentalDistanceUnitofMeasure": "",
"RentalDuration": "",
"RentalPeriod": "",
"RentalRate": "",
"RentalTime": "",
"ReturnAddress": "",
"ReturnDate": "",
"ReturnLocationId": "",
"ReturnRegionCode": "",
"ReturnStateCountry": "",
"ReturnTime": "",
"ServiceMobile": "",
"VehicleMake": "",
"VehicleModel": ""
}
}