Queue every unsynced spark code for sync
Changed onQueue every spark code for the shop that isn't already synced. Writes pending rows to gmv_max_spark_code_sync; the offline CRJ fires the TikTok /tt_video/authorize/ calls on its next run.
Returns immediately with {queued, skipped, message}. Shops without an active TikTok Business connection return 422 TIKTOK_NOT_CONNECTED. Single shop only.
Request
- Base URLhttps://api.reacherapp.com/public/v1
- URLhttps://api.reacherapp.com/public/v1/gmv-max/spark-codes/sync-all
- AuthAPI key in header x-api-key and API key in header x-shop-id
Headers
Request body
POST /public/v1/gmv-max/spark-codes/sync-all — queue every unsynced code for the shop. Returns immediately with a queue count; the offline CRJ actually fires the TikTok calls.
Has no body fields (shop_id comes from x-shop-id); kept as a model so we can still extra="forbid" against accidental payloads.
Response
Codes queued for async sync.
Changes
- breaking
the response's body type changed from no type to
objectfor status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- breaking
- info
api operation id
sync_all_spark_codes_gmv_max_spark_codes_sync_all_postremoved and replaced withgmv_max_spark_codes_sync_all
- info