{"data":{"id":"ACP2E-4395","source":"qpt","sourceRef":"magento/quality-patches@1.1.84","title":"Giftcard API product creation will now display an error if no amounts are specified for the global scope.","categories":["Catalog/Product","Web API"],"components":["magento/module-gift-card"],"origin":"adobe-commerce-support","documentation":{"url":"https://experienceleague.adobe.com/en/docs/commerce-operations/tools/quality-patches-tool/patches-available-in-qpt/v1-1-81/acp2e-4395","path":"help/tools/quality-patches-tool/patches-available-in-qpt/v1-1-81/acp2e-4395.md","blobSha":"b1d011471649037384500dd47bdcbdaef2db37fe","description":"Gift card products can be created via API without an amount in the global scope.","stepsToReproduce":"1. Get the gift card amount attribute ID to use in the next step: GET /rest/V1/products/attributes/giftcard_amounts 1. Create a gift card product through the API with an amount only at website scope and no amount for All Websites (website_id = 0): POST /rest/V1/products { \"product\": { \"sku\": \"test-giftcard-bug\", \"name\": \"Test Gift Card\", \"attribute_set_id\": 4, \"status\": 1, \"visibility\": 4, \"type_id\": \"giftcard\", \"price\": 0, \"extension_attributes\": { \"website_ids\": [1], \"stock_item\": { \"qty\": 1000, \"is_in_stock\": true, \"manage_stock\": false, \"use_config_manage_stock\": false }, \"giftcard_amounts\": [ { \"website_id\": 1, \"value\": 50, \"attribute_id\": <attribute_id> } ] }, \"custom_attributes\": [ { \"attribute_code\": \"giftcard_type\", \"value\": \"0\" }, { \"attribute_code\": \"allow_open_amount\", \"value\": \"0\" }, { \"attribute_code\": \"is_redeemable\", \"value\": \"1\" } ] } }","introducedInQpt":"1.1.81","createdFor":["2.4.7-p8"],"documentedRange":"2.4.5 - 2.4.8-p5","scheduledFixRelease":"2.4.9"},"files":[{"package":"magento/magento2-ee-base","constraint":">=2.4.5 <2.4.9","path":"patches/commerce/ACP2E-4427_2.4.7-p8.patch","blobSha":"96593a5deb5d55bac2957247a6a6bb07c5f58a26","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/commerce/ACP2E-4427_2.4.7-p8.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-gift-card/Model/Attribute/Backend/Giftcard/Amount.php","change":"modified","package":"magento/module-gift-card"},{"path":"vendor/magento/module-gift-card/i18n/en_US.csv","change":"modified","package":"magento/module-gift-card"}],"packages":["magento/module-gift-card"],"hasTests":false,"applicableVersions":{"magento-community":[],"magento-commerce":["2.4.8-p5","2.4.8-p4","2.4.8-p3","2.4.8-p2","2.4.8-p1","2.4.8","2.4.7-p10","2.4.7-p9","2.4.7-p8","2.4.7-p7","2.4.7-p6","2.4.7-p5","2.4.7-p4","2.4.7-p3","2.4.7-p2","2.4.7-p1","2.4.7","2.4.6-p15","2.4.6-p14","2.4.6-p13","2.4.6-p12","2.4.6-p11","2.4.6-p10","2.4.6-p9","2.4.6-p8","2.4.6-p7","2.4.6-p6","2.4.6-p5","2.4.6-p4","2.4.6-p3","2.4.6-p2","2.4.6-p1","2.4.6","2.4.5-p17","2.4.5-p16","2.4.5-p15","2.4.5-p14","2.4.5-p13","2.4.5-p12","2.4.5-p11","2.4.5-p10","2.4.5-p9","2.4.5-p8","2.4.5-p7","2.4.5-p6","2.4.5-p5","2.4.5-p4","2.4.5-p3","2.4.5-p2","2.4.5-p1","2.4.5"],"mage-os":[]},"unknownVersions":[],"requires":[],"replacedWith":null,"deprecated":false}],"applicableVersions":{"magento-community":[],"magento-commerce":["2.4.8-p5","2.4.8-p4","2.4.8-p3","2.4.8-p2","2.4.8-p1","2.4.8","2.4.7-p10","2.4.7-p9","2.4.7-p8","2.4.7-p7","2.4.7-p6","2.4.7-p5","2.4.7-p4","2.4.7-p3","2.4.7-p2","2.4.7-p1","2.4.7","2.4.6-p15","2.4.6-p14","2.4.6-p13","2.4.6-p12","2.4.6-p11","2.4.6-p10","2.4.6-p9","2.4.6-p8","2.4.6-p7","2.4.6-p6","2.4.6-p5","2.4.6-p4","2.4.6-p3","2.4.6-p2","2.4.6-p1","2.4.6","2.4.5-p17","2.4.5-p16","2.4.5-p15","2.4.5-p14","2.4.5-p13","2.4.5-p12","2.4.5-p11","2.4.5-p10","2.4.5-p9","2.4.5-p8","2.4.5-p7","2.4.5-p6","2.4.5-p5","2.4.5-p4","2.4.5-p3","2.4.5-p2","2.4.5-p1","2.4.5"],"mage-os":[]},"conditions":null,"requirements":null},"_documentation":"https://magento.watch/api","_description":"Quality patch ACP2E-4395 details"}