Subscribe Customer to a Plan
Authorizations
Body
Configuration used by a WbCustomer to sign up a Customer to a plan
A supported currency
The format for parsing and reading is the lowercased ISO 4217 currency code (e.g. "usd")
usd
, eur
, gbp
, brl
, ars
Unique identifier of an object. Consists of object class prefix and a UUID
Enum that lists supported payment cycles for contracts:
- Once - one-time payment
- Constant - one-time payment for the duration of the contract
- Week - contract is paid weekly
- Month - contract is paid monthly
- Quarter - contract is paid every quarter
- Year - contract is paid yearly
once
, hour
, day
, week
, month
, quarter
, year
, constant
Unique identifier of an object. Consists of object class prefix and a UUID
Contract activation date. Immediate if empty
Whether the Customer should be charged by Wingback Billing Engine or not If not set, the configuration from Customer profile will be used, and if that is not set either, the default configuration for WbCustomer will be used
Unique identifier of an object. Consists of object class prefix and a UUID
Configuration specifying overrides to apply to new plan during contract upgrade. In addition to the number of units to purchase, it is possible to override price and flat_fee of specific features to create customized plans See FeatureConfiguration for format
The optional custom number of days on free trial
x > 0
When the invoices should be created
Note: EveryCycle and Periodic aren't yet supported, they will behave as Manual
immediate
Creates a pending contract. Pending contract has no activation date, and can only be activated manually. Activation date is ignored if this is set to true. Defaults to false
Unique identifier of an object. Consists of object class prefix and a UUID
Configuration specifying the number of units to purchase on the new plan for unit-based features. This is a hashmap where keys are slugs of features, and values are the numbers of units to purchase { "{feature_slug}": {number_of_units} }