Creates or updates (upserts) a plan with a specified ID.
Plan resource.
Details of the one-time sale plan. Use this plan for non-recurring, one-time, sales.
Name of the plan. This name is displayed on invoices and receipts.
Plain-text description of the plan. This field accepts plain-text only.
Rich-text description of the plan. This field accepts rich text formatting, such as: bold, underline, italic, and hyperlinks.
ID of the related product.
Name-value pairs that specify the product options.
{ "color": "red", "size": "xxl" }
Use custom fields to extend a resource scheme to include custom data that is not provided as a common field. For more information, see Custom fields.
{ "foo": "bar" }
- Mock serverhttps://www.rebilly.com/_mock/catalog/all/plans/{id}
- Sandbox serverhttps://api-sandbox.rebilly.com/organizations/{organizationId}/plans/{id}
- Live serverhttps://api.rebilly.com/organizations/{organizationId}/plans/{id}
- SecretApiKey
- JWT
- any
- any (2)
- any (3)
curl -i -X PUT \
'https://www.rebilly.com/_mock/catalog/all/plans/{id}' \
-H 'Content-Type: application/json' \
-H 'REB-APIKEY: YOUR_API_KEY_HERE' \
-d '{
"name": "string",
"description": "string",
"richDescription": "string",
"productId": "prod_0YV7DES3WPC5J8JD8QTVNZBZNZ",
"productOptions": {
"color": "red",
"size": "xxl"
},
"currency": "USD",
"pricing": {
"formula": "fixed-fee",
"price": 99.95
},
"setup": {
"price": 0.1
},
"customFields": {
"foo": "bar"
},
"isActive": true
}'Plan updated.
Total number of rate limit tokens for this request within a rate limit period. For more information, see Rate limits.
Details of the one-time sale plan. Use this plan for non-recurring, one-time, sales.
Name of the plan. This name is displayed on invoices and receipts.
Plain-text description of the plan. This field accepts plain-text only.
Rich-text description of the plan. This field accepts rich text formatting, such as: bold, underline, italic, and hyperlinks.
ID of the related product.
Name-value pairs that specify the product options.
{ "color": "red", "size": "xxl" }
Use custom fields to extend a resource scheme to include custom data that is not provided as a common field. For more information, see Custom fields.
{ "foo": "bar" }
Number of times the plan is modified. Compare this value with materialized subscription item revision values.
Specifies if a plan is a trial that does not have recurring instructions.
Date and time when the resource is created. This value is set automatically when the resource is created.
Date and time when the resource is updated. This value is set automatically when the resource is updated.
- any
- any (2)
- any (3)
{ "id": "plan_0YV7DENSVGDBW9S71XZNNYYQ0X", "name": "string", "description": "string", "richDescription": "string", "productId": "prod_0YV7DES3WPC5J8JD8QTVNZBZNZ", "productOptions": { "color": "red", "size": "xxl" }, "currency": "USD", "currencySign": "string", "pricing": { "formula": "fixed-fee", "price": 99.95 }, "setup": { "price": 0.1 }, "customFields": { "foo": "bar" }, "isActive": true, "revision": 0, "isTrialOnly": false, "recurringInterval": null, "trial": null, "createdTime": "2019-08-24T14:15:22Z", "updatedTime": "2019-08-24T14:15:22Z", "_links": [ { … } ] }