

# Amazon EventBridge notifications for AWS Marketplace events
<a name="buyer-notifications-eventbridge"></a>

AWS Marketplace is integrated with Amazon EventBridge, formerly called Amazon CloudWatch Events. EventBridge is an event bus service that you use to connect your applications with data from a variety of sources. For more information, see the [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 sends the following types of EventBridge events:
+ [Discovery API events](buyer-eventbridge.md) – Buyers receive an event from AWS Marketplace every time a seller creates an offer and makes it available for purchase. The event contains details such the product ID, expiration date, product details, and the seller's name. 
+ [Private marketplace events](pmp-eventbridge.md) – Private marketplace administrators and buyers receive events from AWS Marketplace every time a buyer creates a product request, and when the request is approved or declined. The events contain details like the product details and the seller's name.
+ [Agreement events](agreement-eventbridge.md) – AWS Marketplace sends notifications to Amazon EventBridge when certain events occur during the lifecycle of your agreements (i.e. offers you have purchased). The events contain details like the Agreement ID, Offer ID, and the state of your Agreement.
+ [Cancellation and billing adjustment events](cancellation-adjustment-eventbridge.md) – AWS Marketplace sends notifications to Amazon EventBridge when a seller initiates a cancellation request or billing adjustment (refund) for one of your agreements.

**Note**  
For information on creating EventBridge rules, see [Amazon EventBridge rules](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-rules.html) in the *Amazon EventBridge User Guide*.

# AWS Marketplace Discovery API Amazon EventBridge events
<a name="buyer-eventbridge"></a>

As a buyer, you receive an *event* from AWS Marketplace every time a seller creates an offer and makes it available for purchase. The event contains details such as the seller ID, expiration date, product details, and the seller's name.

This topic provides detailed information about the event listed in the following table.


****  

| Action by seller | Event received by buyer | More information | 
| --- | --- | --- | 
| Creates an offer and makes it available for purchase | Listing Available | [Event for new listings](#events-listingavailable) | 

## Event for new listings
<a name="events-listingavailable"></a>

When a seller creates an offer and makes it available for purchase, the buyer receives an event with the `Listing Available` detail type.

The following example shows the event body for a `Listing Available` event.

```
{
    "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 events
<a name="pmp-eventbridge"></a>

Private marketplace administrators and buyers receive *events* from AWS Marketplace every time a buyer creates a request for a product. They also receive events when the request is approved or declined. The events contain details such as product IDs and seller names. 

The topics in this section provide detailed information about the events listed in the following table.


| Action | Event received | More information | 
| --- | --- | --- | 
| Buyer requests a product for their private marketplace  |  Product Request Created  |  [New product request event](#event-new-product-requests)  | 
| Administrator approves the product  |  Product Request Approved  |  [Product request approved event](#event-when-request-approved)  | 
| Administrator declines the product, or the system auto-declines after 30 days  |  Product Request Declined  |  [Product request declined event](#event-request-declined)  | 
| Buyer cancels a request for product for their Private Marketplace |  Product Request Cancelled  |  [Product request cancelled event](#event-request-cancelled)  | 
| System auto-declines a product request after 30 days |  Product Request Expired  |  [Product request expired event](#event-request-expired)  | 

## New product request event
<a name="event-new-product-requests"></a>

When a buyer requests a product for their Private Marketplace catalog, the buyer and Private Marketplace administrators receive an event with the `Product Request Created` detail type.

The following example shows the event body for a `Product Request Created` event.

```
{
  "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"
  }
}
```

## Product request approved event
<a name="event-when-request-approved"></a>

When a Private Marketplace administrator approves a product for a buyer's Private Marketplace catalog, the buyer and Private Marketplace administrators receive an event with the `Product Request Approved` detail type.

The following example shows the event body for a `Product Request Approved` event.

```
{
  "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"
  }
}
```

## Product request declined event
<a name="event-request-declined"></a>

When a Private Marketplace administrator declines a product addition, the buyer and Private Marketplace administrators receive an event with the `Product Request Declined` detail type.

The following example shows the event body for a `Product Request Declined` event.

```
{
  "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"
  }
}
```

## Product request cancelled event
<a name="event-request-cancelled"></a>

When a Private Marketplace buyer cancels a product request, the buyer and Private Marketplace administrators receive an event with the `Product Request Cancelled` detail type.

The following example shows the event body for a `Product Request Cancelled` event.

```
{
  "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"
  }
}
```

## Product request expired event
<a name="event-request-expired"></a>

When a Private Marketplace product request expires after 30 days, the buyer and Private Marketplace administrators receive an event with the `Product Request Expired` detail type.

The following example shows the event body for a `Product Request Expired` event.

```
{
  "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 Agreement EventBridge Events
<a name="agreement-eventbridge"></a>

AWS Marketplace sends notifications to Amazon EventBridge when certain events occur in the lifecycle of your agreements (i.e. offers you have purchased). You can use these events to automate workflows and track your marketplace purchases.

The following table lists the buyer events that AWS Marketplace sends to EventBridge:


| Event | Description | 
| --- | --- | 
| Purchase Agreement Created - Acceptor | Sent when a new purchase agreement is created, renewed, or replaced in your account | 
| Purchase Agreement Amended - Acceptor | Sent when modifications are made to an existing purchase agreement | 
| Purchase Agreement Ended - Acceptor | Sent when a purchase agreement is cancelled, expired, terminated, renewed, or replaced | 
| Purchase Agreement Ending - Acceptor | Sent 30, 60, and 90 days before a purchase agreement expires | 

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

Buyers receive EventBridge notifications for the following purchase agreement lifecycle events:
+ Agreement creation
+ Agreement amendments
+ Agreement ends (cancellation, expiration, or termination)
+ Agreement ending

All events are sent to your default EventBridge event bus in the `us-east-1` region with the event source `aws.agreement-marketplace`.

## Event Types
<a name="agreement-event-types"></a>

### Purchase Agreement Created - Acceptor
<a name="agreement-created-event"></a>

AWS Marketplace sends this event when a new purchase agreement is created in your account.

**Triggering scenarios:**
+ `NEW` - The agreement is created for the first time
+ `REPLACE` - A new private offer needs to be accepted as part of an Agreement-Based Offer (ABO)
+ `RENEW` - An agreement is auto-renewed at expiry (if enabled)

**Event schema:**

```
{
  "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"
    }
  }
}
```

### Purchase Agreement Amended - Acceptor
<a name="agreement-amended-event"></a>

AWS Marketplace sends this event when modifications are made to an existing purchase agreement, such as changes to terms, pricing, or other agreement parameters.

**Event schema:**

```
{
  "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"
    }
  }
}
```

### Purchase Agreement Ended - Acceptor
<a name="agreement-ended-event"></a>

AWS Marketplace sends this event when a purchase agreement ends.

**Triggering scenarios:**
+ `CANCELLED` - You ended the agreement before the defined end date
+ `EXPIRED` - The agreement reached its defined end date
+ `TERMINATED` - AWS terminated the agreement (for example, due to a payment failure)
+ `RENEWED` - The agreement was renewed into a new agreement
+ `REPLACED` - The agreement was replaced using an agreement replacement offer

**Event schema:**

```
{
  "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"
    }
  }
}
```

### Purchase Agreement Ending - Acceptor
<a name="agreement-ending-event"></a>

AWS Marketplace sends this event 30, 60, and 90 days before a purchase agreement expires.

This event includes additional fields not present in other buyer events:
+ `agreement.autoRenewalEnabled` - Indicates whether auto-renewal is enabled for the agreement
+ `product.id` and `product.title` - Product information for the agreement
+ `proposer.name` and `offer.name` - Human-readable names for the seller and offer

**Event schema:**

```
{
  "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"
    }
  }
}
```

## Common Event Fields
<a name="agreement-common-fields"></a>

All buyer events include these common fields:


| Field | Description | 
| --- | --- | 
| requestId | UUID used to deduplicate duplicate events | 
| catalog | The AWS Marketplace catalog (typically "AWSMarketplace") | 
| agreementId | Unique identifier for the agreement | 
| acceptor.accountId | Your AWS account ID | 
| proposer.accountId | The seller's AWS account ID | 
| offer.id | The offer identifier | 

## Setting Up EventBridge Rules
<a name="agreement-eventbridge-setup"></a>

To receive these notifications, create EventBridge rules that match the event patterns for buyer events. For more information about creating rules, see [Creating Amazon EventBridge rules](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-create-rule.html) in the *Amazon EventBridge User Guide*.

# Cancellation and billing adjustment events
<a name="cancellation-adjustment-eventbridge"></a>

AWS Marketplace sends notifications to Amazon EventBridge when a seller initiates a cancellation request or billing adjustment for one of your agreements. You can use these events to automate workflows and track cancellation and refund activity.

The following table lists the buyer events that AWS Marketplace sends to EventBridge for cancellations and billing adjustments:


| Event | Description | 
| --- | --- | 
| Agreement Cancellation Request Pending Approval - Acceptor | Sent when a seller submits a cancellation request for your agreement. Action required: you have 7 days to approve or deny. | 
| Agreement Cancellation Request Approved - Acceptor | Sent when a cancellation request is approved by you or auto-approved after 7 days | 
| Agreement Cancellation Request Rejected - Acceptor | Sent when you deny a cancellation request | 
| Agreement Cancellation Request Cancelled - Acceptor | Sent when the seller withdraws a cancellation request | 
| Purchase Agreement Billing Adjustment Completed - Acceptor | Sent when a billing adjustment (refund) for your agreement is processed | 

All events are sent to your default EventBridge event bus in the `us-east-1` region with the event source `aws.agreement-marketplace`.

## Cancellation request event types
<a name="cancellation-event-types"></a>

### Agreement Cancellation Request Pending Approval - Acceptor
<a name="cancellation-pending-approval-acceptor"></a>

AWS Marketplace sends this event when a seller submits a cancellation request for one of your agreements. You have 7 days to approve or deny the request. If you don't respond, the cancellation is automatically approved.

**Event schema:**

```
{
  "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"
    }
  }
}
```

### Agreement Cancellation Request Approved - Acceptor
<a name="cancellation-approved-acceptor"></a>

AWS Marketplace sends this event when a cancellation request for one of your agreements is approved. This can happen when you approve the request or when it is auto-approved after 7 days without a response.

**Event schema:**

```
{
  "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"
    }
  }
}
```

### Agreement Cancellation Request Rejected - Acceptor
<a name="cancellation-rejected-acceptor"></a>

AWS Marketplace sends this event when you deny a cancellation request for one of your agreements.

**Event schema:**

```
{
  "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"
    }
  }
}
```

### Agreement Cancellation Request Cancelled - Acceptor
<a name="cancellation-cancelled-acceptor"></a>

AWS Marketplace sends this event when the seller withdraws a cancellation request before you respond.

**Event schema:**

```
{
  "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"
    }
  }
}
```

## Billing adjustment event types
<a name="billing-adjustment-event-types"></a>

### Purchase Agreement Billing Adjustment Completed - Acceptor
<a name="billing-adjustment-successful-acceptor"></a>

AWS Marketplace sends this event when a billing adjustment (refund) for one of your agreements is processed.

**Event schema:**

```
{
  "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"
    }
  }
}
```

For more information about responding to cancellation requests and tracking billing adjustments, see [Refunds and cancellations in AWS Marketplace](buyer-refunds.md).