API

DomainTransfer

A transfer of a domain to Gandi: start it, follow it, relaunch it, update its authorization code (authinfo), check it is possible (available) or resend its emails (foa).

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
POST /domain/transferin/{domain}/available create OK
POST /domain/transferin/{domain}/foa create Accepted
POST /domain/transferin create OK
GET /domain/transferin/{domain} load OK
PUT /domain/transferin/{domain} update Accepted
PUT /domain/transferin/{domain}/authinfo update Accepted

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

domain_transfer, err := client.DomainTransfer(nil).Load(map[string]any{"domain": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(domain_transfer)
created, err := client.DomainTransfer(nil).Create(map[string]any{"admin": map[string]any{}, "bill": map[string]any{}, "fqdn": "example", "owner": map[string]any{}, "tech": map[string]any{}}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)
updated, err := client.DomainTransfer(nil).Update(map[string]any{"domain": "example", "admin": map[string]any{}}, nil)
if err != nil {
    panic(err)
}
fmt.Println(updated)

Lua

Construct client as shown in the Lua setup, then call the operations:

local domain_transfer, err = client:DomainTransfer():load({ domain = "example" })
local created, err = client:DomainTransfer():create({ admin = {}, bill = {}, fqdn = "example", owner = {}, tech = {} })
local updated, err = client:DomainTransfer():update({ domain = "example", admin = {} })

PHP

Construct client as shown in the PHP setup, then call the operations:

$domain_transfer = $client->DomainTransfer()->load(["domain" => "example"]);
$created = $client->DomainTransfer()->create(["admin" => [], "bill" => [], "fqdn" => "example", "owner" => [], "tech" => []]);
$updated = $client->DomainTransfer()->update(["domain" => "example", "admin" => []]);

Python

Construct client as shown in the Python setup, then call the operations:

domain_transfer = client.DomainTransfer().load({"domain": "example"})
created = client.DomainTransfer().create({ "admin": {}, "bill": {}, "fqdn": "example", "owner": {}, "tech": {} })
updated = client.DomainTransfer().update({"domain": "example", "admin": {}})

Ruby

Construct client as shown in the Ruby setup, then call the operations:

domain_transfer = client.DomainTransfer.load({ "domain" => "example" })
created = client.DomainTransfer.create({ "admin" => {}, "bill" => {}, "fqdn" => "example", "owner" => {}, "tech" => {} })
updated = client.DomainTransfer.update({ "domain" => "example", "admin" => {} })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const domain_transfer = await client.DomainTransfer().load({ domain: "example" })
const created = await client.DomainTransfer().create({ admin: {}, bill: {}, fqdn: "example", owner: {}, tech: {} })
const updated = await client.DomainTransfer().update({ domain: "example", admin: {} })

Fields

Field Type Required Description
admin object Yes Admin
authinfo string No Authinfo
bill object Yes Bill
change_owner boolean No Change Owner
created_at string Yes Created At
currency string No Currency
duration integer No Duration
enforce_premium boolean No Enforce Premium
errors array No Errors
errortype string No Errortype
errortype_label string No Errortype Label
extra_parameters object No Extra Parameters
foa array No Foa
fqdn string Yes Fqdn
inner_step string No Inner Step
mailbox_optin boolean No Mailbox Optin
message string Yes Message
nameservers array No Nameservers
nameservers_ips object No Nameservers Ips
owner object Yes Owner
owner_contact string Yes Owner Contact
params object Yes Params
price number No Price
regac_at string No Regac At
resellee_id string No Resellee Id
start_at string No Start At
status string Yes Status
step string Yes Step
step_nb integer Yes Step Nb
tech object Yes Tech
template_id string No Template Id
transfer_link string No Transfer Link
transfer_procedure string No Transfer Procedure
updated_at string Yes Updated At

create

POST /domain/transferin/{domain}/available

Operation ID: postDomainTransferinDomainAvailable.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
domain path string Yes

Request body

application/json

Property Type Required Description
authinfo string No

Responses

200: OK

application/json

Property Type Required Description
available boolean Yes
corporate boolean No
durations array of integer No
fqdn string Yes
fqdn_alabel string Yes
fqdn_ulabel string Yes
internal boolean No
maximum_duration integer No
minimum_duration integer No
msg string No
401: Unauthorized

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes
403: Forbidden

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes

POST /domain/transferin/{domain}/foa

Operation ID: postDomainTransferinDomainFoa.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
domain path string Yes

Request body

application/json

Property Type Required Description
email string Yes

Responses

202: Accepted

application/json

Property Type Required Description
message string Yes
401: Unauthorized

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes
403: Forbidden

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes

POST /domain/transferin

Operation ID: postDomainTransferin.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
sharing_id query string No
Dry-Run header integer No

Request body

application/json

Property Type Required Description
admin object No
admin.brand_number string No
admin.city string No
admin.country string Yes
admin.data_obfuscated boolean No
admin.email string Yes
admin.extra_parameters object No
admin.family string Yes
admin.fax string No
admin.given string Yes
admin.jo_announce_number string No
admin.jo_announce_page string No
admin.jo_declaration_date string No
admin.jo_publication_date string No
admin.lang enum: en, es, fr, ja, zh-hans, zh-hant No
admin.mail_obfuscated boolean No
admin.mobile string No
admin.orgname string No
admin.phone string No
admin.siren string No
admin.state string No
admin.streetaddr string Yes
admin.type enum: individual, company, association, publicbody Yes
admin.validation enum: pending, done, failed, deleted, none No
admin.zip string No
authinfo string No
bill object No
bill.brand_number string No
bill.city string No
bill.country string Yes
bill.data_obfuscated boolean No
bill.email string Yes
bill.extra_parameters object No
bill.family string Yes
bill.fax string No
bill.given string Yes
bill.jo_announce_number string No
bill.jo_announce_page string No
bill.jo_declaration_date string No
bill.jo_publication_date string No
bill.lang enum: en, es, fr, ja, zh-hans, zh-hant No
bill.mail_obfuscated boolean No
bill.mobile string No
bill.orgname string No
bill.phone string No
bill.siren string No
bill.state string No
bill.streetaddr string Yes
bill.type enum: individual, company, association, publicbody Yes
bill.validation enum: pending, done, failed, deleted, none No
bill.zip string No
change_owner boolean No
currency enum: EUR, USD, GBP, TWD, CNY No
duration integer No
enforce_premium boolean No
extra_parameters object No
fqdn string Yes
mailbox_optin boolean No
nameservers array of string No
nameservers_ips object No
owner object Yes
owner.brand_number string No
owner.city string No
owner.country string Yes
owner.data_obfuscated boolean No
owner.email string Yes
owner.extra_parameters object No
owner.family string Yes
owner.fax string No
owner.given string Yes
owner.jo_announce_number string No
owner.jo_announce_page string No
owner.jo_declaration_date string No
owner.jo_publication_date string No
owner.lang enum: en, es, fr, ja, zh-hans, zh-hant No
owner.mail_obfuscated boolean No
owner.mobile string No
owner.orgname string No
owner.phone string No
owner.siren string No
owner.state string No
owner.streetaddr string Yes
owner.type enum: individual, company, association, publicbody Yes
owner.validation enum: pending, done, failed, deleted, none No
owner.zip string No
price number No
resellee_id string No
tech object No
tech.brand_number string No
tech.city string No
tech.country string Yes
tech.data_obfuscated boolean No
tech.email string Yes
tech.extra_parameters object No
tech.family string Yes
tech.fax string No
tech.given string Yes
tech.jo_announce_number string No
tech.jo_announce_page string No
tech.jo_declaration_date string No
tech.jo_publication_date string No
tech.lang enum: en, es, fr, ja, zh-hans, zh-hant No
tech.mail_obfuscated boolean No
tech.mobile string No
tech.orgname string No
tech.phone string No
tech.siren string No
tech.state string No
tech.streetaddr string Yes
tech.type enum: individual, company, association, publicbody Yes
tech.validation enum: pending, done, failed, deleted, none No
tech.zip string No
template_id string No

Responses

200: OK

application/json

Property Type Required Description
errors array of object No
errors[].description string Yes
errors[].location enum: header, path, querystring, body Yes
errors[].name string Yes
status enum: success, error Yes
202: Accepted

application/json

Property Type Required Description
message string Yes
401: Unauthorized

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes
403: Forbidden

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes

load

GET /domain/transferin/{domain}

Operation ID: getDomainTransferinDomain.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
domain path string Yes

Responses

200: OK

application/json

Property Type Required Description
created_at string Yes
errortype string No
errortype_label string No
foa array of object No
foa[].answer string Yes
foa[].email string Yes
inner_step string No
owner_contact string Yes
params object Yes
params.domain string Yes
params.duration integer No
params.reseller string No
params.tld string No
params.version integer No
regac_at string No
start_at string No
step string Yes
step_nb integer Yes
transfer_link string No
transfer_procedure string No
updated_at string Yes
401: Unauthorized

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes
403: Forbidden

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes

update

PUT /domain/transferin/{domain}

Operation ID: putDomainTransferinDomain.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
domain path string Yes

Responses

202: Accepted

application/json

Property Type Required Description
message string Yes
401: Unauthorized

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes
403: Forbidden

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes
404: Not Found

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes

PUT /domain/transferin/{domain}/authinfo

Operation ID: putDomainTransferinDomainAuthinfo.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
domain path string Yes
sharing_id query string No

Request body

application/json

Property Type Required Description
authinfo string Yes

Responses

202: Accepted

application/json

Property Type Required Description
message string Yes
401: Unauthorized

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes
403: Forbidden

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes