Coupons
Kortingsbon bijwerken
Updates geldigheid, korting en geschiktheid.
PATCH
/coupons/{id}coupons:writeVerzoek
idstring · pathResource-ID.verplichtmarketplacestring · bodyMarktplaats.optioneelcodestring · bodyCouponcode.optioneeldescriptionstring · bodyBeschrijving.optioneelvaluestring · bodyWaarde gepresenteerd.optioneelminimumnumber · bodyMinimale bestelling.optioneelvalid_untilstring · bodyISO-geldigheid.optioneeltypestring · bodyCoupontype.optioneeldiscountnumber · bodyPercentage of kortingsbedrag.optioneelcapnumber · bodyKortingsplafond.optioneelcategoriesarray · bodyGeschikte categorieën.optioneelverifiedboolean · bodyMarkeer de kortingsbon als geverifieerd.optioneelactiveboolean · bodyActiveer of archiveer de kortingsbon.optioneelVoorbeeld
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"
}'Antwoord
200Operatie voltooid4xxFout met code, bericht en request_id