internetee-registry/doc/repp/v1/domain_transfers.md
2018-01-29 18:24:43 +02:00

48 lines
754 B
Markdown

# Domain transfers
## POST /repp/v1/domain_transfers
Transfers domains.
#### Request
```
POST /repp/v1/domain_transfers
Accept: application/json
Content-Type: application/json
Authorization: Basic dGVzdDp0ZXN0dGVzdA==
{
"data":{
"domainTransfers":[
{
"domainName":"example.com",
"transferCode":"63e7"
},
{
"domainName":"example.org",
"transferCode":"15f9"
}
]
}
}
```
#### Response on success
```
HTTP/1.1 204
```
#### Response on failure
```
HTTP/1.1 400
Content-Type: application/json
{
"errors":[
{
"title":"example.com transfer code is wrong"
},
{
"title":"example.org does not exist"
}
]
}
```