Getting driver's balance and blocked balance
Getting driver's balance and blocked balance
Request
GET
https://fleet-api.taxi.yandex.net/v1/parks/contractors/blocked-balance
Query parameters
|
Name |
Description |
|
contractor_id* |
Type: string Driver's profile ID Example: |
Headers
|
Name |
Description |
|
X-API-Key* |
Type: string API-key Example: Min length: |
|
X-Park-ID* |
Type: string Partner ID Example: |
Responses
200 OK
Driver's blocked balance
Body
application/json
{
"balance": "string",
"blocked_balance": "string",
"details": {
"blocked_tips": "string",
"blocked_cashless": "string",
"blocked_bonuses": "string",
"blocked_financial_statements": "string",
"blocked_closing_documents": "string"
}
}
|
Name |
Description |
|
balance* |
Type: string Driver's balance Pattern: |
|
blocked_balance* |
Type: string Driver's blocked balance Pattern: |
|
details* |
Type: BalanceDetails Driver's blocked balance details |
BalanceDetails
Driver's blocked balance details
|
Name |
Description |
|
blocked_bonuses |
Type: string Blocked bonuses Pattern: |
|
blocked_cashless |
Type: string Blocked money for trips Pattern: |
|
blocked_closing_documents |
Type: string Blocked money for closing documents Pattern: |
|
blocked_financial_statements |
Type: string Blocked money for financial statements Pattern: |
|
blocked_tips |
Type: string Blocked tips Pattern: |
401 Unauthorized
Request authorization parameters are missing
Body
application/json
{
"code": "string",
"message": "Textual description of the error"
}
|
Name |
Description |
|
message* |
Type: string Human-readable error message Example: |
|
code |
Type: string Machine-readable error code |
403 Forbidden
Insufficient rights to execute the request
Body
application/json
{
"code": "string",
"message": "Textual description of the error"
}
|
Name |
Description |
|
message* |
Type: string Human-readable error message Example: |
|
code |
Type: string Machine-readable error code |
404 Not Found
Requested resource was not found
Body
application/json
{
"code": "string",
"message": "Textual description of the error"
}
|
Name |
Description |
|
message* |
Type: string Human-readable error message Example: |
|
code |
Type: string Machine-readable error code |
429 Too Many Requests
Limit of requests was exceeded
Body
application/json
{
"code": "string",
"message": "Textual description of the error"
}
|
Name |
Description |
|
message* |
Type: string Human-readable error message Example: |
|
code |
Type: string Machine-readable error code |
500 Internal Server Error
Internal server error
Body
application/json
{
"code": "string",
"message": "Textual description of the error"
}
|
Name |
Description |
|
message* |
Type: string Human-readable error message Example: |
|
code |
Type: string Machine-readable error code |
No longer supported, please use an alternative and newer version.