

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 取消和账单调整事件
<a name="cancellation-adjustment-eventbridge"></a>

AWS Marketplace EventBridge 当卖家针对您的协议发起取消请求或账单调整时，会向 Amazon 发送通知。您可以使用这些事件来自动化工作流程并跟踪取消和退款活动。

下表列出了为取消和账单调整而 AWS Marketplace 发送到 EventBridge 的买家事件：


| 事件 | 说明 | 
| --- | --- | 
| 协议取消请求待批准-接受者 | 当卖家针对您的协议提交取消请求时发送。需要采取的行动：您有 7 天的时间来批准或拒绝。 | 
| 协议取消请求已获批准-接受者 | 当取消请求获得您批准或在 7 天后自动批准时发送 | 
| 协议取消请求被拒绝-接受者 | 在您拒绝取消请求时发送 | 
| 取消协议请求已取消-接受者 | 在卖家撤回取消请求时发送 | 
| 购买协议账单调整已完成-接受者 | 在处理您协议的账单调整（退款）时发送 | 

所有事件都将与 EventBridge 事件源一起发送到您`us-east-1`所在区域的默认事件总线`aws.agreement-marketplace`。

## 取消请求事件类型
<a name="cancellation-event-types"></a>

### 协议取消请求待批准-接受者
<a name="cancellation-pending-approval-acceptor"></a>

AWS Marketplace 当卖家针对您的协议提交取消请求时发送此事件。您有 7 天的时间来批准或拒绝申请。如果您不回复，取消将自动获得批准。

**事件架构：**

```
{
  "version": "0",
  "id": "01234567-0123-0123-0123-0123456789ab",
  "detail-type": "Agreement Cancellation Request Pending Approval - Acceptor",
  "source": "aws.agreement-marketplace",
  "account": "123456789012",
  "time": "2025-01-01T13:12:22Z",
  "region": "us-east-1",
  "resources": [],
  "detail": {
    "requestId": "3d4c9f9b-b809-4f5e-9fac-a9ae98b05cbb",
    "catalog": "AWSMarketplace",
    "agreement": {
      "id": "agmt-abcdexampleid",
      "proposerId": "123456789012",
      "productId": "prod-exampleid",
      "offerId": "offer-exampleid"
    },
    "agreementCancellationRequest": {
      "id": "acr-abcdexampleid",
      "reasonCode": "INCORRECT_TERMS_ACCEPTED",
      "reasonMessage": "",
      "statusCode": "PENDING_APPROVAL",
      "statusMessage": "",
      "createdAt": "2025-01-01T13:12:22Z",
      "updatedAt": "2025-01-01T13:12:22Z"
    }
  }
}
```

### 协议取消请求已获批准-接受者
<a name="cancellation-approved-acceptor"></a>

AWS Marketplace 当您的其中一个协议的取消请求获得批准时，将发送此事件。当您批准请求或在 7 天后自动批准请求但没有得到回复时，就会发生这种情况。

**事件架构：**

```
{
  "version": "0",
  "id": "01234567-0123-0123-0123-0123456789ab",
  "detail-type": "Agreement Cancellation Request Approved - Acceptor",
  "source": "aws.agreement-marketplace",
  "account": "123456789012",
  "time": "2025-01-01T13:16:07Z",
  "region": "us-east-1",
  "resources": [],
  "detail": {
    "requestId": "3d4c9f9b-b809-4f5e-9fac-a9ae98b05cbb",
    "catalog": "AWSMarketplace",
    "agreement": {
      "id": "agmt-abcdexampleid",
      "proposerId": "123456789012",
      "productId": "prod-exampleid",
      "offerId": "offer-exampleid"
    },
    "agreementCancellationRequest": {
      "id": "acr-abcdexampleid",
      "reasonCode": "INCORRECT_TERMS_ACCEPTED",
      "reasonMessage": "The terms accepted in agreement had wrong rate",
      "statusCode": "APPROVED",
      "statusMessage": "",
      "createdAt": "2025-01-01T13:12:22Z",
      "updatedAt": "2025-01-01T13:16:07Z"
    }
  }
}
```

### 协议取消请求被拒绝-接受者
<a name="cancellation-rejected-acceptor"></a>

AWS Marketplace 当您拒绝某份协议的取消请求时，将发送此事件。

**事件架构：**

```
{
  "version": "0",
  "id": "01234567-0123-0123-0123-0123456789ab",
  "detail-type": "Agreement Cancellation Request Rejected - Acceptor",
  "source": "aws.agreement-marketplace",
  "account": "123456789012",
  "time": "2025-01-02T10:30:00Z",
  "region": "us-east-1",
  "resources": [],
  "detail": {
    "requestId": "3d4c9f9b-b809-4f5e-9fac-a9ae98b05cbb",
    "catalog": "AWSMarketplace",
    "agreement": {
      "id": "agmt-abcdexampleid",
      "proposerId": "123456789012",
      "productId": "prod-exampleid",
      "offerId": "offer-exampleid"
    },
    "agreementCancellationRequest": {
      "id": "acr-abcdexampleid",
      "reasonCode": "INCORRECT_TERMS_ACCEPTED",
      "reasonMessage": "",
      "statusCode": "REJECTED",
      "statusMessage": "We still need this product",
      "createdAt": "2025-01-01T13:12:22Z",
      "updatedAt": "2025-01-02T10:30:00Z"
    }
  }
}
```

### 取消协议请求已取消-接受者
<a name="cancellation-cancelled-acceptor"></a>

AWS Marketplace 当卖家在您回复之前撤回取消请求时发送此事件。

**事件架构：**

```
{
  "version": "0",
  "id": "01234567-0123-0123-0123-0123456789ab",
  "detail-type": "Agreement Cancellation Request Cancelled - Acceptor",
  "source": "aws.agreement-marketplace",
  "account": "123456789012",
  "time": "2025-01-02T08:00:00Z",
  "region": "us-east-1",
  "resources": [],
  "detail": {
    "requestId": "3d4c9f9b-b809-4f5e-9fac-a9ae98b05cbb",
    "catalog": "AWSMarketplace",
    "agreement": {
      "id": "agmt-abcdexampleid",
      "proposerId": "123456789012",
      "productId": "prod-exampleid",
      "offerId": "offer-exampleid"
    },
    "agreementCancellationRequest": {
      "id": "acr-abcdexampleid",
      "reasonCode": "INCORRECT_TERMS_ACCEPTED",
      "reasonMessage": "",
      "statusCode": "CANCELLED",
      "statusMessage": "Seller withdrew the request",
      "createdAt": "2025-01-01T13:12:22Z",
      "updatedAt": "2025-01-02T08:00:00Z"
    }
  }
}
```

## 账单调整事件类型
<a name="billing-adjustment-event-types"></a>

### 购买协议账单调整已完成-接受者
<a name="billing-adjustment-successful-acceptor"></a>

AWS Marketplace 在处理您的其中一项协议的账单调整（退款）时发送此事件。

**事件架构：**

```
{
  "version": "0",
  "id": "01234567-0123-0123-0123-0123456789ab",
  "detail-type": "Purchase Agreement Billing Adjustment Completed - Acceptor",
  "source": "aws.agreement-marketplace",
  "account": "123456789012",
  "time": "2025-01-01T14:00:00Z",
  "region": "us-east-1",
  "resources": [],
  "detail": {
    "requestId": "3d4c9f9b-b809-4f5e-9fac-a9ae98b05cbb",
    "catalog": "AWSMarketplace",
    "agreement": {
      "id": "agmt-abcdexampleid"
    },
    "billingAdjustmentRequest": {
      "id": "ba-abcdexampleid",
      "adjustmentAmount": "-1000.00",
      "currencyCode": "USD",
      "adjustmentReasonCode": "INCORRECT_TERMS_ACCEPTED"
    },
    "invoice": {
      "originalInvoiceId": "2028746221"
    }
  }
}
```

有关回复取消请求和跟踪账单调整的更多信息，请参阅[退款和取消订单 AWS Marketplace](buyer-refunds.md)。