List transactions for a credit line
Path Parameters
- Type: string Format: uuidcredit
Line Id requiredCredit line UUID
Query Parameters
- Type: string Format: uuidperiod
Id Filter by period UUID
- enumtype
Filter by transaction type
values- purchase
- fee
- payment
- rebate
- enumstatus
Filter by transaction status
values- active
- reverted
- Type: stringdescription
Filter by description (case-insensitive contains)
- Type: integerpagemin:-9007199254740991max:9007199254740991
Page number
- Type: integerlimitmin:-9007199254740991max:9007199254740991
Items per page
- Type: stringsearch
Free-text search
- Type: stringdate
From Pattern: ^(\d{4}-\d{2}-\d{2}(T.*)?|(0[1-9]|1[0-2])-([0-2][0-9]|3[01])-\d{4})$Filter from date (YYYY-MM-DD; legacy MM-DD-YYYY accepted)
- Type: stringdate
To Pattern: ^(\d{4}-\d{2}-\d{2}(T.*)?|(0[1-9]|1[0-2])-([0-2][0-9]|3[01])-\d{4})$Filter to date (YYYY-MM-DD; legacy MM-DD-YYYY accepted)
- Type: stringorder
By Field used for sorting
- enumorder
Direction Sort direction
values- asc
- desc
Responses
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
Request Example for get/credit-lines/{creditLineId}/transactions
curl https://api-sandbox.tryslatehq.com/credit-lines/123e4567-e89b-12d3-a456-426614174000/transactions \
--header 'x-api-key: YOUR_SECRET_TOKEN'
{
"data": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"creditLineId": "123e4567-e89b-12d3-a456-426614174000",
"periodId": "123e4567-e89b-12d3-a456-426614174000",
"type": "payment",
"amount": 50000,
"transactionDate": "2025-01-01",
"description": null,
"notes": null,
"createdAt": "2025-01-01T00:00:00Z",
"status": "active",
"revertedAt": null,
"revertReason": null
}
],
"total": -9007199254740991,
"totalPages": -9007199254740991
}