API Endpoints

Create a price

Creates a new price object that points to a product. Set type to recurring for subscriptions.

Log in to see full request history
Body Params
string

Name for the price, hidden from customers.

string

Description for the price, hidden from customers.

meta
object

Key/value pairs (JSON) for extra info on the object. Useful for external use.

string

The ID of the product that this price will point to. Created without a product by default.

string

Whether the price is for one-time or recurring (subscription) payments. Defaults to one-time.

string
required

The public key, or name, of the underlying token, or fiat currency, for the price. Mint address on Solana, token contract address on EVM, or a string currency code (e.g. usd).

string

The underlying blockchain or fiat network that the price is associated with. Defaults to sol (Solana).

string

Whether the price is inclusive of tax. Defaults to exclusive.

string

perUnit sets a fixed price per unit, defined by either unitAmountDecimal or unitAmount. tiered sets a variable price per unit, defined by the tiers and tierType fields.

string

The raw cost of the price, denominated in the specified currency. A non-negative integer in raw token decimals. For example, to charge 5 USDC, use 5_000_000 (5*10^6) since the the number of token decimals of USDC is 6. Mutually exclusive with unitAmountDecimal.

number

The decimal adjusted cost of the price, denominated in the specified currency. A non-negative integer in base-10. For example, to charge 5 USDC, use 5. Mutually exclusive with unitAmount.

string

The pricing model used for tiered subscriptions. Either graduated or volume. Requires billingScheme to be set to tiered and is null by default.

tiers
array of objects

List of tiers, where each element represents a different pricing tier. Requires billingScheme to be set to tiered and is null by default.

tiers
recurring
object
required
Response

price object.

Language
Credentials
Click Try It! to start a request and see the response here! Or choose an example:
application/json