Skip to main content

Veritran Docs

[en] SetupPushStructure

[en] This function allows you to configure route IDs and tags to be recorded in the event logs for push notification events. You only need to configure it once, after defining the events that are automatically logged in the SetupEventRecordParameters function.

[en] Parameter Configuration

[en] This function requires the configuration of a JSON containing the route IDs and tags to be retrieved from the push message and recorded into the event log. Refer to the Input Registers section to learn more.

[en] Function ID

[en] Register

[en] Value

110

5

[en] Input Registers

[en] Register

[en] Description

[en] Mandatory

[en] Value

390

[en] JSON containing the route IDs and tags to be retrieved from the push message and recorded into the event log.

[en] If no information associated to the IDs or tags defined in the JSON is found in the push message, the expressions ID_NOT_FOUND and TAG_NOT_FOUND will be recorded into the event log respectively.

[en] Yes

[en] For example:

{
    "push_structures": [
        {
            "route_id": "reqpay.cr",
            "tag": "N_RES_VAL_CTA"
        },
        {
            "route_id": "reqreq.cr",
            "tag": "N_REQ"
        },
        {
            "route_id": "balance.cr",
            "tag": "N_QUOTA"
        }
    ]
}
[en] Output Registers

[en] Register

[en] Description

[en] Value

112

[en] Call result

000

[en] NO_ERROR

001

[en] MALFORMED_JSON