Skip to content

Declared in <galanthus/c_api/gln_capi.h>.

GLN_API const char* GLN_CALL gln_get_transaction_amount(const gln_transaction_t* in_transaction);
  • Family: Row field accessors
  • Return type: const char*

Purpose

Returns the transaction amount as a decimal string when available.

Return

Returns the transaction amount as a borrowed decimal string. The currency is exposed separately by gln_get_transaction_currency. Returns NULL when the optional field is not materialized or when the input handle is NULL.

TypeNullabilityOwnership
const char*nullableborrowed

Parameters

NameDirectionTypeNullabilityOwnership
in_transactioninputconst gln_transaction_t*nullableborrowed

Amount Semantics

Returns the transaction amount as a borrowed decimal string. The currency is exposed separately by gln_get_transaction_currency.

MT940, CAMT, and FinTS 4.1 parsers mark debit direction with a leading - when the source supplies debit/credit direction. Revolut and Wise rows expose the signed amount produced by their plugin mapping.

Notes

Passing NULL for in_transaction is allowed and returns NULL.

NULL means the provider did not supply this optional field for the row.

The returned pointer is borrowed from the owning backend result envelope and becomes invalid when that envelope is destroyed.

See Also