Get All Discount Rebate List

Retrieves a list of flash sale discounts available for a shop.

🔒

Requires price_rules access scope. More access scope

The Discount Rebate List API retrieves a list of discount rebates available for a shop. This enables users to manage and view rebate details for promotions and campaigns.

This API is especially useful for:

  1. Viewing available discount rebates in the store.
  2. Managing rebate campaigns for customers.
  3. Fetching rebate details with optional URL links for each campaign.

Request Parameters

Public Request Parameters

📘

Query Parameters

ParameterTypeRequiredDescriptionExample
cursorstringNoCursor for pagination, use the cursor from the response to retrieve the next pagecursor_123456
page_sizeint32NoA limit on the number of objects to be returned. Ranges from 1 to 250. Default is 1020
need_detail_urlbooleanNoIf true, returns detail URLs in the responsetrue

Response Explanation

Public Response Parameters

📘

Successful Response

ParameterTypeExampleDescription
codestring200Error code (200 indicates success)
messagestringSuccessError message
dataobject{...}Contains the price rules data
data.rebatesarray of objects[ {...}, {...} ]List of rebate promotion objects
data.cursorstringcursor_123456Cursor for pagination
data.has_morebooleantrueIndicates if there are more results available

Rebate Promotion Object Structure

ParameterTypeExampleDescription
idstringrb_123456Unique identifier of the rebate promotion
titlestringSummer Rebate ProgramName of the rebate promotion
discount_typestringpercentageType of discount (percentage, fixed_amount)
valuefloat10.0Discount value amount
value_typestringpercentageType of discount value (percentage, fixed_amount)
starts_atstring2023-06-01T00:00:00ZStart date and time (ISO 8601 format)
ends_atstring2023-06-30T23:59:59ZEnd date and time (ISO 8601 format)
statusstringactiveCurrent status of the promotion
usage_limitint32100Maximum number of times the promotion can be used
times_usedint3245Number of times the promotion has been used
once_per_customerint321Whether limited to once per customer (1=yes, 0=no)
allocation_methodstringeachHow discounts are allocated (each, across)
allocation_limitint321Limit of discount allocation
allocation_limit_amountfloat5.0Maximum amount for allocation limit
customer_selectionstringallCustomer selection method (all, prism, explicit)
target_selectionstringallTarget selection method (all, prism, explicit)
target_typestringline_itemType of target (line_item, shipping_line)
target_price_typestringoriginalPrice type target (original, current)
product_numint3242Number of products included
progressstring50%Current participation progress
sortstringprioritySorting priority
prerequisiteint320Prerequisite condition flag
prerequisite_customer_idsarray of strings["cust_123", "cust_456"]List of prerequisite customer IDs
prerequisite_customer_segment_idsarray of strings["seg_123", "seg_456"]List of prerequisite customer segment IDs
prerequisite_customer_rangestringnewCustomer range for prerequisite
prerequisite_quantity_rangearray of objects[ {...} ]Prerequisite quantity range conditions
prerequisite_subtotal_rangearray of objects[ {...} ]Prerequisite subtotal range conditions
prerequisite_threshold_quantity_rangestring5Threshold quantity range
prerequisite_threshold_subtotal_rangestring100.0Threshold subtotal range
entitled_product_idsarray of strings["prod_123", "prod_456"]List of entitled product IDs
entitled_variant_idsarray of strings["var_123", "var_456"]List of entitled variant IDs
entitled_collection_idsarray of strings["coll_123", "coll_456"]List of entitled collection IDs
entitled_filter_idsarray of strings["flt_123", "flt_456"]List of entitled filter IDs
entitled_filter_listarray of strings["filter1", "filter2"]List of entitled filter list items
entitled_area_listarray of strings["area1", "area2"]List of entitled area list items
variant_product_idsarray of strings["prod_123", "prod_456"]List of variant product IDs
global_show_textstringSummer SpecialGlobal display text
popups_idstringpopup_123Associated popup ID
popups_settingstring{"color":"red"}Popup settings in JSON format
discount_channel_listarray of objects[ {...} ]List of discount channels
entitled_extra_listarray of objects[ {...} ]List of entitled extra items

Prerequisite Quantity Range Object Structure

ParameterTypeExampleDescription
greater_than_or_equal_tostring5Minimum quantity
valuestring5Quantity value
value_percentagestring10.0Quantity percentage value
value_event_typestringpurchaseEvent type for quantity
value_conditionstringgreater_thanCondition for quantity comparison
target_typestringline_itemTarget type for quantity
target_dataarray of strings["prod_123"]Target data for quantity

Prerequisite Subtotal Range Object Structure

ParameterTypeExampleDescription
greater_than_or_equal_tostring100.0Minimum subtotal amount
valuestring100.0Subtotal value
value_percentagestring10.0Subtotal percentage value
value_event_typestringpurchaseEvent type for value
value_conditionstringgreater_thanCondition for value comparison
target_typestringline_itemTarget type for value
target_dataarray of strings

Error Response

FieldTypeExampleDescription
codestringInvalidParameterError http message
messagestring``Error message

API Structure Overview

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