Widget configuration: Update
Request
PATCH https://api.univapay.com/stores/{storeId}/widget_configuration
Parameters:
Fields | |
---|---|
colors.main_background | string (HexColor) The color to use for the area that contains the forms. Defaults to #fafafa |
colors.main_color | string (HexColor) The background color to use for the header and bottom button. Defaults to #fafafa |
colors.main_text | string (HexColor) The text color for the header and bottom button. Defaults to #838383 |
colors.primary_text | string (HexColor) The text color for the widget’s title (by default, the store’s name). Defaults to #fafafa |
colors.secondary_background | string (HexColor) The background color for the area containing the logo and title. Defaults to #ee7a00 |
colors.secondary_text | string (HexColor) The color for the explanatory text (if present) below the widget’s title. Defaults to #222222 |
colors.base_text | string (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"
}
}