Discount coupons

Create or overwrite discount coupons

Changed on

Create new discount coupons and overwrite existing ones in a default or specific folder.

put/coupons/import

Request

  • Base URL
    https://api2.ecomailapp.cz
  • URL
    https://api2.ecomailapp.cz/coupons/import
  • Auth
    API key in header key

Request body

folderIdinteger

Folder ID. If not provided, coupons are created and overwritten in the default folder.

valid_untilstring

Expiration date in YYYY-MM-DD format.

typestring

Discount type: percentual or fixed. Required when value is set.

valuenumber

Discount value, greater than 0. The maximum is 100 for percentual and 99999999.99 for fixed. Required when type is set.

currencystring

Three-letter currency code, for example CZK. Required when type is fixed or when min_spend is set.

min_spendnumber

Minimum order value, from 0 to 99999999.99.

shipping_pricestring

Shipping rule of the discount: cart, free, or beforeDiscount.

Response

OK

importedinteger
duplicatedinteger
updatedinteger
totalCountinteger

Changes