GET
/
ext
/
v1
/
card-transactions
/
{cardTransactionId}
Gets the card transaction with the given ID
curl --request GET \
  --url https://api.light.inc/rest/ext/v1/card-transactions/{cardTransactionId}
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "companyEntityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "companyEntityName": "<string>",
  "cardBalanceAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "cardBalanceAccountLabel": "<string>",
  "cardId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "cardVendorId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "cardVendorAvatarUrl": "<string>",
  "cardVendorName": "<string>",
  "cardOwnerName": "<string>",
  "cardOwnerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "cardLastFour": "<string>",
  "originalAmount": 123,
  "originalCurrency": "USD",
  "amount": 123,
  "currency": "USD",
  "direction": "DEBIT",
  "transactionReason": "APPROVED",
  "purchaseType": "ATM",
  "status": "AUTHORIZED",
  "type": "PAYMENT",
  "merchant": {
    "name": "<string>",
    "country": "UNDEFINED",
    "zipcode": "<string>",
    "id": "<string>",
    "mcc": "<string>",
    "acquirerId": "<string>"
  },
  "receiptDocumentKey": "<string>",
  "lines": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "transactionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "accountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "accountLabel": "<string>",
      "taxCodeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "taxCodeLabel": "<string>",
      "costCenterId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "costCenterName": "<string>",
      "amount": 123,
      "netAmount": 123,
      "description": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "customProperties": [
        {
          "groupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "groupInternalName": "<string>",
          "values": [
            {
              "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
              "groupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
              "groupInternalName": "<string>",
              "companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
              "internalName": "<string>",
              "label": "<string>",
              "context": "<string>",
              "createdAt": "2023-11-07T05:31:56Z",
              "updatedAt": "2023-11-07T05:31:56Z"
            }
          ]
        }
      ]
    }
  ],
  "failureContext": {
    "type": "BAD_REQUEST",
    "errors": [
      {
        "type": "<string>",
        "clientMessage": "<string>",
        "message": "<string>",
        "path": [
          "<string>"
        ],
        "context": {}
      }
    ],
    "stackTrace": [
      {
        "classLoaderName": "<string>",
        "moduleName": "<string>",
        "moduleVersion": "<string>",
        "methodName": "<string>",
        "fileName": "<string>",
        "lineNumber": 123,
        "nativeMethod": true,
        "className": "<string>"
      }
    ],
    "message": "<string>",
    "suppressed": [
      {
        "stackTrace": [
          {
            "classLoaderName": "<string>",
            "moduleName": "<string>",
            "moduleVersion": "<string>",
            "methodName": "<string>",
            "fileName": "<string>",
            "lineNumber": 123,
            "nativeMethod": true,
            "className": "<string>"
          }
        ],
        "message": "<string>",
        "localizedMessage": "<string>"
      }
    ],
    "localizedMessage": "<string>",
    "name": "<string>"
  },
  "description": "<string>",
  "performedAt": "2023-11-07T05:31:56Z",
  "exportedAt": "2023-11-07T05:31:56Z",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "customProperties": [
    {
      "groupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "groupInternalName": "<string>",
      "values": [
        {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "groupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "groupInternalName": "<string>",
          "companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "internalName": "<string>",
          "label": "<string>",
          "context": "<string>",
          "createdAt": "2023-11-07T05:31:56Z",
          "updatedAt": "2023-11-07T05:31:56Z"
        }
      ]
    }
  ]
}

Path Parameters

cardTransactionId
string<uuid>
required

Response

default - application/json;charset=UTF-8

default response

The response is of type object.