Get list of coupons with filters
Get list of coupons with filters
Request Body
pageinteger · min: 1 · max: 9999The start page for list pagination
Example: 1Default: 1limitinteger · min: 1 · max: 100The results count limit between 1 - 100
Example: 50Default: 50date_startstring · dateSet the min date the coupon is valid from for usage
Example: 2021-04-03date_endstring · dateSet the max date the coupon is valid from for usage
Example: 2021-04-03order_used_startstring · dateThe mininmum date for the order related to current coupon
Example: 2021-04-03order_used_endstring · dateThe maximum date for the order related to current coupon
Example: 2021-04-03date_added_startstring · dateThe mininmum date from the coupon added to system
Example: 2021-04-03date_added_endstring · dateThe maximum date from the coupon added to system
Example: 2021-04-03namestringThe name of the coupon or part of it
Example: summer salecodestringThe code of the coupon or part of it
Example: SUMMER1012typestring · enumThe type of the coupon for filter
Enum values:percentPfixedFgiftDorder_idinteger · int32The order id related to the coupon
Example: 54222
Responses
Get single coupon info
Get full data and info for a single coupon
path Parameters
coupon_idinteger · int32 · requiredThe coupon id
Responses
success
coupon_idintegerThe id represent the coupon for CRUD and etc
Example: 23namestringThe coupon name
Example: Gift for novembercodestringThe Coupon code
Example: JHG34Gtypestring · enumThe type of the coupon (The letters at the example are the same as the string before)
Enum values:percentPfixedFgiftDdiscountnumber · int64The discount value of the coupon (the behaviour depends on the coupon type)
Example: 44loggedinteger · enum · int321 - The coupon only for logged customers | 2 - coupon available for everyone
Enum values:01shippinginteger · enum · int320 - Exclude shipping | 1 - Free shipping | 2 - Include the shipping at the math action for this coupon
Enum values:012totalinteger · int32The minimum total sum the customer have to reach in his cart to apply the coupon
Example: 100date_startstring · dateThe date the coupon is available from
Example: 2021-04-03date_endstring · dateThe maximum date the coupon is available
Example: 2021-04-03date_addedstring · dateThe date the coupon added
Example: 2021-04-03uses_totalstringThe maximum total uses for this coupon
Example: 3uses_customerstringThe maximum uses available for each registered customer (if the coupon only for registered customers)
Example: 10statusinteger · enum · int321 - The coupon is active | 0 - The coupon not active
Enum values:01multiple_dealsinteger · int321 - The coupon enables more discounts | 0 - If coupon active other discounts will not work
Example: 1total_usedinteger · int32The total times the current coupon used at the system
Example: 45