Metadata Model

This model represents all the required data for displaying data on the SensePass Dashboard backoffice.

You must use this structure:

// metadata must be an array of objects with key-value pairs
"metadata": [
    {
        // mandatory static key-value - do not change this
        "key": "genericDisplay",
        // array of your sections
        "value": [
            {
                // your title for the section
                "sectionLabel": "Hello world",
                "values": [
                    {
                        "label": "Foo",
                        "value": "Bar"
                    },
                    ...// the rest of the label-value object pairs
                ]
            },
            ...// the rest of the sectionLabel-values object pairs
        ]
    }
]

Metadata Model

This model is referenced in "metadata" parameter of #creating-new-transaction request body

fieldtypedescription

metadata

array

must contain array of key-value pairs

metadata[0].key

string

must be genericDisplay

metadata[0].value

array

must be array or sectionLabel-values pairs

metadata[0].value[0].sectionLabel

string

title to display in the SensePass dashboard's transaction information

metadata[0].value[0].values

array

must be array of label-value pairs. example: {"label": "foo", "value": "bar"}

Last updated