AWSMarketplace Metering

2022/02/03 - AWSMarketplace Metering - 1 updated api methods

Changes  Add CustomerAWSAccountId to ResolveCustomer API response and increase UsageAllocation limit to 2500.

ResolveCustomer (updated) Link ΒΆ
Changes (response)
{'CustomerAWSAccountId': 'string'}

ResolveCustomer is 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 a CustomerIdentifier along with the CustomerAWSAccountId and ProductCode.

See also: AWS API Documentation

Request Syntax

client.resolve_customer(
    RegistrationToken='string'
)
type RegistrationToken:

string

param RegistrationToken:

[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 CustomerIdentifier along with the CustomerAWSAccountId and ProductCode.

rtype:

dict

returns:

Response Syntax

{
    'CustomerIdentifier': 'string',
    'ProductCode': 'string',
    'CustomerAWSAccountId': 'string'
}

Response Structure

  • (dict) --

    The result of the ResolveCustomer operation. Contains the CustomerIdentifier along with the CustomerAWSAccountId and ProductCode.

    • CustomerIdentifier (string) --

      The CustomerIdentifier is used to identify an individual customer in your application. Calls to BatchMeterUsage require CustomerIdentifiers for each UsageRecord.

    • ProductCode (string) --

      The product code is returned to confirm that the buyer is registering for your product. Subsequent BatchMeterUsage calls should be made using this product code.

    • CustomerAWSAccountId (string) --

      The CustomerAWSAccountId provides the AWS account ID associated with the CustomerIdentifier for the individual customer.