GALANTHUS / ABI FUNCTION REFERENCE
gln_get_transaction_customer_reference
Declared in <galanthus/c_api/gln_capi.h>.
GLN_API const char* GLN_CALL gln_get_transaction_customer_reference(const gln_transaction_t* in_transaction);
Purpose
Returns the customer reference when available.
Return
Returns the customer-side reference stored on the row. CAMT mapping can populate this from mandate IDs or creditor reference information when present; MT940 can populate it from transaction or structured customer reference fields. Returns NULL when the optional field is not materialized or when the input handle is NULL.
| Type | Nullability | Ownership |
|---|---|---|
const char* | nullable | borrowed |
Parameters
| Name | Direction | Type | Nullability | Ownership |
|---|---|---|---|---|
in_transaction | input | const gln_transaction_t* | nullable | borrowed |
Payment Metadata
Returns the customer-side reference stored on the row. CAMT mapping can populate this from mandate IDs or creditor reference information when present; MT940 can populate it from transaction or structured customer reference fields.
NULL means the materialized transaction row has no customer reference.
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.