Metadata Model
This model represents all the required data for displaying data on the SensePass Dashboard backoffice.
You must use this structure:
1
// metadata must be an array of objects with key-value pairs
2
"metadata": [
3
{
4
// mandatory static key-value - do not change this
5
"key": "genericDisplay",
6
// array of your sections
7
"value": [
8
{
9
// your title for the section
10
"sectionLabel": "Hello world",
11
"values": [
12
{
13
"label": "Foo",
14
"value": "Bar"
15
},
16
...// the rest of the label-value object pairs
17
]
18
},
19
...// the rest of the sectionLabel-values object pairs
20
]
21
}
22
]
field | type | description |
---|---|---|
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 modified 25d ago