REST API
Capture
POST/v2/Payment/Capture

Capture (Transact) completes a previously authorized (pre-auth) transaction, capturing the reserved funds. All the responses have GeneralResponse section that informs about successful result or error. See Error Codes and Messages.

Body Parameters

Amount*
number
TipAmount
number
AuthCode*
string
Cart
object
PaymentType*
enum
ReferenceId*
string
PrintReceipt
enum
GetReceipt
enum
MerchantNumber
number
InvoiceNumber
string
CaptureSignature
boolean
GetExtendedData
boolean
IsReadyForIS
boolean
CallbackInfo
object
ReconId
string
IsvId
string
Tpn
string
RegisterId
string
Authkey
string
SPInProxyTimeout
number
CustomFields
object
POST/v2/Payment/Capture
1curl --location 'https://test.spinpos.net/v2/Payment/Capture' \
2--header 'Content-Type: application/json' \
3--data '{
4 "Amount": 10,
5 "TipAmount": "",
6 "AuthCode": "AXS854",
7 "Cart": {
8 "Amounts": [
9 {
10 "Name": "",
11 "Value": ""
12 }
13 ],
14 "CashPrices": [
15 {
16 "Name": "",
17 "Value": ""
18 }
19 ],
20 "Items": [
21 {
22 "Name": "",
23 "Price": "",
24 "UnitPrice": "",
25 "Quantity": "",
26 "AdditionalInfo": "",
27 "CustomInfos": [
28 {
29 "Name": "",
30 "Value": ""
31 }
32 ],
33 "Modifiers": [
34 {
35 "Name": "",
36 "Options": [
37 {
38 "Name": "",
39 "Price": "",
40 "Quantity": ""
41 }
42 ]
43 }
44 ]
45 }
46 ]
47 },
48 "PaymentType": "Credit",
49 "ReferenceId": "0122dcfa7829",
50 "PrintReceipt": "No",
51 "GetReceipt": "No",
52 "MerchantNumber": "",
53 "InvoiceNumber": "",
54 "CaptureSignature": false,
55 "GetExtendedData": true,
56 "IsReadyForIS": false,
57 "CallbackInfo": {
58 "Url": ""
59 },
60 "ReconId": "",
61 "IsvId": "",
62 "Tpn": "",
63 "RegisterId": "",
64 "Authkey": "",
65 "SPInProxyTimeout": "",
66 "CustomFields": {
67 "CustomerEmail": "sai@gmail.com",
68 "CustomerMobile": "+15418996990"
69 }
70}'
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": ""
  }
}