/
GET Promotions Fetch
We’re excited to announce that the latest information is now available on our new site, the Ginesys One Wiki!. Visit the site for up-to-date resources and insights. We look forward to continuing to support you there!
We’re excited to announce that the latest information is now available on our new site, the Ginesys One Wiki!. Visit the site for up-to-date resources and insights. We look forward to continuing to support you there!
GET Promotions Fetch
By this Api the user can fetch existing promotions from Browntape.
End Point
https://app.browntape.com/0.1/promotions/index.json
Parameters to be passed
?username=XXXXXXXXXX
&auth_string=YYYYYYYYY
&limit=10
&page=1
&state=null //Valid states are 'participated', 'ongoing', 'cancelled', 'processing'
&filter= {
channel_id: null,
promotion_start: null, //date format YYYY-MM-DD HH:mm:ss
promotion_end: null,
status: null, // Valid status are 'upcoming', 'processing', 'ongoing', 'ready to participate', 'participated', 'cancelled', 'expired', 'error'
title: ""
}
Response
{
"status_code": 200,
"status": "success",
"message": "Successfully fetched promotions.",
"data": [
{
"Promotion": {
"id": "63",
"channel_id": "21",
"title": "TEST PROMO 1",
"description": null,
"shortcode": "SHORT!",
"promotion_start": "2017-12-24 07:30:00",
"promotion_end": "2017-12-29 07:29:00",
"participation_start": "1970-01-01 06:30:00",
"participation_end": "1970-01-01 06:30:00",
"is_absolute": "0",
"seller_contribution": "100",
"promotion_level": "sku",
"status": "processing",
"type": "price discount",
"parallel_promo_code": null,
"channel_ref": null,
"initiator": "0",
"created": "2017-12-20 11:36:34",
"value": "15",
"company_id": "2",
"last_synced_on": "Wed, Dec 20, 2017, 11:36 AM"
},
"Channel": {
"title": "Myntra API",
"username": "Test Channel 2"
}
},
{
"Promotion": {
"id": "62",
"channel_id": "21",
"title": "TEST PROMO 2",
"description": null,
"shortcode": "SHORT",
"promotion_start": "2017-12-25 01:00:00",
"promotion_end": "2017-12-29 12:59:00",
"participation_start": "1970-01-01 12:00:00",
"participation_end": "1970-01-01 12:00:00",
"is_absolute": "0",
"seller_contribution": "100",
"promotion_level": "sku",
"status": "processing",
"type": "price discount",
"parallel_promo_code": null,
"channel_ref": null,
"initiator": "0",
"created": "2017-12-20 11:36:34",
"value": "15",
"company_id": "2",
"last_synced_on": "Wed, Dec 20, 2017, 11:36 AM"
},
"Channel": {
"title": "Myntra API",
"username": "test channel"
}
}
],
"pagination": {
"count": 33,
"limit": 10,
"page": 1,
"total_pages": 4,
"offset": 0
}
}
Related content
GET Promotion Fetch Entities
GET Promotion Fetch Entities
More like this
POST Promotions Create
POST Promotions Create
More like this
POST Promotions Update Status
POST Promotions Update Status
More like this
POST Promotions Delete
POST Promotions Delete
More like this
GET SKUs Index
GET SKUs Index
More like this
GET Warehouse List
GET Warehouse List
More like this