Loading...

Knowledge Base

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.

Renew

Description

Renews an existing Wordpress Hosting Order.

Parameters

 

NameData TypeRequired / OptionalDescription
auth-useridIntegerRequiredAuthentication Parameter
api-keyStringRequiredAuthentication Parameter
order-idIntegerRequiredThe OrderId which is to be renewed.
monthsIntegerRequiredThe number of months for which the Order is placed.
invoice-optionStringRequiredThis parameter will decide how the Customer Invoices will be handled. Values can be: NoInvoice, PayInvoice, KeepInvoice, OnlyAdd
auto-renewBooleanRequired

Enables / Disables the Auto Renewal setting for the Order.

discount-amountFloatOptionalDiscount 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.