# Metadata Model

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

{% hint style="info" %}
You must use this structure:&#x20;

{% code lineNumbers="true" %}

```json
// 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
        ]
    }
]
```

{% endcode %}
{% endhint %}

### Metadata Model

This model is referenced in "metadata" parameter of [#creating-new-transaction](https://docs.sensepass.com/sensepay/payment-flows/create-a-transaction#creating-new-transaction "mention") request body

<table><thead><tr><th width="212.9871382636656">field</th><th width="111.16318436735071">type</th><th width="384.2">description</th></tr></thead><tbody><tr><td>metadata</td><td>array</td><td>must contain array of key-value pairs</td></tr><tr><td>metadata[0].key</td><td>string</td><td>must be <code>genericDisplay</code></td></tr><tr><td>metadata[0].value</td><td>array</td><td>must be array or <code>sectionLabel</code>-<code>values</code> pairs</td></tr><tr><td>metadata[0].value[0].sectionLabel</td><td>string</td><td>title to display in the SensePass dashboard's transaction information</td></tr><tr><td>metadata[0].value[0].values</td><td>array</td><td>must be array of <code>label</code>-<code>value</code> pairs.<br>example: <code>{"label": "foo", "value": "bar"}</code> </td></tr></tbody></table>
