ProductAttribute
One charge of a product, such as its platform fee or a usage charge, with its list pricing and credit benefits.
- activeType: booleanrequired
Whether the charge is offered. An inactive attribute stays on the plans and orders that use it, but a default plan made for the product leaves it out.
- Properties: 12creditType:
Benefits required - nameType: stringrequired
The charge's name, unique within the product. It names the charge on invoices.
- pricingrequired
How one charge is priced.
pricingTypepicks one of 15 types: recurring fees, usage (per unit, tiered, in credits or at cost plus), one-time fees and seats. Money is in minor units (cents for USD). The pricing is stored as you send it and returned as sent, pluschargeTypeandpricingModel, which Spondo Billing sets frompricingType.A fixed fee per unit, billed every period:
unitPrice× the quantity (1 on a plan, the line's quantity on an order).Example: a platform fee of 9900 (USD 99.00) billed
MonthlyinAdvancecharges USD 99.00 at the start of each month. On an order line with quantity 3 it charges USD 297.00.- pricing
Type Discriminatorconst:RecurringPerUnitrequiredThe pricing type. It decides the charge's other fields and how it bills.
- billingType: enum
Frequency How often the charge is billed: every 1, 3, 6 or 12 months, or with
CustomeverybillingFrequencyCustomMonthsmonths. Amounts (the price, credit benefits) are per billing period: a quarterly fee is charged once a quarter.valuesMonthlyQuarterlySemi-AnnuallyAnnualCustom - billingType: integer
Frequency Custom Months min:1With
billingFrequency: Custom, the length of the billing period in months. - billingType: enum
Type When each period is billed.
Advance: at the start of the period, for the period ahead.Arrears: at the end, for the period just ended. Usage charges, and the overage of seats that come with credits, are always billed in arrears. Default:Arrearsfor usage charges,Advancefor the rest.valuesAdvanceArrears - charge
Type const:recurringread-onlySet by Spondo Billing from
pricingType: the kind of charge. Returned, never sent. - priceType:
Points Properties: 5One price point per currency. An order uses the one in its currency, else the first.
unitPriceis the fee per unit per period. - pricing
Model const:perUnitread-onlySet by Spondo Billing from
pricingType: how the charge is priced. Returned, never sent.
- productType: string
Attribute Id requiredThe attribute's ID (a UUID).