Promo Livestream Affiliate
Give creators a promo price for their Shopee LIVE, one promo per creator, from one template.
What it's for: a promo price and stock on some of your Shopee products that only buyers of one creator's LIVE get, in a period you set (Shopee's Promo Livestream Affiliate, Exclusive Streamer Price). Shopee stores only.
A Shopee promo has exactly one streamer. GrowSeller keeps a template (name, description, period, purchase limit, products with a promo price and stock per variation) filled with creators, and Publish makes one promo on Shopee for each creator from it. Times are unix seconds, prices are in the store's currency (Rp).
1. Create a template
Pick products with GET /shopee/live-promos/products and read their variations, price and stock with GET /shopee/live-promos/products/models?ids=…. Then:
curl -X POST "https://seller.growpaces.com/api/v1/shopee/live-promos/templates" \
-H "Authorization: Bearer gsk_..." \
-H "Content-Type: application/json" \
-d '{"shop_id":"SHOP_ID",
"promo":{"title":"Flash LIVE Friday","description":"","start":1795483800,"end":1795491000,"purchase_limit":0},
"products":[{"id":"23736676847","purchase_limit":2,"custom_title":"Boxer LIVE price",
"models":[{"model_id":"108042958718","promo_price":13999,"promo_stock":10}]}]}'Shopee's rules, checked when the template is saved (one Shopee call per 50 products): the name is at most 150 characters, the description 200; the promo ends after it starts; at most 100 products; each variation's promo_price is below its price and its promo_stock at most its stock; purchase_limit is per buyer, 0 = unlimited (promo up to 999,999,999, product up to 999,999). A refusal is 422 naming the product. custom_title and custom_image_url (one of the product's own images) are what the streamer shows it as; both are optional.
2. Add creators
POST /shopee/live-promos/templates/{template_id}/creators with creator_account_ids, or a selection of a list such as GET /shopee/creators, up to 10,000 at a time; dry_run: true says what it would do. Blocked creators are left out. A creator Shopee has not given its user id for yet is SKIP: a promo names its streamer by it.
3. Publish
POST /shopee/live-promos/templates/bulk with action: "start" and the template ids makes the promos in the background (a SHOPEE_LIVE_PROMO_BROADCAST job; scheduled_at publishes later, action: "retry" tries the FAILED creators again, action: "delete" deletes templates). The period must start later than now.
A publish of N creators asks Shopee 2 + 2N times: the store's active promos against Shopee's limit (1,000), whether the products may be promoted in the period, then for each creator the promo and its products. A creator Shopee refuses is FAILED with Shopee's reason (GET /shopee/live-promos/templates/{template_id}/creators?status=FAILED, last_error); a creator done is SUCCESS with its live_promo_id. Shopee takes promos of one creator whose periods overlap. Follow the run with GET /jobs or the job.completed webhook.
Published promos
GET /shopee/live-promos?tab=upcoming|ongoing|ended lists the store's promos as GrowSeller keeps them; POST /shopee/live-promos/sync reads them from Shopee again (a SHOPEE_LIVE_PROMO_SYNC job; promos made in Shopee's own pages come in too). GET /shopee/live-promos/{promo_id} reads one from Shopee with its streamer and products per variation.
| Change | Route | When |
|---|---|---|
| Name, description, period, purchase limit, products | PATCH /shopee/live-promos/{promo_id} | upcoming or ongoing; a field left out stays |
| End now | POST /shopee/live-promos/{promo_id}/end | ongoing only |
| Delete | DELETE /shopee/live-promos/{promo_id} | upcoming only; Shopee keeps an ended promo |
Shopee refuses a product's purchase limit change once the product was approved in the promo; its reason comes back as the 422 message.