Version: 202506
Search discount code
GET/openapi/2025-06/discount_codes/lookup
Looks up a discount code by its code value.
Request
Query Parameters
code string
Discount code value to look up
Responses
- 200
OK
- application/json
- Schema
- Example
Schema
codestring
error code
messagestring
error message
data object
discount_code object
Discount code
idstring
Discount ID
price_rule_idstring
Price rule ID
codestring
Discount code
created_atstring
Creation timestamp, in ISO-8601 format
updated_atstring
Last update timestamp, in ISO-8601 format
use_with_otherint32
Whether discount can be used with others
usage_countint32
Number of times used
{
"code": "string",
"message": "string",
"data": {
"discount_code": {
"id": "string",
"price_rule_id": "string",
"code": "string",
"created_at": "string",
"updated_at": "string",
"use_with_other": 0,
"usage_count": 0
}
}
}