

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# AWS Marketplace 事件的 Amazon EventBridge 通知
<a name="buyer-notifications-eventbridge"></a>

AWS Marketplace 已與 Amazon EventBridge 整合，先前稱為 Amazon CloudWatch Events。EventBridge 是一種事件匯流排服務，可用來將應用程式與來自各種來源的資料連線。如需詳細資訊，請參閱[https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-what-is.html](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-what-is.html)。

AWS Marketplace 會傳送下列類型的 EventBridge 事件：
+ [探索 API 事件](buyer-eventbridge.md) – AWS Marketplace 每次賣方建立優惠並開放購買時，買方都會收到事件。事件包含產品 ID、過期日期、產品詳細資訊和賣方名稱等詳細資訊。
+ [私有市場事件](pmp-eventbridge.md) – AWS Marketplace 每次買方建立產品請求，以及請求獲得核准或拒絕時，私有市場管理員和買方都會收到事件。事件包含產品詳細資訊和賣方名稱等詳細資訊。
+ [協議事件](agreement-eventbridge.md) – 在您協議生命週期內發生特定事件 （即您已購買的優惠） 時 AWS Marketplace ，傳送通知至 Amazon EventBridge。事件包含協議 ID、優惠 ID 和協議狀態等詳細資訊。
+ [取消和帳單調整事件](cancellation-adjustment-eventbridge.md) – 當賣方針對您的其中一個協議啟動取消請求或帳單調整 （退款） 時， AWS Marketplace 向 Amazon EventBridge 傳送通知。

**注意**  
如需建立 EventBridge 規則的資訊，請參閱《[Amazon EventBridge 使用者指南](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-rules.html)*》中的 Amazon EventBridge *規則。

# AWS Marketplace 探索 API Amazon EventBridge 事件
<a name="buyer-eventbridge"></a>

身為買方， AWS Marketplace 每次賣方建立優惠並開放購買時，您都會收到*事件*。事件包含賣方 ID、到期日、產品詳細資訊和賣方名稱等詳細資訊。

本主題提供有關下表所列事件的詳細資訊。


****  

| 賣方的動作 | 買方接收的事件 | 其他資訊 | 
| --- | --- | --- | 
| 建立優惠並可供購買 | Listing Available | [新清單的事件](#events-listingavailable) | 

## 新清單的事件
<a name="events-listingavailable"></a>

當賣方建立優惠並可供購買時，買方會收到具有`Listing Available`詳細資訊類型的事件。

下列範例顯示事件的事件內文`Listing Available`。

```
{
    "version": "0",
    "id": "01234567-0123-0123-0123-0123456789ab",
    "detail-type": "Listing Available",
    "source": "aws.discovery-marketplace",
    "account": "123456789012",
    "time": "2023-08-26T00:00:00Z",
    "region": "us-east-1",
    "resources": [],
    "detail": {
        "requestId": "3d4c9f9b-b809-4f5e-9fac-a9ae98b05cbb",
        "catalog": "AWSMarketplace",
        "offer": {
            "id": "offer-1234567890123",
            "expirationDate": "2025-08-26T00:00:00Z"
        },
        "product": {
            "id": "bbbbaaaa-abcd-1111-abcd-666666666666",
            "title": "Product Title"
        },
        "sellerOfRecord": {
            "name": "Seller Name"
        }
    }
}
```

# AWS Marketplace Private Marketplace EventBridge 事件
<a name="pmp-eventbridge"></a>

 AWS Marketplace 每次買方建立產品請求時，私有市場管理員和買方都會收到*事件*。當請求獲得核准或拒絕時，他們也會收到事件。事件包含產品 IDs和賣方名稱等詳細資訊。

本節中的主題提供有關下表所列事件的詳細資訊。


| Action | 已接收的事件 | 其他資訊 | 
| --- | --- | --- | 
| 買方為其私有市場請求產品  |  已建立產品請求  |  [新產品請求事件](#event-new-product-requests)  | 
| 管理員核准產品  |  產品請求已核准  |  [產品請求核准事件](#event-when-request-approved)  | 
| 管理員拒絕產品或系統在 30 天後自動拒絕  |  產品請求遭拒  |  [產品請求遭拒事件](#event-request-declined)  | 
| 買方取消其 Private Marketplace 的產品請求 |  產品請求已取消  |  [產品請求已取消事件](#event-request-cancelled)  | 
| 系統會在 30 天後自動拒絕產品請求 |  產品請求已過期  |  [產品請求過期事件](#event-request-expired)  | 

## 新產品請求事件
<a name="event-new-product-requests"></a>

當買方為其 Private Marketplace 目錄請求產品時，買方和 Private Marketplace 管理員會收到具有`Product Request Created`詳細資訊類型的事件。

下列範例顯示事件的事件內文`Product Request Created`。

```
{
  "version": "0", 		 	 	                   
  "id": "01234567-0123-0123-0123-0123456789ab",
  "detail-type": "Product Request Created",
  "source": "aws.private-marketplace",
  "account": "255182084545",
  "time": "2016-11-01T13:12:22Z",
  "region": "us-east-1",
  "resources": [
    "arn:aws:aws-marketplace:us-east-1:255182084545:AWSMarketplace/Experience/exp-12345",
    "arn:aws:aws-marketplace:us-east-1:982534358349:AWSMarketplace/ProductProcurementRequest/prodprocreq-67890"
  ],
  "detail": {
    "requestId": "3d4c9f9b-b809-4f5e-9fac-a9ae98b05cbb",
    "expirationDate": "2022-11-01T13:12:22Z",
    "schemaVersion": "1.0.0",
    "product": {
        "id": "product-12345",
        "arn": "arn:aws:aws-marketplace:us-east-1:123456789012:AWSMarketplace/SaaSProduct/product-12345",
        "title": "MSP360 Backup for Google Workspace"
    },
    "manufacturer": {
        "name": "Test Vendor"
    },
    "experienceId": "exp-12345",
    "productProcurementRequestId": "prodprocreq-67890",
    "catalog": "AWSMarketplace",
    "requesterArn": "arn:aws:iam::255182084545:user/pmp-enduser"
  }
}
```

## 產品請求核准事件
<a name="event-when-request-approved"></a>

當 Private Marketplace 管理員核准買方私有 Marketplace 目錄的產品時，買方和私有 Marketplace 管理員會收到具有`Product Request Approved`詳細資訊類型的事件。

下列範例顯示事件的事件內文`Product Request Approved`。

```
{
  "version": "0", 		 	 	                   
  "id": "01234567-0123-0123-0123-0123456789ab",
  "detail-type": "Product Request Approved",
  "source": "aws.private-marketplace",
  "account": "255182084545",
  "time": "2016-11-01T13:12:22Z",
  "region": "us-east-1",
  "resources": [
    "arn:aws:aws-marketplace:us-east-1:255182084545:AWSMarketplace/Experience/exp-12345",
    "arn:aws:aws-marketplace:us-east-1:982534358349:AWSMarketplace/ProductProcurementRequest/prodprocreq-67890"
  ],
  "detail": {
    "requestId": "3d4c9f9b-b809-4f5e-9fac-a9ae98b05cbb",
    "approvedDate": "2022-11-05T13:12:22Z",
    "schemaVersion": "1.0.0",
    "product": {
        "id": "product-12345",
        "arn": "arn:aws:aws-marketplace:us-east-1:123456789012:AWSMarketplace/SaaSProduct/product-12345",
        "title": "MSP360 Backup for Google Workspace"
    },
    "manufacturer": {
        "name": "Test Vendor"
    },
    "experienceId": "exp-12345",
    "productProcurementRequestId": "prodprocreq-67890",
    "catalog": "AWSMarketplace",
    "requesterArn": "arn:aws:iam::255182084545:user/pmp-enduser"
  }
}
```

## 產品請求遭拒事件
<a name="event-request-declined"></a>

當 Private Marketplace 管理員拒絕新增產品時，買方和 Private Marketplace 管理員會收到具有`Product Request Declined`詳細資訊類型的事件。

下列範例顯示事件的事件內文`Product Request Declined`。

```
{
  "version": "0", 		 	 	                   
  "id": "01234567-0123-0123-0123-0123456789ab",
  "detail-type": "Product Request Declined",
  "source": "aws.private-marketplace",
  "account": "255182084545",
  "time": "2016-11-01T13:12:22Z",
  "region": "us-east-1",
  "resources": [
    "arn:aws:aws-marketplace:us-east-1:255182084545:AWSMarketplace/Experience/exp-12345",
    "arn:aws:aws-marketplace:us-east-1:982534358349:AWSMarketplace/ProductProcurementRequest/prodprocreq-67890"
  ],
  "detail": {
    "requestId": "3d4c9f9b-b809-4f5e-9fac-a9ae98b05cbb",
    "declinedDate": "2022-11-05T13:12:22Z",
    "declinedCause": "REQUEST_EXPIRED",
    "schemaVersion": "1.0.0",
    "product": {
        "id": "product-12345",
        "arn": "arn:aws:aws-marketplace:us-east-1:123456789012:AWSMarketplace/SaaSProduct/product-12345",
        "title": "MSP360 Backup for Google Workspace"
    },
    "manufacturer": {
        "name": "Test Vendor"
    },
    "experienceId": "exp-12345",
    "productProcurementRequestId": "prodprocreq-67890",
    "catalog": "AWSMarketplace",
    "requesterArn": "arn:aws:iam::255182084545:user/pmp-enduser"
  }
}
```

## 產品請求已取消事件
<a name="event-request-cancelled"></a>

當 Private Marketplace 買方取消產品請求時，買方和 Private Marketplace 管理員會收到具有`Product Request Cancelled`詳細資訊類型的事件。

下列範例顯示事件的事件內文`Product Request Cancelled`。

```
{
  "version": "0", 		 	 	 
  "id": "01234567-0123-0123-0123-0123456789ab", 
  "detail-type": "Product Request Cancelled",
  "source": "aws.private-marketplace", // Event is specific to Private Marketplace
  "account": "982534358349",
  "time": "2016-11-01T13:12:22Z",
  "region": "us-east-1",
  "resources": [
    "arn:aws:aws-marketplace:us-east-1:255182084545:AWSMarketplace/Experience/exp-12345",
    "arn:aws:aws-marketplace:us-east-1:982534358349:AWSMarketplace/ProductProcurementRequest/prodprocreq-67890"
  ],
  "detail": {
    "requestId": "3d4c9f9b-b809-4f5e-9fac-a9ae98b05cbb",
    "cancelledDate": "2022-11-05T13:12:22Z",
    "schemaVersion": "1.0.0",
    "product": {
        "id": "prod-xpaczqtfx7xqe",
        "arn": "arn:aws:aws-marketplace:us-east-1:123456789012:AWSMarketplace/SaaSProduct/product-12345",
        "title": "MSP360 Backup for Google Workspace"
    },
    "manufacturer": {
        "name": "Test Vendor"
    },
    "experienceId": "exp-12345",
    "productProcurementRequestId": "prodprocreq-67890",
    "catalog": "AWSMarketplace",
    "requesterArn": "arn:aws:iam::982534358349:enduser1"
  }
}
```

## 產品請求過期事件
<a name="event-request-expired"></a>

當 Private Marketplace 產品請求在 30 天後過期時，買方和 Private Marketplace 管理員會收到具有`Product Request Expired`詳細資訊類型的事件。

下列範例顯示事件的事件內文`Product Request Expired`。

```
{
  "version": "0", 		 	 	                   
  "id": "01234567-0123-0123-0123-0123456789ab",
  "detail-type": "Product Request Expired",
  "source": "aws.private-marketplace",
  "account": "255182084545",
  "time": "2016-11-01T13:12:22Z",
  "region": "us-east-1",
  "resources": [
    "arn:aws:aws-marketplace:us-east-1:255182084545:AWSMarketplace/Experience/exp-12345",
    "arn:aws:aws-marketplace:us-east-1:982534358349:AWSMarketplace/ProductProcurementRequest/prodprocreq-67890"
  ],
  "detail": {
    "requestId": "3d4c9f9b-b809-4f5e-9fac-a9ae98b05cbb",
    "declinedDate": "2022-11-05T13:12:22Z",
    "declinedCause": "REQUEST_EXPIRED",
    "schemaVersion": "1.0.0",
    "product": {
        "id": "product-12345",
        "arn": "arn:aws:aws-marketplace:us-east-1:123456789012:AWSMarketplace/SaaSProduct/product-12345",
        "title": "MSP360 Backup for Google Workspace"
    },
    "manufacturer": {
        "name": "Test Vendor"
    },
    "experienceId": "exp-12345",
    "productProcurementRequestId": "prodprocreq-67890",
    "catalog": "AWSMarketplace",
    "requesterArn": "arn:aws:iam::255182084545:user/pmp-enduser"
  }
}
```

# AWS Marketplace 協議 EventBridge 事件
<a name="agreement-eventbridge"></a>

AWS Marketplace 當您的協議生命週期內發生特定事件 （即您已購買的優惠） 時， 會傳送通知給 Amazon EventBridge。您可以使用這些事件來自動化工作流程並追蹤您的市集購買。

下表列出 AWS Marketplace 傳送至 EventBridge 的買方事件：


| 事件 | Description | 
| --- | --- | 
| 已建立購買協議 - 接受者 | 在您的帳戶中建立新的購買協議、續約或取代時傳送 | 
| 購買協議已修訂 - 接受者 | 對現有購買協議進行修改時傳送 | 
| 購買協議已結束 - 接受者 | 當購買協議取消、過期、終止、續約或取代時傳送 | 
| 購買協議結束 - 接受者 | 在購買協議到期前 30、60 和 90 天傳送 | 

## 概觀
<a name="agreement-events-overview"></a>

買方會收到下列購買協議生命週期事件的 EventBridge 通知：
+ 建立協議
+ 協議修訂
+ 協議結束 （取消、過期或終止）
+ 協議結束

所有事件都會傳送到 `us-east-1`區域中具有事件來源 的預設 EventBridge 事件匯流排`aws.agreement-marketplace`。

## 事件類型
<a name="agreement-event-types"></a>

### 已建立購買協議 - 接受者
<a name="agreement-created-event"></a>

AWS Marketplace 在您的帳戶中建立新的購買協議時， 會傳送此事件。

**觸發案例：**
+ `NEW` - 第一次建立協議
+ `REPLACE` - 新的私有優惠需要接受作為以協議為基礎的優惠 (ABO) 的一部分
+ `RENEW` - 協議會在到期時自動續約 （如果啟用）

**事件結構描述：**

```
{
  "version": "0",
  "id": "abcd1234-5678-90ef-ghij-klmnopqrstuv",
  "detail-type": "Purchase Agreement Created - Acceptor",
  "source": "aws.agreement-marketplace",
  "account": "<Buyer Account ID>",
  "time": "2024-08-30T21:36:03Z",
  "region": "us-east-1",
  "resources": [
    "arn:aws:aws-marketplace::agreement:agmt-9xyz8wmklp67rt32nb1qv45ds"
  ],
  "detail": {
    "requestId": "7f3e2d1c-a9b8-4f5e-6d7c-1234567890ab",
    "catalog": "AWSMarketplace",
    "agreement": {
      "id": "agmt-9xyz8wmklp67rt32nb1qv45ds",
      "intent": "NEW|RENEW|REPLACE",
      "status": "ACTIVE",
      "acceptanceTime": "2024-06-26T21:36:03Z",
      "startTime": "2024-08-30T21:36:03Z",
      "endTime": "2025-05-30T21:36:03Z"
    },
    "acceptor": {
      "accountId": "<Buyer Account ID>"
    },
    "proposer": {
      "accountId": "<Proposer Account ID>"
    },
    "offer": {
      "id": "offer-abcdef123456"
    }
  }
}
```

### 購買協議已修訂 - 接受者
<a name="agreement-amended-event"></a>

AWS Marketplace 會在對現有購買協議進行修改時傳送此事件，例如條款、定價或其他協議參數的變更。

**事件結構描述：**

```
{
  "version": "0",
  "id": "12345678-1234-1234-1234-123456789012",
  "detail-type": "Purchase Agreement Amended Acceptor",
  "source": "aws.agreement-marketplace",
  "account": "<Buyer Account ID>",
  "time": "2024-08-30T21:36:03Z",
  "region": "us-east-1",
  "resources": [
    "arn:aws:aws-marketplace::aws:agreement:agmt-4mwg1nevbokzw95eca5797ixs"
  ],
  "detail": {
    "requestId": "3d4c9f9b-b809-4f5e-9fac-a9ae98b05cbb",
    "catalog": "AWSMarketplace",
    "agreement": {
      "id": "agmt-4mwg1nevbokzw95eca5797ixs",
      "intent": "AMEND",
      "status": "ACTIVE",
      "acceptanceTime": "2024-06-26T21:36:03Z",
      "startTime": "2024-08-30T21:36:03Z",
      "endTime": "2025-05-30T21:36:03Z"
    },
    "acceptor": {
      "accountId": "<Buyer Account ID>"
    },
    "proposer": {
      "accountId": "<Proposer Account ID>"
    },
    "offer": {
      "id": "offer-1234567890123"
    }
  }
}
```

### 購買協議已結束 - 接受者
<a name="agreement-ended-event"></a>

AWS Marketplace 會在購買協議結束時傳送此事件。

**觸發案例：**
+ `CANCELLED` - 您在定義的結束日期之前結束協議
+ `EXPIRED` - 協議已達到其定義的結束日期
+ `TERMINATED` AWS 終止協議 （例如，由於付款失敗）
+ `RENEWED` - 協議已續約為新的協議
+ `REPLACED` - 已使用協議替代優惠取代協議

**事件結構描述：**

```
{
  "version": "0",
  "id": "abcd1234-5678-90ef-ghij-klmnopqrstuv",
  "detail-type": "Purchase Agreement Ended - Acceptor",
  "source": "aws.agreement-marketplace",
  "account": "987654321098",
  "time": "2024-08-30T21:36:03Z",
  "region": "us-east-1",
  "resources": [
    "arn:aws:aws-marketplace:aws:agreement:agmt-9xyz8wmklp67rt32nb1qv45ds"
  ],
  "detail": {
    "requestId": "7f3e2d1c-a9b8-4f5e-6d7c-1234567890ab",
    "catalog": "AWSMarketplace",
    "agreement": {
      "id": "agmt-9xyz8wmklp67rt32nb1qv45ds",
      "status": "CANCELLED|EXPIRED|RENEWED|REPLACED|TERMINATED"
    },
    "acceptor": {
      "accountId": "<Buyer Account ID>"
    },
    "proposer": {
      "accountId": "<Proposer Account ID>"
    },
    "offer": {
      "id": "offer-abcdef123456"
    }
  }
}
```

### 購買協議結束 - 接受者
<a name="agreement-ending-event"></a>

AWS Marketplace 會在購買協議到期前 30、60 和 90 天傳送此事件。

此事件包含其他買方事件中不存在的其他欄位：
+ `agreement.autoRenewalEnabled` - 指出協議是否已啟用自動續約
+ `product.id` 和 `product.title` - 協議的產品資訊
+ `proposer.name` 和 `offer.name` - 賣方和優惠的人類可讀名稱

**事件結構描述：**

```
{
  "version": "0",
  "id": "abcd1234-5678-90ef-ghij-klmnopqrstuv",
  "detail-type": "Purchase Agreement Ending - Acceptor",
  "source": "aws.agreement-marketplace",
  "account": "<Buyer Account ID>",
  "time": "2025-03-31T21:36:03Z",
  "region": "us-east-1",
  "resources": [
    "arn:aws:aws-marketplace::aws:agreement:agmt-9xyz8wmklp67rt32nb1qv45ds"
  ],
  "detail": {
    "requestId": "7f3e2d1c-a9b8-4f5e-6d7c-1234567890ab",
    "catalog": "AWSMarketplace",
    "agreement": {
      "id": "agmt-9xyz8wmklp67rt32nb1qv45ds",
      "startTime": "2024-08-30T21:36:03Z",
      "endTime": "2025-05-30T21:36:03Z",
      "autoRenewalEnabled": true,
      "status": "ACTIVE"
    },
    "product": {
      "id": "prod-abc123xyz456",
      "title": "Example Product Title"
    },
    "acceptor": {
      "accountId": "<Buyer Account ID>"
    },
    "proposer": {
      "name": "Example Seller Name",
      "accountId": "<Proposer Account ID>"
    },
    "offer": {
      "id": "offer-abcdef123456",
      "name": "Example Offer Name"
    }
  }
}
```

## 常見事件欄位
<a name="agreement-common-fields"></a>

所有買方事件都包含以下常見欄位：


| 欄位 | Description | 
| --- | --- | 
| requestId | 用來刪除重複重複事件的 UUID | 
| catalog |  AWS Marketplace 目錄 （通常為「AWSMarketplace」) | 
| agreementId | 協議的唯一識別符 | 
| acceptor.accountId |  AWS 您的帳戶 ID | 
| proposer.accountId | 賣方 AWS 的帳戶 ID | 
| offer.id | 優惠識別符 | 

## 設定 EventBridge 規則
<a name="agreement-eventbridge-setup"></a>

若要接收這些通知，請建立符合買方事件事件模式的 EventBridge 規則。如需建立規則的詳細資訊，請參閱《[Amazon EventBridge 使用者指南》中的建立](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-create-rule.html) *Amazon EventBridge *規則。

# 取消和計費調整事件
<a name="cancellation-adjustment-eventbridge"></a>

AWS Marketplace 當賣方針對您的其中一個協議啟動取消請求或帳單調整時， 會向 Amazon EventBridge 傳送通知。您可以使用這些事件來自動化工作流程，並追蹤取消和退款活動。

下表列出 AWS Marketplace 傳送至 EventBridge 以進行取消和帳單調整的買方事件：


| 事件 | Description | 
| --- | --- | 
| 待核准協議取消請求 - 接受者 | 當賣方提交您協議的取消請求時傳送。必要動作：您有 7 天的時間核准或拒絕。 | 
| 協議取消請求已核准 - 接受者 | 當您核准取消請求或在 7 天後自動核准時傳送 | 
| 協議取消請求遭拒 - 接受者 | 當您拒絕取消請求時傳送 | 
| 協議取消請求已取消 - 接受者 | 當賣方撤銷取消請求時傳送 | 
| 購買協議帳單調整已完成 - 接受者 | 在處理您協議的帳單調整 （退款） 時傳送 | 

所有事件都會傳送到 `us-east-1`區域中具有事件來源 的預設 EventBridge 事件匯流排`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)。