Get a list of Captures of a specific card payment

You can get a list of all partial captures for a specific direct card payment by using an action based on GET HTTP request. Please be aware that only a limited amount of details for each capture will be provided.

Definition: GET /v1/payments/{id}/captures

Where:
  • {id} – GlobalPay Payment ID

Request:

GET https://securetest.smart2pay.com/v1/payments/202247/captures
Authorization: Basic MTAxMDpnYWJp

Response:

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8

{
  "Captures": [
  {
    "ID": 266,
    "SiteID": 1010,
    "Created": "20161205095522",
    "MerchantTransactionID": "s2ptest_h22",
    "OriginatorTransactionID": null,
    "PaymentID": 202247,
    "Amount": 500,
    "Currency": "EUR",
    "Status": {
      "ID": 2,
      "Info": "Success",
      "Reasons": []
      }
    },
    {
    "ID": 267,
    "SiteID": 1010,
    "Created": "20161205095522",
    "MerchantTransactionID": "s2ptest_h23",
    "OriginatorTransactionID": null,
    "PaymentID": 202247,
    "Amount": 2000,
    "Currency": "EUR",
    "Status": {
      "ID": 4,
      "Info": "Failed",
      "Reasons": [
        {
          "Code": "2209",
          "Info": "Capture.Amount exceeds authorization amount"
          }
        ]
      }
    }
  ]
}

You can also get information for a specific capture of a direct card payment by using an action based on GET HTTP request.

Definition: GET /v1/payments/{id}/capture/{id}

Where:
  • payments/{id} – GlobalPay Payment ID
  • capture/{id} – The ID of the specific capture

Request:

GET https://securetest.smart2pay.com/v1/payments/202247/captures/266
Authorization: Basic MTAxMDpnYWJp

Response:

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8

{
    "Capture": {
        "ID": 266,
        "SiteID": 1010,
        "Created": "20161205095522",
        "MerchantTransactionID": "s2ptest_h22",
        "OriginatorTransactionID": null,
        "PaymentID": 202247,
        "Amount": 500,
        "Currency": "EUR",
        "Status": {
            "ID": 2,
            "Info": "Success",
            "Reasons": []
        }
    }
}