Skip to main content

Post a Transaction

This functionality allows to execute financial transactions based on predefined parameters and templates. The specific transaction being posted here is based on a deposit template, which facilitates adding funds to a user's account.

Process

Variables

  • Transaction ID: Each transaction is uniquely identified by a transactionId, ensuring that each transaction can be tracked individually and is distinct.
  • Template Code: The txTemplateCode specifies the template to use for the transaction, in this case, a deposit. This ensures that the transaction adheres to predefined rules and parameters for deposits.
  • Parameters: The params specify the particular details for the transaction, such as the account to which the deposit is made, the amount of the deposit, and the effective date of the transaction. These details are crucial for the accurate execution of the transaction according to the user’s needs and timing requirements.
{}

GraphQL Request Body

The transactionPost mutation is called with the inputs below. This mutation processes the transaction based on the provided template and parameters.


The system validates the input data against the specified template, calculates any necessary values or triggers other business logic as defined by the template, and logs the transaction in the appropriate accounts.

Response

Upon successful processing of the mutation, the system returns the transaction ID and a correlation ID. The correlation ID can be used to track the transaction through other systems or logs for auditing or debugging purposes. This ensures traceability and accountability of the transaction.

{}

Significance

Posting transactions in a controlled and templated manner reduces errors and ensures consistency in transaction handling. It allows financial institutions or businesses to handle financial transactions systematically, providing clarity and reliability in financial operations. This process is particularly important in environments where accuracy and consistency in financial transactions are critical for compliance and operational integrity.