Get the brand widget configuration (widget)

GET /widget/config

Headers

  • X-Popsell-Domain string Required

    The domain of the user

Responses

  • 200 application/json

    Returns the configuration

    Hide response attributes Show response attributes object
    • global object

      Additional properties are allowed.

      Hide global attributes Show global attributes object
      • signInUrl string
      • signUpUrl string
      • ambassadorProfileUrl string
      • ambassadorProfilePostUrl string
      • ambassadorPresentationUrl string
      • customContactUrl string
      • assetsFolderName string
      • redirectUrl string
      • defaultLanguage string
      • sandboxUrl string
    • community object

      Additional properties are allowed.

      Hide community attributes Show community attributes object
      • defaultGeolocation array[object]

        Additional properties are allowed.

      • locationType string
      • defaultSortBy integer
    • im object

      Additional properties are allowed.

      Hide im attribute Show im attribute object
      • chattopic integer
    • picking object

      Additional properties are allowed.

      Hide picking attributes Show picking attributes object
      • imageSelector string
      • nameSelector string
      • priceSelector string
      • skuSelector string
  • 401 application/json

    Unauthorized.

    Hide response attribute Show response attribute object
    • message string
GET /widget/config
curl \
 --request GET 'https://domain.tld/api/v2/widget/config' \
 --header "X-Popsell-Domain: example.com"
Response examples (200)
{
  "global": {
    "signInUrl": "string",
    "signUpUrl": "string",
    "ambassadorProfileUrl": "string",
    "ambassadorProfilePostUrl": "string",
    "ambassadorPresentationUrl": "string",
    "customContactUrl": "string",
    "assetsFolderName": "string",
    "redirectUrl": "string",
    "defaultLanguage": "string",
    "sandboxUrl": "string"
  },
  "community": {
    "defaultGeolocation": [
      {}
    ],
    "locationType": "string",
    "defaultSortBy": 42
  },
  "im": {
    "chattopic": 42
  },
  "picking": {
    "imageSelector": "string",
    "nameSelector": "string",
    "priceSelector": "string",
    "skuSelector": "string"
  }
}
Response examples (401)
{
  "message": "Unauthorized."
}