Billing
Products & Prices
Model your catalog with products, then attach one-time or recurring prices to power checkout and subscriptions.
Overview
A product (ph_pro_...) represents what you sell — a plan, service, or good. A price (ph_pri_...) defines how much and how often you charge for it. One product can have multiple prices (e.g., monthly and yearly), and subscriptions reference a priceId when billing customers. All requests use Authorization: Bearer phk_live_... and return the { data, error } envelope.
Products
What you sell — plans, services, goods
Prices
One-time or recurring, per product
Subscriptions
Bill a customer on a price
Create a product
Create a product first, then attach prices to it. The API returns the new product (status active unless you pass status) and dispatches a product.created webhook.
curl https://paymenthooks.com/api/v1/products \
-X POST \
-H "Authorization: Bearer phk_live_..." \
-H "Content-Type: application/json" \
-d '{
"name": "Pro Plan",
"description": "Full access to the Pro feature set",
"type": "service",
"metadata": { "tier": "pro" }
}'| Field | Type | Description |
|---|---|---|
name | string | Product name. |
description | string | Free-text description. |
type | stringDefault: | Product type label, e.g. service or good. Filterable on the list endpoint. |
status | stringDefault: | active or archived. |
metadata | object | Key-value pairs for your internal reference. |
hsnCode | string | India GST HSN (goods, 4-8 digits) or SAC (services, 6 digits) code, reported in the tax report's HSN summary. |
taxCode | string | Product tax code from GET /api/v1/tax-codes (e.g. tc_ebook, tc_saas, tc_food_groceries). Tax is then charged at that category's treatment in the customer's country: reduced, zero-rated, exempt or standard. Omitted or null: your default tax code (Settings > Tax), else the standard rate. An unknown code returns 422 UNKNOWN_TAX_CODE. A price's own tax rate (taxRateId) still wins. |
businessEntityIds | array | The businesses this product is sold under (ids from GET /business-entities). [] or omitted: every business. On update the list replaces the whole set. A business's hosted billing page offers only its own products as plan changes. An id that is not one of your businesses returns 400 VALIDATION_ERROR. With an API key of a business, omitted = that business and any other list is 422 BUSINESS_MISMATCH. See Products and businesses below. |
showOnHostedPages | boolean | Offer this product's plans on hosted billing pages for a plan change. Default true. Existing subscriptions keep billing when false. |
tags | array | Up to 20 tags. Each is trimmed, lowercased and inner spaces become -; allowed characters are a-z, 0-9, ., _, :, - (start with a letter or digit, max 40). Duplicates collapse. An invalid tag returns 400 VALIDATION_ERROR naming it. On update the list replaces the full set; [] clears it. |
Returns 201 on success, 400 VALIDATION_ERROR if name is missing, or 500 INTERNAL_ERROR on a server error. Other body fields are ignored on create. Product responses do not embed prices.
Create a price
Attach a price to a product. Use type: "one_time" for single charges or type: "recurring" with an interval for subscriptions. The API dispatches a price.created webhook.
curl https://paymenthooks.com/api/v1/prices \
-X POST \
-H "Authorization: Bearer phk_live_..." \
-H "Content-Type: application/json" \
-d '{
"productId": "ph_pro_6512bd43d9caa6e02c990b0a82652dca",
"itemLocalCurrencyAmount": 2900,
"itemLocalCurrency": "USD",
"type": "recurring",
"interval": "month",
"trialDays": 14
}'| Field | Type | Description |
|---|---|---|
productId | string | ID of the product (ph_pro_...) this price belongs to. |
itemLocalCurrencyAmount | integer | Price in the smallest unit of itemLocalCurrency (cents, paise; whole units for zero-decimal currencies such as JPY). |
itemLocalCurrency | string | ISO 4217 code the price is set in. Stored uppercased. Omitted: your account's default currency (Settings > Profile); an account without one returns 422 MERCHANT_CURRENCY_MISSING. Other requests take their currency from the price (see /docs/money-and-currencies). |
currencyOptions | object | The price's amount in other currencies (Stripe currency_options): ISO 4217 code (any case) to { "unitAmount": n } in that currency's smallest unit, e.g. { "inr": { "unitAmount": 105020 } }. A checkout, invoice or subscription in one of them uses exactly that amount, never a conversion, and a subscription renews at it. On update, null removes a currency and currencies left out are kept. The price's own currency is refused (422), as is an unknown code (400). Per-unit licensed prices only. Returned as currencyOptions: [{ itemLocalCurrency, itemLocalCurrencyAmount, itemAmountUsdCents, itemUsdToLocalCurrencyRate }]. |
type | stringDefault: | recurring or one_time. Note the default: omit it and the price is recurring. |
interval | string | Billing interval for recurring prices: day, week, month or year (one_time is also accepted). Subscriptions treat a missing interval as month. |
intervalCount | integer | Number of intervals between charges, 1-365. Subscriptions treat a missing value as 1. |
trialDays | integer | Free-trial length in days (0-730) applied when a subscription is created on this price without an explicit trialEndAt. |
nickname | string | Internal label. Searchable on the list endpoint. |
taxBehavior | string | inclusive: the amount already contains tax, which is carved out at checkout (the customer pays exactly the amount). exclusive: tax is added on top. Omit for the merchant default (Settings > Tax > Prices include tax). |
taxRateId | string | A rate from your tax table (ph_tax_...) this price is always sold at, e.g. GST 5% for books. Applies whatever the customer's country, while tax collection is on. Omit for the rate of the customer's country. Must be one of your rates (400 otherwise). |
billingScheme | stringDefault: | per_unit or tiered. |
tiersMode | string | graduated or volume (tiered prices). |
tiers | array | Tier definitions for tiered prices; stored and returned as provided. |
status | stringDefault: | active or archived. |
showOnHostedPages | boolean | Offer this price for a plan change on hosted billing pages. Default true. Hidden prices still bill and renew; the billing page's Change plan refuses them (422 PRICE_NOT_AVAILABLE). |
allowCustomerPlanChange | boolean | Customers can switch to this price on the hosted billing page. Default false (opt-in). The billing page also lists only prices whose product is assigned to the subscription's business (businessEntityIds); anything else is refused with 422 PRICE_NOT_AVAILABLE. |
metadata | object | Key-value pairs for your internal reference. |
tags | array | Up to 20 tags. Each is trimmed, lowercased and inner spaces become -; allowed characters are a-z, 0-9, ., _, :, - (start with a letter or digit, max 40). Duplicates collapse. An invalid tag returns 400 VALIDATION_ERROR naming it. On update the list replaces the full set; [] clears it. |
Returns 201 on success or 400 VALIDATION_ERROR if productId, itemLocalCurrencyAmount or itemLocalCurrency is missing. If no exchange rate can be obtained for the currency, the request fails with 500 INTERNAL_ERROR rather than storing a guessed rate.
Product endpoints
Payload and response for every product endpoint. Products outside your account return 404 NOT_FOUND. To list one business's products, see Products and businesses.
| Field | Type | Description |
|---|---|---|
search | string | Case-insensitive substring match on name, or an exact tag. |
status | string | Exact match, e.g. active or archived. |
type | string | Exact match on type. |
tag | string | Tag filter. Repeat it (?tag=a&tag=b) or comma-separate (?tag=a,b). Invalid tags return 400. |
tagMatch | stringDefault: | all: rows carrying every tag; any: rows carrying at least one. |
businessEntityId | string | Products sold under this business: assigned to it, or to every business. One of your businesses, else 400. A business API key always uses its own business. |
businessOnly | booleanDefault: | With businessEntityId: only products explicitly assigned to it. |
page | integerDefault: | 1-based page number. |
pageSize | integerDefault: | Items per page, 1-100. Results are always newest first. |
/api/v1/productsCreate a product (201){
"name": "Pro Plan",
"description": "Full access to the Pro feature set",
"type": "service",
"taxCode": "tc_saas",
"metadata": { "tier": "pro" },
"tags": ["Pro", "monthly"]
}{
"data": {
"id": "ph_pro_6512bd43d9caa6e02c990b0a82652dca",
"merchantId": "ph_mrc_c9f0f895fb98ab9159f51fd0297e236d",
"name": "Pro Plan",
"description": "Full access to the Pro feature set",
"type": "service",
"taxCode": "tc_saas",
"businessEntityIds": [],
"showOnHostedPages": true,
"status": "active",
"images": [],
"metadata": { "tier": "pro" },
"tags": ["pro", "monthly"],
"createdAt": "2026-05-01T00:00:00.000Z",
"updatedAt": "2026-05-01T00:00:00.000Z"
},
"error": null
}/api/v1/products?status=active&tag=pro,monthly&tagMatch=all&page=1&pageSize=10List products (optionally filtered by tags){
"data": [
{ "id": "ph_pro_6512bd43d9caa6e02c990b0a82652dca", "name": "Pro Plan", "type": "service", "status": "active", "metadata": { "tier": "pro" }, "tags": ["pro", "monthly"], "createdAt": "2026-05-01T00:00:00.000Z" }
],
"meta": { "total": 1, "page": 1, "pageSize": 10 },
"error": null
}/api/v1/products?businessEntityId=cmh2k8w1v0001qz8e3t7d9f4a&businessOnly=trueList the products assigned to one business (drop businessOnly to include products for every business){
"data": [
{ "id": "ph_pro_6512bd43d9caa6e02c990b0a82652dca", "name": "Pro Plan", "status": "active", "businessEntityIds": ["cmh2k8w1v0001qz8e3t7d9f4a"], "createdAt": "2026-05-01T00:00:00.000Z" }
],
"meta": { "total": 1, "page": 1, "pageSize": 25 },
"error": null
}/api/v1/products/:productIdRetrieve a product (prices are not embedded; use GET /api/v1/products/:productId/prices){
"data": {
"id": "ph_pro_6512bd43d9caa6e02c990b0a82652dca",
"merchantId": "ph_mrc_c9f0f895fb98ab9159f51fd0297e236d",
"name": "Pro Plan",
"description": "Full access to the Pro feature set",
"type": "service",
"taxCode": "tc_saas",
"businessEntityIds": [],
"showOnHostedPages": true,
"status": "active",
"images": [],
"metadata": { "tier": "pro" },
"tags": ["pro", "monthly"],
"createdAt": "2026-05-01T00:00:00.000Z",
"updatedAt": "2026-05-01T00:00:00.000Z"
},
"error": null
}/api/v1/products/:productId/pricesList all prices of a product (not paginated){
"data": [
{ "id": "ph_pri_c20ad4d76fe97759aa27a0c99bff6710", "productId": "ph_pro_6512bd43d9caa6e02c990b0a82652dca", "itemLocalCurrency": "USD", "itemLocalCurrencyAmount": 2900, "itemAmountUsdCents": 2900, "itemUsdToLocalCurrencyRate": 1, "type": "recurring", "interval": "month", "status": "active" }
],
"error": null
}/api/v1/products/:productIdUpdate a product. Accepts only name, description, hsnCode, taxCode (null: your default), type, status, businessEntityIds, showOnHostedPages, metadata and tags (at least one; tags replaces the full set); any other field returns 400 VALIDATION_ERROR, an unknown taxCode 422 UNKNOWN_TAX_CODE{
"name": "Pro Plan (2026)",
"metadata": { "tier": "pro", "year": "2026" }
}{
"data": {
"id": "ph_pro_6512bd43d9caa6e02c990b0a82652dca",
"name": "Pro Plan (2026)",
"status": "active",
"metadata": { "tier": "pro", "year": "2026" },
"updatedAt": "2026-05-16T10:30:00.000Z"
},
"error": null
}/api/v1/tax-codes?country=DE&search=ebookList product tax codes (search, category). With country (and state for a US state or Canadian province), each code carries its treatment there: standard, reduced (ratePercent), zero, exempt or not_in_scope; verify marks a treatment not yet confirmed (the standard rate applies){
"data": [
{ "object": "tax_code", "id": "tc_ebook", "name": "E-books", "category": "ebooks", "categoryName": "E-books and digital publications", "description": "Books delivered electronically: e-books and downloadable audiobooks of a book.", "treatment": { "kind": "reduced", "category": "ebooks", "ratePercent": 7 } }
],
"meta": { "total": 1, "page": 1, "pageSize": 1 },
"error": null
}/api/v1/products/:productIdDelete a product (archives it instead if it has any prices){
"data": null,
"error": null
}Price endpoints
Payload and response for every price endpoint. Prices whose product is outside your account return 404 NOT_FOUND.
| Field | Type | Description |
|---|---|---|
productId | string | Only prices of this product. |
status | string | Exact match, e.g. active. |
search | string | Case-insensitive substring match on nickname or itemLocalCurrency, or an exact tag. |
tag | string | Tag filter. Repeat it (?tag=a&tag=b) or comma-separate (?tag=a,b). Invalid tags return 400. |
tagMatch | stringDefault: | all: rows carrying every tag; any: rows carrying at least one. |
businessEntityId | string | Prices whose product is sold under this business (assigned to it, or to every business). A business API key always uses its own business. |
businessOnly | booleanDefault: | With businessEntityId: only prices of products explicitly assigned to it. |
page | integerDefault: | 1-based page number. |
pageSize | integerDefault: | Items per page, 1-100. |
sortField | stringDefault: | Price field to sort by. |
sortDirection | stringDefault: | asc or desc. |
/api/v1/pricesCreate a price (201){
"productId": "ph_pro_6512bd43d9caa6e02c990b0a82652dca",
"itemLocalCurrencyAmount": 2900,
"itemLocalCurrency": "usd",
"type": "recurring",
"interval": "month",
"intervalCount": 1,
"trialDays": 14,
"nickname": "Monthly Pro",
"metadata": { "plan": "pro" },
"tags": ["monthly"]
}{
"data": {
"id": "ph_pri_c20ad4d76fe97759aa27a0c99bff6710",
"productId": "ph_pro_6512bd43d9caa6e02c990b0a82652dca",
"name": null,
"itemLocalCurrency": "USD",
"itemLocalCurrencyAmount": 2900,
"itemAmountUsdCents": 2900,
"itemUsdToLocalCurrencyRate": 1,
"type": "recurring",
"interval": "month",
"intervalCount": 1,
"trialDays": 14,
"taxBehavior": null,
"taxRateId": null,
"isDefault": false,
"status": "active",
"billingScheme": "per_unit",
"tiersMode": null,
"tiers": null,
"nickname": "Monthly Pro",
"metadata": { "plan": "pro" },
"tags": ["monthly"],
"createdAt": "2026-05-01T00:00:00.000Z",
"updatedAt": "2026-05-01T00:00:00.000Z"
},
"error": null
}/api/v1/prices?productId=ph_pro_6512bd43d9caa6e02c990b0a82652dca&status=active&tag=monthlyList prices (optionally filtered by tags){
"data": [
{ "id": "ph_pri_c20ad4d76fe97759aa27a0c99bff6710", "productId": "ph_pro_6512bd43d9caa6e02c990b0a82652dca", "itemLocalCurrency": "INR", "itemLocalCurrencyAmount": 150000, "itemAmountUsdCents": 1575, "itemUsdToLocalCurrencyRate": 95.2253, "type": "recurring", "interval": "month", "status": "active" }
],
"meta": { "total": 1, "page": 1, "pageSize": 25 },
"error": null
}/api/v1/prices/:priceIdRetrieve a price{
"data": {
"id": "ph_pri_c20ad4d76fe97759aa27a0c99bff6710",
"productId": "ph_pro_6512bd43d9caa6e02c990b0a82652dca",
"name": null,
"itemLocalCurrency": "USD",
"itemLocalCurrencyAmount": 2900,
"itemAmountUsdCents": 2900,
"itemUsdToLocalCurrencyRate": 1,
"type": "recurring",
"interval": "month",
"intervalCount": 1,
"trialDays": 14,
"taxBehavior": null,
"taxRateId": null,
"isDefault": false,
"status": "active",
"billingScheme": "per_unit",
"tiersMode": null,
"tiers": null,
"nickname": "Monthly Pro",
"metadata": { "plan": "pro" },
"tags": ["monthly"],
"createdAt": "2026-05-01T00:00:00.000Z",
"updatedAt": "2026-05-01T00:00:00.000Z"
},
"error": null
}/api/v1/prices/:priceIdUpdate a price. Accepts name, nickname, status, trialDays, taxBehavior, taxRateId, metadata, tags (tags replaces the full set), itemLocalCurrencyAmount and currencyOptions (null removes a currency). itemLocalCurrency, productId and the interval cannot change (400). An amount change on a price with subscriptions creates a new price version: 201 with the new price and meta.previousPriceId (see Price versions){
"nickname": "Monthly Pro (legacy)",
"status": "archived"
}{
"data": {
"id": "ph_pri_c20ad4d76fe97759aa27a0c99bff6710",
"productId": "ph_pro_6512bd43d9caa6e02c990b0a82652dca",
"nickname": "Monthly Pro (legacy)",
"status": "archived",
"updatedAt": "2026-05-16T10:30:00.000Z"
},
"error": null
}/api/v1/prices/:priceIdSet the price's amount in other currencies (currency options). A customer charged in INR pays exactly 1,050.20; a subscription in INR renews at it{
"currencyOptions": { "inr": { "unitAmount": 105020 }, "eur": null }
}{
"data": {
"id": "ph_pri_c20ad4d76fe97759aa27a0c99bff6710",
"itemLocalCurrency": "USD",
"itemLocalCurrencyAmount": 2900,
"currencyOptions": [
{ "itemLocalCurrency": "INR", "itemLocalCurrencyAmount": 105020, "itemAmountUsdCents": 1103, "itemUsdToLocalCurrencyRate": 95.2253 }
]
},
"error": null
}/api/v1/prices/:priceId/versionsThe price's version history, newest first, with the open subscriptions still billed at each version{
"data": [
{ "id": "ph_pri_new", "current": true, "itemLocalCurrency": "USD", "itemLocalCurrencyAmount": 1100, "currencyOptions": [], "createdAt": "2026-11-28T10:00:00.000Z", "supersededAt": null, "supersedesPriceId": "ph_pri_c20ad4d76fe97759aa27a0c99bff6710", "supersededByPriceId": null, "status": "active", "activeSubscriptions": 0 },
{ "id": "ph_pri_c20ad4d76fe97759aa27a0c99bff6710", "current": false, "itemLocalCurrency": "USD", "itemLocalCurrencyAmount": 1000, "currencyOptions": [], "createdAt": "2026-05-01T00:00:00.000Z", "supersededAt": "2026-11-28T10:00:00.000Z", "supersedesPriceId": null, "supersededByPriceId": "ph_pri_new", "status": "archived", "activeSubscriptions": 412 }
],
"error": null
}/api/v1/prices/:priceId/migrate-subscriptionsMove subscriptions on older versions to the current one from their next renewal. Each customer is emailed the new price and date first. dryRun: report only{ "dryRun": true }{
"data": {
"priceId": "ph_pri_c20ad4d76fe97759aa27a0c99bff6710", "currentPriceId": "ph_pri_new", "dryRun": true, "scheduled": 410, "skipped": 2,
"entries": [
{ "subscriptionId": "ph_sub_1", "outcome": "scheduled", "itemLocalCurrency": "USD", "currentAmount": 1000, "newAmount": 1100, "effectiveAt": "2026-12-20T00:00:00.000Z" },
{ "subscriptionId": "ph_sub_2", "outcome": "exceeds_mandate", "itemLocalCurrency": "INR", "currentAmount": 84000, "newAmount": 92000, "effectiveAt": "2026-12-04T00:00:00.000Z", "mandateMaxLocalCurrencyAmount": 90000, "mandateLocalCurrency": "INR", "mandateCheckLocalCurrencyAmount": 108560 }
]
},
"error": null
}/api/v1/prices/:priceIdDelete a price (409 if active or trialing subscriptions use it){
"data": null,
"error": null
}Products and businesses
A business is a brand you sell under on one account: its own name, branding, support details, invoice numbering and API key. You manage businesses under Developers > Businesses and list them with GET /api/v1/business-entities; see Business branding. Each product says which businesses it is sold under in businessEntityIds. A price is sold under the businesses of its product.
[](the default): the product is available to every business.["id1", "id2"]: only those businesses sell it.- Every id must be one of your businesses. Duplicates are removed.
Assign in the dashboard
Open Catalog > Products, then Create Product or a product's Edit Product. In the Availability box, pick businesses in Businesses; leave it empty for all businesses. The field is shown when you have two or more businesses.
Assign through the API
Send businessEntityIds on POST /api/v1/products and PUT /api/v1/products/:productId. On update the list you send replaces the whole set (send [] to make the product available to every business); leave the field out to keep it unchanged. The change is sent in product.updated with business_entity_ids in previous_attributes.
# Sold only by two of your businesses
curl https://paymenthooks.com/api/v1/products \
-X POST \
-H "Authorization: Bearer phk_live_..." \
-H "Content-Type: application/json" \
-d '{ "name": "Pro Plan", "businessEntityIds": ["cmh2k8w1v0001qz8e3t7d9f4a", "cmh2k9c4x0002qz8e6b1n5h2c"] }'
# Replace the whole list ([] = every business)
curl https://paymenthooks.com/api/v1/products/ph_pro_6512bd43d9caa6e02c990b0a82652dca \
-X PUT \
-H "Authorization: Bearer phk_live_..." \
-H "Content-Type: application/json" \
-d '{ "businessEntityIds": ["cmh2k8w1v0001qz8e3t7d9f4a"] }'List products and prices by business
GET /api/v1/products and GET /api/v1/prices take two filters, combined with every other filter. The filter runs in the database query, so meta.total and the pages count only matching rows.
| Field | Type | Description |
|---|---|---|
businessEntityId | string | Products sold under this business: those assigned to it plus those for every business (businessEntityIds: []). Must be one of your businesses (GET /business-entities), else 400 VALIDATION_ERROR. On GET /prices it filters by the price's product. |
businessOnly | booleanDefault: | With businessEntityId: only products explicitly assigned to that business, leaving out the every-business ones. true without businessEntityId, or a value other than true / false, is 400 VALIDATION_ERROR. |
# Products a business sells (assigned to it, or to every business)
curl "https://paymenthooks.com/api/v1/products?businessEntityId=cmh2k8w1v0001qz8e3t7d9f4a&status=active" \
-H "Authorization: Bearer phk_live_..."
# Only the products you assigned to that business
curl "https://paymenthooks.com/api/v1/products?businessEntityId=cmh2k8w1v0001qz8e3t7d9f4a&businessOnly=true" \
-H "Authorization: Bearer phk_live_..."
# Prices of those products
curl "https://paymenthooks.com/api/v1/prices?businessEntityId=cmh2k8w1v0001qz8e3t7d9f4a&type=recurring" \
-H "Authorization: Bearer phk_live_..."{
"data": [
{
"id": "ph_pro_6512bd43d9caa6e02c990b0a82652dca",
"name": "Pro Plan",
"type": "service",
"status": "active",
"businessEntityIds": ["cmh2k8w1v0001qz8e3t7d9f4a"],
"showOnHostedPages": true,
"pricesCount": 2,
"totalPricesCount": 2,
"tags": [],
"createdAt": "2026-11-25T00:00:00.000Z"
}
],
"meta": { "total": 1, "page": 1, "pageSize": 25 },
"error": null
}API keys of a business
Every API key belongs to one business. With that key:
- Lists always use the key's business, whatever
businessEntityIdsays.businessOnly=truestill applies. GET,PUTandDELETEon a product (and its prices and subscriptions), or on a price, return404 NOT_FOUNDwhen the product is assigned only to other businesses.- A product created without
businessEntityIdsis assigned to the key's business. Sending another business, several, or[]returns422 BUSINESS_MISMATCH. - The key cannot change a product's businesses (
422 BUSINESS_MISMATCH). Change them in the dashboard. - A price can be added only to a product sold under the key's business (
404otherwise).
Dashboard sessions see and change every product.
Hosted billing page and checkout
On a hosted billing page, Change plan offers only prices with allowCustomerPlanChange on, whose product has showOnHostedPages on and is assignedto the subscription's business (products for every business are not offered, unless you have no businesses). Anything else is refused with 422 PRICE_NOT_AVAILABLE.
Errors
| Field | Type | Description |
|---|---|---|
400 VALIDATION_ERROR | businessEntityIds | An id in businessEntityIds is not one of your businesses (the message lists them). Nothing is saved. |
400 VALIDATION_ERROR | businessEntityId | The list filter names a business that does not exist on your account, or is not a business id. |
400 VALIDATION_ERROR | businessOnly | businessOnly is not true / false, or is true without businessEntityId. |
422 BUSINESS_MISMATCH | businessEntityIds | Business API key only: a create assigns anything other than the key's own business, or an update changes the product's businesses. |
404 NOT_FOUND | - | Business API key only: the product (or the price's product) is not sold under the key's business. |
{
"data": null,
"error": {
"code": "VALIDATION_ERROR",
"message": "That business does not exist on your account",
"fields": { "businessEntityId": "That business does not exist on your account" }
}
}Currency handling
Send itemLocalCurrencyAmount in the smallest unit of the currency you price in (e.g., 150000 paise for INR 1,500.00). PaymentHooks stores that amount unchanged, in your currency: itemLocalCurrencyAmount stays 150000 and itemLocalCurrency is INR (uppercased). The same price is also stored in USD cents as itemAmountUsdCents (1575 at a rate of 95.2253), which is what totals and reports add up.
Every amount field in the dashboard (prices, tiers, routing amount conditions) is typed in major units of the currency instead: 1500 for INR 1,500.00, 15.75 for USD 15.75, 1500 for JPY 1,500 (no decimals), 1.234 for KWD 1.234. More decimals than the currency has are refused, never rounded.
One price, an amount per currency
A price is set in your default currency, and can carry its exact amount in other currencies with currencyOptions (Stripe's currency_options): { "inr": { "unitAmount": 105020 } }. When a checkout is charged in INR (the currency order is unchanged: the customer's currency if the gateway takes it, else USD, else the price's currency), the customer pays exactly INR 1,050.20, not a conversion, and the subscription renews at INR 1,050.20 for as long as it runs. A currency without an option is converted at the live rate as before. Invoices and plan changes in a currency use the option the same way. Price webhooks carry the amounts as currency_options.
Inline prices (productKey lines from WHMCS and other integrations) share one price per item and billing cycle, named {productKey}_{cycle} (e.g. in_domain_registration_1y). Each line's currency is stored as an option with the line's exact amount, so the charge always equals the integration's invoice line. When the first line of an item is in another currency than your default, the price's own amount is derived once from it at the live rate (recorded as metadata.baseAmountDerivedFrom); it is a list price only and never charged in place of an option.
Price versions
A price that has subscriptions is never edited in place. Changing its amount, or an amount in a currency it already sells in, creates a new price: the new version (supersedesPriceId) becomes the current one for new sales, and the old one is archived with supersededByPriceId and supersededAt. Existing subscriptions keep their own amount. A price nobody has bought yet is edited in place, and adding a new currency never creates a version. A changed renewal amount from an inline line creates a version the same way; a discounted first period is sent as a one-time line and never does.
Product features
A product can say what its plan includes: features such as priority_support, projects (a quantity) or api_calls (metered), each with a maximum or unlimited. Define features with POST /features, then set the product's list with PUT /products/{productId}/features ({ features: [{ featureId, enabled, limitValue, displayOrder }] }, replacing the whole list). Checkout and subscription emails show the enabled features as "What's included", and overage above a maximum is set per price with PUT /prices/{priceId}/feature-overage. See Attach features to a product.