# APIを介して一括変更または取り消す

<a href="https://pxa.impact.com/student/activity/2268418?sid=0c0e3e5c-54c9-4435-9bee-ebcdccb7f292&#x26;sid_i=0?utm_source=app.impact.com&#x26;utm_medium=owned-platform&#x26;utm_content=&#x26;utm_campaign=help-center" class="button primary">PXAコースを受講する</a>

アクションに関する何かが変更された場合（例：注文がキャンセルされた、商品が返品されたなど）、APIを使ってそれを修正（または取り消し）し、そのアクションのコミッション金額を変更できます。

### どの送信方法が適していますか？

### APIによる取り消しオプション：

* [APIを介して1つ以上のアクション項目を修正または取り消す](https://integrations.impact.com/impact-brand/reference/update-an-action-item)
* [APIを介してアクション全体を取り消す](https://integrations.impact.com/impact-brand/reference/reverse-an-action)

### 前提条件：次を取得する *ActionId* 値

API経由でアクションデータを修正するには、その `ActionId` 値が必要です。これを使って、API経由で修正したいアクションを見つけられます。

* 呼び出し時に日付範囲を指定できます。指定しない場合、エンドポイントの既定では直近30日間のアクションが表示されます。
* [レート制限が](https://integrations.impact.com/impact-brand/reference/rate-limits) 適用されます。
* 以下の [すべてのアクションを一覧表示](https://integrations.impact.com/impact-brand/reference/list-all-actions) 詳細はAPIエンドポイントのドキュメントをご覧ください。

### よくある質問

<details>

<summary>アクションに対して行った修正／取り消しをリセットするにはどうすればよいですか？</summary>

アクションがロック日以前に修正または取り消しされている場合は、 `RESET` を理由として送信し、アクションを既定の状態に戻すことができます：

```programlisting
curl 'https://api.impact.com/Advertisers/{AccountSID}/Actions' \
  -X PUT \
  -u '{AccountSID}:{AuthToken}' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -d 'ActionId={ActionId}' \
  -d 'Reason=RESET'
```

次の方法でリセットされたアクションは `RESET` コードのため、レポートで正しく表示されない場合があります（例：収益値が正しく計算されない可能性があります）。

</details>

<details>

<summary>処分コードと理由の違いは何ですか？</summary>

どちらも *処分コード* および *理由* は同じ文脈で使用されます — *理由* は、APIが既定で受け入れる定義済みコードであるのに対し、 *処分コード* は、設定できるカスタム理由です。 [処分コードの詳細を見る](/brand/ja/nitsuitebitaidesuka/platform-features/tracking/set-up-tracking/manage-disposition-codes.md).

サポートされている理由コード：

</details>

<details>

<summary>修正／取り消しがアクションにいつ適用されたかを確認するにはどうすればよいですか？</summary>

を使用できます [アクション更新](https://integrations.impact.com/impact-brand/reference/the-action-update-object) エンドポイントを使って、アクションが最後に更新された時刻と現在の状態を確認できます。

{% hint style="info" %}
**注:** An `ActionUpdatesID` 値は `ActionId` 値とは異なります — 取得するには `ActionUpdatesID` 値を使用して、そのアクションの更新を取得する必要があります。
{% endhint %}

</details>


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.impact.com/brand/ja/nitsuitebitaidesuka/platform-features/submit-and-modify-conversion-data/batch-modify-conversion-data/batch-process-reversals-via-api-web-services-overview.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
