14 Domains API: How to transfer a domain
This is a series of articles dedicated to demonstrating how to get acquainted with Openprovider Domains API methods.
This is the first article in a series in which we are going to cover incoming 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.
Once a transfer has been made, Openprovider will maintain all relevant information regarding the domain and its owner.
Before starting a transfer, please make sure you have the approval of the owner of the domain name and that the current registrar is aware of your desire to transfer the domain. The following requirements should be met before initiating the transfer:
- for gTLD domains, at least 60 days have passed since the domain was registered;
- for gTLD domains, at least 60 days have passed since the last transfer between registrars;
- the domain is "Unlocked" for transfer.
Use the endpoint path below. Base URL is determined by both the target environment and API version.
POST{base_url}/domains/transfer
REQUEST VALUES
| Name | Type | Description |
| domain.name | string | Required. Domain name without extension. |
| domain.extension | string | Required. Domain extension. |
| period | integer | Required. |
| auth_code | varchar | Optional. |
| owner_handle | varchar | Required. |
| admin_handle | varchar | Required. |
| tech_handle | varchar | Required. |
| billing_handle | varchar | Optional. |
| reseller_handle | varchar | Optional. |
| ns_group | string | Required. |
| ns_template_name | string | Optional. Name of the template to use to automatically create DNS zone for the domain; only applicable if nsGroup is dns-openprovider |
| name_servers | array | Required only if nsGroup field is empty |
| autorenew | custom | on | off | default |
| is_dnssec_enabled | boolean | false (default) or true - Only accepted when nameservers of Openprovider are used |
| dnssec_keys | varchar | when using your own nameservers |
| use_domicile | boolean | false (default) or true |
| accept_premium_fee | int or double | Required in case when domain is premium, value is the price returned in the response for createDomainRequest without acceptPremiumFee |
| is_private_whois_enabled | boolean | false (default) or true |
| promo_code | string | Optional. Promo code |
| comments | string | Optional. Domain comments/notes |
| additional_data | custom | Mandatory for some TLDs |
| application_mode | custom | Required for new gTLDs |
| import_contacts_from_registry | boolean | Optional. Default value: false. Available for .nl and .ie transfers to import domain contacts from registry. |
| import_nameservers_from_registry | boolean | Optional. Default value: false. Available for .nl and .ie transfers to import nameservers from registry. |
REQUEST EXAMPLE
curl -X POST \
https://api.openprovider.eu/v1/domains/transfer \
-H 'Authorization: Bearer <your_token>' \
-H 'Content-Type: application/json' \
-d '{
"admin_handle": "XX123456-XX",
"auth_code": "gX38tslFG2#%F%%1",
"autorenew": "default",
"domain": {
"extension": "com",
"name": "domain"
},
"ns_group": "dns-openprovider",
"owner_handle": "RB919364-BE",
"period": 1,
"promo_code": "",
"tech_handle": "XX123456-XX"
}'
RESPONSE EXAMPLE
{
"code": 0,
"data": {
"auth_code": "Z79******sTaH",
"expiration_date": "2027-03-31 23:59:59",
"renewal_date": "2027-03-29 23:59:59",
"status": "ACT"
},
"desc": ""
}
RESPONSE VALUES
| Name | Type | Description |
| expiration_date | timestamp | Available only in case of a successful realtime domain transfer |
| renewal_date | timestamp | Date when a domain expires at Openprovider. Use this date as the reference for domain expiration and renewals. |
The 0 code that we received indicates that the domain object has been successfully created in Openprovider's database.
For gTLDs, the transfer is initiated at the registry level and the domain is placed in “pendingTransfer” status. For most generic top-level domains, such as .com, .net, .org and .info, the current registrar then has up to five calendar days to approve or reject the transfer under ICANN policy. This applies once all prerequisites are met: the domain is unlocked, the contact email is valid, and the authorization code has been provided. If the registrar does not respond within this period, the transfer is approved automatically.
For ccTLDs, transfer times vary by registry and can range from almost instant to over a month. Check the TLD documentation for the domain in question to see the procedure and how long the transfer usually takes.
When the transfer is complete, you will receive a notification at the email address associated with your Openprovider account. Depending on the TLD, the domain may be renewed for one year. In most cases, its status is also set to clientTransferProhibited automatically, which means “Lock domain” is enabled.