Get coupon
GET/wc/coupons/check
Get detail coupon by code coupon
Request
Query Parameters
code stringrequired
Coupon code
fasilitator integer
Input ID fasilitator
idProduct integer
Input ID of the product
Responses
- 200
- 400
- 401
OK. Successful get detail coupon.
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
success boolean
data
object[]
id integer
code string
amount integer
date_created string
Example:
2022-11-16T06:48:39.000000Zdate_modified string
Example:
2022-11-16T06:48:39.000000Zdiscount_type string
description string
date_expires string
Example:
nullusage_count integer
individual_use string
Example:
noproduct_ids string
Example:
nullexcluded_product_ids string
Example:
nullusage_limit integer
usage_limit_per_user string
Example:
nulllimit_usage_to_x_items integer
free_shipping string
Example:
noproduct_ios string
product_categories string
Example:
nullexcluded_product_categories string
Example:
nullexclude_sale_items string
Example:
nominimum_amount integer
maximum_amount integer
email_restrictions string
Example:
nullused_by string
Example:
null{
"success": true,
"data": [
{
"id": 0,
"code": "string",
"amount": 0,
"date_created": "2022-11-16T06:48:39.000000Z",
"date_modified": "2022-11-16T06:48:39.000000Z",
"discount_type": "string",
"description": "string",
"date_expires": "null",
"usage_count": 0,
"individual_use": "no",
"product_ids": "null",
"excluded_product_ids": "null",
"usage_limit": 0,
"usage_limit_per_user": "null",
"limit_usage_to_x_items": 0,
"free_shipping": "no",
"product_ios": "string",
"product_categories": "null",
"excluded_product_categories": "null",
"exclude_sale_items": "no",
"minimum_amount": 0,
"maximum_amount": 0,
"email_restrictions": "null",
"used_by": "null"
}
]
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
success boolean
Example:
falsemessage string
{
"success": false,
"message": "string"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
success boolean
Example:
falsemessage string
{
"success": false,
"message": "string"
}