Testing and integration
How to Map AWS Marketplace Agreements to SaaS Tenants: Designing for Existing Users and Multiple Agreements
Published: Updated:
Key takeaways
The registration information that arrives from AWS Marketplace contains the buyer’s AWS account ID and the LicenseArn that represents the granted license (according to the AWS Marketplace blog’s migration guide, for an agreement whose start date is in the future, it is generated on the agreement’s start date), but nothing that identifies a tenant or user in your SaaS. In the same migration guide, AWS recommends using LicenseArn rather than a customer identifier as the primary key, which means you keep the mapping to tenants as your own data. When an existing user buys, or the same AWS account makes an additional purchase, verify the buyer’s action through sign-in, then decide whether to add the license to an existing tenant or create a new one. Keep the mapping as one row per license. In the design assessment of us at Anti-Pattern Inc., the provider of Deshima, an implementation that looks up a tenant by AWS account ID alone causes mix-ups from the day the second agreement is signed.
Editorial information. This article was translated into English by AI from Deshima’s Japanese article; it has not been reviewed or certified by AWS. The AWS documentation linked in this article was current as of October 5, 2026; the descriptions of ResolveCustomer, buyer registration, the Amazon EventBridge events and event management, the migration guide, and the Agreements data feed were current as of November 15, 2026. Scope: how to map AWS Marketplace agreements and licenses to the tenants of a SaaS product, including existing users, multiple agreements, and agreement changes and endings. The AWS pages linked in this article do not tie the APIs, events, and procedures described here (ResolveCustomer, GetEntitlements, the Amazon EventBridge events, the registration flow, and the Concurrent Agreements opt-in) to the seller’s country. This article is published by Anti-Pattern Inc., the provider of Deshima; the data model, examples, and proposed tests are our own design proposals, not AWS specifications.
When a customer who bought on AWS Marketplace is redirected to your SaaS registration URL, the information your SaaS receives is not enough to decide which tenant the agreement should go to. What the buyer’s browser sends is a temporary registration token. When you redeem it with ResolveCustomer, it returns the buyer’s AWS account ID, the LicenseArn that represents the granted license, the product code, and metadata that includes the ID of the agreement the buyer accepted. None of the returned items points to a tenant or user in your own SaaS. (AWS’s ResolveCustomer API reference)
Before Concurrent Agreements, an AWS account could hold only one active agreement for a given product on AWS Marketplace. That means the identifier that pointed to the account also served as the identifier that pointed to the agreement. With Concurrent Agreements in 2026, that assumption no longer holds: the same account can sign several agreements for the same SaaS product, each with its own terms and price. (the Concurrent Agreements migration guide on the AWS Marketplace blog)
When a company that already has a tenant signs a second agreement, do you add it to the existing tenant? Or do you create a separate tenant? Which is right depends on your product’s billing unit and on how the customer’s organization is structured.
This article is based on AWS documentation and announcements as of October 5, 2026. The descriptions of ResolveCustomer, buyer registration, the Amazon EventBridge events and event management, the migration guide, and the Agreements data feed were checked as of November 15, 2026. The data model and the tenant-handling examples are design proposals by us at Anti-Pattern Inc., the provider of Deshima, based on the AWS documentation; they are not AWS specifications.
The concrete examples of retrieving entitlements are for SaaS Contract (a pricing model in which the contract term and purchased entitlements are fixed in advance and billed upfront or on a payment schedule) and SaaS Contract with Consumption (a SaaS contract with usage-based pricing: a pricing model that bills overage by usage on top of the contract fee) products. Below, we call these two SaaS Contract types. SaaS Subscription (a usage-based pricing model that bills by hourly usage) products do not use GetEntitlements. They manage whether a subscription is active through the state of subscription notifications (subscribe success, unsubscribe pending, unsubscribe success, and subscribe fail; AWS’s SaaS Subscription integration page describes them as the Amazon SNS notifications subscribe-success, unsubscribe-pending, unsubscribe-success, and subscribe-fail). Amazon SNS is not available if you registered your seller account after July 15, 2026; in that case you receive events through Amazon EventBridge. If you registered on or before that date, you can continue to use Amazon SNS. (AWS’s SaaS Subscription integration page)
What you receive at the registration URL, and what you do not
The buyer is redirected from AWS Marketplace to your SaaS registration URL by an HTTP POST, and the request includes a temporary x-amzn-marketplace-token.
Your SaaS redeems this token with ResolveCustomer and stores the returned items.
For SaaS Contract and SaaS Contract with Consumption products (hereafter, SaaS Contract types), you then confirm the purchase with GetEntitlements. (AWS’s SaaS Contract integration page, AWS’s SaaS Contract with Consumption integration page)
SaaS Subscription products do not use GetEntitlements; they store whether the subscription is active from the subscription notifications.
AWS strongly recommends waiting for the subscribe success notification (the Amazon SNS subscribe-success) before you create resources. (AWS’s SaaS Subscription integration page)
If you use Amazon EventBridge, the signal is License Updated, described below. AWS’s page on onboarding customers asks you not to activate a product subscription until you receive a License Updated event. (Onboarding customers to your SaaS product through AWS Marketplace)
For the whole picture of SaaS integration, including registration, entitlement checks, and agreement notifications, see Deshima’s article on what you need to implement for AWS Marketplace SaaS integration.
Redeeming the token returns the following five items. (AWS’s ResolveCustomer API reference)
| Item | Contents | Role in mapping |
|---|---|---|
| LicenseArn | The identifier of the individual license that was granted | The license identifier. The unit at which you keep the mapping to tenants |
| CustomerAWSAccountId | The buyer’s AWS account ID | A clue for grouping the same buyer’s agreements. One account can hold several agreements, so it cannot serve as the license identifier |
| ProductCode | For confirming the product being registered | Checking that it is your own product |
| CustomerIdentifier | The legacy customer identifier | No value is populated in new SaaS integrations |
| Metadata | Information about the agreement the buyer accepted. Metadata.AgreementId holds the agreement ID | The agreement ID is known at registration, so it can be used to match against agreement events |
In new SaaS integrations, you identify customers by CustomerAWSAccountId and LicenseArn instead of CustomerIdentifier. Existing integrations continue to work unchanged. (AWS’s ResolveCustomer API reference)
Neither a tenant ID nor a user ID is included in the ResolveCustomer response. AWS requires the registration page to have an input field for the buyer’s email address. (AWS’s SaaS product guidelines) But what goes in that field is whatever the buyer typed at that moment, and it does not show that they own the address. What you can use as the basis for a mapping is a fact your SaaS has verified about the buyer’s own action, such as sign-in or a confirmation email.
Redeem the token first
If you ask the buyer to sign in or choose a tenant, finish redeeming the token before that. A registration token can expire when the browser navigation takes a long time, when the buyer resubmits, or when the SaaS holds it for a long time, and AWS asks you to redeem it as soon as you receive it. (AWS’s ResolveCustomer API reference)
So call ResolveCustomer at the moment you receive the POST, and store the LicenseArn and AWS account ID you get as an “unlinked license”. In the buyer’s session, store only a reference to that license. The sign-in, tenant selection, and new registration that follow can be designed as the operation by which the signed-in user links the unlinked license to one of the tenants in your SaaS.
However, the LicenseArn is not always available at registration.
According to AWS’s migration guide, for an agreement whose start date is set in the future, the LicenseArn is generated on the agreement’s start date. (AWS’s migration guide)
As of November 15, 2026, the ResolveCustomer API reference and the migration guide do not let us tell what ResolveCustomer returns at registration in this case.
Before you implement, ask AWS Marketplace Seller Operations, AWS’s support team for sellers (contact them through the support page in AWS Partner Central; AWS’s SaaS Contract integration page calls it the AWS Marketplace Operations team), or test with a Limited (limited visibility) product.
Also decide what to do when no LicenseArn is available.
For example, give the provisional registration its own registration ID and use the AWS account ID only for search and matching.
One buyer can hold several agreements, so if you use the account ID alone as the unique key of a provisional registration, records for separate agreements collide.
In the provisional registration, record the agreement ID that you get from Metadata.AgreementId of ResolveCustomer. The reference does not let us tell whether this value is returned for an agreement that starts in the future, so also record the agreement ID that arrives with Purchase Agreement Created, so that you can match the two.
When the agreement.id of the License Updated event that arrives later matches that agreement ID, write license.arn into the provisional registration to confirm it.
Note that in AWS’s pages, the official detail-type of each event this article covers (Purchase Agreement Created, Amended, and Ended, License Updated, and License Deprovisioned) ends with “ - Manufacturer” or “ - Proposer”; this article writes event names without that suffix. According to AWS’s page on SaaS event management with Amazon EventBridge, when you are both the manufacturer and the proposer, the events you receive for Purchase Agreement Created, Amended, and Ended are the proposer events only (- Proposer). The exception is Purchase Agreement Free Trial Converted - Manufacturer, which AWS Marketplace sends only to the manufacturer. The license events (License Updated and License Deprovisioned) exist only as manufacturer events (- Manufacturer). Build your Amazon EventBridge rules to match these suffixes. (SaaS event management with Amazon EventBridge)
If one account has several agreements that have not started and you cannot tell which one a provisional registration belongs to, keep a path that asks the buyer.
This structure is not specified by AWS; it is our design proposal.
Keep tenants, AWS accounts, and licenses separate
Three objects of different kinds appear in the mapping.
- AWS account: the buyer’s account. One account can hold several agreements for the same product.
- License: the right to use the product, granted by an agreement. A different agreement gets a different LicenseArn.
- Tenant: the customer unit inside your SaaS. AWS has no involvement in it.
A buyer may ask you to share a license with a different AWS account. For whether sharing is possible on the AWS side, and how it differs from tenant and user management inside your SaaS, see Can an AWS Marketplace SaaS license be shared with another account?
The party being billed may also be yet another company. When the buyer uses a billing arrangement through another party, see What is AWS Billing Transfer? for how to keep the payer and the company that actually uses the SaaS apart.
In its migration guide, AWS recommends designing your data with LicenseArn as the primary key for a newly created listing, and, for an existing listing, replacing primary keys built on CustomerIdentifier or ProductCode with LicenseArn. The reason is that attributing usage to a specific purchased license, rather than to a customer who may hold several licenses, makes provisioning and billing simpler. (AWS’s migration guide) We extend that idea to the mapping with tenants, and recommend that you prepare a table of the following form in your own database.
Column of licenses | Content |
|---|---|
registration_id | primary key. A unique registration ID that you assign |
license_arn | unique once generated. Empty until generated for an agreement whose start date is in the future |
agreement_id | the agreement ID. Not a unique key |
customer_aws_account_id | the buyer's AWS account ID |
tenant_id | empty until the license is linked |
claimed_by_user_id | the SaaS user who confirmed the link |
status | unlinked / active / ended |
entitlements | the result of GetEntitlements (quantity and expiry per dimension). SaaS Contract types only; empty for SaaS Subscription, which does not use it |
The column that can be empty, tenant_id, is where an “unlinked license” lives. Tenants to licenses is one-to-many, and AWS accounts to licenses is also one-to-many. Agreements and licenses are not necessarily one-to-one either. This is because in the Agreements data feed, the license IDs that correspond to an agreement are defined as an array. (Agreements data feed) So store the agreement ID not as a unique key but as a reference for finding the license from an end event.
A two-tenant mapping table and the mistakes it prevents
Consider a setup in which the sales planning and R&D departments contract separately through a shared procurement AWS account and use separate tenants in your SaaS. Call the licenses of the two agreements A and B, and add one tenant of another company.
| tenant_id | Organization | customer_aws_account_id | license_arn | agreement_id | status |
|---|---|---|---|---|---|
| alpha | Sales planning | 111122223333 | LicenseArn-A | agmt-A | Active |
| beta | R&D | 111122223333 | LicenseArn-B | agmt-B | Active |
| gamma | Another company | 444455556666 | LicenseArn-C | agmt-C | Active |
alpha and beta have the same customer_aws_account_id and different license_arn values. Sending usage and computing entitlements both start from the tenant and look up its license_arn. The AWS account ID column is a clue for grouping the same buyer’s agreements, not the key that decides the tenant. (registration_id and claimed_by_user_id are omitted. The LicenseArn and ID values in the table are placeholder example values.)
The “Onboarding customers to your SaaS product through AWS Marketplace” page of AWS’s seller guide asks you to keep an AWS account ID column in the accounts in your database and to confirm that no other account in your system shares the same AWS account ID. The same page also explains that LicenseArn distinguishes the separate entitlements that arise from multiple offers for the same product. (Onboarding customers to your SaaS product through AWS Marketplace) These two statements do not let us tell whether a design that places tenants such as alpha and beta under a shared AWS account ID contradicts the former procedure. Before you choose to separate tenants, check with AWS Marketplace Seller Operations (contact them through the support page in AWS Partner Central).
The following four implementations cause mix-ups from the day the second agreement is signed. What happens is our design assessment, based on the mapping in the table above.
| Implementation | What happens | Design that prevents it |
|---|---|---|
| Look up the tenant by AWS account ID alone | R&D’s registration lands on the sales planning tenant that has the same account ID. Usage is also sent under the license found by account ID, so it can be counted against a different agreement | Look up license_arn from the tenant. Use the account ID only as a clue to narrow down candidates |
| Give a tenant a single LicenseArn and overwrite it on the second registration | A’s license disappears, and A’s end event can no longer find the tenant. B’s license attaches to alpha, and the R&D agreement’s usage lands on the sales planning tenant | Keep licenses as one row per license and hold the tenant mapping in the row |
| Attach the agreement automatically to a tenant whose email address or domain matches | An address belonging to someone in another department or another company attaches the agreement to an unintended tenant | Check the sign-in and the user’s administrative authority over the tenant, and let them choose where to attach it |
End every license of the account when the end event’s acceptor.accountId arrives | A’s end also ends B. beta stops | Look up the license from the agreement ID and end only that license |
R02 in the regression test matrix checks that an assignment request without authority is rejected. Of the third implementation, it checks that a person without authority cannot attach an agreement, but it does not check that an email-address match does not attach one automatically. For that point, and for the first and second implementations, add your own cases, such as the second registration of a buyer who holds two agreements. R06 (reflect the end of one agreement, and keep the other and its tenant) checks the fourth implementation.
How linking flows, by the buyer’s state
The steps for linking depend on the buyer’s state with respect to your SaaS when they reach the registration URL.
A new customer buying for the first time
After you finish redeeming and storing, have the buyer create a tenant and a user in the registration form, and fill in the license’s tenant_id. In its listing guidelines (the SaaS product guidelines), AWS requires that after purchase the customer can create an account in your SaaS and sign in to the web console. If they cannot sign in right away, tell them specifically when they will be able to, and send a confirmation notification when the account is ready. (AWS’s SaaS product guidelines)
An existing SaaS user buys
This is the case where a company already using your SaaS, for example on a free plan or a trial, signs a paid agreement on AWS Marketplace. In its listing guidelines, AWS requires that a customer who already has a SaaS account can sign in from the fulfillment landing page. (AWS’s SaaS product guidelines)
Being able to sign in does not finish the mapping design. What sign-in verifies is who the user is, and whether the agreement may be attached to that tenant is a separate check. When you attach it to an existing tenant, verify that the signed-in user has administrative authority over that tenant. If anyone can attach it, a paid entitlement may end up on an unintended tenant. Also avoid an implementation that links automatically on an email address match alone. The address that was entered is only a string the buyer typed at that moment, and it does not show that they own it. If a mistyped address or the address of someone at another company is entered, the agreement ends up attached to another company’s tenant. For a user who belongs to several tenants, you also need a screen for choosing which tenant to attach it to.
The same AWS account buys again
The same AWS account buying the same product again is a situation that Concurrent Agreements newly created. Because the purchase comes from the same account, the CustomerAWSAccountId that ResolveCustomer returns is the same as for the first agreement, and only the LicenseArn is new. If you search your own licenses table for this account ID, you find the tenant that is already linked, and you decide whether to add the new license to it or create a separate tenant.
In its migration guide, AWS lists three approaches for handling multiple licenses. (AWS’s migration guide)
| Approach | What it means | Where AWS’s migration guide cites it | What to decide in your design (our view) |
|---|---|---|---|
| Separate tenants | Create a tenant per license | Companies that want to separate by department | Users and data are separated per purchase. Do you need a way to merge them later? |
| One tenant | Map several licenses to one tenant | Companies that want to consolidate billing | How to add up quantities and permissions |
| The buyer chooses | Let the buyer choose their preferred approach | When you follow the buyer’s preference | The selection screen, and your policy on whether the choice can be changed afterward |
With any approach, we recommend that you avoid merging into a single tenant automatically without asking the buyer. In its announcement of February 26, 2026, AWS cites as a benefit of multiple agreements that several departments of one account can procure independently of each other. (AWS’s announcement of February 26, 2026) For this reason, an agreement that another department signed for another purpose may not want to be added to an existing tenant.
With the one-tenant approach, you also decide how to add up the entitlements of each agreement. SaaS Contract has a type in which the buyer chooses a quantity per dimension and a type in which the buyer chooses one of several tiers. (SaaS contract pricing) A quantity such as the number of users can be added up, but when there are two tiered agreements they cannot be. Whether to take the higher tier or to split into separate tenants is something you decide as a product specification. If you store entitlements per license and compute the tenant’s effective entitlements from the licenses attached to it, you can change the rule for adding them up without rebuilding the stored data.
The same company buys from a different AWS account
If a company uses several AWS accounts, the CustomerAWSAccountId does not match any existing mapping, and searching the licenses table finds no existing tenant. A matching account ID is a clue for narrowing down candidates for linking, not proof of the same company, and a mismatch is not proof of a different company either. Even when the account ID is unknown, keep a path by which the signed-in buyer can choose an existing tenant.
When an agreement changes or ends
The time the buyer accepts an agreement and the time the entitlement becomes effective may differ. For how to handle an agreement whose start date is in the future, see What are AWS Marketplace Future Dated Agreements?
When one of two agreements ends, may you stop the tenant? With the approach of attaching several licenses to one tenant, you may stop the tenant only when it has no active license left. Even if an active license remains, if you design the tenant’s entitlements to be computed from the licenses attached to it, the result of that computation changes when one of them ends. Features and quantities that were in only the ended license are recalculated from the remaining active licenses’ entitlements, and reduced.
Here is the state of the tenants when sales planning’s license A ends. Assume the user-count entitlement is 50 for A and 30 for B.
| Setup | Before A ends | After A ends |
|---|---|---|
| Separate tenants: alpha | A is active. Up to 50 users | No active license, so stop new use. If the product has a usage-based part, the one-hour window for sending A’s final usage starts (it does not affect beta’s submissions) |
| Separate tenants: beta | B is active. Up to 30 users | Unchanged. B stays active and use continues |
| One combined tenant | A and B are active. The user-count entitlement totals 80 | B is active, so use continues and the user-count entitlement drops to B’s 30 |
The example of the Purchase Agreement Ended event that AWS shows has no license.arn, so look up A from the stored agreement_id and end only A. A License Deprovisioned event can point to A directly through license.arn. (Amazon EventBridge events)
The statement that final usage can be sent for one hour after an agreement ends is based on AWS’s page on SaaS event management with Amazon EventBridge. AWS’s pages differ on the starting point of that one hour. We recommend sending within one hour of the earliest of the notifications that tell you the agreement has ended. For SaaS Contract with Consumption, these include a License Updated after which the GetEntitlements check returned no valid entitlement. For how the descriptions of the starting point differ and for the conditions for counting a notification, see our article on implementing AWS Marketplace metering.
How the entitlements add up in the combined tenant is a rule you set as a product specification.
Changes to and endings of agreements arrive as Amazon EventBridge events. (SaaS event management with Amazon EventBridge) Only SaaS Contract type products call GetEntitlements when they reflect an agreement change. (SaaS event management with Amazon EventBridge, Amazon EventBridge events) SaaS Subscription products do not use GetEntitlements; they manage by the subscription state. According to AWS’s page on SaaS event management with Amazon EventBridge, events are sent for both subscription changes and agreement entitlement changes, and License Deprovisioned is the starting point of the window for sending final usage for a product that has a usage-based part. (SaaS event management with Amazon EventBridge) AWS’s Onboarding customers to your SaaS product through AWS Marketplace page says that the customer account is ready for metering after you receive License Updated, and asks you not to enable the product subscription until you receive License Updated. For SaaS Subscription, if you receive events through Amazon EventBridge, treat License Updated as the signal to enable the subscription and start metering. If you use Amazon SNS, decide whether the buyer may use the product from the latest subscription state that you stored from notifications such as subscribe-success, as on the SaaS Subscription integration page.
| Event | When it occurs | What to reflect in the licenses table (GetEntitlements is for SaaS Contract types only) |
|---|---|---|
| Purchase Agreement Created | An agreement is created, replaced, or renewed | Record the agreement ID and the buyer’s account |
| License Updated | A license is granted or updated | Confirm the new state with GetEntitlements and update the entitlements of the license concerned |
| Purchase Agreement Amended | An existing agreement is amended | Update the agreement record, and confirm any change in entitlements through License Updated and GetEntitlements |
| Purchase Agreement Ended | An agreement expires, is canceled, or ends | Identify the license concerned from the agreement ID, and record the time you received the event (for a renewal too). If you have not yet received a Created (intent=RENEW) whose previousAgreementId is that agreement ID, treat the license as ended, and when a matching Created arrives later, recalculate the state from your records. If the renewed agreement maps to a different LicenseArn, the previous license stays ended. For how to tell a renewal, and the procedure for products that use GetEntitlements, see our article on handling cancellations and refunds. For SaaS Contract types, get the remaining licenses’ entitlements with GetEntitlements and recalculate the tenant’s entitlements |
| License Deprovisioned | A license is revoked | End the license identified by license.arn. For a product with a usage-based part, according to AWS’s page on SaaS event management with Amazon EventBridge, the one-hour window for sending final usage starts (AWS’s pages differ on the starting point; see our article on implementing metering) |
For SaaS Contract products, the event that AWS makes mandatory to support is License Updated.
When you receive it, call GetEntitlements and update the customer’s data with the new state. (AWS’s SaaS Contract integration page)
AWS’s SaaS Contract with Consumption integration page also asks you to call GetEntitlements when you receive a notification of an entitlement change. (AWS’s SaaS Contract with Consumption integration page)
That page describes the notification as the Amazon SNS entitlement-updated, while the page on SaaS event management with Amazon EventBridge says to confirm entitlements with GetEntitlements when you receive License Updated.
For SaaS Contract with Consumption products too, call GetEntitlements when you receive License Updated.
In the event examples AWS shows, license events include license.arn and agreement.id.
On the other hand, the example of an agreement end event has agreement.id, acceptor.accountId, and so on, but no license field. (Amazon EventBridge events)
For this reason, store the pair of agreement.id and license.arn that arrives with License Updated in the licenses table, so that when an end event arrives you can look up the license to stop from the agreement ID.
By contrast, the License Deprovisioned example includes license.arn, so for that event you can point to the license directly and end it.
As of November 15, 2026, the description on the page on SaaS event management with Amazon EventBridge does not let us tell whether events arrive in order or whether the same event can arrive more than once.
Make your handling produce the same result even if the same event arrives twice or the order is swapped, and if you need handling that depends on arrival order or on whether duplicates occur, check with AWS Marketplace Seller Operations.
For SaaS Contract types, you confirm the contents of the entitlements with GetEntitlements, not with events. ProductCode is required, and you can filter by LICENSE_ARN or CUSTOMER_AWS_ACCOUNT_ID. Each entitlement in the response includes its LicenseArn. It returns at most 25 results at a time, and you fetch the rest with NextToken. NextToken can also be attached to an empty result, so you cannot stop fetching just because a page is empty. (GetEntitlements API)
With automatic renewal, a new agreement is created, and the Purchase Agreement Created event carries intent=RENEW and the ID of the previous agreement. (Amazon EventBridge events)
The Agreements data feed also has a status called Renewed, which represents an old agreement that has moved to a new agreement by renewal. (Agreements data feed)
However, as of November 15, 2026, the descriptions on AWS’s migration guide and the Agreements data feed page do not let us tell whether the license after a renewal inherits the previous LicenseArn, or whether a Purchase Agreement Ended event arrives when the old agreement becomes Renewed.
To find out which it is, actually renew an agreement on a Limited product, or ask AWS Marketplace Seller Operations.
If it is not inherited, an “unlinked license” is created at every renewal, and the tenant may look as if it lost its entitlements.
If it is inherited, a design that revokes entitlements on the old agreement’s Ended stops entitlements that are still valid after the renewal.
To work either way, when you receive Ended, tell whether it is a renewal by the previousAgreementId in Purchase Agreement Created. This way of telling a renewal works for SaaS Subscription too, which does not use GetEntitlements.
As noted above, we cannot tell whether events arrive in order, so if Ended does arrive on a renewal, also plan for receiving Ended before the renewed agreement’s Created. If, when you receive Ended, you have not yet received a Created (intent=RENEW) whose previousAgreementId is that agreement ID, you cannot tell whether it is a renewal, so treat the license as ended for the time being. When a matching Created arrives later, recalculate the state from your records. If the renewed agreement does not map to a different LicenseArn, the state becomes “awaiting renewal”; if it maps to a different LicenseArn, the previous license stays ended, and you link the new license to the tenant that the previous agreement’s license was attached to. Record the time you received Ended for a renewal too, because the deadline for final usage reporting on usage-based products starts from it. For a renewal too, send the unsent usage for the agreement period before renewal within one hour of this time, with the LicenseArn from before the renewal.
While you have received Ended but have not yet received either Created or License Updated, the tenant of an agreement that is still valid after the renewal can be stopped. To shorten that, you can hold off stopping for a set time after Ended, but whether to do so and how long to wait is a product decision. This procedure is our design proposal. The details, including how to handle usage while a renewal is pending, are in our article on handling cancellations and refunds, which proposes them for products that use GetEntitlements.
Besides events, you can also check how agreements linked by renewals or replacements relate to each other in the DescribeAgreement response.
initialAgreementId in the response is the ID of the first agreement in the chain of related agreements, and it stays the same across all agreements in that chain. For an agreement that is not derived from another agreement, it is the agreement’s own ID. (DescribeAgreement API)
The value points to the first agreement, not to the immediately preceding one.
We recommend storing this value together with the agreement ID, as a clue for matching an agreement whose Created event you did not receive to an agreement you have already recorded.
For permission control that accompanies cancellations and refunds, see AWS Marketplace cancellation and refund handling.
Adding LicenseArn to existing customer data
To enable Concurrent Agreements (the mechanism that lets the same AWS account sign several agreements for the same SaaS product) on an existing product, you apply to AWS to opt in. An existing product that already manages customers by CustomerIdentifier is not migrated automatically. (AWS’s migration guide) For where to submit the request, see our article What are AWS Marketplace Concurrent Agreements?
Concurrent Agreements became available in February 2026, and from June 1, 2026, support became mandatory for new SaaS products. AWS’s migration guide says that it is enabled by default for new listings created after June 1. (AWS’s announcement of February 26, 2026, AWS’s migration guide) For whom to ask about how a listing created on June 1 itself is treated, see What are AWS Marketplace Concurrent Agreements?.
For a product that opts in, you need to add LicenseArn to your customers’ existing records. In its July 24, 2026 update to the migration guide, AWS shows two ways to obtain it. (AWS’s migration guide)
- Check the License IDs in the Agreements data feed and the Agreements and Renewals dashboard
- For SaaS Contract type pricing, call GetEntitlements filtered by CUSTOMER_AWS_ACCOUNT_ID (for SaaS Subscription, use the data feed or the dashboard)
In GetEntitlements, you cannot use CustomerIdentifier and CustomerAWSAccountId together in the same request. For a SaaS integration in the middle of migration, you are directed to map CustomerIdentifier to CustomerAWSAccountId with the Account data feed, and CustomerAWSAccountId to LicenseArn with the Agreements data feed. (GetEntitlements API) The Agreements data feed is updated every 24 hours, so a purchase made just before the migration may be slow to show up. (Agreements data feed)
Before you opt in, an account had only one agreement that was active at the same time. However, the history that includes renewed and ended agreements can have several licenses, so you cannot map a LicenseArn obtained from GetEntitlements or the data feed straight to an existing tenant. For each existing customer ID (CustomerIdentifier), sort the licenses you obtained into running, future-start, and ended, reconcile them, and attach the running license to the tenant. Attach a future-start agreement to that customer’s tenant when License Updated arrives on its start date, and record ended licenses as ended. After you opt in, a second purchase can arrive from the same account, so build the screen for choosing where to attach it before you opt in. For the application steps, see What are AWS Marketplace Concurrent Agreements?, and for changes on the usage-sending side, see implementing AWS Marketplace metering.
Mapping scenarios to check before launch
Before launch, you contract for your own product with an allowlisted account and check the redirect, the storing of the customer ID, and the handling of entitlements. After that, AWS Marketplace Seller Operations checks the GetEntitlements call and new-customer onboarding. (AWS’s SaaS Contract integration page) For what AWS checks, see what AWS checks in a SaaS review on AWS Marketplace. For mapping several agreements, in addition to this, we recommend that you check the following scenarios, derived from our design proposals, in your own environment.
- A buyer who opens the registration URL twice does not create two records for the same license (R01 in the regression test matrix)
- An existing user cannot attach an agreement without signing in
- A member without authority cannot attach an agreement (R02)
- An email-address or domain match alone does not attach an agreement to a tenant
- A second purchase from the same AWS account does not overwrite the first agreement
- When one of two agreements ends, the tenant keeps working on the entitlements of the remaining one (R06)
- The same end event arriving twice leaves the result unchanged (R07)
- Usage for two tenants of the same AWS account is sent under their own LicenseArn values and is not combined at the account level
- Features and quantities that were in only the ended agreement are recalculated from the remaining agreement’s entitlements and reduced
- After an entitlement change, only the quantities of the changed license change
- Check what happens to the LicenseArn after a renewal, and set the carry-over rule to match
- When a renewal ends the old agreement, the entitlements that stay valid after the renewal are not stopped
- For an agreement that starts in the future, a registration record can be created while the LicenseArn is not yet available, and filled in later
- Several future-start agreements on the same AWS account do not make the provisional records collide
Each case’s preconditions, input, and expected result are in Deshima’s regression test matrix for AWS Marketplace SaaS integration, and duplicated, delayed, and out-of-order events are in testing AWS Marketplace event handling. For a CI sample that runs against two tenants, see running AWS Marketplace integration regression tests in CI. Tests for the usage-sending side are under “Tests before launch” in our metering implementation article.
When the buyer comes back to your registration URL, what AWS hands you is the account and the license. Whose tenant that license belongs to is decided by the signed-in buyer’s action and by the mapping you keep in your own licenses table. Make sure that when a second purchase arrives, the licenses table lets you find this company’s existing tenant and opens a screen that asks where to attach it. If you implement up to that point, you can reduce, on the design side, the mistake of an agreement going to the wrong tenant.
What you need when you handle per-deal allocation
The mapping between tenants and licenses that you keep in the licenses table is for managing entitlements inside your SaaS. In addition, for a product in which several tenants share the same AWS infrastructure, there are cases where you allocate the AWS consumption measured on that infrastructure to each customer’s deal by a monthly ratio. Partner Revenue Measurement’s Revenue Attribution ID is that mechanism, and the input to the allocation needs the buyer’s AWS account ID and a judgment about which tenant’s consumption belongs to which deal. (Creating and editing a Revenue Attribution ID) The mapping in the licenses table also serves as material for that judgment. For the design of the allocation, see checking PRM measurement results and linking them to deals.
What Deshima covers
If you want to avoid building the post-purchase registration form and the retrieval and tracking of buyer and agreement information yourself, the registration form of Deshima, which supports listing on AWS Marketplace, is an option. Deshima handles retrieving and tracking buyer and agreement information, the application form, and notification emails to buyers and to your operators. In your own SaaS, you implement the processing that, on receiving a notification, links the buyer to an existing user or tenant and applies the features, quantities, and access that the agreement grants. Mapping to the licenses table, choosing where to attach a license, and recalculating entitlements are part of this processing on your side. Matching against existing users’ sign-ins, and deciding which tenant to assign several agreements to, are also processing on the side of your own SaaS. Deshima does not deliver events to your SaaS, and it does not create tenants or grant and revoke permissions automatically. Your operators receive a notification email from Deshima for each new purchase, agreement change, and cancellation. Use this notification as the starting point for deciding where to attach and for reflecting it in your SaaS. To learn about the form settings and the notification contents, check the in-product documentation after you create a free account, or ask us through “Contact” at the bottom of the site. If you want to talk through the division of work before adopting it, contact us at the same place.
There are other reasons to keep the mapping between tenants and AWS accounts yourself, besides linking. In our experience operating our own SaaS on AWS Marketplace, all that the AWS Marketplace statements showed was the AWS account ID and the account holder’s information, and for an account issued by a reseller the holder is the reseller, so the statements alone did not let us identify the end customer. To learn where in the management screen, and down to which fields, you can check the buyer and agreement information that Deshima keeps, check the in-product documentation or ask us through the contact form.
What you pay Deshima is Deshima’s sales fee, which applies only when your product sells; there is no setup fee and no monthly fee. Contact us for the rate. Separately, you pay AWS the listing fee and carry your own implementation and operating effort. The AWS resources that the seller account connection creates in your AWS account, such as an Amazon S3 bucket, can also incur standard AWS charges.
As of November 11, 2026, Deshima supports SaaS products on AWS Marketplace. In addition to SaaS Contract, it supports usage reporting for usage-based pricing (SaaS Subscription and the usage portion of SaaS Contract with Consumption). Channel Partner Private Offers (CPPO) are out of scope. Deshima supports Concurrent Agreements. The supported scope is in the FAQ on the top page, and how we think about pricing is in the pricing section.
You can start preparing your listing by creating a free account (currently in Japanese) and checking the listing task list and the listing guide. Seller account connection, and the registration form, notification emails, product list, monthly sales, and usage reporting for usage-based pricing that depend on it, become available when you subscribe to Deshima on AWS Marketplace (the base fee is $0). Deshima is updated often, so for the latest features and scope, check the documentation in the product as well.