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 a 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 that object.
![]()
Use 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 |
| name | string | Required. |
| 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_servers | dot separated integer | |
| 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 | |
| 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/v1beta/v1/domains/transfer \
-H 'Authorization: ,Bearer 2f4c1c3a9******15d22b378a64'<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": "2020-2027-03-31 23:59:59",
"renewal_date": "2020-2027-03-29 23:59:59",
"status": "ACT",
},
"desc": ""
}
RESPONSE VALUES
| Name | Type | Description |
| expiration_date | timestamp | |
| timestamp |
The 0 code that we received indicates that the domain object has been successfully created in Openprovider's database.
Afterwards,For gTLDs, the transfer will beis initiated at the registry level and the domain willis be putplaced in "pendingTransfer"“pendingTransfer” status. TheFor previousmost generic top-level domains, such as .com, .net, .org and .info, the current registrar shouldthen releasehas up to five calendar days to approve or reject the transfer under ICANN policy. This applies once all prerequisites are met: the domain withinis up to 5-7 days. Unless they take any actions to preventunlocked, the transfer,contact itemail willis bevalid, 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 in order to see what the proceduresprocedure are. Our documentation also tells youand how long athe transfer canusually take. This can range from near an instant to over a month.takes.
When the procedure is over, you will receive a corresponding notification to the email address associated with your Openprovider account. Depending on a TLD, the domain will be renewed for one year and its status will automatically be set to 'clientTransferProhibited' ("Lock domain" will be enabled).