Coupon

Get vendor coupon list

get
/admin-coupon/admin-coupon-list

Retrieves a list of vendor coupons based on the provided filters.

Query parameters
limitintegerOptional

The maximum number of coupons to return.

Default: 10
offsetintegerOptional

The number of coupons to skip before starting to collect the result set.

Default: 0
countintegerOptional

A flag to indicate whether to return the count of coupons.

Default: 0
Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Responses
200

Successfully retrieved the vendor coupon list.

get
/admin-coupon/admin-coupon-list

Get complete product list

get
/product

Retrieves the complete list of products based on the provided filters.

Query parameters
offsetintegerOptional

The number of products to skip before starting to collect the result set.

Default: 0
limitintegerOptional

The maximum number of products to return.

Default: 0
keywordstringOptional

Search keyword for filtering products.

skustringOptional

SKU for filtering products.

statusstringOptional

Status of the products to filter.

priceintegerOptional

Price filter for products.

Default: 0
Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Responses
200

Successfully retrieved the complete product list.

get
/product

Add a new coupon

post
/admin-coupon/add-coupon
Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Body
couponCodestringRequired
couponNamestringRequired
couponTypestringRequired
discountstringRequired
minimumPurchaseAmountstringRequired
maximumPurchaseAmountstringRequired
emailRestrictionsstringRequired
maxUserPerCouponstringRequired
noOfTimeCouponValidPerUserstringRequired
statusstringRequired
appliedCartItemsCountintegerRequired
startDatestring · dateRequired
endDatestring · dateRequired
allQualifyingItemsApplyintegerRequired
Responses
200

Coupon Created Successfully.

post
/admin-coupon/add-coupon
200

Coupon Created Successfully.

Get Vendor Coupon Detail

get
/admin-coupon/coupon-detail
Query parameters
vendorCouponIdintegerRequired
Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Responses
200

Successfully got Vendor Coupon Detail.

get
/admin-coupon/coupon-detail
200

Successfully got Vendor Coupon Detail.

Update an existing coupon

put
/admin-coupon/update-coupon/{couponId}
Path parameters
couponIdintegerRequired
Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Body
couponCodestringRequired
couponNamestringRequired
couponTypestringRequired
discountstringRequired
minimumPurchaseAmountintegerRequired
maximumPurchaseAmountintegerRequired
emailRestrictionsstringRequired
maxUserPerCouponintegerRequired
noOfTimeCouponValidPerUserintegerRequired
statusstringRequired
appliedCartItemsCountintegerRequired
startDatestring · dateRequired
endDatestring · dateRequired
allQualifyingItemsApplyintegerRequired
couponIdstringRequired
Responses
200

Coupon Updated Successfully.

put
/admin-coupon/update-coupon/{couponId}
200

Coupon Updated Successfully.

Delete a coupon

delete
/delete-coupon/{couponId}

Deletes the specified coupon by ID

Path parameters
couponIdintegerRequired

ID of the coupon to delete

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Responses
200

Successfully deleted the coupon

delete
/delete-coupon/{couponId}

Last updated