AWS Marketplace guide
For the teams that list a Datacove product on AWS Marketplace and build the tenant website's signup page. It covers the AWS seller account, the platform settings, the buyer's first key, how buyers call the API, and how usage and revenue reach AWS and our reports.
01How it works
A marketplace product belongs to one tenant and lists the workflows its buyers may run. Each AWS buyer becomes a subscription under that product, holding its own mk_ API keys. AWS bills the buyer; Datacove reports each buyer's usage to AWS every hour.
Two ways to price a product
Pay as you go: a price per successful call, reported to AWS as usage. Plans: AWS contracts with a price per term and a call allowance (or unlimited); when the allowance runs out, calls are either refused or billed as overage. A product uses exactly one of the two, chosen when it is created.
Two ways to hand over the key
Redirect (AWS "SaaS product"): the buyer reveals the key once on the tenant's signup page. Quick Launch (AWS "API-Based Agents & Tools"): the same signup, and the key is also stored in the buyer's own AWS Secrets Manager. AWS fixes this per listing, so it is set per product.
| Subscription status | Meaning |
|---|---|
| pending_registration | AWS has told us about the buyer, but they haven't finished the signup page. |
| pending_activation | Signup is done; waiting for AWS to confirm the subscription. Usually seconds. |
| active | Keys work. |
| suspended | Keys are blocked: by an administrator, or by an AWS payment advisory. |
| cancel_pending | The buyer is leaving. Keys are blocked and final usage is reported straight away. |
| ended | The AWS subscription is over. Keys never work again. |
| failed | AWS could not set the subscription up (for example a payment failure). |
02AWS seller setup, step by step
Done once per seller AWS account, signed in to that account, in US East (N. Virginia) us-east-1: the AWS Marketplace APIs and the listings' notification topics only exist there. Every value you collect is saved on the tenant (section 03), never in server configuration, because each tenant can sell from its own account.
- AWS seller account: steps 1 to 6 below.
- Platform: tenant settings, the product, then Connect and verify (section 03).
- The tenant website's signup page (section 04).
- Test end to end, then go live (section 05).
Each queue message is handed to whichever environment reads it first, and is then deleted. Connect the event queue to one environment's tenant settings at a time: the test environment while testing, then production at go-live. Never let two environments read the same queue.
Step 1: Note the listing's identifiers
Open the AWS Marketplace Management Portal, go to Products → SaaS, and open the product. Write down:
| Value | Where it's shown | Used for |
|---|---|---|
Product ID (prod-…) | Product summary | The product's externalProductId |
| Product code | Product summary | The product's productCode |
| SNS topic ARN | Product summary, older products only | Step 2's queue policy and step 3 |
| Entitlement topic ARN | Product summary, contract products only | Step 3, plans products only |
| Dimension API identifiers and prices | Pricing tab | The product's dimensionKey values and prices |
Step 2: Create the event queue
- SQS → Create queue: type Standard, a name such as
<queue-name>-dlq, default settings. This is the dead-letter queue. - Create queue again: type Standard (not FIFO), name
<queue-name>, with:- Visibility timeout 60 seconds, message retention 4 days or more.
- Encryption SSE-SQS, the default. Don't choose a KMS key: SNS and EventBridge would then need permission to use it.
- Dead-letter queue enabled, pointing at the first queue, with maximum receives 5.
- Under Access policy → Advanced, replace the JSON with the policy below, so SNS and EventBridge can deliver to the queue. List every SNS topic the queue receives from in the first statement. Leave that statement out if no listing has a topic.
- Create the queue, and copy its URL (for the tenant settings) and its ARN (for steps 3 to 5).
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowMarketplaceSns",
"Effect": "Allow",
"Principal": { "Service": "sns.amazonaws.com" },
"Action": "sqs:SendMessage",
"Resource": "arn:aws:sqs:us-east-1:<seller-account-id>:<queue-name>",
"Condition": { "ArnEquals": { "aws:SourceArn": [
"arn:aws:sns:us-east-1:<aws-owned-account>:aws-mp-subscription-notification-<product-code>"
] } }
},
{
"Sid": "AllowMarketplaceEventBridge",
"Effect": "Allow",
"Principal": { "Service": "events.amazonaws.com" },
"Action": "sqs:SendMessage",
"Resource": "arn:aws:sqs:us-east-1:<seller-account-id>:<queue-name>",
"Condition": { "ArnEquals": {
"aws:SourceArn": "arn:aws:events:us-east-1:<seller-account-id>:rule/<rule-name>"
} }
}
]
}Step 3: Connect the SNS topic
Only for a listing that shows an SNS topic in step 1.
- SNS → Subscriptions → Create subscription.
- Topic ARN: the listing's topic. It belongs to an AWS-owned account, which is expected. Protocol: Amazon SQS. Endpoint: the queue's ARN. Raw message delivery can be on or off.
- Create it. Within a minute its status must be Confirmed. If it stays Pending confirmation, the topic ARN in the queue policy doesn't match.
- For a plans product whose listing also shows an entitlement topic, subscribe the queue to that topic the same way, and add its ARN to the first statement of the queue policy.
Step 4: Create the EventBridge rule
- EventBridge → Rules → Create rule on the default event bus, type Rule with an event pattern. Give it the same name as
<rule-name>in the queue policy. - Event source AWS events or EventBridge partner events, with this custom pattern:
Event pattern
{ "source": ["aws.agreement-marketplace"] } - Target: AWS service → SQS queue, the event queue, passing the full event. Create the rule.
Every listing in the account reaches the queue through this one rule. Receiving the same change from SNS and from EventBridge is harmless: each message is stored once.
Step 5: Create the backend credentials
- IAM → Policies → Create policy → JSON, with the policy below.
- IAM → Users → Create user with no console access, and attach only that policy.
- On the user, open Security credentials → Create access key and choose Application running outside AWS.
- Copy the access key ID and secret once, and enter them only in the tenant settings, where they're encrypted. Don't put them in files, chat or tickets.
Alternatively, attach the policy to a role that the platform's own AWS identity can assume with an external ID, and use the tenant setting credentialMode: "assume_role" with the role ARN and external ID.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "MarketplaceApis",
"Effect": "Allow",
"Action": [
"aws-marketplace:ResolveCustomer",
"aws-marketplace:BatchMeterUsage",
"aws-marketplace:GetEntitlements",
"aws-marketplace:DescribeAgreement",
"aws-marketplace:GetAgreementTerms",
"aws-marketplace:DescribeEntity",
"aws-marketplace:PutDeploymentParameter"
],
"Resource": "*"
},
{
"Sid": "EventQueue",
"Effect": "Allow",
"Action": ["sqs:ReceiveMessage", "sqs:DeleteMessage", "sqs:GetQueueAttributes"],
"Resource": "arn:aws:sqs:us-east-1:<seller-account-id>:<queue-name>"
}
]
}| Permission | Used for |
|---|---|
| ResolveCustomer | Identifying the buyer at the fulfillment URL. |
| BatchMeterUsage | Hourly usage reports (pay as you go and overage). |
| GetEntitlements | Reading a plans buyer's contract tier. |
| DescribeAgreement, GetAgreementTerms | Matching agreement events to a product, and the buyer's agreed prices for revenue. |
| DescribeEntity | Checking a product against its listing. |
| PutDeploymentParameter | Quick Launch products: storing the key in the buyer's AWS account. |
| sqs:ReceiveMessage, DeleteMessage, GetQueueAttributes | Reading the event queue every minute. |
Step 6 (optional): Billing data feed
Replaces revenue estimates with what AWS actually invoiced (section 07).
- In the AWS Marketplace Management Portal, open Reports → Set up customer data storage and launch its CloudFormation template. It creates an encrypted S3 bucket in the seller account.
- Copy the ARNs from the stack's Resources tab back into that page to start the subscription.
- Add this statement to the step 5 policy:
IAM policy statement
{ "Sid": "BillingDataFeed", "Effect": "Allow", "Action": ["s3:ListBucket", "s3:GetObject"], "Resource": ["arn:aws:s3:::<feed-bucket>", "arn:aws:s3:::<feed-bucket>/*"] } - Save the bucket in the tenant settings as
dataFeedBucket, plusdataFeedPrefixif the feeds live under a key prefix. The billing event feed is then imported every day.
Listing settings
The listing and the platform's product must agree on these, or AWS rejects usage reports or reports price it wrongly.
| Listing field | Set to |
|---|---|
| Fulfillment URL | The product's fulfillmentUrl, copied exactly as the API returns it (section 03). It already includes any deployment path prefix, and it points at one environment, so it changes at go-live (section 05). |
| Pricing model | Pay as you go: "SaaS subscriptions" with one usage dimension. Plans: "SaaS contracts" with one tier per plan, "with pay-as-you-go" when the product bills overage. |
| Dimension API identifiers | Exactly the product's dimensionKey values: the pay-as-you-go dimension, each plan's dimension, and the overage dimension. |
| Prices and durations | The same prices, and each plan's durationMonths (1, 12, 24 or 36). AWS charges what the listing says; the product's copy drives allowances, the signup page, the published API docs and revenue estimates. |
03Platform setup
Both steps are SUPER_ADMIN calls, usually made from the admin panel.
Tenant settings
Partial update; send only what changes. GET on the same path returns the settings with secrets replaced by has… flags. Setting isEnabled: true is refused until the credentials for the chosen mode, queueUrl and signupPageUrl are all set.
| Field | Type | Notes |
|---|---|---|
| isEnabled | boolean | Turns marketplace on for this tenant. |
| sellerAccountId | string | The seller AWS account, for reference. |
| region | string | Where the queue and feed bucket live. Default us-east-1. |
| credentialMode | "access_keys" | "assume_role" | How the backend authenticates to the seller account. |
| accessKeyId, secretAccessKey | string | access_keys mode. |
| roleArn, externalId | string | assume_role mode. |
| queueUrl | https URL | The event queue from section 02. |
| signupPageUrl | https URL | The tenant website page that finishes signup (section 04). |
| supportEmail | Shown to buyers on the signup page. | |
| dataFeedBucket, dataFeedPrefix | string | Optional billing reconciliation. An empty string turns it off. |
Products
Creates the product and returns it with its fulfillmentUrl, the address to paste into the listing. pricing.type can't change later; create a new product (and listing) to switch.
{
"tenantId": "<tenant id>",
"name": "URL Threat Check API",
"externalProductId": "prod-xxxxxxxxxxxx",
"productCode": "<product code>",
"fulfillmentMode": "redirect",
"notificationChannel": "eventbridge",
"pricing": {
"type": "pay_as_you_go",
"payAsYouGo": { "dimensionKey": "api_call", "pricePerCallUsd": 0.05 }
},
"allowedWorkflows": ["wf-sec-001"],
"keyLifetimeDays": 365
}"pricing": {
"type": "plans",
"plans": [{
"key": "starter",
"name": "Starter",
"dimensionKey": "starter_tier",
"priceUsd": 499,
"durationMonths": 12,
"callLimit": 10000,
"resetEvery": "monthly"
}],
"onLimit": {
"action": "overage",
"dimensionKey": "overage_call",
"pricePerCallUsd": 0.08
}
}| Field | Notes |
|---|---|
| externalProductId, productCode | From the listing. The product id starts with prod-. |
| fulfillmentMode | redirect for an AWS "SaaS product", quick_launch for "API-Based Agents & Tools". |
| notificationChannel | sns if the listing shows an SNS topic, otherwise eventbridge. |
| allowedWorkflows, allowedWorkflowCategories | What buyers may run. "*" allows everything the tenant offers. |
| callLimit | null for unlimited. resetEvery is monthly or term. |
| onLimit.action | block refuses calls once the allowance is used; overage bills them on the overage dimension. |
| keyLifetimeDays | Optional lifetime, in days, of each buyer key issued. Omit it for keys that don't expire. On update, send null to go back to keys that don't expire. A change applies only to keys issued afterwards; keys already issued keep their expiry. |
Also available: GET /marketplace/products/v1/:pageNo/:pageSize, GET/PATCH/DELETE /marketplace/products/v1/:id, and POST /marketplace/products/v1/:id/aws-check, which compares the product's dimension keys with the listing's and is the quickest way to prove the credentials work.
For the buyer API docs (section 04) to show what each workflow returns, set its optional responseExample (one real successful response) and/or responseSchema (a JSON Schema of it) with PATCH /workflows/v1/:id (SUPER_ADMIN or DEVELOPER). Both are descriptive only; they never change what a run returns. Send null to remove one.
Connect and verify
Once the AWS steps are done, connect the environment you're setting up (the test environment first; see One queue, one environment):
- Tenant settings:
PATCH /tenants/v1/:id/aws-marketplace-configwithsellerAccountId,region: "us-east-1",credentialMode: "access_keys",accessKeyIdandsecretAccessKey(step 5),queueUrl(step 2),signupPageUrl(section 04),supportEmail, optionallydataFeedBucket(step 6), andisEnabled: true. A missing value is refused with400 Cannot enable AWS Marketplace: missing …, naming exactly what's missing. - Product: create it, or check the existing one, so that
externalProductId,productCode, the dimension keys and the prices match step 1. SetisActive: true. - Check against AWS:
POST /marketplace/products/v1/:id/aws-check. A200with an emptydifferenceslist means the credentials work and the dimension keys match the listing. Each entry indifferencesnames a dimension that exists on only one side; fix the product withPATCH /marketplace/products/v1/:idor the listing, then check again. A502carries AWS's reason (wrong product ID, missingDescribeEntitypermission, bad keys); a503means the tenant settings are off or incomplete. - Queue: the backend reads the queue every minute. Watch the backend logs for a minute after enabling: a line starting
Polling marketplace queue for tenant … failedmeans the queue URL, region or SQS permissions are wrong. - Fulfillment URL: copy the product's
fulfillmentUrlfor the listing (section 05).
04Tenant signup page
The tenant website owns the page and its design. AWS posts the buyer to the fulfillment URL; the backend identifies them with AWS and redirects the browser to signupPageUrl with either ?session=<token> or ?error=<code>. The page then talks to the API with the tenant website's own dk_ key.
| ?error= | What to show |
|---|---|
| invalid_token | The AWS link expired or was already used. Ask the buyer to choose Set up your account again in AWS Marketplace. |
| product_mismatch | The subscription is for a different product. Ask the buyer to start again from the right listing. |
| product_unavailable | The product is not open for signups. Show the support email. |
| setup_failed | A temporary problem. Ask the buyer to try again shortly. |
Everything the page renders: product name, pricing, subscription status, whether signup is done, and whether the key can be revealed. While status is pending_activation, poll every few seconds until it becomes active.
{
"productName": "URL Threat Check API",
"pricing": { "type": "pay_as_you_go", "payAsYouGo": { "dimensionKey": "api_call", "pricePerCallUsd": 0.05 } },
"status": "pending_activation",
"isRegistered": true,
"isFreeTrial": false,
"contact": { "name": "Priya Sharma", "email": "priya@example.com", "company": "Example Corp" },
"hasKey": false,
"canRevealKey": false,
"supportEmail": "support@example.com",
"expiresAt": "2026-10-15T10:30:00.000Z"
}Body { "name", "email", "company" } (each required, up to 200 characters). Returns the session again. 409 SUBSCRIPTION_CLOSED if the AWS subscription already ended or failed.
Issues the buyer's first key and returns { apiKey, apiKeyId, expiresAt } once. Show it with a copy button and a "won't be shown again" warning. 409 SUBSCRIPTION_NOT_ACTIVE until AWS confirms; 409 KEY_ALREADY_ISSUED if a working key exists.
The page works the same way. Once the key is issued, it is also stored in the buyer's AWS Secrets Manager under the name api-key, as soon as AWS has sent the buyer's agreement. Tell the buyer they can return to AWS Marketplace to finish launching.
Publishing API docs
The tenant website can also host the buyers' API reference, generated live from the product, so it never goes stale. Fetch the document from the website's server with the same dk_ key and render it with any OpenAPI viewer (Redoc, Scalar, Swagger UI). Buyer keys and other callers are refused.
An OpenAPI 3.0 document. Query product (the product's publicRef) is optional when the tenant sells one product; otherwise 400 PRODUCT_REQUIRED lists the choices in error.products. 404 for a product the tenant doesn't sell. Cached for 30 minutes.
The tenant's active products: [{ publicRef, name, pricingType }], for a page that offers more than one.
| The document contains | Built from |
|---|---|
POST /workflows/v1/execute, with a request shape and example per workflow | The workflows the product allows: their names, input schemas and placeholders, and response examples or schemas where set. |
One POST /workflows/v1/tools/{workflowId} per workflow | The same workflows, as agent tools. |
| The agent spec, key rotation, and report polling (only when a workflow returns a report) | The live API definitions. |
servers, the x-api-key security scheme, the error shape | The deployment's public address and the platform's error envelope. |
x-marketplace: productName, publicRef, pricing, supportEmail, workflows | The product's listing prices and the tenant's support email, for the page around the reference. |
Workflows that need a file upload are left out, as they are from the agent spec. Point the signup page's "API docs" link at the page that renders this document.
05Test end to end, then go live
Test the whole flow against the test environment while the listing still has limited visibility, then move the listing and the event queue to production.
Test on the test environment
- In the listing, set the fulfillment URL to the test environment's
fulfillmentUrl, set a nominal price, and add a test buyer AWS account to the allowlist. - From the test buyer account, subscribe and choose Set up your account. You should land on the tenant's signup page with
?session=in the address. - Complete signup. The page shows the subscription as confirming, then active, within seconds. Reveal the key.
- Call
POST /workflows/v1/executewith the key (section 06) and check the result. - In the admin views (section 08): the buyer is
active, and the event log shows the subscription event asprocessed. - A few minutes after the next full hour, the usage report for the test calls shows
sent. - Cancel the subscription in AWS Marketplace. Within a few minutes the buyer is
cancel_pendingorended, and the key returns401.
| Symptom | Check |
|---|---|
| "Set up your account" shows an error page instead of the signup page | The fulfillment URL's publicRef doesn't match any product, or the tenant has no signup page URL. |
The signup page shows ?error=product_unavailable | The product is inactive, or the tenant settings are disabled. |
The signup page shows ?error=invalid_token | The AWS link was used twice or expired; choose Set up your account again. If it repeats, check the ResolveCustomer permission. |
| The page stays on "confirming" | No subscription event arrived: the SNS subscription (step 3), the EventBridge rule (step 4), the queue policy (step 2), and the event log. |
Go live
- Configure production exactly as in Connect and verify: tenant settings with the same queue URL and credentials, the product, and
aws-check. - In the same change window, turn the test environment's tenant settings off (
isEnabled: false), so only production reads the queue. - Set the listing's fulfillment URL to production's
fulfillmentUrl, and its real prices. - Repeat one end-to-end test with an allowlisted account against production.
- Request public visibility for the listing from AWS Marketplace.
06Calling the API as a buyer
Buyers send their key as x-api-key: mk_… on every call, from their own servers or an agent gateway. There is no token exchange and no browser origin check. The key works only while the subscription is active.
Running workflows
The same call every API-key integration uses: { "id": "<workflowId>", "input": { … } }. Only the product's workflows are allowed; anything else is 404. Each successful run is billed; a failed run is not, and gives back its plan allowance.
curl -X POST "$BASE_URL/workflows/v1/execute" \
-H "x-api-key: mk_live_…" \
-H "Content-Type: application/json" \
-d '{ "id": "wf-sec-001", "input": { "url": "https://example.com/login" } }'# Queue it, then poll the report every 5 s
curl -X POST "$BASE_URL/workflows/v1/execute?callAsync=true" …
# → { "success": true, "eventId": "…" }
curl "$BASE_URL/workflows/reports/v1/<eventId>" -H "x-api-key: mk_live_…"Use callAsync=true for workflows that take minutes, so the request isn't cut off by a network timeout. The report poll answers { "status": "GENERATING" } while running, then the result. A buyer can only read its own reports. A report whose content was deleted answers 410 with error.code REPORT_DELETED.
Running workflows with v2
Same callers, credits, responses and errors as POST /workflows/v1/execute; only the request differs. New builds should use v2: v1 is deprecated and will be removed once every client has moved.
| Form field | Notes |
|---|---|
| workflowIdrequired | The workflow id, for example wf-sec-001 (v1 called it id). |
| input.<key> | One field per workflow input, named after its key. Numbers as decimal text, object and array inputs as JSON text, everything else as text. |
| input.<key> (file) | A file input is the file itself, as a file part with the same name. Repeat the part for inputs that accept several files. Text in a file input (a link, an S3 address, an id) is refused with FILE_INPUT_NOT_A_FILE. |
| country, name, email, couponCodeoptional | As in v1. |
| callAsyncoptional | true for sk_ and mk_ keys only. In v2 it is a form field, not a query parameter. |
Files are stored privately, exactly as sent: send the original file, without compressing or converting it. A run that doesn't start keeps no files. Other 400 codes: UNKNOWN_FIELD (a field that is neither a run field nor an input of this workflow) and INVALID_JSON. A JSON body gets 415. 403 UPLOADS_NOT_ENABLED means the tenant can't accept files yet. 429 FILE_LIMIT_REACHED means the user or the app has sent too many files for now: wait the number of seconds in the Retry-After header (also error.retryAfterSeconds) and tell the user, rather than retrying. Don't set Content-Type yourself; let the HTTP client add the multipart boundary.
curl -X POST "$BASE_URL/workflows/v2/execute" \
-H "x-api-key: mk_live_…" \
-F "workflowId=wf-sec-001" \
-F "input.url=https://example.com/login" \
-F "callAsync=true"Agent tools
An OpenAPI document with one tool per workflow in the product, each with a short operationId (for example run_url_threat_check) and its own typed request body. Workflows that need a file upload are left out. Load it into an agent gateway such as AWS Bedrock AgentCore and configure the x-api-key header there; the spec itself carries no auth.
What each tool calls: the workflow's inputs are the body itself, with no { id, input } wrapper. JSON only. Returns 200 with the result. Billing, allowances and errors are the same as for execute.
Sellers get the same document for the listing from GET /marketplace/products/v1/:id/agent-spec (SUPER_ADMIN).
Rotating a key
No body. Authenticated by the key being replaced; returns a new { apiKey, apiKeyId, expiresAt } once. The old key keeps working for 24 hours (or until its own expiry, if sooner) so the buyer can switch over. At most 5 keys at a time (409 TOO_MANY_KEYS). For Quick Launch products the new key also replaces the one in the buyer's Secrets Manager. A buyer who lost their key asks support, who reissue one (section 08).
07Metering and revenue
Hourly usage
A few minutes past each hour, the previous hour's successful billable runs are reported to AWS with BatchMeterUsage, one record per buyer and dimension. A report is never sent twice. AWS refuses usage 24 hours or more old, so failures are retried within that window.
Estimated revenue
Accepted usage is added to one payment per buyer per UTC day, and each plan term bought to one payment, priced at the buyer's agreed rate from AWS (or the product's list price). These payments have provider aws_marketplace, currency USD and status estimated.
Reconciled revenue
With the billing data feed set up, each AWS invoice becomes one payment: pending when invoiced, completed once AWS collects it, refunded if forgiven, with AWS's listing fee in metadata.listingFee. The estimates it covers become superseded.
Dashboards show marketplace revenue in a separate USD bucket, and workflow stats show marketplace runs and revenue in their own block; neither is ever mixed into INR or CAD earnings. When an invoice replaces estimates, the dashboard is corrected by the difference, so nothing is counted twice.
08Operations
SUPER_ADMIN endpoints for support and finance. Every change is written to the audit log.
| Call | Use |
|---|---|
| GET /marketplace/subscriptions/v1/:pageNo/:pageSize | Buyers. Filters tenantId, productId, status, search (email, company or AWS account). |
| GET /marketplace/subscriptions/v1/:id | One buyer: status history, key metadata (never the key), Quick Launch delivery, and a usage summary (plan allowance, 30-day runs, units reported, revenue). |
| POST …/subscriptions/v1/:id/suspend | Body { "reason" }. Blocks the keys at once. AWS keeps billing any contract. |
| POST …/subscriptions/v1/:id/restore | Lifts a suspension, including one from an AWS advisory. |
| POST …/subscriptions/v1/:id/keys | Reissues a lost key: every existing key stops, the new one is returned once. |
| POST …/subscriptions/v1/:id/keys/deliver | Quick Launch: resends the newest key to the buyer's AWS account. Delivery is otherwise automatic and retried every 10 minutes. |
| GET /marketplace/events/v1/:pageNo/:pageSize | Every AWS notification received and how it was handled. Failed ones retry up to 5 times. |
| GET /marketplace/metering/v1/:pageNo/:pageSize | Usage reports per buyer, dimension and hour, with AWS's error for failed ones. |
| POST /marketplace/metering/v1/:id/retry | Re-queues a failed report while AWS still accepts it (within 23 hours). |
| GET /marketplace/billing/v1/:pageNo/:pageSize | Imported AWS billing events. unmatched=true lists rows for an account or product no buyer matches. |
| POST /marketplace/billing/v1/import | Body { "tenantId" }. Runs the daily billing feed import now. Safe to repeat. |
| Symptom | Check |
|---|---|
| The signup page stays on "waiting for AWS" | No subscribe event arrived: the SNS subscription or EventBridge rule, the queue policy, and the event log. |
Events show ignored with "no marketplace product configured" | The product code or prod- id on the product doesn't match the listing. |
| Usage reports fail | Dimension keys must match the listing exactly; CustomerNotSubscribed means the buyer left on AWS. |
| Quick Launch key not delivered | The subscription's keyDelivery.lastError; a missing PutDeploymentParameter permission is the usual cause. |
09Errors
Errors use the platform envelope. Branch on the status, then on error.code.
{
"statusCode": 429,
"timestamp": "2026-10-15T09:30:00.000Z",
"path": "/api/workflows/v1/execute",
"error": {
"code": "PLAN_LIMIT_REACHED",
"message": "Your plan's call allowance is used up. It resets on 2026-11-01T00:00:00.000Z.",
"resetsAt": "2026-11-01T00:00:00.000Z"
}
}| Status | error.code | Where | What to do |
|---|---|---|---|
| 401 | — | any buyer call | The key is wrong, expired, rotated out, or the subscription isn't active. |
| 404 | — | execute, tools | The workflow isn't part of this product. |
| 429 | PLAN_LIMIT_REACHED | execute, tools | The plan allowance is used up; it resets at resetsAt. Plain 429s without a code are rate limits. |
| 409 | TOO_MANY_KEYS | rotate | Five keys exist. Ask support to remove old ones. |
| 404 | SESSION_NOT_FOUND | signup | The session is unknown or older than 30 minutes. The buyer starts again from AWS. |
| 409 | SUBSCRIPTION_CLOSED | signup complete | The AWS subscription ended or failed. |
| 409 | SUBSCRIPTION_NOT_ACTIVE | signup key | AWS hasn't confirmed yet. Keep polling the session. |
| 409 | KEY_ALREADY_ISSUED | signup key | The buyer already has a working key. |
| 502 | — | execute, tools | The workflow service failed. Safe to retry; failed runs are never billed. |