16 Domains API: How to approve outgoing domain transfer

This is a series of articles dedicated to demonstrating how to get acquainted with Openprovider Domains API methods.

This is a third article in a series in which we are going to cover outgoing domain transfer. To get more information about our API in general, please use our documentation portal as your reference.

Domain transfer is a procedure of changing the current registrar of a domain name.

In the previous article we have covered all prerequisites that have to be met in order to conduct a successful domain transfer.

Now that your domain is ready to be transferred the procedure itself should be initiated with the gaining registrar, so you'll need to contact them for specific instructions, but here's a general idea of what you'll need to do:

  • authenticate in the system of the gaining registrar;
  • begin the domain transfer process according to their instructions;
  • provide an EPP code you copied from the Domain management page in RCP or acquired via the Request Authcode Domain method.
Entering Geo Fence iconUse the endpoint path below. The base URL is determined by both the target environment and the API version.
POST {base_url}/domains/{id}/transfer/approve

 

REQUEST VALUES

Name Type Description
id string Domain id. Required.
domain string Domain name
approve boolean Required. 0 or 1
registrar_tag string Required only for *.uk domains 

REQUEST EXAMPLE

curl -X POST \
'https://api.openprovider.eu/v1beta/domains/123456/transfer/approve' \
-H 'Authorization: ,Bearer 2831a37fb8*******90b5aac822' \
-H 'Content-Type: application/json' \
-d '{
"approve": 1,
"auth_code": "",
"domain": {
"extension": "london",
"name": "test4"
},
"id": 0,
"registrar_tag": "REGISTRAR-TAG"
}'

RESPONSE EXAMPLE

{
"code": 0,
"data": {
"success": true
},
"desc": ""
}

After the transfer at the new registrar is initiated and the auth code is provided, the transfer will be initiated at the Registry level.

Check the TLD documentation for the domain in question in order to see what the procedures are. Our documentation also tells you how long a transfer can take. This can range from near an instant to over a month.

Was this article helpful?
Additional questions? Submit a request