Promotions
Retrieve promotion
Given a specific promotion id, fetch the entire promotion object.
get/promotions/{id}
Request
- Base URLhttps://api.c1st.com/api
- URLhttps://api.c1st.com/api/promotions/{id}
- AuthHTTP bearer
Path parameters
idinteger required
Response
Ok
Example response
{
"id": 123,
"name": "Summer discount",
"description": "10% on all bikes in the summer.",
"deleted": 1,
"startdate": "2019-01-01 12:00:00",
"enddate": "2019-02-01 12:00:00",
"minproducts": 1,
"productfilters": [
{
"attribute": "tag",
"value": "Bike"
}
],
"customerfilters": [
{
"attribute": "tag",
"value": [
"1",
"2",
"3"
]
}
],
"serviceplanfilters": [
{
"attribute": "tag",
"value": [
"1",
"2",
"3"
]
}
],
"articles": [
{
"productno": "456",
"quantity": 5
}
],
"action": {
"type": "percentage",
"amount": 10
}
}Changes
No recorded changes to this operation across all 1 revision of this API.