Skip to main content
GET
/
management
/
v1
/
projects
/
{projectId}
/
stacking-rules
List Stacking Rules
curl --request GET \
  --url https://{cluster}.voucherify.io/management/v1/projects/{projectId}/stacking-rules \
  --header 'X-Management-Id: <api-key>' \
  --header 'X-Management-Token: <api-key>'
{
  "object": "list",
  "data_ref": "data",
  "data": [
    {
      "id": "stk_0d6264108617006147",
      "exclusive_categories": [
        "cat_0d75bdfe4c9030a732",
        "cat_0d74559c3e9030da13",
        "cat_0d7455f93c1030da4a"
      ],
      "joint_categories": [
        "cat_0d507a4d6e8a1b7b97"
      ],
      "redeemables_limit": 29,
      "applicable_redeemables_limit": 28,
      "applicable_redeemables_per_category_limit": 27,
      "applicable_exclusive_redeemables_limit": 4,
      "applicable_exclusive_redeemables_per_category_limit": 3,
      "discount_calculation_mode": "DISCOUNTED_AMOUNT",
      "initial_amount_mode_categories": [
        "cat_0d75bdfe4c9030a732",
        "cat_0d74559c3e9030da13"
      ],
      "discounted_amount_mode_categories": [
        "cat_0d7455f93c1030da4a"
      ],
      "redeemables_application_mode": "PARTIAL",
      "redeemables_sorting_rule": "CATEGORY_HIERARCHY",
      "created_at": "2023-08-17T08:33:19.399Z",
      "updated_at": "2024-04-16T10:38:27.028Z"
    }
  ],
  "total": 1
}

Authorizations

X-Management-Id
string
header
required
X-Management-Token
string
header
required

Path Parameters

projectId
string
required

Provide the unique identifier of the project.

Example:

"proj_TrlkLiH4"

Response

Returns the details about the stacking rules assigned to the project. These can be either the default stacking rules or the created ones.

Response body schema for GET /management/v1/projects/{projectId}/stacking-rules.

object
enum<string>
default:list
required

The type of the object represented by JSON. This object stores information about the stacking rules in a dictionary.

Available options:
list
data_ref
enum<string>
default:data
required

Identifies the name of the attribute that contains the array of stacking rule objects.

Available options:
data
data
object[]
required

Array of only one stacking rule object.

total
integer
required

The total number of stacking rule objects. It is always 1.

I