Skip to content

Get CSS hierarchy

/get_css_hierarchy

Target audience: Developers

Release version: 4.5.6

Get CSS hierarchy

Introduction

This endpoint returns a CSS hierarchy, which will allow you to fetch the CSS set as default, on a marketplace group, and optionally on a specified marketplace at the same time.

URI

Environment URI
Stage https://payway-api.stage.adeprimo.se/external/api/v5/marketing/get_css_hierarchy
Production https://backend.worldoftulo.com/external/api/v5/marketing/get_css_hierarchy

Requirements

Feature needs to be enabled by Adeprimo. Please contact support to enable.

Identity Scope
No /external/marketing/r

Parameters

Name Required Type Description
group Yes String The marketplace group we should fetch the CSS hierarchy for.
key No String The specific marketplace key we should fetch the CSS hierarchy for. If none is specified, we will only include the default CSS as well as the CSS set on the marketplace group.

Curl Example

curl --request GET \
  --url https://payway-api.stage.adeprimo.se/external/api/v5/marketing/get_css_hierarchy?group=AB&key=AB \
  --header 'accept: application/json' \
  --header 'authorization: Bearer <access_token>'

Response

HTTP 200
{
  "item": {
    "default": ".myDefaultCss { }",
    "group": ".myGroupCss { }",
    "marketplace": null,
    "combined": ".myDefaultCss { } .myGroupCss { }"
  }
}

Errors

This API uses the common error conventions of the Payway API

See common error responses