mirror of
https://github.com/internetee/registry.git
synced 2025-06-06 20:55:44 +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,28 +1,28 @@
|
|||
# Domain transfers
|
||||
|
||||
## POST /repp/v1/domain_transfers
|
||||
## POST /repp/v1/domains/transfer
|
||||
Transfers domains.
|
||||
|
||||
#### Request
|
||||
```
|
||||
POST /repp/v1/domain_transfers
|
||||
POST /repp/v1/domains/transfer
|
||||
Accept: application/json
|
||||
Content-Type: application/json
|
||||
Authorization: Basic dGVzdDp0ZXN0dGVzdA==
|
||||
|
||||
{
|
||||
"data":{
|
||||
"domainTransfers":[
|
||||
{
|
||||
"domainName":"example.com",
|
||||
"transferCode":"63e7"
|
||||
},
|
||||
{
|
||||
"domainName":"example.org",
|
||||
"transferCode":"15f9"
|
||||
}
|
||||
]
|
||||
}
|
||||
"data": {
|
||||
"domain_transfers": [
|
||||
{
|
||||
"domain_name":"example.com",
|
||||
"transferCode":"63e7"
|
||||
},
|
||||
{
|
||||
"domain_name":"example.org",
|
||||
"transferCode":"15f9"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -31,14 +31,21 @@ Authorization: Basic dGVzdDp0ZXN0dGVzdA==
|
|||
HTTP/1.1 200
|
||||
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
|
||||
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": [
|
||||
{
|
||||
"code": "2202",
|
||||
"msg": "Invalid authorization information"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title":"example.org does not exist"
|
||||
"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