Knowledge Base
Categories: WordPress Hosting Management API
Renew WordPress Hosting Orders Using the API
When you want to renew an existing WordPress Hosting order using the API. This article explains renewal parameters, invoice options, auto-renew settings, discount handling, and response details for WordPress Hosting renewals.
Description
Renews an existing Wordpress Hosting Order.
Parameters
| Name | Data Type | Required / Optional | Description |
|---|---|---|---|
| auth-userid | Integer | Required | Authentication Parameter |
| api-key | String | Required | Authentication Parameter |
| order-id | Integer | Required | The OrderId which is to be renewed. |
| months | Integer | Required | The number of months for which the Order is placed. |
| invoice-option | String | Required | This parameter will decide how the Customer Invoices will be handled. Values can be: NoInvoice, PayInvoice, KeepInvoice, OnlyAdd |
| auto-renew | Boolean | Required |
Enables / Disables the Auto Renewal setting for the Order. |
| discount-amount | Float | Optional | Discount amount for the order value. |
HTTP Method
PATCH
Example Test URL Request
https://test.httpapi.com/restapi/product/wordpresshostingusa/order/{order-id}/tenure/{months}?auth-userid=0&api-key=key&invoice-option=KeepInvoice&discount-amount=0.00
Response
Returns a map of the execution details of the Renew operation.
Did you find this article helpful?