WebNIC RESTFUL v2
Domain APISSL APIDNS APIUtility Endpoints
Domain APISSL APIDNS APIUtility Endpoints
WebNIC OST @ Github
WebNIC Partner Portal
  1. Subscription
  • 📝 Update History
  • Zone
    • Get Domain Zone
      GET
    • Add Domain Zone to NS Subscription
      POST
    • Get Domain Zone NS Subscription
      GET
    • Search Domain Zones
      GET
    • Delete Domain Zone
      DELETE
    • Get Domain Zone Statistics
      GET
    • Get Premium Subscription Statistics
      GET
  • Zone Record
    • Get Basic Record Nameservers
      GET
    • Get Subscription Record Nameservers
      GET
    • Get Zone Records
      GET
    • Get Supported Record Types
      GET
    • Save Zone Record
      POST
    • Remove Zone Subscription Record
      POST
    • Replace Zone Subscription Record
      POST
    • Delete Zone Record
      DELETE
    • Delete Zone Subscription Record
      DELETE
    • Detele Basic Zone Record
      DELETE
  • Zone Forwarding
    • Get Zone Url Forwardings
    • Add Zone Url Forwarding
    • Remove Zone Url Forwarding
    • Get Zone Email Forwardings
    • Add Zone Email Forwarding
    • Remove Zone Email Forwarding
  • Zone DNSSEC
    • Get Domain Zone DNSSEC Info
    • Enable Domain Zone DNSSEC
    • Disable Domain Zone DNSSEC
    • Get Domain Zone DNSSEC DNS Key Record
    • Get Domain Zone DNSSEC DS Record
  • Subscription Whitelabel
    • Get Whitelabel Nameserver
    • Save Whitelabel Nameservers
    • Remove Whitelabel Nameservers
  • Subscription
    • Add Domain Zone to Partner Subscription
      POST
    • Remove Domain Zone from Partner Subscription
      DELETE
    • Subscribe Domain Subscription
      POST
    • Get Domain Subscription
      GET
    • Get Domain Subscription by Id
      GET
    • Get Domain Subscription by Domain Name
      GET
    • Renew Domain Subscription
      PUT
    • Unsubscribe Domain Subscription
      DELETE
    • Enable Domain Subscription Auto Renewal
      PUT
    • Disable Domain Subscription Auto Renewal
      PUT
  • Zone Record Template
    • Get Zone Subscription Record Templates
    • Create Zone Subscription Record Template
    • Get Zone Subscription Record Template by Id
    • Update Zone Subscription Record Template by Id
    • Add Zone Subscription Record to Zone Subscription Record Template
    • Remove Zone Subscription Record from Zone Subscription Record Template
    • Delete Zone Subscription Record Template
Domain APISSL APIDNS APIUtility Endpoints
Domain APISSL APIDNS APIUtility Endpoints
WebNIC OST @ Github
WebNIC Partner Portal
  1. Subscription

Renew Domain Subscription

OTE Environment
https://oteapi.webnic.cc
OTE Environment
https://oteapi.webnic.cc
PUT
/dns/v2/subscription/standalone-domain/{subscriptionId}/renew
Last modified:2024-12-12 04:36:51
This endpoint allows you to renew domain subscription.
Request Body
FieldTypeDescription
subscriptionTermNumber(Required) Subscription term in months
Allowed values: 1, 12
Response Data
FieldTypeDescription
domainNameStringDomain name
subscriptionIdStringSubscription ID
subscriptionProductStringSubscription product type
subscriptionTermNumberSubscription term in months
subscriptionExpiryStringDate and time when the subscription is set to expire
subscriptionAutoRenewBooleanWhether the subscription is set to auto-renew
subscriptionNextRenewalStringDate and time when the subscription next renewal
dtrenewStringDate and time when the subscription was renewed
dtcreateStringDate and time when the subscription was created
dtmodifyStringDate and time when the subscription was modified
Related Action
ActionURL
Get Product Subscription Pricing{{baseUrl}}/dns/v2/product/subscription/:subscription/pricing
Get Domain Subscription by Id{{baseUrl}}/dns/v2/subscription/standalone-domain/:subscriptionId
Get Domain Subscription by Domain Name{{baseUrl}}/dns/v2/subscription/standalone-domain/get-by-domain

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params

Header Params

Body Params application/json

Examples

Responses

🟢200OK
application/json
Body

🟠400Subscription Not Found
🟠400Subscription Not Under Current Partner
🟠400Domain Subscription Term Invalid
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://oteapi.webnic.cc/dns/v2/subscription/standalone-domain/05b6f2d1-78ef-449f-896a-1134ce949194/renew' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "subscriptionTerm": 1
}'
Response Response Example
200 - OK
{
    "code": "1000",
    "message": "Command completed successfully.",
    "data": {
        "domainName": "boardingpass.com",
        "subscriptionId": "05b6f2d1-78ef-449f-896a-1134ce949194",
        "subscriptionProduct": "premium_ns_georoute",
        "subscriptionTerm": 1,
        "subscriptionExpiry": "2025-09-15T23:59:59+08:00",
        "subscriptionAutoRenew": false,
        "subscriptionNextRenewal": "2025-09-12T23:59:59+08:00",
        "dtrenew": "2024-06-27T10:45:16+08:00",
        "dtcreate": "2024-05-16T10:54:01+08:00",
        "dtmodify": "2024-06-27T10:45:16+08:00"
    }
}
Modified at 2024-12-12 04:36:51
Previous
Get Domain Subscription by Domain Name
Next
Unsubscribe Domain Subscription
Built with