Sari la conținut

Reduceri magazin

Codurile de reducere și reducerile automate.

Modul: Magazin online (shop).

  • GET /api/v1/shop_discounts - Listare cu filtre, sortare și paginare (scope shop:read)
  • GET /api/v1/shop_discounts/{id} - O înregistrare după id (scope shop:read)
  • POST /api/v1/shop_discounts - Creează o înregistrare (scope shop:write)
  • PATCH /api/v1/shop_discounts/{id} - Modifică câmpurile trimise (scope shop:write)
  • DELETE /api/v1/shop_discounts/{id} - Șterge sau dezactivează (scope shop: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)
  • shop_discounts.created
  • shop_discounts.updated
  • shop_discounts.deleted