# Batch add shop materials

- API version: 1.11.0
- Last updated: 2026-11-16
- Server: `https://api.ailingtu.com`
- Web document: [Batch add shop materials](/en/openapi/batch-add-shop-materials)
- Full schema: [JSON Schema](/en/openapi/operations/batchAddShopMaterials.json)
- Discovery: [Operation index](/en/openapi/operations/index.json)

## POST /v1/shop/material/batchAdd

Operation ID: `batchAddShopMaterials`

Batch add video materials to a shop using video URLs.

Authentication: Request header `x-api-key: <YOUR_API_KEY>`; keep the key on the server and never expose it in client code, logs or shared files.

Success criteria: HTTP 2xx with code=0; for asynchronous tasks, also query the final status.

### Request parameters

| Field | Location | Type | Required | Description |
|---|---|---|---|---|
| `thirdShopId` | body | string | Yes | Shop ID |
| `videoUrls` | body | string[] | No | List of video URLs |

Request format: `application/json`

### Request example

```json
{
  "thirdShopId": "66",
  "videoUrls": [
    "https://www.tiktok.com/@vacbird.fr/video/7513181869366725910"
  ]
}
```

### Success response

```json
{
  "code": 0,
  "message": "success",
  "timestamp": 0,
  "data": null
}
```

### Response fields

Main levels are listed below. The endpoint JSON Schema is authoritative for the full structure, unions and validation rules; Required refers to the containing object.

| Field | Type | Required | Description |
|---|---|---|---|
| `code` | integer | Yes | — |
| `message` | string | Yes | — |
| `timestamp` | integer | Yes | — |
| `data` | null | Yes | — |

### Error handling

| HTTP | Description |
|---|---|
| 400 | The request parameters or body are invalid. Fix them and retry. |
| 401 | The API key is missing or invalid. Check x-api-key. |
| 403 | The API key has no permission to call this endpoint. |
| 429 | Too many requests. Retry with exponential backoff. |
| 500 | The server failed. Retry transient failures with exponential backoff. |

Treat any non-zero business code as a failure. Do not blindly retry parameter, permission or authorization errors. If creating a publishing or generation task times out, query the existing task first instead of creating another one.
