mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 00:42:04 +02:00
Add account balance REPP
This commit is contained in:
parent
35513b83bf
commit
4a6c1f4166
17 changed files with 111 additions and 27 deletions
25
doc/repp/v1/account.md
Normal file
25
doc/repp/v1/account.md
Normal file
|
@ -0,0 +1,25 @@
|
|||
## GET /repp/v1/accounts/balance
|
||||
Returns domains of the current registrar.
|
||||
|
||||
|
||||
#### Request
|
||||
```
|
||||
GET /repp/v1/accounts/balance HTTP/1.1
|
||||
Accept: application/json
|
||||
Authorization: Basic Z2l0bGFiOmdoeXQ5ZTRmdQ==
|
||||
Content-Length: 0
|
||||
Content-Type: application/json
|
||||
```
|
||||
|
||||
#### Response
|
||||
```
|
||||
HTTP/1.1 200
|
||||
Cache-Control: max-age=0, private, must-revalidate
|
||||
Content-Length: 37
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"balance": "324.45",
|
||||
"currency": "EUR"
|
||||
}
|
||||
```
|
|
@ -23,36 +23,34 @@ Content-Type: application/json
|
|||
```
|
||||
HTTP/1.1 200
|
||||
Cache-Control: max-age=0, private, must-revalidate
|
||||
Content-Length: 562
|
||||
Content-Length: 533
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"contacts": [
|
||||
{
|
||||
"id": 1,
|
||||
"code": "sh995165920",
|
||||
"reg_no": null,
|
||||
"code": "sh135909910",
|
||||
"phone": "+372.12345678",
|
||||
"email": "ronaldo@sauer.biz",
|
||||
"email": "natasha.bechtelar@breitenberg.name",
|
||||
"fax": null,
|
||||
"created_at": "2015-04-01T13:59:45.332Z",
|
||||
"updated_at": "2015-04-01T13:59:45.332Z",
|
||||
"created_at": "2015-04-16T08:44:33.041Z",
|
||||
"updated_at": "2015-04-16T08:44:33.041Z",
|
||||
"ident": "37605030299",
|
||||
"ident_type": "priv",
|
||||
"created_by_id": null,
|
||||
"updated_by_id": null,
|
||||
"auth_info": "password",
|
||||
"name": "Meagan Roob Jr.0",
|
||||
"name": "Miss Sherwood Jacobi0",
|
||||
"org_name": null,
|
||||
"registrar_id": 1,
|
||||
"creator_str": "autotest",
|
||||
"updator_str": "autotest",
|
||||
"creator_str": null,
|
||||
"updator_str": null,
|
||||
"ident_country_code": "EE",
|
||||
"city": "Tallinn",
|
||||
"street": "Short street 11",
|
||||
"zip": "11111",
|
||||
"country_code": "EE",
|
||||
"state": null
|
||||
"state": null,
|
||||
"legacy_id": null
|
||||
}
|
||||
],
|
||||
"total_number_of_records": 2
|
||||
|
@ -81,7 +79,7 @@ Content-Type: application/json
|
|||
|
||||
{
|
||||
"contacts": [
|
||||
"sh818918181"
|
||||
"sh056866451"
|
||||
],
|
||||
"total_number_of_records": 2
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ Content-Type: application/json
|
|||
```
|
||||
HTTP/1.1 200
|
||||
Cache-Control: max-age=0, private, must-revalidate
|
||||
Content-Length: 506
|
||||
Content-Length: 578
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
|
@ -32,21 +32,24 @@ Content-Type: application/json
|
|||
"id": 1,
|
||||
"name": "domain0.ee",
|
||||
"registrar_id": 1,
|
||||
"registered_at": "2015-04-01T13:59:45.874Z",
|
||||
"registered_at": "2015-04-16T08:44:33.499Z",
|
||||
"status": null,
|
||||
"valid_from": "2015-04-01T00:00:00.000Z",
|
||||
"valid_to": "2016-04-01T00:00:00.000Z",
|
||||
"valid_from": "2015-04-16T00:00:00.000Z",
|
||||
"valid_to": "2016-04-16T00:00:00.000Z",
|
||||
"owner_contact_id": 1,
|
||||
"auth_info": "78d0edcd105c8e1936457c1eef659611",
|
||||
"created_at": "2015-04-01T13:59:45.871Z",
|
||||
"updated_at": "2015-04-01T13:59:45.871Z",
|
||||
"auth_info": "d081ba64515bc8ae9a512a98e6b1baa1",
|
||||
"created_at": "2015-04-16T08:44:33.496Z",
|
||||
"updated_at": "2015-04-16T08:44:33.496Z",
|
||||
"name_dirty": "domain0.ee",
|
||||
"name_puny": "domain0.ee",
|
||||
"period": 1,
|
||||
"period_unit": "y",
|
||||
"creator_str": null,
|
||||
"updator_str": null,
|
||||
"whois_body": null
|
||||
"whois_body": null,
|
||||
"legacy_id": null,
|
||||
"legacy_registrar_id": null,
|
||||
"legacy_registrant_id": null
|
||||
}
|
||||
],
|
||||
"total_number_of_records": 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue