# Target Collaboration (/growseller/docs/developers/collaboration)

Create a collaboration template, queue creators on it, send it, and follow its invitations.

**What it's for:** sending TikTok Shop target invitations and following what creators did with them (**Target Collaboration**).

Target Collaboration sends TikTok Shop target invitations to creators, from a template that holds the invitation and its products.

## 1. Create a template [#1-create-a-template]

[`POST /invitations/templates?shop_id=SHOP_ID`](/growseller/docs/api-reference/target-collaboration/post-invitations-templates) takes an `invitation` (`title`, `message`, `valid_until`, `phone`, `content_type`, `sample_type`) and its `products`. The store's products and their categories come from [`GET /invitations/products`](/growseller/docs/api-reference/target-collaboration/get-invitations-products) and [`GET /invitations/product-categories`](/growseller/docs/api-reference/target-collaboration/get-invitations-product-categories).

## 2. Queue creators [#2-queue-creators]

```bash
curl -X POST "https://seller.growpaces.com/api/v1/invitations/templates/TEMPLATE_ID/creators?shop_id=SHOP_ID" \
  -H "Authorization: Bearer gsk_..." \
  -H "Content-Type: application/json" \
  -d '{"creator_account_ids":["…","…"]}'
```

Up to 10,000 creators at a time, for example a range from [`GET /creators/ids`](/growseller/docs/api-reference/creators/get-creators-ids). Blocked creators are left out.

## 3. Send [#3-send]

[`POST /invitations/templates/bulk?shop_id=SHOP_ID`](/growseller/docs/api-reference/target-collaboration/post-invitations-templates-bulk) with `action: "broadcast"` and the template `ids` sends them in the background; `scheduled_at` sends later, and `mode: "retry"` sends again to the creators that failed. `action: "delete"` deletes templates.

The run is paced for the store and waits for TikTok's weekly outreach quota when it is used up ([`GET /invitations/outreach-quota`](/growseller/docs/api-reference/target-collaboration/get-invitations-outreach-quota)). Follow it with [`GET /jobs`](/growseller/docs/api-reference/jobs/get-jobs) or the `job.completed` [webhook](/growseller/docs/developers/webhooks).

## Invitations [#invitations]

[`GET /invitations`](/growseller/docs/api-reference/target-collaboration/get-invitations) lists the store's invitations, [`POST /invitations/sync`](/growseller/docs/api-reference/target-collaboration/post-invitations-sync) brings them in line with TikTok, and [`POST /invitations/bulk`](/growseller/docs/api-reference/target-collaboration/post-invitations-bulk) ends, cleans, extends, changes the products of or merges them, in the background. [`GET /invitations/{invitation_id}/orders`](/growseller/docs/api-reference/target-collaboration/get-invitations-invitation_id-orders) reads an invitation's orders from TikTok.

## Commissions, dates and selections [#commissions-dates-and-selections]

A product's commission is a percent, for TikTok and Shopee alike: `15` is 15%, `12.5` is 12.5% (at most two decimals). On TikTok `standard_commission` is more than 0 and at most 80 and `ads_commission` 0 (none) to 80; a Shopee product's `rate` is 0 to 80. A product named twice, a value out of range or not a number is refused, never rounded or capped. Answers show commissions in percent too.

A TikTok product in the store's Open collaboration takes a `standard_commission` above its Open collaboration commission, and an `ads_commission` (when set) above its Open collaboration Shop Ads commission. The product lists (`GET /invitations/products`, a template's and an invitation's products, `bulk-preview`) show them as `min_commission` and `min_ads_commission` in percent, `null` when there is none. A template, an invitation edit or a bulk change at or below one is refused with 422 naming the product and its minimum, and a template's send is refused the same way before anything reaches TikTok. The rates come from the store's Open collaboration list (read on a store's first Sync, and once more on the next Sync of a store whose list was never read) and, when a product's rate is missing or older than 7 days, from one TikTok call for all of a request's products.

A Shopee product's `rate` must be above the highest of its open campaign rate, the shop campaign's rate and its category's minimum (Shopee refuses one at or below it). GrowSeller reads them from Shopee (one call per 50 products, plus one each for the shop campaign and the categories, kept 30 minutes) and refuses a template, a campaign edit or a send at or below with 422 naming the product; `GET /shopee/invitations/products` and a template's products show it as `min_rate`.

## When creators accepted [#when-creators-accepted]

TikTok gives no time for a creator accepting an invitation: a creator has accepted once it added a product to its showcase. When a Sync sees a creator's added count go from 0 to more, it keeps that time as `accepted_at` on the invitation's creators ([`GET /invitations/{invitation_id}/creators`](/growseller/docs/api-reference/target-collaboration/get-invitations-invitation_id-creators)), which also answers `accepted_this_week` (since Monday, the store's time) and takes `accepted_since` (ISO 8601) to list only those accepted after it. `GET /invitations` answers the store's `accepted_this_week`. The time is when the Sync saw it, not when the creator acted; an acceptance from before this was kept stays `null`.

`valid_until` is a real date (`YYYY-MM-DD`), today or later. A template's `content_type`, `sample_type` and `overlap` take only their listed values.

[`POST /invitations/bulk`](/growseller/docs/api-reference/target-collaboration/post-invitations-bulk) acts on the invitations in `ids`; to act on every open invitation send `all: true` (an empty `ids` alone is refused).