List
GET endpoint for /brand/discounts/list in brand category
Overview
- Method: GET
- Path:
/brand/discounts/list - Tags: brand
Parameters
No parameters required.
Request Body
No request body required.
Responses
200
Successful response
Content Type: application/json
{
"type": "object",
"properties": {
"discounts": {
"type": "string"
},
"code": {
"type": "string"
},
"is_dynamic": {
"type": "boolean"
},
"is_disabled": {
"type": "boolean"
},
"rule_id": {
"type": "string"
},
"parent_discount_id": {
"type": "string"
},
"starts_at": {
"type": "string",
"format": "date-time"
},
"ends_at": {
"type": "string",
"format": "date-time"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"deleted_at": {
"type": "string",
"format": "date-time"
},
"metadata": {
"type": "object",
"additionalProperties": true
}
},
"required": [
"discounts",
"code",
"is_dynamic",
"is_disabled",
"rule_id",
"starts_at",
"created_at",
"updated_at",
"metadata"
]
}400
Bad Request
Content Type: application/json
{
"type": "object",
"properties": {
"error": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"type": "object"
}
}
},
"required": [
"error",
"details"
]
}401
Unauthorized
404
Not Found
500
Internal Server Error
Example Usage
curl -X GET \
http://localhost:9000/brand/discounts/list \
-H "Content-Type: application/json" \
Interactive Testing
You can test this endpoint interactively in the Swagger UI (opens in a new tab).