---
title: "Create a transaction"
method: POST
path: "/api/external/v2/transactions"
tags: ["Transactions"]
---

# Create a transaction

`POST /api/external/v2/transactions`

Create a banking transaction

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

## Request body

- object
  - `bank_account_id` integer, required — The bank account where the transaction is registered
  - `label` string, required — Transaction label
  - `date` string, date, required — Transaction date
  - `amount` string, required — Transaction amount
  - `fee` string — Transaction fee

## Response `201`

Transaction created

- object
  - `id` integer, required — Transaction identifier
  - `label` string, nullable, required
  - `attachment_required` boolean, required — When `true`, the transaction need to be justified and matched with an invoice
  - `date` string, date, required
  - `outstanding_balance` string, nullable, required — This is the balance of the transaction after it has been processed.
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `archived_at` string, date-time, nullable, required
  - `currency` union, required
    - 'EUR' | 'USD' | 'GBP' | 'AED' | 'AFN' | 'ALL' | 'AMD' | 'ANG' | 'AOA' | 'ARS' | 'AUD' | 'AWG' | 'AZN' | 'BAM' | 'BBD' | 'BDT' | 'BGN' | 'BHD' | 'BIF' | 'BMD' | 'BND' | 'BOB' | 'BRL' | 'BSD' | 'BTN' | 'BWP' | 'BYN' | 'BYR' | 'BZD' | 'CAD' | 'CDF' | 'CHE' | 'CHF' | 'CLF' | 'CLP' | 'CNY' | 'COP' | 'CRC' | 'CUC' | 'CUP' | 'CVE' | 'CZK' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'EGP' | 'ERN' | 'ETB' | 'FJD' | 'FKP' | 'GEL' | 'GGP' | 'GHS' | 'GIP' | 'GMD' | 'GNF' | 'GTQ' | 'GYD' | 'HKD' | 'HNL' | 'HRK' | 'HTG' | 'HUF' | 'IDR' | 'ILS' | 'IMP' | 'INR' | 'IQD' | 'IRR' | 'ISK' | 'JEP' | 'JMD' | 'JOD' | 'JPY' | 'KES' | 'KGS' | 'KHR' | 'KMF' | 'KPW' | 'KRW' | 'KWD' | 'KYD' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'LSL' | 'LTL' | 'LVL' | 'LYD' | 'MAD' | 'MDL' | 'MGA' | 'MKD' | 'MMK' | 'MNT' | 'MOP' | 'MRO' | 'MRU' | 'MUR' | 'MVR' | 'MWK' | 'MXN' | 'MYR' | 'MZN' | 'NAD' | 'NGN' | 'NIO' | 'NOK' | 'NPR' | 'NZD' | 'OMR' | 'PAB' | 'PEN' | 'PGK' | 'PHP' | 'PKR' | 'PLN' | 'PYG' | 'QAR' | 'RON' | 'RSD' | 'RUB' | 'RWF' | 'SAR' | 'SBD' | 'SCR' | 'SDG' | 'SEK' | 'SGD' | 'SHP' | 'SLL' | 'SLE' | 'SOS' | 'SRD' | 'STD' | 'SVC' | 'SYP' | 'SZL' | 'THB' | 'TJS' | 'TMT' | 'TND' | 'TOP' | 'TRY' | 'TTD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'UYU' | 'UZS' | 'VEF' | 'VND' | 'VUV' | 'WST' | 'XAF' | 'XCD' | 'XDR' | 'XOF' | 'XPF' | 'YER' | 'ZAR' | 'ZMK' | 'ZMW' | 'ZWL'
    - unknown
  - `currency_amount` string, required — Amount in the currency of the transaction.
  - `amount` string, required — Transaction amount in euros. If the currency is euro, `currency_amount` and `amount` are identical.
  - `currency_fee` string, nullable, required — Fee in the currency of the transaction.
  - `fee` string, nullable, required — Transaction fee in euros. If the currency is euro, `currency_fee` and `fee` are identical.
  - `journal` object, required
    - `id` integer, required
    - `url` string, required
  - `bank_account` object, required
    - `id` integer, required
    - `url` string, required
  - `pro_account_expense` object, nullable, required
    - `employee` object, nullable, required
      - `id` integer, required
      - `first_name` string, required
      - `last_name` string, required
    - `card_masked_number` string, required
  - `customer` object, nullable, required
    - `id` integer, required
    - `url` string, required
  - `supplier` object, nullable, required
    - `id` integer, required
    - `url` string, required
  - `categories` object[], required
    - `id` integer, required
    - `label` string, required
    - `weight` string, required
    - `category_group` object, required
      - `id` integer, required
    - `analytical_code` string, nullable, required
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
  - `matched_invoices` object, required
    - `url` string, required
  - `interbank_code` string, nullable, required

## Other responses

- `400` — Bad request
- `401` — Access token is missing or invalid
- `403` — Access to this resource forbidden
- `404` — The resource was not found
- `422` — Unprocessable content

---

[API](https://skmtc.net/pennylane/apis/company-v2.md) · [All operations](https://skmtc.net/pennylane/apis/company-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pennylane/company-v2/versions/a5b7236473c6/schema)
