Update PlanTemplate
Update a specific PlanTemplate.
This endpoint enables you to update a specific PlanTemplate within a specific Organization, both identified by their unique identifiers (UUIDs). The request body should contain the updated information for the PlanTemplate.
Note: If you have created Custom Fields for a Plan Template, when you use this endpoint to update the Plan Template use the customFields parameter to preserve those Custom Fields. If you omit them from the update request, they will be lost.
Path parameters
The unique identifier (UUID) of your Organization. The Organization represents your company as a direct customer of our service.
The unique identifier (UUID) of the PlanTemplate to update.
Request body
Example request
{
"version": null,
"customFields": [],
"productId": "string",
"name": "string",
"currency": "USD",
"standingCharge": 0,
"standingChargeDescription": "string",
"standingChargeInterval": 1,
"standingChargeOffset": 364,
"billFrequencyInterval": 1,
"billFrequency": "DAILY",
"ordinal": 0,
"code": "string",
"minimumSpend": 0,
"minimumSpendDescription": "string",
"standingChargeBillInAdvance": true,
"minimumSpendBillInAdvance": true
}Response
Returns the updated PlanTemplate
Example response
{
"id": "string",
"version": 1,
"customFields": {
"example1": 123,
"example2": "string"
},
"productId": "string",
"name": "string",
"currency": "USD",
"standingCharge": 0,
"standingChargeDescription": "string",
"standingChargeInterval": 1,
"standingChargeOffset": 364,
"billFrequencyInterval": 1,
"billFrequency": "DAILY",
"ordinal": 0,
"code": "string",
"minimumSpend": 0,
"minimumSpendDescription": "string",
"standingChargeBillInAdvance": true,
"minimumSpendBillInAdvance": false
}Changes
Changed in 2 of the 10 revisions of this API.31
- ▲
the response property
////////became optional for the statusresponse-property-became-optional
- ▲
the response property
////became optional for the statusresponse-property-became-optional
This revision also has 53 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
the
/////request property type changed from no type toobjectrequest-property-type-changed
- ●
removed
subschema #1subschema #2from the/////request propertyallOflistrequest-property-all-of-removed
This revision also has 6 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲