List the Custom Order Variables

 

List the Custom Order Variables

In order to list the Custom Order Variables configuration, you can query the following API endpoint:
http://apirest.atinternet-solutions.com/config/v1/bi/attributes?keys={siteid:999999}&filter={dimensiontechnicallabel:cr_o}

The API will return the following array:

The TechnicalLabel field provides you with the value you should use in the columns parameter of the getData method.

Please note that the API may also return extra attributes (such as “Detail”, “Metadata”, “Format”, etc.), that can be ignored.

 

Filter on specific dates

As it’s possible to delete and create custom variable, the API allows you to filter on the dates, should you need to show only the active custom variables on a given period:
http://apirest.atinternet-solutions.com/config/v1/bi/attributes?keys={siteid:999999}&filter={dimensiontechnicallabel:cr_o}&start=2018-01-01T00:00&end=2018-01-05T23:59

The dates should match the the ISO 8601 format.

 

Was this post helpful?
Yes
No
Last update: 22/02/2018