Get Salespop Config

🔒

Requires price_rules access scope. More access scope

The Get Salespop Config API retrieves the configuration details of the Salespop feature for a specific store. This allows users to view and manage settings for the Salespop functionality.

This API is especially useful for:

  1. Reviewing Salespop display settings.
  2. Customizing Salespop templates and behavior.
  3. Managing the active pages and scheduling for Salespop displays.

Request Parameters

Public Request Parameters

📘

Public Request Parameters

Response Explanation

Public Response Parameters

📘

Public Response Parameters

Success Response

NameTypeDescriptionExample
idstringUnique identifier of the Salespop configuration.d4a19441-664b-4dd6-986f-a549e81b034f
store_idstringID of the store associated with this Salespop configuration.1965351
template_configobjectObject containing template configuration details.{...}
template_config.background_colorstringBackground color of the Salespop notification.rgba(243,106,106,0.49)
template_config.templatestringTemplate type for the Salespop.template1
template_config.titlestringTitle text for the Salespop, with placeholders for dynamic values.{Buyer's Name} in {City, Country} purchased
template_config.replace_switchbooleanWhether to replace placeholders with anonymity details when enabled.false
template_config.default_timestringDefault time duration for the Salespop.24
template_config.time_textstringText for the time displayed on the Salespop.Recently
template_config.anonymity_namearrayArray of names used for anonymity if enabled.["Someone"]
template_config.anonymity_addressarrayArray of addresses used for anonymity if enabled.["Somewhere"]
template_config.anonymity_switchbooleanWhether to enable anonymity for names and addresses.false
template_config.title_colorstringColor for the Salespop title text.rgba(255, 255, 255, 0.8)
template_config.product_colorstringColor for the product name text.rgba(255, 255, 255, 1)
template_config.time_colorstringColor for the time text.rgba(255, 255, 255, 0.8)
template_config.icon_colorstringColor for the icon displayed on the Salespop.rgba(249,168,2,1)
template_config.m_background_colorstringMobile-specific background color for the Salespop.rgba(0,0,0,0.8)
first_delaystringDelay before the first Salespop is displayed, in seconds.3
durationstringDuration each Salespop is displayed, in seconds.5
intervalstringInterval between consecutive Salespops, in seconds.10
times_switchstringStatus of the times switch, determining max display times.open
max_timesstringMaximum number of times a Salespop can be displayed.10
loop_switchstringStatus of the loop switch, determining continuous display.open
locatestringLocation where the Salespop is displayed.left_down
pagesstringComma-separated IDs of pages where the Salespop is active.1,36,37,38
specify_pagesarrayArray of specific pages where the Salespop is active.[]
order_statusstringOrder statuses included in Salespop displays.all
timestringTime duration for order history inclusion in Salespops.1
time_unitstringUnit of time for time field.day
statusstringStatus of the Salespop configuration (open or close).open
created_atstringTimestamp when the Salespop configuration was created.2024-11-17 22:53:47
updated_atstringTimestamp when the Salespop configuration was last updated.2024-11-17 22:53:47
pages_listarrayArray of objects providing details about pages where Salespops are active.[{...}]
pages_list.idintUnique ID of the page.15
pages_list.namestringName of the page.首页
pages_list.scriptstringScript type of the page.index

Error Response

Error responses in the API can be represented using two different fields: errors and error. Both fields provide details about issues encountered during request processing. Below is an explanation of the fields with their respective examples and descriptions.

FieldTypeExampleDescription
errorsArray[ "invalid line_item id"]A list of errors encountered during the request processing.
FieldTypeExampleDescription
errorString "store is not active"Indicates an error encountered during the process

Error Detail

Status CodeMessagePossible ReasonExample Response
400Bad RequestInvalid input format or request structure (e.g., missing required fields or incorrect data types).Bad Request
UnauthorizedThe request is missing valid authentication credentials or the credentials provided are invalid.Unauthorized

API Structure Overview

Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!