Create Promotion
POST
/admin/promotions
Promotions
Request Request Example
JavaScript
Shell
Java
Swift
curl --location -g --request POST '{{BASE_URL}}/admin/promotions' \
--header 'Content-Type: application/json' \
--data-raw '{
"code": "string",
"is_automatic": true,
"campaign_id": "string",
"type": "standard",
"campaign": {
"name": "string",
"campaign_identifier": "string",
"description": "string",
"starts_at": "2019-08-24T14:15:22Z",
"ends_at": "2019-08-24T14:15:22Z",
"budget": {
"limit": 0,
"currency_code": "string",
"type": "spend"
}
},
"rules": [
{
"description": "string",
"attribute": "items.product.id",
"operator": "gte",
"values": "prod_123"
}
],
"application_method": {
"description": "string",
"value": 0,
"currency_code": "string",
"max_quantity": 0,
"apply_to_quantity": 0,
"buy_rules_min_quantity": 0,
"type": "fixed",
"target_type": "order",
"allocation": "each",
"target_rules": [
{
"description": "string",
"attribute": "items.product.id",
"operator": "gte",
"values": "prod_123"
}
],
"buy_rules": [
{
"description": "string",
"attribute": "items.product.id",
"operator": "gte",
"values": "prod_123"
}
]
},
"additional_data": {}
}'
Response Response Example
200 - Example 1
{
"promotion": {
"application_method": {
"promotion": {},
"target_rules": [
{
"id": "string",
"description": "string",
"attribute": "customer_group_id",
"operator": "gt",
"values": [
"cusgroup_123"
]
}
],
"buy_rules": [
{
"id": "string",
"description": "string",
"attribute": "customer_group_id",
"operator": "gt",
"values": [
"cusgroup_123"
]
}
],
"id": "string",
"value": 0,
"currency_code": "usd",
"max_quantity": 0,
"buy_rules_min_quantity": 0,
"apply_to_quantity": 0,
"type": "fixed",
"target_type": "items",
"allocation": "each"
},
"campaign": {
"id": "string",
"name": "string",
"description": "string",
"currency": "string",
"campaign_identifier": "string",
"starts_at": "string",
"ends_at": "string",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z",
"budget": {
"id": "string",
"currency_code": "string",
"limit": 0,
"used": 0,
"type": "spend"
}
},
"rules": [
{
"id": "string",
"description": "string",
"attribute": "customer_group_id",
"operator": "gt",
"values": [
"cusgroup_123"
]
}
],
"id": "string",
"code": "OFF50",
"is_automatic": true,
"campaign_id": "string",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z",
"type": "standard",
"status": "draft"
}
}
Request
Query Params
fields
stringÂ
fields
+
it will be added to the default fields, using -
will remove it from the default fields. without prefix it will replace the entire default fields.Body Params application/json
Responses
Modified at 2025-06-17 04:10:32