Customer's Wallet
With this service, you can get information about the customer's wallet in USD, EUR, and GBP currencies.
GET
/integrators/payments/wallet/{roomNumber}
| Field | Type | In | Required | Example | Description |
|---|---|---|---|---|---|
| roomNumber | string | PATH | Yes | IG00001 | Customer's room number. |
Response Structure 200 OK
| Attribute | Type | Example | Description |
|---|---|---|---|
| data.*.amount | string | 150 (1.50 USD) | Current amount in cents. |
| data.*.currency | string | USD (ISO 4217) | Currency of the amount. |
Possible Responses
| Code | Description |
|---|---|
| 200 OK | Array of customer wallets. |
| 404 Not Found | Customer with the specified room number was not found. |
| 403 Forbidden | You do not have permission to perform this operation |
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"
}