13 KiB
13 KiB
BillingPreviewAttachRequest
Fields
| Field | Type | Required | Description |
|---|---|---|---|
customer_id |
str | ✔️ | The ID of the customer to attach the plan to. |
entity_id |
OptionalNullable[str] | ➖ | The ID of the entity to attach the plan to. |
feature_quantities |
List[models.BillingPreviewAttachFeatureQuantities] | ➖ | If this plan contains prepaid features, use this field to specify the quantity of each prepaid feature. This quantity includes the included amount and billing units defined when setting up the plan. |
version |
Optional[float] | ➖ | The version of the plan to attach. |
free_trial |
OptionalNullable[models.BillingPreviewAttachFreeTrial] | ➖ | N/A |
customize |
Optional[models.BillingPreviewAttachCustomize] | ➖ | Customize the plan to attach. Can either override the price of the plan, the items in the plan, or both. |
plan_id |
str | ✔️ | N/A |
invoice_mode |
Optional[models.BillingPreviewAttachInvoiceMode] | ➖ | N/A |
discounts |
List[models.BillingPreviewAttachDiscountUnion] | ➖ | N/A |
redirect_mode |
Optional[models.BillingPreviewAttachRedirectMode] | ➖ | N/A |
success_url |
Optional[str] | ➖ | N/A |
new_billing_subscription |
Optional[bool] | ➖ | N/A |
plan_schedule |
Optional[models.BillingPreviewAttachPlanSchedule] | ➖ | N/A |
billing_behavior |
Optional[models.BillingPreviewAttachBillingBehavior] | ➖ | N/A |