Hi
I'm trying to develop a service that transfers a domain to OVH. I already have the transfer authorization key, provided by the client.
This is what I do:
I create the order.
I research if the domain is available for transfer. I add the domain to the order.
I link the order to my account.
I make the checkout request.
But it never asks me for the transfer authorization key.
This is my code:
string domain = "teste.pt";
var prms = new
{
description = "order - " + domain,
ovhSubsidiary = "PT"
};
OVHCart cart = await client.PostAsync("/order/cart", prms);
//Response: { "cartId": "3b36d321-8fbc-41eb-8535-54a29943abe6", "description": "order - teste.pt", "expire": "2022-05-13T16:39:53+00:00", "readOnly": false, "items": [] }
QueryStringParams qprms = new QueryStringParams();
qprms.Add("domain", domain);
OVHCartDomain[] checkDomain = client.GetAsync($"/order/cart/{cart.cartId}/domain", qprms).Result;
//Response: [{"action":"transfer","configurations":[],"deliveryTime":"","duration":["P1Y"],"offer":"gold","offerId":"pt-transfer","orderable":true,"phase":"ga","prices":[{"label":"PRICE","price":{"currencyCode":"EUR","text":"0.00 €","value":0}},{"label":"RENEW","price":{"currencyCode":"EUR","text":"8.99 €","value":8.99}},{"label":"DISCOUNT","price":{"currencyCode":"EUR","text":"0.00 €","value":0}},{"label":"FEE","price":{"currencyCode":"EUR","text":"0.00 €","value":0}},{"label":"TOTAL","price":{"currencyCode":"EUR","text":"0.00 €","value":0}}],"pricingMode":"default","productId":"domain","quantityMax":1}]
if (checkDomain != null && checkDomain.Length > 0)
{
foreach (OVHCartDomain cd in checkDomain)
{
if (cd.action == "transfer" && cd.orderable) //só adiciono se a ação for "transfer" e se for "orderable"
{
var transferDomain = new
{
domain = domain//,
//duration = period
};
OVHCartItem domainItem = client.PostAsync($"/order/cart/{cart.cartId}/domain", transferDomain).Result;
//Response: {"cartId":"3b36d321-8fbc-41eb-8535-54a29943abe6","configurations":[102402315],"duration":"P1Y","itemId":156231389,"offerId":null,"options":[],"prices":[{"label":"TOTAL","price":{"currencyCode":"EUR","text":"0.00 €","value":0.0}},{"label":"RENEW","price":{"currencyCode":"EUR","text":"0.00 €","value":0.0}},{"label":"PRICE","price":{"currencyCode":"EUR","text":"0.00 €","value":0.0}}],"productId":"domainblog","settings":{"catalogName":"dom-public","domain":"teste.pt","planCode":"pt","pricingMode":"transfer-default","quantity":1}}
Task t = client.PostAsync($"/order/cart/{cart.cartId}/assign");
t.Wait();
OVHCartCheckout cartCheckout = client.GetAsync($"/order/cart/{cart.cartId}/checkout").Result;
//Response: {"contracts":[{"content":"???","name":"contrat_partDomain","url":"https://storage.gra.cloud.ovh.net/v1/AUTH_325716a587c64897acbef9a4a4726e38/contracts/547c802-contrat_partDomain-PT-1.0.pdf"},{"content":"???","name":"Contrato_de_Tratamento_de_Dados_Pessoais","url":"https://storage.gra.cloud.ovh.net/v1/AUTH_325716a587c64897acbef9a4a4726e38/contracts/29cde63-OVH_Data_Protection_Agreement-PT-5.1.pdf"},{"content":"????","name":"Condicoes gerais de servico","url":"https://storage.gra.cloud.ovh.net/v1/AUTH_325716a587c64897acbef9a4a4726e38/contracts/dd8fe8e-contrat_genServices-PT-4.0.pdf"}],"details":[{"cartItemID":null,"description":"teste.pt - DNS Zone","detailType":"DURATION","domain":"*001.001","originalTotalPrice":{"currencyCode":"EUR","text":"0.00 €","value":0},"quantity":1,"reductionTotalPrice":{"currencyCode":"EUR","text":"0.00 €","value":0},"reductions":[],"totalPrice":{"currencyCode":"EUR","text":"0.00 €","value":0},"unitPrice":{"currencyCode":"EUR","text":"0.00 €","value":0}},{"cartItemID":null,"description":"DNS zone","detailType":"INSTALLATION","domain":"*001.001","originalTotalPrice":{"currencyCode":"EUR","text":"0.00 €","value":0},"quantity":1,"reductionTotalPrice":{"currencyCode":"EUR","text":"0.00 €","value":0},"reductions":[],"totalPrice":{"currencyCode":"EUR","text":"0.00 €","value":0},"unitPrice":{"currencyCode":"EUR","text":"0.00 €","value":0}},{"cartItemID":null,"description":"teste.pt - .pt transfer request","detailType":"DURATION","domain":"*001","originalTotalPrice":{"currencyCode":"EUR","text":"0.00 €","value":0},"quantity":1,"reductionTotalPrice":{"currencyCode":"EUR","text":"0.00 €","value":0},"reductions":[],"totalPrice":{"currencyCode":"EUR","text":"0.00 €","value":0},"unitPrice":{"currencyCode":"EUR","text":"0.00 €","value":0}},{"cartItemID":null,"description":"Domain .pt","detailType":"INSTALLATION","domain":"*001","originalTotalPrice":{"currencyCode":"EUR","text":"0.00 €","value":0},"quantity":1,"reductionTotalPrice":{"currencyCode":"EUR","text":"0.00 €","value":0},"reductions":[],"totalPrice":{"currencyCode":"EUR","text":"0.00 €","value":0},"unitPrice":{"currencyCode":"EUR","text":"0.00 €","value":0}}],"orderId":null,"prices":{"originalWithoutTax":{"currencyCode":"EUR","text":"0.00 €","value":0},"reduction":{"currencyCode":"EUR","text":"0.00 €","value":0},"tax":{"currencyCode":"EUR","text":"0.00 €","value":0},"withTax":{"currencyCode":"EUR","text":"0.00 €","value":0},"withoutTax":{"currencyCode":"EUR","text":"0.00 €","value":0}},"url":null}
}
}
}
What am I missing?
Thanks
API - Transfer domain to OVH
Welcome to OVHcloud Community
Ask questions, search for information, post content, and interact with other OVHcloud Community members.
Question
API - Transfer domain to OVH
Upvotes (0)
779 Views
Related questions
- How to completely close your OVH Account
6563
05.07.2019 14:26
- Hubic issues downloading files and backup archives
4112
17.04.2018 11:12
- OVH Manager exceptionally slow
4111
19.04.2018 11:11
- DMARC record, available or not?
3427
18.07.2018 09:10
- API keys WebGUI
2599
10.11.2023 11:25
- Plesk server update error - Help
2562
20.07.2020 08:11
- Oops! An error has occurred creating the account
2458
01.04.2020 17:59
- Didn't receive forgot password email
2407
27.07.2018 03:39
- Azure Stack - App Service
2370
19.10.2017 08:28
- Kubernetes / K8s
2359
21.10.2017 13:43
Join discussion
Most recent in same Forum
- Fildena 200 – Maximum Strength Solution for Severe ED
- Good evening. I was the owner of a Hubic account where I had saved work files in the cloud that I need. How can I recover that data? is it p
- ¿Dispone OVH de alojamiento con servidores en España para tienda online en WooCommerce?
- News Guides and Updates - July 2024 - OVHcloud
- what is OHV cloud?
Can you help with this problem?
Hi, I have a brand-new IP from my service provider HOSTWINDS, unfortunately, this brand-new IP number appears to be blacklisted by OVH (adr@adr-productions.fr: said: 550 5.7.1
Hostwinds range blocked for spam (YOUMAOVH) (in reply to end of DATA
command)
and unlike any other delisting request, I find no way to submit delisting request, and my service provider, Hostwinds, is in the same boat. For the purposes of clarity, let me repeat, I AM NOT AN OVH USER - but my emails (so far about 50) are being systematically bounced by OVH. How and where do I or Hostwinds submit delisting request? Thanks. Jonathan