create_pricing_tier
Create a pricing tier. credits must be a positive integer; price (USD) must be 0 or at least 0.50, and at most $1.00 per credit. credit_type_ids lists the credit types a tier can be bought for; [] means every active credit type. Omit credit_type_ids for all types; malformed or foreign ids are rejected. Costs 1 CRD (platform credit) per call, charged even when the call is then rejected (a 429 RATE_LIMITED costs nothing). Error results include request_id; quote it to support.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Tier name | |
| price | Yes | Price in dollars | |
| api_key | No | Cred API key (optional if set via the x-api-key header) | |
| credits | Yes | Credits granted per purchase | |
| currency | No | Currency code (default USD) | |
| is_popular | No | Highlight as popular | |
| project_id | No | Cred project ID (optional; the API key already identifies the project) | |
| description | No | Tier description | |
| billing_type | No | Which checkouts may sell the tier. A subscription is created only when checkout is sent billing: "recurring"; recurring-only tiers cannot be used for saved-card charges or auto top-up. Default one_time. | |
| x402_payment | No | Base64 x402 PaymentPayload, only when a previous call failed with an x402 PaymentRequired because the account is out of CRD | |
| credit_type_ids | No | Credit type UUIDs; omit or [] = all |