REST API
Status
POST/v2/Payment/Status

Status retrieves the details of a previously processed transaction by reference ID or transaction number. All the responses have GeneralResponse section that informs about successful result or error. See Error Codes and Messages.

Body Parameters

TransactionNumber
number
PaymentType*
enum
ReferenceId*
string
PrintReceipt
enum
GetReceipt
enum
MerchantNumber
number
CaptureSignature
boolean
GetExtendedData
boolean
IsReadyForIS
boolean

CallbackInfo

Url
string
ReconId
string
IsvId
string
Tpn
string
RegisterId
string
Authkey
string
SPInProxyTimeout
number

CustomFields

CustomFields
object
POST/v2/Payment/Status
1curl --location 'https://test.spinpos.net/v2/Payment/Status' \
2--header 'Content-Type: application/json' \
3--data '{
4 "CustomFields": {},
5 "TransactionNumber": "",
6 "PaymentType": "Credit",
7 "ReferenceId": "",
8 "PrintReceipt": "No",
9 "GetReceipt": "No",
10 "MerchantNumber": "",
11 "CaptureSignature": false,
12 "GetExtendedData": false,
13 "IsReadyForIS": false,
14 "CallbackInfo": {
15 "Url": ""
16 },
17 "ReconId": "",
18 "IsvId": "",
19 "Tpn": "",
20 "RegisterId": "",
21 "Authkey": "",
22 "SPInProxyTimeout": ""
23}'
Response

// Awaiting response…

Sample response
{
  "GeneralResponse": {
    "HostResponseCode": "00",
    "HostResponseMessage": "Approved",
    "ResultCode": "Ok",
    "StatusCode": "0000",
    "Message": "Approved",
    "DetailedMessage": "APPROVAL VTLMC1",
    "DelayBeforeNextRequest": null
  },
  "Amounts": {
    "TotalAmount": 1.05,
    "Amount": 1,
    "TipAmount": null,
    "FeeAmount": 0.03,
    "TaxAmount": 0.02
  },
  "CardData": {
    "CardType": "Mastercard",
    "EntryType": "ChipContactless",
    "Last4": "4111",
    "First4": "5413",
    "BIN": "541333",
    "ExpirationDate": "1225",
    "Name": "",
    "CardBrand": ""
  }
}