

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# AWS Marketplace イベントの Amazon EventBridge 通知
<a name="buyer-notifications-eventbridge"></a>

AWS Marketplace は、以前は Amazon CloudWatch Events と呼ばれていた Amazon EventBridge と統合されています。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 イベントを送信します。
+ [Discovery API イベント](buyer-eventbridge.md) – 購入者は、販売者がオファーを作成し、購入可能にする AWS Marketplace たびに、 からイベントを受け取ります。イベントには、製品 ID、有効期限、製品の詳細、販売者名などの詳細が含まれます。
+ [プライベートマーケットプレイスイベント](pmp-eventbridge.md) – プライベートマーケットプレイス管理者と購入者は、購入者が製品リクエストを作成する AWS Marketplace たびに、およびリクエストが承認または拒否されるたびに、 からイベントを受け取ります。イベントには、製品詳細や販売者名などの詳細が含まれます。
+ [契約イベント](agreement-eventbridge.md) – 契約のライフサイクル中に特定のイベントが発生したときに Amazon EventBridge に通知 AWS Marketplace を送信します (つまり、購入したオファー）。イベントには、契約 ID、オファー ID、契約の状態などの詳細が含まれます。
+ [キャンセルおよび請求調整イベント](cancellation-adjustment-eventbridge.md) – 販売者がいずれかの契約のキャンセルリクエストまたは請求調整 (返金) を開始したときに、Amazon EventBridge に通知 AWS Marketplace を送信します。

**注記**  
EventBridge ルールの作成の詳細については、「Amazon EventBridge ユーザーガイド」の「[Amazon EventBridge ルール](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-rules.html)」を参照してください。**

# AWS Marketplace Discovery 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 から*イベント*を受信します。また、リクエストが承認または拒否された際もイベントを受信します。イベントには、製品 ID や販売者名などの詳細が含まれます。

このセクションのトピックでは、次のテーブルに一覧されるイベントについて詳述します。


| 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 管理者が購入者の Private Marketplace カタログの製品を承認すると、購入者と Private 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 に通知を送信します。これらのイベントを使用してワークフローを自動化し、マーケットプレイスの購入を追跡できます。

次の表に、 が EventBridge AWS Marketplace に送信する購入者イベントを示します。


| [Event] (イベント) | 説明 | 
| --- | --- | 
| 購入契約の作成 - アクセプタ | アカウントで新しい購入契約を作成、更新、または置き換えたときに送信されます。 | 
| 購入契約の修正 - アクセプタ | 既存の購入契約に変更が加えられたときに送信されます | 
| 購入契約の終了 - アクセプタ | 購入契約がキャンセル、期限切れ、終了、更新、または置き換えられたときに送信されます | 
| 購入契約の終了 - アクセプタ | 購入契約の有効期限が切れる 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>

すべての購入者イベントには、次の共通フィールドが含まれます。


| フィールド | 説明 | 
| --- | --- | 
| 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 ユーザーガイド」の「Amazon EventBridge ルールの作成](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-create-rule.html)」を参照してください。 * EventBridge *

# キャンセルと請求調整イベント
<a name="cancellation-adjustment-eventbridge"></a>

AWS Marketplace は、販売者がいずれかの契約のキャンセルリクエストまたは請求調整を開始すると、Amazon EventBridge に通知を送信します。これらのイベントを使用してワークフローを自動化し、キャンセルと返金のアクティビティを追跡できます。

次の表に、キャンセルと請求調整のために が EventBridge AWS Marketplace に送信する購入者イベントを示します。


| [Event] (イベント) | 説明 | 
| --- | --- | 
| 承認保留中の契約キャンセルリクエスト - アクセプタ | 販売者が契約のキャンセルリクエストを送信すると送信されます。必要なアクション: 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)。