> For the complete documentation index, see [llms.txt](https://help.impact.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.impact.com/brand/zh/what-would-you-like-to-learn-about/platform-features/submit-and-modify-conversion-data/batch-modify-conversion-data/batch-modifications-and-reversals-reference.md). Agents can also search and read this documentation through its [MCP server](https://help.impact.com/~gitbook/mcp).

# 批量修改和撤销参考

批量修改或撤销操作数据时，请先下载 impact.com 提供的模板文件之一，并将示例数据替换为您自己的数据。添加数据时，请务必遵循相关参考表中的指南，确保提交的文件格式正确。准备好提交文件后，即可继续提交批量修改/撤销文件。

{% hint style="info" %}
本文介绍了批量修改和撤销中最常用的字段。如需查看包含字段说明的完整详细参考，请参阅 [操作与转化字段参考](https://integrations.impact.com/brand-api-reference/reference/action-and-conversion-field-references).
{% endhint %}

**请参阅以下参考资料，以便：**

* 了解在 FTP/SMTP 批量修改或撤销中应使用哪些字段
* 下载包含占位示例数据的模板文件
* 了解应使用哪些原因代码以及何时使用

`ActionTrackerId` 是跟踪此操作的事件类型标识符，并非 ActionId。您可以在 [如何查找我的事件类型 ID？](https://help.impact.com/brand/what-would-you-like-to-learn-about/platform-features/event-types/how-do-i-find-my-event-type-ids).

#### 订单级修改

如果您想在订单级别而非商品级别批量更新操作数据（例如，更改多个订单的金额），请使用此方式。

<details>

<summary>可接受的参数</summary>

| 字段                | 必填？     | 可编辑？ | 备注                                                                                          |
| ----------------- | ------- | ---- | ------------------------------------------------------------------------------------------- |
| `ActionID`        | 有条件必填\* | 不可编辑 | 当去重时间窗口较短时，建议提供此标识符。                                                                        |
| `Oid / OrderId`   | 有条件必填\* | 不可编辑 | 使用 *ActionTrackerId*.                                                                       |
| `ActionTrackerId` | 有条件必填\* | 不可编辑 | 跟踪此操作的事件类型标识符。使用 *OrderId/Oid*.                                                             |
| `Amount`          | 可选      | 可编辑  | 设置订单的新总金额。                                                                                  |
| `currencyCode`    | 可选      | 可编辑  | 设置此操作的收入币种。如果未提供，则默认为您的 impact.com 账户币种。                                                    |
| `CustomerStatus`  | 可选      | 可编辑  | 设置转化时客户的状态，例如 NEW / EXISTING。                                                               |
| `Note`            | 可选      | 可编辑  | 用于事件级报告的一般字段。如果原始转化中的该字段为空，提交值后会填入该字段。每个操作仅接受一次——请在同一请求中提交其他字段更改。                           |
| `LocationId`      | 可选      | 可编辑  | 此字段主要用于住宿场景，是此转化中指定地点的唯一标识符。如果原始转化中的该字段为空，提交值后会填入该字段。                                       |
| `LocationName`    | 可选      | 可编辑  | 此字段主要用于住宿场景，是此转化中指定地点的名称。如果原始转化中的该字段为空，提交值后会填入该字段。                                          |
| `GiftPurchase`    | 可选      | 可编辑  | 设为 true 可将订单标记为礼品购买，设为 false 可取消该标记。如果原始转化中的该字段为空，提交值后会填入该字段。                               |
| `Text1–Text50`    | 可选      | 可编辑  | 通用文本字段，可接受您要发送的任意文本字符串（Text1 至 Text50）。如果原始转化中的该字段为空，提交值后会填入该字段。每个操作仅接受一次——请在同一请求中提交其他字段更改。 |
| `Reason`          | 必填      | 可编辑  | 提供有效的修改原因代码。                                                                                |

\*必须至少提供一种标识符路径，即提供 *ActionId* **或** (\*OrderId/Oid \*+ *ActionTrackerId*)

</details>

<details>

<summary>模板文件</summary>

* [订单级修改模板](https://res.cloudinary.com/product-enablement/raw/upload/v1768295823/CSVs/Batch%20Action%20Processing/Order-level_modifications_template.csv)
* [订单级审批模板](https://res.cloudinary.com/product-enablement/raw/upload/v1768295823/CSVs/Batch%20Action%20Processing/Order-level_approvals_template.csv)

</details>

#### 订单级撤销

当您想在订单级别（而非商品级别）批量撤销由合作伙伴驱动的操作时，请使用此模板，例如撤销多个订单。

<details>

<summary>可接受的参数</summary>

| 字段                | 必填？       | 可编辑？ | 备注                              |
| ----------------- | --------- | ---- | ------------------------------- |
| `ActionID`        | 有条件必填\*   | 不可编辑 | 当去重时间窗口较短时，建议提供此标识符。            |
| `Oid / OrderId`   | 有条件必填\*   | 不可编辑 | 使用 *ActionTrackerId*.           |
| `ActionTrackerId` | 有条件必填\*   | 不可编辑 | 跟踪此操作的事件类型标识符。使用 *OrderId/Oid*. |
| `Amount`          | 有条件必填\*\* | 可编辑  | 设为 **0** 以撤销订单，除非原始金额 = 0\*\*   |
| `Reason`          | 必填        | 可编辑  | 请提供有效的撤销原因代码。                   |

\*至少必须提供一个标识符路径，即 *ActionId* **或** (*OrderId/Oid* + *ActionTrackerId*)

\*\*如果原始 *Amount = 0*，请保持 *Amount* 不变，以免被错误归类为修改。

</details>

<details>

<summary>模板文件</summary>

* [订单级撤销模板](https://res.cloudinary.com/product-enablement/raw/upload/v1768295823/CSVs/Batch%20Action%20Processing/Order-level_reversals_template.csv)

</details>

#### 商品级修改

当您想在商品级别（而非订单级别）批量更新操作数据时，请使用此模板，例如更改订单中多个商品的 Amount。

<details>

<summary>可接受的参数</summary>

| 字段                | 必填？     | 可编辑？ | 备注                                |
| ----------------- | ------- | ---- | --------------------------------- |
| `ActionID`        | 有条件必填\* | 不可编辑 | 当去重时间窗口较短时，建议提供此标识符。              |
| `Oid / OrderId`   | 有条件必填\* | 不可编辑 | 使用 *ActionTrackerId*.             |
| `ActionTrackerId` | 有条件必填\* | 不可编辑 | 跟踪此操作的事件类型标识符。使用 *OrderId/Oid*.   |
| `SKU`\*\*         | 必填      | 不可编辑 | 请提供要修改商品的 SKU 值。                  |
| `Amount`\*\*      | 有条件必填   | 可编辑  | 设置新的商品金额，即价格\*数量。如果修改数量，也必须修改此字段。 |
| `Quantity`\*\*    | 可选      | 可编辑  | 设置订单中商品的新数量。                      |
| `Category`\*\*    | 可选      | 可编辑  | 设置商品类别。                           |
| `Reason`\*\*      | 必填      | 可编辑  | 请提供有效的撤销原因代码。                     |

\*至少必须提供一个标识符路径，即 *ActionId* **或** (*OrderId/Oid* + *ActionTrackerId*)

\*\*每个要修改的商品都必须包含这些字段。标识符字段每个订单只需填写一次。

</details>

<details>

<summary>模板文件</summary>

* [商品级修改模板](https://res.cloudinary.com/product-enablement/raw/upload/v1768295823/CSVs/Batch%20Action%20Processing/Item-level_modifications_template.csv)
* [商品级审批模板](https://res.cloudinary.com/product-enablement/raw/upload/v1768295823/CSVs/Batch%20Action%20Processing/Item-level_approvals_template.csv)

</details>

#### 商品级撤销

当您想在商品级别（而非订单级别）批量撤销操作数据时，请使用此模板，例如撤销订单中的多个商品。

<details>

<summary>可接受的参数</summary>

| 字段                | 必填？     | 可编辑？ | 备注                                |
| ----------------- | ------- | ---- | --------------------------------- |
| `ActionID`        | 有条件必填\* | 不可编辑 | 当去重时间窗口较短时，建议提供此标识符。              |
| `Oid / OrderId`   | 有条件必填\* | 不可编辑 | 使用 *ActionTrackerId*.             |
| `ActionTrackerId` | 有条件必填\* | 不可编辑 | 跟踪此操作的事件类型标识符。使用 *OrderId/Oid*.   |
| `SKU`\*\*         | 必填      | 不可编辑 | 请提供要修改商品的 SKU 值。                  |
| `Amount`\*\*      | 有条件必填   | 可编辑  | 设置新的商品金额，即价格\*数量。如果修改数量，也必须修改此字段。 |
| `Quantity`\*\*    | 可选      | 可编辑  | 设置订单中商品的新数量。                      |
| `Reason`\*\*      | 必填      | 可编辑  | 提供有效的修改原因代码。                      |

\*至少必须提供一个标识符路径，即 *ActionId* **或** (*OrderId/Oid* + *ActionTrackerId*)

\*\*每个要修改的商品都必须包含这些字段。标识符字段每个订单只需填写一次。

</details>

<details>

<summary>模板文件</summary>

* [商品级撤销模板](https://res.cloudinary.com/product-enablement/raw/upload/v1768298926/CSVs/Batch%20Action%20Processing/Item-level_reversals_template.csv)

此示例中 SKU O7427540 出现两次，因为一行用于撤销（Amount=0），另一行用于修改（Amount=15）。

</details>

{% hint style="info" %}
**注意：** 如果您预计会有重复的 *OrderIds* 并选择使用以下组合 *OrderId + ActionTrackerId*，impact.com 默认会将更新应用于最新的 *ActionId* 请使用旧的 *ActionId* 如果您想将更新应用于较早的 *ActionId*.
{% endhint %}

#### 原因代码

每次修改或撤销操作数据时，都必须提供原因。请使用下方相应的原因代码，说明更新此操作的原因。

{% hint style="warning" %}
**警告：** 传入不受支持的值会导致该条目无法处理，并返回错误。如果您需要自定义原因代码，请联系您的客户成功经理（CSM），或 [**联系支持团队**](https://app.impact.com/support/portal.ihtml?createTicket=true&) **以讨论处置代码**.
{% endhint %}

<table><thead><tr><th width="239.2734375">代码</th><th>说明</th></tr></thead><tbody><tr><td><code>CONS_FRAUD</code></td><td>消费者欺诈</td></tr><tr><td><code>CONS_ERROR</code></td><td>消费者错误</td></tr><tr><td><code>ITEM_RETURNED</code></td><td>商品已退回</td></tr><tr><td><code>APPROVED</code></td><td><p>操作已获批准</p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p><strong>注意：</strong> 如果您想批准操作， <code>Approve</code> 需要设置为 <a href="https://help.impact.com/brand/what-would-you-like-to-learn-about/platform-features/tracking/set-up-tracking/manage-disposition-codes">自定义处置代码</a>.</p></div></td></tr><tr><td><code>ORDER_ERROR</code></td><td>订单错误</td></tr><tr><td><code>ORDER_UPDATE</code></td><td>订单已更新</td></tr><tr><td><code>PUB_ACT_DISPUTE</code></td><td>合作伙伴活动争议</td></tr><tr><td><code>ADV_ACT_DISPUTE</code></td><td>品牌活动争议</td></tr><tr><td><code>NOT_COMPLIANCE_TERMS</code></td><td>不符合条款要求</td></tr><tr><td><code>ITEM_OUT_OF_STOCK</code></td><td>商品缺货</td></tr><tr><td><code>TEST_ACTION</code></td><td>测试操作</td></tr><tr><td><code>PARTNER_NOT_ACTIVE</code></td><td>合作伙伴账户已停用</td></tr><tr><td><code>CREDITED_DIFFERENT_MP</code></td><td>已将款项记入其他合作伙伴账户</td></tr><tr><td><code>OTHER</code></td><td>其他原因</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.impact.com/brand/zh/what-would-you-like-to-learn-about/platform-features/submit-and-modify-conversion-data/batch-modify-conversion-data/batch-modifications-and-reversals-reference.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
