Reduceri magazin
Codurile de reducere și reducerile automate.
Modul: Magazin online (shop).
Endpointuri
Secțiune intitulată „Endpointuri”GET /api/v1/shop_discounts- Listare cu filtre, sortare și paginare (scopeshop:read)GET /api/v1/shop_discounts/{id}- O înregistrare după id (scopeshop:read)POST /api/v1/shop_discounts- Creează o înregistrare (scopeshop:write)PATCH /api/v1/shop_discounts/{id}- Modifică câmpurile trimise (scopeshop:write)DELETE /api/v1/shop_discounts/{id}- Șterge sau dezactivează (scopeshop:write)
id(string, uuid; citire): Identificator unic (UUID).code(string; scriere)type(string; scriere, obligatoriu)value(number; scriere)applicability(string; scriere)target_ids(array; scriere)min_order(number; scriere)starts_at(string, date-time; scriere)ends_at(string, date-time; scriere)max_uses(number; scriere)max_per_customer(number; scriere)channel_ids(array; scriere)is_active(boolean; scriere): Dacă înregistrarea este activă.created_at(string, date-time; citire): Data creării (ISO 8601).updated_at(string, date-time; citire): Data ultimei modificări (ISO 8601).customer_ids(array; scriere)customer_emails(array; scriere)
Evenimente
Secțiune intitulată „Evenimente”shop_discounts.createdshop_discounts.updatedshop_discounts.deleted