[Unit] Adjust promotion updating response

This commit is contained in:
Rafikooo 2024-07-22 22:04:00 +02:00 committed by Kamil Grygierzec
parent bf7ff2c20c
commit abcac1a672
No known key found for this signature in database
GPG key ID: 7F54EE42DAD4B9E9
2 changed files with 4 additions and 6 deletions

View file

@ -20,7 +20,7 @@
"coupons": [],
"rules": [
{
"@id": "\/api\/v2\/admin\/promotion-rules\/@integer@",
"@id": "\/api\/v2\/admin\/promotions\/50_off\/rules\/@integer@",
"@type": "PromotionRule",
"id": "@integer@",
"type": "cart_quantity",
@ -31,7 +31,7 @@
],
"actions": [
{
"@id": "\/api\/v2\/admin\/promotion-actions\/@integer@",
"@id": "\/api\/v2\/admin\/promotions\/50_off\/actions\/@integer@",
"@type": "PromotionAction",
"id": "@integer@",
"type": "order_fixed_discount",
@ -50,9 +50,8 @@
"updatedAt": "@date@",
"translations": {
"en_US": {
"@id": "\/api\/v2\/admin\/promotion-translations\/@integer@",
"@id": "\/api\/v2\/admin\/promotions\/50_off\/translations\/en_US",
"@type": "PromotionTranslation",
"id": "@integer@",
"label": "Christmas"
}
}

View file

@ -25,9 +25,8 @@
"updatedAt": "@date@",
"translations": {
"en_US": {
"@id": "\/api\/v2\/admin\/promotion-translations\/@integer@",
"@id": "\/api\/v2\/admin\/promotions\/50_off\/translations\/en_US",
"@type": "PromotionTranslation",
"id": "@integer@",
"label": "-50% on first order!"
}
}