---
title: "Finish attaching products to an activity Reacher created"
method: POST
path: "/promotions/activities/{activity_id}/retry-attach"
tags: ["Promotions"]
---

# Finish attaching products to an activity Reacher created

`POST /promotions/activities/{activity_id}/retry-attach`

## Request

- Base URL: `https://api.reacherapp.com/public/v1`
- URL: `https://api.reacherapp.com/public/v1/promotions/activities/{activity_id}/retry-attach`
- Auth: API key in header `x-api-key` and API key in header `x-shop-id`

For a record in `attach_pending` or `attach_failed`: sends only the products TikTok does not have yet and moves the record to `ready`. A record in any other state answers 409 NOT_RESUMABLE, unless the same Idempotency-Key is replaying an earlier answer.

## Path parameters

- `activity_id` string, required

## Headers

- `Idempotency-Key` string, nullable
- `X-Dry-Run` string, nullable

## Response `200`

Successful Response

- PromotionActivityWriteResponse: What a create, retry or state-changing write returns: the record as it stands now.
  - `data` PromotionActivityRecordOut, required: Reacher's record of an activity it created: the saga state beside TikTok's status.
    - `activity_id` string, nullable: TikTok's id; null only while the create is in flight.
    - `idempotency_key` string, required
    - `state` 'creating' | 'attach_pending' | 'attach_failed' | 'ready' | 'needs_reconciliation' | 'deactivated' | 'failed', required: creating: no id yet · attach_pending: id known, products not all attached (retry) · attach_failed: TikTok rejected an attach (fix and retry) · ready: every product attached · needs_reconciliation: TikTok's answer was lost twice; check Seller Center · deactivated · failed.
    - `tiktok_status` string, nullable: TikTok's status when last seen (NOT_START, ONGOING, EXPIRED, DEACTIVATED).
    - `title` string, required
    - `activity_type` string, required
    - `product_level` string, required
    - `begin_time` string, required: ISO timestamp (UTC).
    - `end_time` string, required: ISO timestamp (UTC).
    - `product_count` integer, required: Products in the create request.
    - `attached_items` string[], required: Items TikTok has confirmed on the activity: product ids, or `product_id:sku_id` at VARIATION level. Kept in step by attach, reprice and remove calls made through Reacher.
    - `last_error` string, nullable
    - `created_at` string, required
    - `updated_at` string, required
  - `replayed` boolean: True when this Idempotency-Key had already been processed.

## Other responses

- `400`: Validation error, multi-shop key, missing `Idempotency-Key`, or TikTok rejected the request (`PROMOTION_REJECTED`; `PROMOTION_CONFLICT`, `FLASH_SALE_ONGOING`, `PROMOTION_PERIOD_TOO_LONG` for those causes).
- `403`: API key lacks `read_write` scope, or the shop's TikTok grant lacks the promotion scopes (`SCOPE_NOT_GRANTED`).
- `404`: No such activity for this shop, or TikTok does not allow this authorization to access it.
- `409`: `Idempotency-Key` reused with a different body (`IDEMPOTENCY_CONFLICT`), another request is writing to this activity (`CONCURRENT_WRITE`), the record is not in a resumable state (`NOT_RESUMABLE`), or the shop is not connected (`SHOP_NOT_CONNECTED`).
- `422`: Validation Error
- `429`: Write-tier rate limit, or TikTok is rate limiting this shop (`UPSTREAM_RATE_LIMITED`, with `Retry-After`).
- `502`: TikTok's answer was lost and a re-read could not confirm the change (`UPSTREAM_UNCERTAIN`), or TikTok did not complete the request (`UPSTREAM_ERROR`). For a UK shop, `UPSTREAM_ERROR` with `details.reason` and `Retry-After` means its customer-service token could not be renewed in time; retry with the same key.
- `503`: The write limiter (Valkey) is unavailable; no write was attempted.

## Changes

> 76 revisions in range; 1 not diffed.

- **2026-10-25** `84094c04c9fd`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/reacherapp/apis/reacher-data-api/changes/promotions/activities/:activity_id/retry-attach/post.md)

---

[API](https://skmtc.dev/reacherapp/apis/reacher-data-api.md) - [All operations](https://skmtc.dev/reacherapp/apis/reacher-data-api/llms.txt) - [OpenAPI document](https://skmtc.dev/reacherapp/apis/reacher-data-api/revisions/63ce74b30b5a?raw)
