Get subscription terms
Shows what a subscription to this product would cost and when it would bill, if one unit were bought now: price, trial, billing interval and a sentence for the shopper. Use it on a product page before checkout. Nothing is created. Call it only for a product with a subscription plan. The currency is the currency you send, or one guessed from country or the shopper's IP address. Secret, trusted and limited tokens may call it.
AuthorizationBearer <token>A secret, trusted or limited token. See Authentication.
product_id*stringThe product id.
show?stringComma-separated fields to return; all others are left out. Use dot notation for child fields (customer.email). You cannot send show and hide together (400). See Customizing output.
hide?stringComma-separated fields to leave out of the response. Use dot notation for child fields (customer.email). You cannot send show and hide together (400). See Customizing output.
formatted?booleanWhen true, the object also has a formatted child with amounts and dates as display text in the shopper's language and currency (for example $19.99 or November 7, 2026). The default is false. See Localized formatting.
falsecurrency?stringThe ISO 4217 currency for the terms. It must be a currency the account can take payment in, or the request fails with 400.
country?stringA two-letter ISO country code, used to guess the currency when you send no currency.
user_locale?stringThe shopper's language for description, such as de.
The subscription terms.
application/json- response
What a subscription for this product would cost and when it would bill, if a customer bought one unit now. Worked out from the product's prices and its subscription plan. Nothing is created.
object?"subscription_terms"The object type. Always subscription_terms.
"subscription_terms"price?numberThe price of each billing, in currency, before any discount.
quantity?numberThe quantity the terms are for. Always 1 here.
currency?stringThe currency of the amounts.
discount?numberThe discount on each discounted billing, in currency.
discount_price?|The price after discount, or null when there is no discount.
discount_apply_count?|How many billings get the discount, or null for every billing.
discount_applied_count?integerHow many discounted billings have run. Always 0 here.
tax_inclusve?booleanWhether the price includes tax. Always false here. The field name is spelled this way in the API.
billing_interval?integerThe number of billing_interval_unit between billings.
billing_interval_unit?stringThe unit of billing_interval. Minute and hour are for test plans only.
"minute""hour""day""month""year"billing_interval_description?stringThe billing interval as text, for example month or 3 months.
trial_interval?|The length of the free trial, or null when there is none.
trial_interval_unit?|The unit of trial_interval.
trial_interval_description?|The trial length as text, or null when there is no trial.
date_trial_start?|When the trial would start (now), or null when there is no trial.
date-timedate_trial_end?|When the trial would end, or null when there is no trial.
date-timeend_at_billing_count?|The number of billings after which the subscription ends, or null to renew until cancelled.
date_billing_start?stringWhen the first paid billing would happen.
date-timesubscription_id?|Always null here, because no subscription exists yet.
description?stringThe terms as one sentence for the shopper, in their language.
price_per_day?numberThe price spread over one day, for display.
price_per_month?numberThe price spread over one month, for display.
price_per_year?numberThe price spread over one year, for display.
formatted?Present only when you send formatted=true. The amounts and dates as display text.
curl -X GET 'https://api.comecero.com/api/v1/products/string/subscription_terms'{ "object": "subscription_terms", "price": 9.95, "quantity": 1, "currency": "USD", "discount": 0, "discount_price": null, "discount_apply_count": null, "discount_applied_count": 0, "tax_inclusve": false, "billing_interval": 1, "billing_interval_unit": "month", "billing_interval_description": "month", "trial_interval": 14, "trial_interval_unit": "day", "trial_interval_description": "14 days", "date_trial_start": "2026-11-07T15:00:00Z", "date_trial_end": "2026-11-21T15:00:00Z", "end_at_billing_count": null, "date_billing_start": "2026-11-21T15:00:00Z", "subscription_id": null, "description": "Widget Pro is a subscription that renews every month with a payment of $9.95.", "price_per_day": 0.33, "price_per_month": 9.95, "price_per_year": 119.4}List term change products GET
The products a subscriber to this product may switch to on a different subscription plan, for example yearly instead of monthly: the active, not deleted products in the product's `subscription_term_change_product_ids` that have a plan other than this product's. All of them come back on one page; `offset` and `limit` do not apply. Secret, trusted and limited tokens may call it.
Overview
Next Page