v1

latestOpenAPI 3.0.12026-07-141671231.8 MB
Transactions

Create a transaction

Create a banking transaction

ℹ️ This endpoint requires the following scope: transactions:all

post/api/external/v2/transactions

Request body

bank_account_idinteger required

The bank account where the transaction is registered

labelstring required

Transaction label

datestring date required

Transaction date

amountstring required

Transaction amount

feestring

Transaction fee

Example request

{
  "bank_account_id": 42,
  "label": "test label",
  "date": "2025-07-30",
  "amount": "120.00",
  "fee": "12.00"
}

Response

Transaction created

idinteger required

Transaction identifier

labelstring nullable required
attachment_requiredboolean required

When true, the transaction need to be justified and matched with an invoice

datestring date required
outstanding_balancestring nullable required

This is the balance of the transaction after it has been processed.

created_atstring date-time required
updated_atstring date-time required
archived_atstring date-time nullable required
currency_amountstring required

Amount in the currency of the transaction.

amountstring required

Transaction amount in euros. If the currency is euro, currency_amount and amount are identical.

currency_feestring nullable required

Fee in the currency of the transaction.

feestring nullable required

Transaction fee in euros. If the currency is euro, currency_fee and fee are identical.

interbank_codestring nullable required

Example response

{
  "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"
}