postDomainRenewWithHttpInfo method
Extends a domain your org already owns and answers the updated record with its new expiry alongside what was paid.
Extends a domain your org already owns and answers the updated record with its new expiry alongside what was paid. Ownership is the gate: a name the caller's org does not hold is 404, so a renewal can never reach another tenant's domain. The price is re-quoted at the CURRENT renewal rate rather than the one paid at purchase. If the registrar returns no renewal price the org's original price is charged instead, so a renewal is never accidentally free. The balance is authorized before the registrar is called and captured after it confirms — 402 when the prepaid balance cannot cover it, 503 when the deployment has no registrar credentials. Requires a validated principal.
Note: This method returns the HTTP Response.
Parameters:
- RenewReq renewReq (required):
Implementation
Future<Response> postDomainRenewWithHttpInfo(RenewReq renewReq,) async {
// ignore: prefer_const_declarations
final path = r'/v1/domain/renew';
// ignore: prefer_final_locals
Object? postBody = renewReq;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}