curl -X POST '{backend_url}/admin/promotions/{id}/rules/batch' \
-H 'Authorization: Bearer {jwt_token}'{
"created": [
{
"id": "<string>",
"values": [
"cusgroup_123"
],
"description": "<string>",
"attribute": "customer_group_id",
"operator": "gt"
}
],
"updated": [
{
"id": "<string>",
"values": [
"cusgroup_123"
],
"description": "<string>",
"attribute": "customer_group_id",
"operator": "gt"
}
],
"deleted": {
"ids": [
"<string>"
],
"object": "promotion-rule",
"deleted": true
}
}Manage the rules of a promotion to create, update, or delete them.
curl -X POST '{backend_url}/admin/promotions/{id}/rules/batch' \
-H 'Authorization: Bearer {jwt_token}'{
"created": [
{
"id": "<string>",
"values": [
"cusgroup_123"
],
"description": "<string>",
"attribute": "customer_group_id",
"operator": "gt"
}
],
"updated": [
{
"id": "<string>",
"values": [
"cusgroup_123"
],
"description": "<string>",
"attribute": "customer_group_id",
"operator": "gt"
}
],
"deleted": {
"ids": [
"<string>"
],
"object": "promotion-rule",
"deleted": true
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The promotion's ID.
The promotion's type.
standard, buyget The promotion's application method type.
fixed, percentage The promotion's application method target type.
items, shipping_methods, order