ReDoc documentation
Retrieve a coupon using the specified search criteria. This call returns an array of objects, but detailed information about each object’s attributes might not be included. See https://devdocs.magento.com/codelinks/attributes.html#CouponRepositoryInterface to determine which call to use to get detailed information about all attributes for an object.
200 Success.
401 Unauthorized
Internal Server error
Unexpected error
{- "items": [
- {
- "coupon_id": 0,
- "rule_id": 0,
- "code": "string",
- "usage_limit": 0,
- "usage_per_customer": 0,
- "times_used": 0,
- "expiration_date": "string",
- "is_primary": true,
- "created_at": "string",
- "type": 0,
- "extension_attributes": { }
}
], - "search_criteria": {
- "filter_groups": [
- {
- "filters": [
- {
- "field": "string",
- "value": "string",
- "condition_type": "string"
}
]
}
], - "sort_orders": [
- {
- "field": "string",
- "direction": "string"
}
], - "page_size": 0,
- "current_page": 0
}, - "total_count": 0
}