Gutscheine
Gutschein aktualisieren
Aktualisiert Gültigkeit, Rabatt und Berechtigung.
PATCH
/coupons/{id}coupons:writeAnfrage
idstring · pathRessourcenbezeichner.obligatorischmarketplacestring · bodyMarktplatz.optionalcodestring · bodyGutscheincode.optionaldescriptionstring · bodyBeschreibung.optionalvaluestring · bodyWert präsentiert.optionalminimumnumber · bodyMindestbestellmenge.optionalvalid_untilstring · bodyISO-Gültigkeit.optionaltypestring · bodyCoupontyp.optionaldiscountnumber · bodyProzentsatz oder Rabattbetrag.optionalcapnumber · bodyRabattobergrenze.optionalcategoriesarray · bodyZugelassene Kategorien.optionalverifiedboolean · bodyMarkieren Sie den Coupon als verifiziert.optionalactiveboolean · bodyAktivieren oder archivieren Sie den Coupon.optionalBeispiel
curl
curl -X PATCH 'https://achadu.com/api/v1/coupons/resource_id' \
+ -H 'Authorization: Bearer ach_live_...' \
+ -H 'Accept: application/json' \
+ -H 'Content-Type: application/json' \
+ --data '{
"marketplace": "string",
"code": "string",
"description": "string"
}'Antwort
200Vorgang abgeschlossen4xxFehler mit Code, Nachricht und request_id