List transactions
Changed onList transactions
ℹ️ This endpoint requires one of the following scopes: transactions:readonly, transactions:all
Request
- Base URLhttps://app.pennylane.com
- URLhttps://app.pennylane.com/api/external/v2/transactions
- AuthOAuth 2Authorization code: https://app.pennylane.com/oauth/authorizeToken URL: https://app.pennylane.com/oauth/oauth/token scopes: transactions:readonly, transactions:all
Query parameters
Cursor for pagination. Use this to fetch the next set of results. The cursor is an opaque string returned in the previous response's metadata. Leave empty for the first request.
Number of items to return per request. Defaults to 20 if not specified. Must be between 1 and 100.
You can choose to filter items on specific fields. Available fields and values:
- id: eq, not_eq, in, not_in
- bank_account_id: eq, not_eq, in, not_in
- journal_id: eq, not_eq, in, not_in
- date: eq, not_eq, gt, lt, lteq, gteq
You can choose to sort items on specific attributes Sort field may be prefixed with - for descending order. Example : id will sort by ascending order, -id will sort by descending order. Available fields : id
Headers
Numeric ID of the company to act on. Required when authenticating with a firm token. Ignored when the token is already bound to a company.
Response
A list of transactions
Example response
{
"has_more": true,
"next_cursor": "dXBkYXRlZF9hdDoxNjc0MTIzNDU2",
"items": [
{
"id": 42,
"label": "VIR SEPA MY SUPPLIER SAS",
"attachment_required": true,
"date": "2023-08-30",
"outstanding_balance": "49.3",
"created_at": "2023-08-30T10:08:08.146343Z",
"updated_at": "2023-08-30T10:08:08.146343Z",
"archived_at": "2023-08-30T10:08:08.146343Z",
"currency_amount": "120.00",
"amount": "120.00",
"currency_fee": "120.00",
"fee": "120.00",
"journal": {
"id": 234,
"url": "https://app.pennylane.com/api/external/v2/journals/67"
},
"bank_account": {
"id": 53,
"url": "https://app.pennylane.com/api/external/v2/bank_accounts/53"
},
"pro_account_expense": {
"employee": {
"id": 42,
"first_name": "John",
"last_name": "Doe"
},
"card_masked_number": "123456XXXXXX7890"
},
"customer": {
"id": 42,
"url": "https://app.pennylane.com/api/external/v2/customers/42"
},
"supplier": {
"id": 42,
"url": "https://app.pennylane.com/api/external/v2/supplier/42"
},
"categories": [
{
"id": 421,
"label": "HR - Salaries",
"weight": "0.25",
"category_group": {
"id": 229
},
"analytical_code": "CODE123",
"created_at": "2023-08-30T10:08:08.146343Z",
"updated_at": "2023-08-30T10:08:08.146343Z"
}
],
"matched_invoices": {
"url": "https://app.pennylane.com/api/external/v2/transactions/42/matched_invoices"
},
"interbank_code": "B1D"
}
]
}Changes
- warning
added the new
VESenum value to the///response property for the response status - info
added the new optional
headerrequest parameterX-Company-Id
- warning