REST API
Balance
POST/v2/Payment/Balance

Sale is the most common request that user to do payment on a terminal. All the responses have GeneralResponse section that informs about successful result or error. See Error Codes and Messages.

Body Parameters

PaymentType*
enum
ReferenceId*
string
PrintReceipt
enum
GetReceipt
enum
MerchantNumber
number
InvoiceNumber
string
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/Balance
1curl --location 'https://test.spinpos.net/v2/Payment/Balance' \
2--header 'Content-Type: application/json' \
3--data '{
4 "CustomFields": {},
5 "PaymentType": "Credit",
6 "ReferenceId": "111",
7 "PrintReceipt": "No",
8 "GetReceipt": "No",
9 "MerchantNumber": "",
10 "InvoiceNumber": "",
11 "CaptureSignature": false,
12 "GetExtendedData": true,
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": ""
  }
}