> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# AWS Marketplace SaaS onboarding: resolve the registration token to the

> customer's identifiers via ResolveCustomer, then link them to the org so the hourly flush bills their AWS account. Requires NSR_METERING_AWS_*…

customer's identifiers via ResolveCustomer, then link them to the org so the
hourly flush bills their AWS account. Requires `NSR_METERING_AWS_*`.

**Required scope:** `admin`

### Request body

`AwsRegisterRequest`

**dimension** `string`

Metered dimension to bill against (default `verified_decisions`).

**org\_id** `string` *required*

The NSR org/tenant to bill for this subscription.

**registration\_token** `string` *required*

The `x-amzn-marketplace-token` the customer's browser POSTs to our landing page right after they subscribe on AWS Marketplace.

### Response

No response body. Customer resolved and linked.

### Status codes

| Code | Meaning |
| - | - |
| `200` | Customer resolved and linked |
| `401` | Unauthorized — missing or invalid credentials |
| `403` | Forbidden — the key/token lacks the required scope |
| `429` | Rate limited — see Retry-After / X-RateLimit-Reset |
| `502` | AWS ResolveCustomer failed |
| `503` | AWS marketplace metering not configured |

```bash cURL theme={null}
curl --request POST \
  --url 'https://api.nsr.stateset.com/v1/metering/aws/register' \
  --header "X-API-Key: $STATESET_NSR_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
  "dimension": "string",
  "org_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "registration_token": "YOUR_API_KEY"
}'
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.