MarketplaceMetering / Client / resolve_customer
resolve_customer¶
- MarketplaceMetering.Client.resolve_customer(**kwargs)¶
ResolveCustomeris called by a SaaS application during the registration process. When a buyer visits your website during the registration process, the buyer submits a registration token through their browser. The registration token is resolved through this API to obtain aCustomerIdentifieralong with theCustomerAWSAccountId,ProductCode, andLicenseArn.Note
To successfully resolve the token, the API must be called from the account that was used to publish the SaaS application. For an example of using
ResolveCustomer, see ResolveCustomer code example in the Amazon Web Services Marketplace Seller Guide.Permission is required for this operation. Your IAM role or user performing this operation requires a policy to allow the
aws-marketplace:ResolveCustomeraction. For more information, see Actions, resources, and condition keys for Amazon Web Services Marketplace Metering Service in the Service Authorization Reference.For Amazon Web Services Regions that support
ResolveCustomer, see ResolveCustomer Region support.See also: AWS API Documentation
Request Syntax
response = client.resolve_customer( RegistrationToken='string' )
- Parameters:
RegistrationToken (string) –
[REQUIRED]
When a buyer visits your website during the registration process, the buyer submits a registration token through the browser. The registration token is resolved to obtain a
CustomerIdentifieralong with theCustomerAWSAccountId,ProductCode, andLicenseArn.- Return type:
dict
- Returns:
Response Syntax
{ 'CustomerIdentifier': 'string', 'ProductCode': 'string', 'CustomerAWSAccountId': 'string', 'LicenseArn': 'string' }
Response Structure
(dict) –
The result of the
ResolveCustomeroperation. Contains theCustomerIdentifieralong with theCustomerAWSAccountId,ProductCode, andLicenseArn.CustomerIdentifier (string) –
The
CustomerIdentifieris used to identify an individual customer in your application.ProductCode (string) –
The product code is returned to confirm that the buyer is registering for your product. Subsequent
BatchMeterUsagecalls should be made using this product code.CustomerAWSAccountId (string) –
The
CustomerAWSAccountIdprovides the Amazon Web Services account ID associated with theCustomerIdentifierfor the individual customer. Calls toBatchMeterUsagerequireCustomerAWSAccountIdfor eachUsageRecord.LicenseArn (string) –
The
LicenseArnis a unique identifier for a specific granted license. These are typically used for software purchased through Amazon Web Services Marketplace. Calls toBatchMeterUsagerequireLicenseArnfor eachUsageRecord.Note
Once you receive the
CustomerAWSAccountIdandLicenseArnin the response, store that for future purposes/API calls/integrations.
Exceptions