Widget configuration: Update

Request

PATCH https://api.univapay.com/stores/{storeId}/widget_configuration

Parameters:

Fields
colors.main_backgroundstring (HexColor)
The color to use for the area that contains the forms. Defaults to #fafafa
colors.main_colorstring (HexColor)
The background color to use for the header and bottom button. Defaults to #fafafa
colors.main_textstring (HexColor)
The text color for the header and bottom button. Defaults to #838383
colors.primary_textstring (HexColor)
The text color for the widget’s title (by default, the store’s name). Defaults to #fafafa
colors.secondary_backgroundstring (HexColor)
The background color for the area containing the logo and title. Defaults to #ee7a00
colors.secondary_textstring (HexColor)
The color for the explanatory text (if present) below the widget’s title. Defaults to #222222
colors.base_textstring (HexColor)
The color to use for any text not covered by the above colors. Defaults to #000000

Headers:

Authorization: Bearer {secret}.{jwt}

Body:

curl --request PATCH \
--url https://api.univapay.com/stores/5820d348-15d1-11e7-8e4b-27dd220b033f/widget_configuration \
--header 'Authorization: Bearer {secret}.{jwt}'
--data '{ "colors": { "main_background": "#d9e3f0" } }'

Response

Code: 200

Headers:

Content-Type: application/json

Body:

{
  "colors": {
    "main_background": "#d9e3f0",
    "secondary_background": "#d9e3f0",
    "main_color": "#ff8a65",
    "main_text": "#37d67a",
    "primary_text": "#37d67a",
    "secondary_text": "#37d67a",
    "base_text": "#37d67a"
  }
}