mirror of
https://github.com/internetee/registry.git
synced 2025-06-07 21:25:39 +02:00
Docs: Update REPP domain transfer
This commit is contained in:
parent
4e895d9124
commit
09c62fd7eb
1 changed files with 48 additions and 22 deletions
|
@ -1,24 +1,24 @@
|
||||||
# Domain transfers
|
# Domain transfers
|
||||||
|
|
||||||
## POST /repp/v1/domain_transfers
|
## POST /repp/v1/domains/transfer
|
||||||
Transfers domains.
|
Transfers domains.
|
||||||
|
|
||||||
#### Request
|
#### Request
|
||||||
```
|
```
|
||||||
POST /repp/v1/domain_transfers
|
POST /repp/v1/domains/transfer
|
||||||
Accept: application/json
|
Accept: application/json
|
||||||
Content-Type: application/json
|
Content-Type: application/json
|
||||||
Authorization: Basic dGVzdDp0ZXN0dGVzdA==
|
Authorization: Basic dGVzdDp0ZXN0dGVzdA==
|
||||||
|
|
||||||
{
|
{
|
||||||
"data":{
|
"data": {
|
||||||
"domainTransfers":[
|
"domain_transfers": [
|
||||||
{
|
{
|
||||||
"domainName":"example.com",
|
"domain_name":"example.com",
|
||||||
"transferCode":"63e7"
|
"transferCode":"63e7"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"domainName":"example.org",
|
"domain_name":"example.org",
|
||||||
"transferCode":"15f9"
|
"transferCode":"15f9"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -31,14 +31,21 @@ Authorization: Basic dGVzdDp0ZXN0dGVzdA==
|
||||||
HTTP/1.1 200
|
HTTP/1.1 200
|
||||||
Content-Type: application/json
|
Content-Type: application/json
|
||||||
{
|
{
|
||||||
"data":[
|
"code": 1000,
|
||||||
|
"message": "Command completed successfully",
|
||||||
|
"data": {
|
||||||
|
"success": [
|
||||||
{
|
{
|
||||||
"type":"domain_transfer"
|
"type": "domain_transfer",
|
||||||
|
"domain_name": "example.com"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type":"domain_transfer"
|
"type": "domain_transfer",
|
||||||
|
"domain_name": "example.org"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"failed": []
|
||||||
}
|
}
|
||||||
]
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -48,13 +55,32 @@ Content-Type: application/json
|
||||||
HTTP/1.1 400
|
HTTP/1.1 400
|
||||||
Content-Type: application/json
|
Content-Type: application/json
|
||||||
{
|
{
|
||||||
"errors":[
|
"code": 1000,
|
||||||
|
"message": "Command completed successfully",
|
||||||
|
"data": {
|
||||||
|
"success": [],
|
||||||
|
"failed": [
|
||||||
{
|
{
|
||||||
"title":"example.com transfer code is wrong"
|
"type": "domain_transfer",
|
||||||
},
|
"domain_name": "example.com",
|
||||||
|
"errors": [
|
||||||
{
|
{
|
||||||
"title":"example.org does not exist"
|
"code": "2202",
|
||||||
|
"msg": "Invalid authorization information"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "domain_transfer",
|
||||||
|
"domain_name": "example.org",
|
||||||
|
"errors": [
|
||||||
|
{
|
||||||
|
"code": "2304",
|
||||||
|
"msg": "Object status prohibits operation"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue