Ledgera
ledgera.io
  • Introduction
  • Documentation Structure
  • CORE
    • Currencies
    • Balances
      • Balance Creation
      • Balance Query
      • Bulk Balance Query
      • Balance Statements Query
    • Transactions
      • Transaction Creation
      • Transaction Query
      • Entries
  • SETUP
    • Account Rules
    • Chart of Accounts
    • Execution Rules
    • Authorization Rules
    • Billing Plan
      • Custom Entries
  • REGISTER
    • Accounts
      • Account Creation
      • Account Updates
      • Account Query
        • Account Balance Query
        • Account Bulk Balance Query
        • Account Statements Query
  • OPERATION
    • Execution
    • Authorization / Confirmation
    • Split
    • Balance Sheet
  • REPORT
    • Request a report
    • Report Query
  • MULTI-TENANCY
    • Tenant Query
Powered by GitBook
On this page
  1. OPERATION

Execution

Last updated 1 year ago

Was this helpful?

CtrlK

Was this helpful?

To perform a transaction that will follow the accounting movements mapped in the Execution Rules, the POST /execution method must be used.

The user must inform the parameters:

Parameter
Description

The ID of the account used as parameter 2 of the transaction. Not mandatory

settled_at

The date for the transaction to be accounted in further reports. If this parameter is not informed, the system will consider the date when the transaction was created.

external_id

User value set for later conciliation

Example of execution creation:

Response Example:

transaction_type

The type of the transaction, as mapped in the Execution Rules

currency

The currency of the transaction

amount

The main amount of the transaction

param_account_1

The ID of the account used as parameter 1 of the transaction. Not mandatory

param_account_2

{
  "id": "96296a5c-0cf4-4025-dbc4-1a53f0a3afc6"
}
POST /execution

{
  "transaction_type": "pix_out",
  "currency": "brl",
  "amount": 10000,
  "param_account_1": "2874d9c5-e919-8715-b3eb-4ee3440a2fe3",
  
"param_account_2"
:
"bb2b0e40-2308-5330-bb6a-6de434493f0e"
,
"settled_at": "2023-06-01",
"external_id": "our id 1234",
"custom_entries": [
{
"entry_type": "pix_out_fee",
"decimals": 2,
"amount_type": "value",
"amount": 250
}
],
"metadata": {
"key": "value"
}
}