Skip to content

Shop discounts

Discount codes and automatic discounts.

Module: Online shop (shop).

  • GET /api/v1/shop_discounts - List with filters, sorting and pagination (scope shop:read)
  • GET /api/v1/shop_discounts/{id} - A record by id (scope shop:read)
  • POST /api/v1/shop_discounts - Create a record (scope shop:write)
  • PATCH /api/v1/shop_discounts/{id} - Modify the submitted fields (scope shop:write)
  • DELETE /api/v1/shop_discounts/{id} - Delete or deactivate (scope shop:write)
  • id (string, uuid; read): Unique identifier (UUID).
  • code (string; write)
  • type (string; write, required)
  • value (number; write)
  • applicability (string; write)
  • target_ids (array; write)
  • min_order (number; write)
  • starts_at (string, date-time; write)
  • ends_at (string, date-time; write)
  • max_uses (number; write)
  • max_per_customer (number; write)
  • channel_ids (array; write)
  • is_active (boolean; write): Whether the record is active.
  • created_at (string, date-time; read): Creation date (ISO 8601).
  • updated_at (string, date-time; read): Last modification date (ISO 8601).
  • customer_ids (array; write)
  • customer_emails (array; write)
  • shop_discounts.created
  • shop_discounts.updated
  • shop_discounts.deleted