postDomainTransferWithHttpInfo method
Moves a domain you own at another registrar onto your org here, using its authCode, and answers the same record-plus-quote a purchase does.
Moves a domain you own at another registrar onto your org here, using its authCode, and answers the same record-plus-quote a purchase does. It is priced and charged exactly like a registration: authorize the org's prepaid balance, ask the registrar for the transfer, capture only after the registrar accepts. A name the registrar will not price is 409, an insufficient balance is 402, and a deployment with no registrar credentials is 503. It requires a validated principal; the ownership record is written under that org as soon as the registrar ACCEPTS the request, which is not the same instant the transfer completes at the losing registrar. Unlike a registration this does not provision a zone, so the record carries this deployment's configured nameservers.
Note: This method returns the HTTP Response.
Parameters:
- TransferReq transferReq (required):
Implementation
Future<Response> postDomainTransferWithHttpInfo(TransferReq transferReq,) async {
// ignore: prefer_const_declarations
final path = r'/v1/domain/transfer';
// ignore: prefer_final_locals
Object? postBody = transferReq;
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,
);
}