Actions API Imprimer

  • 2

Enregistrer Domaine:

Cette commande est utilisée pour envoyer une commande d'enregistrement au registraire.

Paramètres de demande

Name Type Required? Description
domain String Yes Domain name
regperiod Number Yes Registration period
domainfields String No  
addons addons No  
nameservers

nameservers:{

  • ns1 Type: text  Validators: required, text
  • ns2 Type: text  Validators: required, text
  • ns3 Type: text  Validators: text
  • ns4 Type: text  Validators: text
  • ns5 Type: text  Validators: text

}

Yes  
contacts

contacts:{

  • registrant Type: contact 
  • tech Type: contact 
  • billing Type: contact 
  • admin Type: contact

}

Yes

the contact Type is defined by:

contact:{

  • firstname Type: text  Validators: required, text
  • lastname Type: text  Validators: required, text
  • fullname Type: text  Validators: required, text
  • companyname Type: text  Validators: required, text
  • email Type: text  Validators: required, text
  • address1 Type: text  Validators: required, text
  • address2 Type: text  Validators: text
  • city Type: text  Validators: required, text
  • state Type: text  Validators: required, text
  • postcode Type: text  Validators: required, text
  • country Type: text  Validators: required, text
  • phonenumber Type: text  Validators: required, text
  • // for .ma add tax_id.
  • tax_id Type: text  Validators: required, text

}

New identifier field requirement for .ma domain contacts

// use tax_id for the new identifier

  • if the contact is an individual, the "identifier" field should hold his/her national identity number, passport number or any similar official identification number depending on the person’s country of origin.
  • If the contact is a company, the "identifier" field should hold the company identification number or similar official registration number depending on the company’s country of origin.
idnLanguage String No  

Exemple de demande:

curl -X POST \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "username: email@example.com" \
-H "token: $(echo -n "$(echo -n "1234567890QWERTYUIOPASDFGHJKLZXCVBNM" | openssl dgst -sha256 -hmac "email@example.com:$(date -u +"%y-%m-%d %H")" | cut -d' ' -f2)" | base64 | tr -d '\n')" \ --url "<endpoint>/order/domains/register" \
-d "domain=exempledomain.ma&regperiod=1&addons[dnsmanagement]=1&addons[idprotection]=0&nameservers[ns1]=dns1.genious.net&nameservers[ns2]=dns2.genious.net&domainfields=&contacts[registrant][firstname]=John&contacts[registrant][lastname]=Doe&contacts[registrant][fullname]=John Doe&contacts[registrant][companyname]=&contacts[registrant][email]=john@doe.com&contacts[registrant][address1]=123 Fake Street&contacts[registrant][address2]=&contacts[registrant][city]=Fake Town&contacts[registrant][state]=Fake State&contacts[registrant][postcode]=00000&contacts[registrant][country]=MA&contacts[registrant][phonenumber]=0660000000&contacts[registrant][tax_id]=EE000001"

Exemple de réponse:

{"result":"success","msg":"Domain has been registered"}

TransferDomain:

Cette commande est utilisée pour envoyer une commande de transfert au registraire.

Paramètres de demande

Name Type Required? Description
domain String Yes Domain name
regperiod Number Yes Registration period
eppcode String    
domainfields String No A base64 encoded serialized array of the TLD specific field values
addons

addons:{

  • dnsmanagement Type: numeric  Validators: numeric
  • emailforwarding Type: numeric  Validators: numeric
  • idprotection Type: numeric  Validators: numeric

}

No  
nameservers

nameservers:{

  • ns1 Type: text  Validators: required, text
  • ns2 Type: text  Validators: required, text
  • ns3 Type: text  Validators: text
  • ns4 Type: text  Validators: text
  • ns5 Type: text  Validators: text

}

Yes  
contacts

contacts:{

  • registrant Type: contact 
  • tech Type: contact 
  • billing Type: contact 
  • admin Type: contact

}

Yes  
idnLanguage String No  

Exemple de demande:

curl -X POST \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "username: email@example.com" \ -H "token: $(echo -n "$(echo -n "1234567890QWERTYUIOPASDFGHJKLZXCVBNM" | openssl dgst -sha256 -hmac "email@example.com:$(date -u +"%y-%m-%d %H")" | cut -d' ' -f2)" | base64 | tr -d '\n')" \
--url "<endpoint>/order/domains/transfer" \
-d "domain=exempledomain.ma&regperiod=1&eppcode=theeppcodeofdomain&addons[dnsmanagement]=1&addons[emailforwarding]=0&addons[idprotection]=0&nameservers[ns1]=dns1.genious.net&nameservers[ns2]=dns2.genious.net&domainfields=&contacts[registrant][firstname]=John&contacts[registrant][lastname]=Doe&contacts[registrant][fullname]=John Doe&contacts[registrant][companyname]=&contacts[registrant][email]=john@doe.com&contacts[registrant][address1]=123 Fake Street&contacts[registrant][address2]=&contacts[registrant][city]=Fake Town&contacts[registrant][state]=Fake State&contacts[registrant][postcode]=00000&contacts[registrant][country]=MA&contacts[registrant][phonenumber]=0660000000&contacts[registrant][tax_id]=EE000001"

Exemple de réponse:

{"result":"success","msg":"Domain transfer initiated successfully."}

RenewDomain

Cette commande est utilisée pour envoyer une commande de renouvellement au registraire.

Paramètres de demande

Name Type Required? Description
domain String Yes Domain name
addons addons No Suffix attached to domain name
regperiod Number Yes Registration period
idnLanguage String No  

Exemple de demande:

curl -X POST \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "username: email@example.com" \ -H "token: $(echo -n "$(echo -n "1234567890QWERTYUIOPASDFGHJKLZXCVBNM" | openssl dgst -sha256 -hmac "email@example.com:$(date -u +"%y-%m-%d %H")" | cut -d' ' -f2)" | base64 | tr -d '\n')" \
--url "<endpoint>/order/domains/renew" \
-d "domain=exempledomain.com&regperiod=1&addons[dnsmanagement]=1&addons[emailforwarding]=0&addons[idprotection]=0"

Exemple de réponse:

{"result":"success","msg":"The domain has been successfully."}

GetNameservers:

Cette commande est utilisée pour obtenir les serveurs de noms d'un domaine.

Paramètres de demande

Name Type Required? Description
domain String Yes Domain name

Exemple de demande:

curl -X GET \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "username: email@example.com" \ -H "token: $(echo -n "$(echo -n "1234567890QWERTYUIOPASDFGHJKLZXCVBNM" | openssl dgst -sha256 -hmac "email@example.com:$(date -u +"%y-%m-%d %H")" | cut -d' ' -f2)" | base64 | tr -d '\n')" \
--url "<endpoint>/domains/{domain}/nameservers"

Exemple de réponse:

{"result":"success","ns1":"ns1.exampledomain.com","ns2":"ns2.exampledomain.com"}

SaveNameservers

Cette commande est utilisée pour mettre à jour les serveurs de noms d'un domaine.

Paramètres de demande

Name Type Required? Description
domain String Yes Domain name
ns1 String No First nameserver
ns2 String No Second nameserver
ns3 String No Third nameserver
ns4 String No Fourth nameserver
ns5 String No Fifth nameserver

Exemple de demande:

curl -X POST \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "username: email@example.com" \ -H "token: $(echo -n "$(echo -n "1234567890QWERTYUIOPASDFGHJKLZXCVBNM" | openssl dgst -sha256 -hmac "email@example.com:$(date -u +"%y-%m-%d %H")" | cut -d' ' -f2)" | base64 | tr -d '\n')" \
--url "<endpoint>/domains/{domain}/nameservers" \
-d "domain=exempledomain.com&ns1=ns1.exampledomain.com&ns2=ns2.exampledomain.com"

Exemple de réponse:

{"result":"success"}

ReleaseDomain:

Cette commande est utilisée pour envoyer une commande Libérer au registraire.

Paramètres de demande

Name Type Required? Description
domain String Yes Domain name
transfertag String Yes The new tag for the domain

Exemple de demande:

curl -X POST \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "username: email@example.com" \ -H "token: $(echo -n "$(echo -n "1234567890QWERTYUIOPASDFGHJKLZXCVBNM" | openssl dgst -sha256 -hmac "email@example.com:$(date -u +"%y-%m-%d %H")" | cut -d' ' -f2)" | base64 | tr -d '\n')" \
--url "<endpoint>/domains/{domain}/release" \
-d "domain=exempledomain.com&transfertag=1AND1-TEST"

Exemple de réponse:

{"result":"success"}

GetEPPCode:

Cette commande permet d'obtenir le code EPP d'un domaine.

Paramètres de demande

Name Type Required? Description
domain String Yes Domain name

Exemple de demande:

curl -X GET \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "username: email@example.com" \ -H "token: $(echo -n "$(echo -n "1234567890QWERTYUIOPASDFGHJKLZXCVBNM" | openssl dgst -sha256 -hmac "email@example.com:$(date -u +"%y-%m-%d %H")" | cut -d' ' -f2)" | base64 | tr -d '\n')" \
--url "<endpoint>/domains/{domain}/eppcode"

Exemple de réponse:

{"result":"success","eppcode":"23svxce123fds"}

GetContactDetails:

Cette commande est utilisée pour effectuer une recherche whois sur un domaine spécifié.

Paramètres de demande

Name Type Required? Description
domain String Yes Domain name

Exemple de demande:

curl -X GET \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "username: email@example.com" \ -H "token: $(echo -n "$(echo -n "1234567890QWERTYUIOPASDFGHJKLZXCVBNM" | openssl dgst -sha256 -hmac "email@example.com:$(date -u +"%y-%m-%d %H")" | cut -d' ' -f2)" | base64 | tr -d '\n')" \
--url "<endpoint>/domains/{domain}/contact"

Exemple de réponse:

{"result":"success","Registrant":{"Name":"John Doe","Company":"Company name","Address":"P.O.","City":"Amsterdam","Country":"NL","Zip_Code":"1001 GT","Email":"john@exampledomain.com","Telephone":"N\/A"}}

SaveContactDetails:

Cette  commande est utilisée pour mettre à jour les informations de contact sur un domaine.

Paramètres de demande

Name Type Required? Description
domain String Yes Domain name
contactdetails

contacts:{

  • Registrant (Type: contact )
  • Tech (Type: contact )
  • Billing (Type: contact )
  • Admin (Type: contact) 

}

Yes

"contactdetails"    => [

       "Tech"     => [

           'Contact Name' => 'John Doe', 'Company Name' => '','Address 1' => '123 Fake Street','Address 2' => '', 'City' => 'Fake Town',  'State' => 'Fake State',  'ZIP code' => '00000','Country' => 'MA',  'Phone' => '0660000000', 'Email' => 'john@doe.com',

  // use ID for the new identifier

 'ID' => 'EE00002',

       ],

]

Exemple de demande:

curl -X POST \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "username: email@example.com" \ -H "token: $(echo -n "$(echo -n "1234567890QWERTYUIOPASDFGHJKLZXCVBNM" | openssl dgst -sha256 -hmac "email@example.com:$(date -u +"%y-%m-%d %H")" | cut -d' ' -f2)" | base64 | tr -d '\n')" \
--url "<endpoint>/domains/{domain}/contact" \
-d "domain=exampledomain.ma&contactdetails[Tech][Contact Name]=John Doe&contactdetails[Tech][Company Name]=&contactdetails[Tech][Address 1]=123 Fake Street&contactdetails[Tech][Address 2]=&contactdetails[Tech][City]=Fake Town&contactdetails[Tech][State]=Fake State&contactdetails[Tech][ZIP code]=00000&contactdetails[Tech][Country]=MA&contactdetails[Tech][Phone]=0660000000&contactdetails[Tech][Email]=john@doe.com&contactdetails[Tech][ID]=EE00002"

Exemple de réponse:

{"result":"success","Registrant":{"Name":"John Doe","Company":"Company name","Address":"P.O.","City":"Amsterdam","Country":"NL","Zip_Code":"1001 GT","Email":"john@exampledomain.com","Telephone":"N\/A"}}

DomainGetLockingStatus:

Cette commande est utilisée pour obtenir l'état de verrouillage d'un domaine.

Paramètres de demande

Name Type Required? Description
domain String Yes Domain name

Exemple de demande:

curl -X GET \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "username: email@example.com" \ -H "token: $(echo -n "$(echo -n "1234567890QWERTYUIOPASDFGHJKLZXCVBNM" | openssl dgst -sha256 -hmac "email@example.com:$(date -u +"%y-%m-%d %H")" | cut -d' ' -f2)" | base64 | tr -d '\n')" \
--url "<endpoint>/domains/{domain}/lock"

Exemple de réponse:

{"result":"success","lockstatus":"unlocked"}

DomainUpdateLockingStatus:

Cette commande est utilisée pour mettre à jour l'état de verrouillage d'un domaine.

Paramètres de demande

Name Type Required? Description
domain String Yes Domain name
lockstatus String Yes  

Exemple de demande:

curl -X POST \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "username: email@example.com" \ -H "token: $(echo -n "$(echo -n "1234567890QWERTYUIOPASDFGHJKLZXCVBNM" | openssl dgst -sha256 -hmac "email@example.com:$(date -u +"%y-%m-%d %H")" | cut -d' ' -f2)" | base64 | tr -d '\n')" \
--url "<endpoint>/domains/{domain}/lock" \
-d "domain=exampledomain.ma&lockstatus=locked"

Exemple de réponse:

{"result":"success"}

GetDNS:

Cette fonction est appelée lorsque les enregistrements d'hôte DNS doivent être affichés dans les paramètres de requête WHMCS

Name Type Required? Description
domain String Yes Domain name

Exemple de demande:

curl -X GET \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "username: email@example.com" \ -H "token: $(echo -n "$(echo -n "1234567890QWERTYUIOPASDFGHJKLZXCVBNM" | openssl dgst -sha256 -hmac "email@example.com:$(date -u +"%y-%m-%d %H")" | cut -d' ' -f2)" | base64 | tr -d '\n')" \
--url "<endpoint>/domains/{domain}/dns"

Exemple de réponse:

{"0":{"hostname":"*","type":"A","address":"0.0.0.0","priority":null},"1":{"hostname":"mail","type":"MXE","address":"0.0.0.0","priority":"10"},"result":"success"}

SaveDNS:

Cette fonction est appelée lorsque des modifications apportées aux informations des enregistrements d'hôte DNS sont soumises 

Paramètres de demande

Name Type Required? Description
domain String Yes Domain name
dnsrecords

dnsrecords:{

  • hostname Type: 
  • type Type: text 
  • address Type: text 
  • priority Type: numeric 
  • recid Type: text 

}

Yes  

Exemple de demande:

curl -X POST \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "username: email@example.com" \ -H "token: $(echo -n "$(echo -n "1234567890QWERTYUIOPASDFGHJKLZXCVBNM" | openssl dgst -sha256 -hmac "email@example.com:$(date -u +"%y-%m-%d %H")" | cut -d' ' -f2)" | base64 | tr -d '\n')" \
--url "<endpoint>/domains/{domain}/dns" \
-d "domain=exampledomain.ma&
dnsrecords[dnsrecords[hostname]=@&dnsrecords[dnsrecords[type]=A&dnsrecords[dnsrecords[address]=x.x.x.x&dnsrecords[dnsrecords][priority]=10"

Exemple de réponse:

{"result":"success"}

DeleteDNS:

Cette fonction est appelée lorsque vous voullez supprimer DNS

Paramètres de demande

Name Type Required? Description
domain String Yes Domain name

Exemple de demande:

curl -X POST \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "username: email@example.com" \ -H "token: $(echo -n "$(echo -n "1234567890QWERTYUIOPASDFGHJKLZXCVBNM" | openssl dgst -sha256 -hmac "email@example.com:$(date -u +"%y-%m-%d %H")" | cut -d' ' -f2)" | base64 | tr -d '\n')" \
--url "<endpoint>/domains/{domain}/delete" \
-d "domain=exampledomain.ma"

RegisterNameserver:

Cette fonction est appelée lorsqu'un serveur de noms enfant doit être enregistré. Paramètres de demande

Paramètres de demande

Name Type Required? Description
domain String Yes Domain name
nameserver String Yes  
ipaddress String Yes  

Exemple de demande:

curl -X POST \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "username: email@example.com" \ -H "token: $(echo -n "$(echo -n "1234567890QWERTYUIOPASDFGHJKLZXCVBNM" | openssl dgst -sha256 -hmac "email@example.com:$(date -u +"%y-%m-%d %H")" | cut -d' ' -f2)" | base64 | tr -d '\n')" \
--url "<endpoint>/domains/{domain}/nameservers/register" \
-d "domain=exampledomain.ma&nameserver=test.exampledomain.com&ipaddress=1.1.1.1"

Exemple de réponse:

{"result":"success"}

ModifyNameserver:

Cette fonction est appelée lorsqu'un serveur de noms enfant doit être édité 

Name Type Required? Description
nameserver   String Yes
currentipaddress String Yes  
newipaddress String Yes  

Exemple de demande:

curl -X POST \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "username: email@example.com" \ -H "token: $(echo -n "$(echo -n "1234567890QWERTYUIOPASDFGHJKLZXCVBNM" | openssl dgst -sha256 -hmac "email@example.com:$(date -u +"%y-%m-%d %H")" | cut -d' ' -f2)" | base64 | tr -d '\n')" \
--url "<endpoint>/domains/{domain}/nameservers/modify" \
-d "nameserver=test.exampledomain.com&currentipaddress=1.1.1.1&newipaddress=1.1.1.2"

Exemple de réponse:

{"result":"success"}

DeleteNameserver:

Cette fonction est appelée lorsqu'un serveur de noms enfant doit être supprimé. 

Paramètres de demande

Name Type Required? Description
nameserver String Yes  

Exemple de demande:

curl -X POST \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "username: email@example.com" \ -H "token: $(echo -n "$(echo -n "1234567890QWERTYUIOPASDFGHJKLZXCVBNM" | openssl dgst -sha256 -hmac "email@example.com:$(date -u +"%y-%m-%d %H")" | cut -d' ' -f2)" | base64 | tr -d '\n')" \
--url "<endpoint>/domains/{domain}/nameservers/delete" \
-d "nameserver=test.exampledomain.com"

Exemple de réponse:

{"result":"success"}

GetEmailForwarding:

Cette fonction est appelée lorsque le transfert d'e-mails doit être visualisé dans les paramètres de demande WHMCS

Paramètres de demande

Name Type Required? Description
domain String Yes Domain name

Exemple de demande:

curl -X GET \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "username: email@example.com" \ -H "token: $(echo -n "$(echo -n "1234567890QWERTYUIOPASDFGHJKLZXCVBNM" | openssl dgst -sha256 -hmac "email@example.com:$(date -u +"%y-%m-%d %H")" | cut -d' ' -f2)" | base64 | tr -d '\n')" \
--url "<endpoint>/domains/{domain}/email"

Exemple de réponse:

{"1":{"prefix":"test","forwardto":"test@exampledomain.com"},"result":"success"}

SaveEmailForwarding:

Cette fonction est appelée lorsque le transfert d'e-mails doit être visualisé dans les paramètres de demande WHMCS

Paramètres de demande

Name Type Required? Description
domain String Yes Domain name
prefix String Yes  
forwardto String Yes  

Exemple de demande:

curl -X POST \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "username: email@example.com" \ -H "token: $(echo -n "$(echo -n "1234567890QWERTYUIOPASDFGHJKLZXCVBNM" | openssl dgst -sha256 -hmac "email@example.com:$(date -u +"%y-%m-%d %H")" | cut -d' ' -f2)" | base64 | tr -d '\n')" \
--url "<endpoint>/domains/{domain}/email" \
-d "domain=exampledomain.ma&prefix=contact,info,support&forwardto=alice@gmail.com,bob@protonmail.com"

Exemple de réponse:

{"result":"success"}

Synch:

Cette fonction peut inclure la synchronisation des changements de statut, des renouvellements et des dates d'expiration. 

Paramètres de demande

Name Type Required? Description
domain String Yes Domain name

Exemple de demande:

curl -X POST \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "username: email@example.com" \ -H "token: $(echo -n "$(echo -n "1234567890QWERTYUIOPASDFGHJKLZXCVBNM" | openssl dgst -sha256 -hmac "email@example.com:$(date -u +"%y-%m-%d %H")" | cut -d' ' -f2)" | base64 | tr -d '\n')" \
--url "<endpoint>/domains/{domain}/sync" \
-d "domain=exampledomain.ma"

Exemple de réponse:

{"result":"success"}

TransferSync:

Cette fonction est appelée pour chaque domaine dans l'état de transfert en attente chaque fois que votre domaine de synchronisation cron s'exécute. 

Paramètres de demande

Name Type Required? Description
domain String Yes Domain name

Exemple de demande:

curl -X POST \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "username: email@example.com" \ -H "token: $(echo -n "$(echo -n "1234567890QWERTYUIOPASDFGHJKLZXCVBNM" | openssl dgst -sha256 -hmac "email@example.com:$(date -u +"%y-%m-%d %H")" | cut -d' ' -f2)" | base64 | tr -d '\n')" \
--url "<endpoint>/domains/{domain}/transfersync" \
-d "domain=exampledomain.ma"

Exemple de réponse:

{"result":"success"}

ID Protect Toggle:

Cette fonction est appelée pour activer ou desactiver  idprotect. 

Paramètres de demande

Name Type Required? Description
domain String Yes Domain name
status int Yes  

Exemple de demande:

curl -X POST \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "username: email@example.com" \ -H "token: $(echo -n "$(echo -n "1234567890QWERTYUIOPASDFGHJKLZXCVBNM" | openssl dgst -sha256 -hmac "email@example.com:$(date -u +"%y-%m-%d %H")" | cut -d' ' -f2)" | base64 | tr -d '\n')" \
--url "<endpoint>/domains/{domain}/protectid" \
-d "domain=exampledomain.ma&status=1"

Check Availability:

Cette fonction est utilisée pour vérifier la disponibilité d'un domaine.

Paramètres de demande

Name Type Required? Description
searchTerm String No  
punyCodeSearchTerm String No  
tldsToInclude array No  
isIdnDomain boolean No  
premiumEnabled boolean No  

Exemple de demande:

curl -X POST \ -H "Content-Type: application/json" \ -H "username: email@example.com" \ -H "token: $(echo -n "$(echo -n "1234567890QWERTYUIOPASDFGHJKLZXCVBNM" | openssl dgst -sha256 -hmac "email@example.com:$(date -u +"%y-%m-%d %H")" | cut -d' ' -f2)" | base64 | tr -d '\n')" \ --url "<endpoint>/domains/lookup" \ -d '{ "searchTerm": "example", "punyCodeSearchTerm": "xn--example-vxa.ma", "tldsToInclude": ["com", "net", "org"], "isIdnDomain": false, "premiumEnabled": true }'

Get Domain Suggestions:

Cette fonction est utilisée pour obtenir des suggestions de domaines en fonction d'un terme de recherche donné. 

Paramètres de demande

Name Type Required? Description
searchTerm String No  
punyCodeSearchTerm String No  
tldsToInclude array No  
isIdnDomain boolean No  
premiumEnabled boolean No  
suggestionSettings
array No  

Exemple de demande:

curl -X POST \ -H "Content-Type: application/json" \ -H "username: email@example.com" \ -H "token: $(echo -n "$(echo -n "1234567890QWERTYUIOPASDFGHJKLZXCVBNM" | openssl dgst -sha256 -hmac "email@example.com:$(date -u +"%y-%m-%d %H")" | cut -d' ' -f2)" | base64 | tr -d '\n')" \ --url "<endpoint>/domains/lookup/suggestions" \ -d '{ "searchTerm": "example", "punyCodeSearchTerm": "xn--example-vxa", "tldsToInclude": ["com", "net", "org"], "isIdnDomain": false, "premiumEnabled": true, "suggestionSettings": ["short", "catchy"] }'

Cart Get Pricing Register/Renew/Transfer:

Cette fonction est appelée pour récupérer le prix d'enregistrement ,de renouvellement ou de transfert d'un domaine spécifique.

Paramètres de demande

Name Type Required? Description
domain String Yes Domain name

Exemple de demande:

curl -X GET \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "username: email@example.com" \ -H "token: $(echo -n "$(echo -n "1234567890QWERTYUIOPASDFGHJKLZXCVBNM" | openssl dgst -sha256 -hmac "email@example.com:$(date -u +"%y-%m-%d %H")" | cut -d' ' -f2)" | base64 | tr -d '\n')" \
--url "<endpoint>/order/pricing/domains/{type}?domain={domain}"

Get Domain Information:

Cette fonction est appelée pour récupérer des informations détaillées sur un domaine spécifique

Paramètres de demande

Name Type Required? Description
domain String Yes Domain name

Exemple de demande:

curl -X GET \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "username: email@example.com" \ -H "token: $(echo -n "$(echo -n "1234567890QWERTYUIOPASDFGHJKLZXCVBNM" | openssl dgst -sha256 -hmac "email@example.com:$(date -u +"%y-%m-%d %H")" | cut -d' ' -f2)" | base64 | tr -d '\n')" \
--url "<endpoint>/domains/{domain}/information"

 


Cette réponse était-elle pertinente?

« Retour