v1

latestOpenAPI 3.1.02026-08-04103211436.0 KB
Transactions

Retrieve transaction

Returns a single transaction by its Embat id. If the transaction's product no longer exists, this endpoint returns 404 even though the transaction record exists.

get/transactions/{companyId}/{id}

Path parameters

idstring required
companyIdstring required

Response

Successful Response

idstring nullable

Embat transaction ID.

balancenumber nullable

Balance of the product (bank account) immediately after this transaction.

operationDatestring date-time nullable

Date the transaction was recorded (booked) by the bank.

valueDatestring date-time nullable

Value date of the transaction, used for balance calculations.

updatedAtstring date-time nullable

Last time this transaction was updated in Embat.

createdAtstring date-time nullable

Date this transaction was created in Embat.

companyIdstring nullable

Embat company ID. You can get them from "companies" endpoints.

additionalInfoobject

Free-form key/value metadata attached to the transaction. For some bank transactions, Embat automatically populates it with the bank-provided concept details (ownConcept, commonConcept), overriding any value previously set on this field.

bankstring nullable

Name of the bank holding the product this transaction belongs to.

conceptstring nullable

Free-text description of the transaction, as reported by the bank. On GET /transactions/{companyId} (list), it is returned as an empty string when the value stored for the transaction is invalid.

amountnumber nullable

Amount of the transaction, in the product's currency.

accountingAmountnumber nullable

Transaction amount expressed in the company accounting currency.

exchangeRatenumber nullable

Exchange rate applied between the transaction currency and accountingCurrency.

accountingCurrency'AED' | 'AFN' | 'ALL' | 'AMD' | 'ANG' | 'AOA' | 'ARS' | 'AUD' | 'AWG' | 'AZN' | 'BAM' | 'BBD' | 'BDT' | 'BGN' | 'BHD' | 'BIF' | 'BMD' | 'BND' | 'BOB' | 'BOV' | 'BRL' | 'BSD' | 'BTC' | 'BTN' | 'BWP' | 'BYN' | 'BZD' | 'CAD' | 'CDF' | 'CHE' | 'CHF' | 'CHW' | 'CLF' | 'CLP' | 'CNH' | 'CNY' | 'COP' | 'COU' | 'CRC' | 'CUP' | 'CVE' | 'CZK' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'EEK' | 'EGP' | 'ERN' | 'ETB' | 'ETH' | 'EUR' | 'FJD' | 'FKP' | 'GBP' | 'GEL' | 'GHS' | 'GIP' | 'GMD' | 'GNF' | 'GTQ' | 'GYD' | 'HKD' | 'HNL' | 'HRK' | 'HTG' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'IQD' | 'IRR' | 'ISK' | 'JMD' | 'JOD' | 'JPY' | 'KES' | 'KGS' | 'KHR' | 'KMF' | 'KPW' | 'KRW' | 'KWD' | 'KYD' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'LSL' | 'LTC' | 'LTL' | 'LVL' | 'LYD' | 'MAD' | 'MDL' | 'MGA' | 'MKD' | 'MMK' | 'MNT' | 'MOP' | 'MRU' | 'MUR' | 'MVR' | 'MWK' | 'MXN' | 'MXV' | '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' | 'SLE' | 'SOS' | 'SRD' | 'SSP' | 'STN' | 'SVC' | 'SYP' | 'SZL' | 'THB' | 'TJS' | 'TMT' | 'TND' | 'TOP' | 'TRY' | 'TTD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'USD' | 'USN' | 'UYI' | 'UYU' | 'UYW' | 'UZS' | 'VED' | 'VEF' | 'VES' | 'VND' | 'VUV' | 'WST' | 'XAF' | 'XAG' | 'XAU' | 'XBA' | 'XBB' | 'XBC' | 'XBD' | 'XCD' | 'XDR' | 'XOF' | 'XPD' | 'XPF' | 'XPT' | 'XSU' | 'XTS' | 'XUA' | 'XXX' | 'YER' | 'ZAR' | 'ZMK' | 'ZMW' | 'ZWG' | 'ZWL'
reconciledboolean

Whether the transaction has been fully reconciled against accounting entries.

status'PENDING' | 'BOOKED'
syncboolean

Whether the transaction has been synchronized with your ERP. Use the sync filter on GET /transactions/{companyId} to fetch transactions still pending synchronization, then confirm them back with PATCH.

tagsstring[] nullable

Free-form labels attached to the transaction. Omitted from the response when the stored value is not a list of labels.

groupAmountnumber nullable

Transaction amount converted to the company group's shared currency. Only calculated when the company belongs to a group with a shared currency configured, and an exchange rate is available for the transaction date.

groupExchangeRatenumber nullable

Exchange rate applied to compute groupAmount.

groupCurrency'AED' | 'AFN' | 'ALL' | 'AMD' | 'ANG' | 'AOA' | 'ARS' | 'AUD' | 'AWG' | 'AZN' | 'BAM' | 'BBD' | 'BDT' | 'BGN' | 'BHD' | 'BIF' | 'BMD' | 'BND' | 'BOB' | 'BOV' | 'BRL' | 'BSD' | 'BTC' | 'BTN' | 'BWP' | 'BYN' | 'BZD' | 'CAD' | 'CDF' | 'CHE' | 'CHF' | 'CHW' | 'CLF' | 'CLP' | 'CNH' | 'CNY' | 'COP' | 'COU' | 'CRC' | 'CUP' | 'CVE' | 'CZK' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'EEK' | 'EGP' | 'ERN' | 'ETB' | 'ETH' | 'EUR' | 'FJD' | 'FKP' | 'GBP' | 'GEL' | 'GHS' | 'GIP' | 'GMD' | 'GNF' | 'GTQ' | 'GYD' | 'HKD' | 'HNL' | 'HRK' | 'HTG' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'IQD' | 'IRR' | 'ISK' | 'JMD' | 'JOD' | 'JPY' | 'KES' | 'KGS' | 'KHR' | 'KMF' | 'KPW' | 'KRW' | 'KWD' | 'KYD' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'LSL' | 'LTC' | 'LTL' | 'LVL' | 'LYD' | 'MAD' | 'MDL' | 'MGA' | 'MKD' | 'MMK' | 'MNT' | 'MOP' | 'MRU' | 'MUR' | 'MVR' | 'MWK' | 'MXN' | 'MXV' | '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' | 'SLE' | 'SOS' | 'SRD' | 'SSP' | 'STN' | 'SVC' | 'SYP' | 'SZL' | 'THB' | 'TJS' | 'TMT' | 'TND' | 'TOP' | 'TRY' | 'TTD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'USD' | 'USN' | 'UYI' | 'UYU' | 'UYW' | 'UZS' | 'VED' | 'VEF' | 'VES' | 'VND' | 'VUV' | 'WST' | 'XAF' | 'XAG' | 'XAU' | 'XBA' | 'XBB' | 'XBC' | 'XBD' | 'XCD' | 'XDR' | 'XOF' | 'XPD' | 'XPF' | 'XPT' | 'XSU' | 'XTS' | 'XUA' | 'XXX' | 'YER' | 'ZAR' | 'ZMK' | 'ZMW' | 'ZWG' | 'ZWL'
commentstring nullable

Free-text comment added to the transaction in Embat.

reconciliationsIdsstring[] nullable

Embat reconciliation IDs associated with this transaction, when reconciled.

type'payment' | 'debt_repayment' | 'fee' | 'tax' | 'utility' | 'social_security' | 'bulk_payment' | 'cash_withdrawal' | 'pos_withdrawal' | 'collection' | 'pos_settlement' | 'cash_settlement' | 'collection_refund' | 'bulk_collection'

Example response

{
  "balance": 15234.67,
  "concept": "Invoice #2024-001 payment",
  "amount": 1250.5,
  "accountingAmount": 1250.5,
  "exchangeRate": 1,
  "product": {
    "id": "prod_8f3a1c",
    "product": "Cuenta Corriente",
    "bankFullName": "Banco Bilbao Vizcaya Argentaria",
    "alias": "Main checking account"
  },
  "attributes": [
    {
      "customId": "cost-center",
      "value": "Marketing",
      "valueCustomId": "marketing"
    }
  ],
  "categories": [
    {
      "value": 150
    }
  ],
  "groupAmount": 1180.25,
  "groupExchangeRate": 1.06,
  "currencyExchangeData": {
    "originalAmount": 500,
    "grossAmount": 460.25,
    "fees": 3.5
  }
}