Popup List

🔒

Requires price_rules access scope. More access scope

Popups are larger, more prominent notification windows used for advertising promotions.

The Popup List API retrieves a list of popups available for a shop. This enables users to manage and view the popup list for targeted marketing campaigns.

This API is especially useful for:

  1. Viewing popups configured in the shop.
  2. Managing active and scheduled popup campaigns.
  3. Reviewing popup details such as conditions, settings, and themes.

Request Parameters

Public Request Parameters

📘

Public Request Parameters

Query Parameters

NameTypeDescriptionRequired/OptionalExample
pageint32Page numberOptional1
limitint32Limit count per pageOptional8

Response Explanation

Public Response Parameters

📘

Public Response Parameters

Success Response

NameTypeDescriptionExample
pageint32The current page number1
limitint32The number of items per page8
totalint32Total number of popups available1
dataarrayArray of popup details-
data[].idstringUnique ID of the popup4b8395bb-09a0-4bb1-84c9-749375d9562b
data[].namestringName of the popuptzt
data[].themestringTheme associated with the popuptemplate_rebate_1
data[].progressstringProgress status of the popupongoing
data[].typestringType of the popuppopups
data[].activity_idstringActivity ID associated with the popup47d2a827-e914-49e0-a14c-3161edb1ae9e
data[].statusstringStatus of the popup1
data[].activity_detail.idstringActivity detail ID47d2a827-e914-49e0-a14c-3161edb1ae9e
data[].activity_detail.titlestringTitle of the activity associated with the popuptzt
data[].activity_detail.price_rule_idstringPrice rule ID1d5c3eba-ac32-49a5-8961-b5b705e61db1
data[].activity_detail.discount_typestringType of discount appliedfixed_amount
data[].activity_detail.starts_attimestampStart time of the activity1682652084
data[].activity_detail.ends_attimestampEnd time of the activity-1
data[].activity_detail.statusstringStatus of the activity1
data[].activity_detail.allocation_methodstringAllocation method of the discountacross

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!