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.
POST{base_url}/domains/{id}/transfer/approve
REQUEST VALUES
| Name | Type | Description |
| id | string | Domain id. Required. |
| domain.name | string | Domain name without extension. |
| domain.extension | string | Domain extension. |
| approve | integer | Required. 0 or 1 |
| registrar_tag | string | Required only for *.uk domains |
REQUEST EXAMPLE
curl -X POST \
'https://api.openprovider.eu/v1/domains/123456/transfer/approve' \
-H 'Authorization: Bearer <your_token>' \
-H 'Content-Type: application/json' \
-d '{
"approve": 1,
"auth_code": "",
"domain": {
"extension": "uk",
"name": "test4"
},
"id": 123456,
"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 to see the procedure and how long the transfer usually takes. Depending on the TLD, this can range from almost instant to over a month. For gTLD domains, a transfer can take up to five days.