Sylius/tests/Api/Responses/admin/promotion/put_promotion_response.json
2024-07-25 08:22:46 +02:00

58 lines
1.5 KiB
JSON

{
"@context": "\/api\/v2\/contexts\/Promotion",
"@id": "\/api\/v2\/admin\/promotions\/50_off",
"@type": "Promotion",
"channels": [
"\/api\/v2\/admin\/channels\/MOBILE"
],
"id": "@integer@",
"code": "50_off",
"name": "Christmas",
"description": "Get 50% off of your first purchase",
"priority": 1,
"exclusive": true,
"usageLimit": 11,
"used": 0,
"archivedAt": null,
"startsAt": null,
"endsAt": null,
"couponBased": false,
"coupons": [],
"rules": [
{
"@id": "\/api\/v2\/admin\/promotions\/50_off\/rules\/@integer@",
"@type": "PromotionRule",
"id": "@integer@",
"type": "cart_quantity",
"configuration": {
"count": 1
}
}
],
"actions": [
{
"@id": "\/api\/v2\/admin\/promotions\/50_off\/actions\/@integer@",
"@type": "PromotionAction",
"id": "@integer@",
"type": "order_fixed_discount",
"configuration": {
"WEB": {
"amount": 2
},
"MOBILE": {
"amount": 2
}
}
}
],
"appliesToDiscounted": true,
"createdAt": "@date@",
"updatedAt": "@date@",
"translations": {
"en_US": {
"@id": "\/api\/v2\/admin\/promotions\/50_off\/translations\/en_US",
"@type": "PromotionTranslation",
"label": "Christmas"
}
}
}