/
POST Promotions Create

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!

POST Promotions Create

With this API, the user can create a Promotion in Browntape.

End Point

https://app.browntape.com/0.1/promotions/add.json

Parameters to be passed

?username=XXXXXXXXXX &auth_string=YYYYYYYYY

Post Parameters

{ data: { "channel_id": "1232", "title": "Test Promo 1", "shortcode": "SHORT"//max 10 character, "promotion_start": "2017-11-2700: 00: 00", "promotion_end": "2017-12-3023: 59: 59", "participation_start": "2017-11-3000: 00: 00" //optional, "participation_end": "2017-12-09 00:00:00" //optional, "is_absolute": "0" //if this is 0 the value field will be considered as percentage and if 1 the value be considered absolute”, "value": 1, "seller_contribution": 100, // percentage for the discount borne by seller , "promotion_level": "sku" // promotion at only sku level is supported till now, "entities": [ "test_sku1", "test_sku2" ]// sku_code for which promo is to be applied, "status": "processing" // Valid status are'upcoming','processing','ongoing','ready to participate''participated','cancelled','expired','error', "type": "price discount" // only price discount is supported till now, "ignore_missing_entities" // optional default is 0 (0-promotion wont be created if some entities are missing) (1-promotion will be created even if some skus are missing) } }

Response

ERROR

{ "status_code": 500, "status": "failure", "message": "No entities were not found in the database. Please fix this and retry.", "data": [ "No entities were not found in the database. Please fix this and retry." ] }

SUCCESS

Related content