Discount Rebate List

🔒

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

📘

Public Request Parameters

Quert Parameters

NameTypeDescriptionExampleRequired/Optional
limitint32Limit count per page20Optional
pageint32Page number1Optional
need_detail_urlbooleanWhether to include detail URLstrueOptional

Response Explanation

Public Response Parameters

📘

Public Response Parameters

Success Response

NameTypeExampleDescription
pageint321Current page number
limitint3220Number of items per page
totalint321Total number of discount rebates
dataarray-Array of discount rebate details
data[].idstring47d2a827-e914-49e0-a14c-3161edb1ae9eUnique ID of the rebate
data[].titlestringtzt-满减活动-吸引客户购买更多Title of the rebate
data[].progressstringongoingCurrent progress of the rebate
data[].discount_typestringfixed_amountType of discount applied
data[].valuestring0Value of the discount
data[].value_typestringfixed_amountValue type of the discount
data[].starts_atstring1682652084Start time of the rebate
data[].ends_atstring-1End time of the rebate
data[].prerequisite_subtotal_rangearray-Subtotal range requirements
data[].prerequisite_subtotal_range[].greater_than_or_equal_tostring123Minimum subtotal for eligibility
data[].prerequisite_subtotal_range[].value_conditionstringless_than_or_equal_toCondition for the subtotal value
data[].allocation_methodstringacrossAllocation method of the rebate
data[].customer_selectionstringallCustomer eligibility for the rebate
data[].statusstring1Status of the rebate
data[].detail_urlstringtzt.myshoplaza.com/promotions/rebate/47d2a827-e914-49e0-a14c-3161edb1ae9eURL for detailed rebate information (if requested)

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!