Returns a paginated list of card transactions
curl --request GET \
--url https://api.light.inc/v1/card-transactions \
--header 'Authorization: <api-key>'{
"records": [
{
"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>",
"cleanName": "<string>",
"country": "UNDEFINED",
"zipcode": "<string>",
"id": "<string>",
"mcc": "<string>",
"acquirerId": "<string>",
"logoUrl": "<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"
}
]
}
],
"amortizationTemplateId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amortizationStartDate": "2023-12-25",
"amortizationEndDate": "2023-12-25"
}
],
"failureContext": {
"name": "<string>",
"type": "BAD_REQUEST",
"errors": [
{
"type": "<string>",
"message": "<string>",
"path": [
"<string>"
],
"context": {}
}
]
},
"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"
}
]
}
]
}
],
"hasMore": true,
"total": 123,
"nextCursor": "<string>",
"prevCursor": "<string>"
}Basic authentication header of the form Basic <api_key>, where <api_key> is your api key.
Sort string in the format field:direction. To provide multiple sort fields, separate them with commas.
Available directions: asc, desc.
Available fields: companyEntityId, status, performedAt.
"amount:desc,createdAt:asc"
Filter string in the format field:operator:value. To provide multiple filters, separate them with commas.
Available operators: eq, ne, in, not_in, gt, gte, lt, lte.
in and not_in operators, provide multiple values separated by the pipe character (|).Available fields: transactionId, cardBalanceAccountId, companyEntityId, cardId, status, performedAt.
"state:in:IN_DRAFT|SCHEDULED|PAID,amount:gte:500,vendorId:ne:null"
Maximum number of items to return. Default is 50, maximum is 200.
x <= 200Number of items to skip before starting to collect the result set. Deprecated, use 'cursor' instead.
The cursor position to start returning results from.
To opt-in into cursor-based pagination, provide 0 for the initial request.
For subsequent requests, use nextCursor and prevCursor from the previous response to navigate.
default response
List of records for the current page
Show child attributes
"USD"
"USD"
⚠️ This enum is not exhaustive; new values may be added in the future.
DEBIT, CREDIT ⚠️ This enum is not exhaustive; new values may be added in the future.
APPROVED, INSUFFICIENT_FUNDS, OTHER ⚠️ This enum is not exhaustive; new values may be added in the future.
ATM, BALANCE_INQUIRY, ECOMMERCE, POS, RECURRING, UNKNOWN, OTHER ⚠️ This enum is not exhaustive; new values may be added in the future.
AUTHORIZED, DECLINED, CAPTURED, REFUNDED, VOIDED, POSTED ⚠️ This enum is not exhaustive; new values may be added in the future.
PAYMENT, REFUND, OTHER Show child attributes
⚠️ This enum is not exhaustive; new values may be added in the future.
UNDEFINED, AC, AD, AE, AF, AG, AI, AL, AM, AN, AO, AQ, AR, AS, AT, AU, AW, AX, AZ, BA, BB, BD, BE, BF, BG, BH, BI, BJ, BL, BM, BN, BO, BQ, BR, BS, BT, BU, BV, BW, BY, BZ, CA, CC, CD, CF, CG, CH, CI, CK, CL, CM, CN, CO, CP, CR, CS, CU, CV, CW, CX, CY, CZ, DE, DG, DJ, DK, DM, DO, DZ, EA, EC, EE, EG, EH, ER, ES, ET, EU, EZ, FI, FJ, FK, FM, FO, FR, FX, GA, GB, GD, GE, GF, GG, GH, GI, GL, GM, GN, GP, GQ, GR, GS, GT, GU, GW, GY, HK, HM, HN, HR, HT, HU, IC, ID, IE, IL, IM, IN, IO, IQ, IR, IS, IT, JE, JM, JO, JP, KE, KG, KH, KI, KM, KN, KP, KR, KW, KY, KZ, LA, LB, LC, LI, LK, LR, LS, LT, LU, LV, LY, MA, MC, MD, ME, MF, MG, MH, MK, ML, MM, MN, MO, MP, MQ, MR, MS, MT, MU, MV, MW, MX, MY, MZ, NA, NC, NE, NF, NG, NI, NL, NO, NP, NR, NT, NU, NZ, OM, PA, PE, PF, PG, PH, PK, PL, PM, PN, PR, PS, PT, PW, PY, QA, RE, RO, RS, RU, RW, SA, SB, SC, SD, SE, SF, SG, SH, SI, SJ, SK, SL, SM, SN, SO, SR, SS, ST, SU, SV, SX, SY, SZ, TA, TC, TD, TF, TG, TH, TJ, TK, TL, TM, TN, TO, TP, TR, TT, TV, TW, TZ, UA, UG, UK, UM, US, UY, UZ, VA, VC, VE, VG, VI, VN, VU, WF, WS, XI, XU, XK, YE, YT, YU, ZA, ZM, ZR, ZW Show child attributes
Show child attributes
ID of the custom property group
Internal name of the custom property group
List of values. Note that this will be a single value unless the group input type supports multiple values
Show child attributes
Unique identifier for the object
ID of the custom property group
Internal name of the custom property group
ID of the company
Internal name of the custom property value
Label of the custom property value
Context/description of the custom property value
Timestamp when the custom property value was created
Timestamp when the custom property value was last updated
Show child attributes
The error name
The error type
⚠️ This enum is not exhaustive; new values may be added in the future.
BAD_REQUEST, UNAUTHORIZED, FORBIDDEN, NOT_FOUND, CONFLICT, UNPROCESSABLE_CONTENT List of errors providing details about what went wrong
Show child attributes
A string code identifying the error type
A human-readable message providing more details about the error
Optional path of the error when the error is for a specific field. Used mostly on BAD_REQUEST errors, that path will match the field name on the request object
Optional path of the error when the error is for a specific field. Used mostly on BAD_REQUEST errors, that path will match the field name on the request object
Optional context providing additional information about the error. This can include any relevant data that might help in understanding or resolving the error
Show child attributes
Optional context providing additional information about the error. This can include any relevant data that might help in understanding or resolving the error
Show child attributes
ID of the custom property group
Internal name of the custom property group
List of values. Note that this will be a single value unless the group input type supports multiple values
Show child attributes
Unique identifier for the object
ID of the custom property group
Internal name of the custom property group
ID of the company
Internal name of the custom property value
Label of the custom property value
Context/description of the custom property value
Timestamp when the custom property value was created
Timestamp when the custom property value was last updated
Boolean flag indicating if there are more records available
Total number of records (only for offset pagination). This field is not guaranteed to be returned and only available for offset pagination, please do not rely on it and migrate to cursor pagination.
Cursor for fetching the next page (only for cursor pagination)
Cursor for fetching the previous page (only for cursor pagination)
curl --request GET \
--url https://api.light.inc/v1/card-transactions \
--header 'Authorization: <api-key>'{
"records": [
{
"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>",
"cleanName": "<string>",
"country": "UNDEFINED",
"zipcode": "<string>",
"id": "<string>",
"mcc": "<string>",
"acquirerId": "<string>",
"logoUrl": "<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"
}
]
}
],
"amortizationTemplateId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amortizationStartDate": "2023-12-25",
"amortizationEndDate": "2023-12-25"
}
],
"failureContext": {
"name": "<string>",
"type": "BAD_REQUEST",
"errors": [
{
"type": "<string>",
"message": "<string>",
"path": [
"<string>"
],
"context": {}
}
]
},
"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"
}
]
}
]
}
],
"hasMore": true,
"total": 123,
"nextCursor": "<string>",
"prevCursor": "<string>"
}