function getCustomCoupons(){ var coupon_ids_js = document.getElementById("coupon-id-lists").textContent; if(null){ return Promise.all([fetch('/api/discount-coupon/coupons?ids[]=253394633814451942&ids[]=253395342047848166&ids[]=253396092752766694&ids[]=253396510698383078&ids[]=253397011632498406&ids[]=253397495919421158&ids[]=253397886358791910'),fetch('/api/discount-coupon/coupons/received/count',{ method: 'POST', credentials: 'same-origin', body: coupon_ids_js })]).then((res) => { return Promise.all([res[0].json(),res[1].json()]) }).then((data) => { return data; }); }else{ return Promise.all([fetch('/api/discount-coupon/coupons?ids[]=253394633814451942&ids[]=253395342047848166&ids[]=253396092752766694&ids[]=253396510698383078&ids[]=253397011632498406&ids[]=253397495919421158&ids[]=253397886358791910')]).then((res) => { return Promise.all([res[0].json()]) }).then((data) => { return data; }); } } exportFunction('getCustomCoupons',getCustomCoupons);
Registrieren oder anmelden, um Gutscheine zu erhalten.
Verwenden Sie den Gutschein an der Kasse.