POST /api/v4.0/integrations/coupons/automatic
Changed onApply predefined automatic coupons based on specific promotional criteria.
Request
- Base URLhttps://api.gameball.co
- AuthAPI 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
- info
removed the non-success response with the status
- info
- info
endpoint added
- info