მომხმარებლის საფულე
მიმდინარე სერვისით თქვენ შეძლებთ მიიღოთ ინფორმაცია მომხმარებლის საფულის შესახებ USD, EUR და GPB ვალუტაში.
GET
/integrators/payments/wallet/{roomNumber}
| Field | Type | In | Required | Example | Description |
|---|---|---|---|---|---|
| roomNumber | string | PATH | Yes | IG00001 | მომხმარებლის ოთახის ნომერი. |
პასუხის სტრუქტურა 200 OK
| Attribute | Type | Example | Description |
|---|---|---|---|
| data.*.amount | string | 150 (1.50 USD) | მიმდინარე რაოდენობა ცენტებში. |
| data.*.currency | string | USD (ISO 4217) | თანხის ვალუტა. |
შესაძლო პასუხები
| Code | Description |
|---|---|
| 200 OK | მომხმარებლის საფულეების მასივი. |
| 404 Not Found | მომხმარებელი მითითებული ოთახის ნომრით არ მოიძებნა. |
| 403 Forbidden | თქვენ არ გაქვთ ამ ოპერაციის შესრულების უფლება |
cURL Request
BASH
curl -X GET https://api-staging.inex.ge/api/v1/integrators/payments/wallet/IG00001 \
-H "Authorization: Bearer {TOKEN}" \
-H "Content-Type: application/json"
Response (200 OK)
JSON Response
JSON
{
"data": [
{
"amount": 0,
"currency": "USD"
},
{
"amount": 0,
"currency": "EUR"
},
{
"amount": 0,
"currency": "GBP"
}
]
}
Error Response (403)
JSON Response
JSON
{
"errors": {
"general": [
"You are not authorized to perform this action. Contact administrator."
]
},
"message": "error"
}
Error Response (404)
JSON Response
JSON
{
"errors": {
"general": [
"Requested customer not found"
]
},
"message": "error"
}