Plans
Use the /billing/plans
resource to create and manage plans.
Lists billing plans.
Filters the response by a Product ID.
Filters the response by list of plan IDs. Filter supports upto 10 plan IDs.
The number of items to return in the response.
10
A non-zero integer which is the start index of the entire list of items to return in the response. The combination of page=1
and page_size=20
returns the first 20 items. The combination of page=2
and page_size=20
returns the next 20 items.
1
Indicates whether to show the total count in the response.
false
The preferred server response upon successful completion of the request. Value is:return=minimal. The server returns a minimal response to optimize communication between the API caller and the server. A minimal response includes the id, status and HATEOAS links.return=representation. The server returns a complete resource representation, including the current state of the resource.
return=minimal
Creates a plan that defines pricing and billing cycle details for subscriptions.
The preferred server response upon successful completion of the request. Value is:return=minimal. The server returns a minimal response to optimize communication between the API caller and the server. A minimal response includes the id, status and HATEOAS links.return=representation. The server returns a complete resource representation, including the current state of the resource.
return=minimal
The server stores keys for 72 hours.
The create plan request details.
The ID of the product created through Catalog Products API.
The plan name.
The initial state of the plan. Allowed input values are CREATED and ACTIVE.
ACTIVE
Pattern: ^[A-Z_]+$
Possible values: The detailed description of the plan.
Indicates whether you can subscribe to this plan by providing a quantity for the goods or service.
false
Shows details for a plan, by ID.
The ID of the subscription.
Updates a plan with the CREATED
or ACTIVE
status. For an INACTIVE
plan, you can make only status updates.
You can patch these attributes and objects:
description
replace
payment_preferences.auto_bill_outstanding
replace
taxes.percentage
replace
payment_preferences.payment_failure_threshold
replace
payment_preferences.setup_fee
replace
payment_preferences.setup_fee_failure_action
replace
name
replace
The ID of the subscription.
An array of JSON patch objects to apply partial updates to resources.
The operation.
The JSON Pointer to the target document location at which to complete the operation.
The value to apply. The remove operation does not require a value.
The JSON Pointer to the target document location from which to move the value. Required for the move operation.
No content
Activates a plan, by ID.
The ID of the subscription.
No content
Deactivates a plan, by ID.
The ID of the subscription.
No content
Updates pricing for a plan. For example, you can update a regular billing cycle from $5 per month to $7 per month.
The ID of the subscription.
The update pricing scheme request details.
No content
Was this helpful?