POST /api/v4.0/integrations/coupons/automatic

Changed on

Apply predefined automatic coupons based on specific promotional criteria.

Request

  • Base URL
    https://api.gameball.co
  • Auth
    API key in header apikey

Request body

object required
customerId, string required
email, string
mobile, string
cartId, string required
totalPrice, number
totalShipping, number
lineItems, object[]
merchant, object

Response

Automatic coupon applied successfully

object required
isApplied, boolean
couponName, string
discountAmount, number
discountType, 'shipping' | 'fixed' | 'percentage' | 'product' | 'buyXgetY'
discountedItems, object[]

Changes