Getting list of transaction categories
Getting list of transaction categories
Request
POST
https://fleet-api.taxi.yandex.net/v2/parks/transactions/categories/list
Headers
|
Name |
Description |
|
Accept-Language* |
Type: string Preferred language of the response Example: Min length: |
|
X-API-Key* |
Type: string API-key Example: Min length: |
|
X-Client-ID* |
Type: string Client ID Example: Min length: |
Body
application/json
{
"query": {
"park": {
"id": "ee6f33c4562b4e1f8646d157bd70b2c4"
},
"category": {
"is_enabled": false,
"is_editable": false,
"is_creatable": false,
"is_affecting_driver_balance": false
}
}
}
|
Name |
Description |
|
query* |
ParksTransactionsCategoriesListQuery
|
Name |
Description |
|
park* |
|
|
category |
ParksTransactionsCategoriesListQueryPark
|
Name |
Description |
|
id* |
Type: string Partner ID Example: Min length: Max length: |
ParksTransactionsCategoriesListQueryCategory
|
Name |
Description |
|
is_affecting_driver_balance |
Type: boolean Whether the transaction in the category impacts the driver's account balance |
|
is_creatable |
Type: boolean Whether a new transaction can be created in the category |
|
is_editable |
Type: boolean Whether the transaction category is editable true for partners category |
|
is_enabled |
Type: boolean Whether the transaction category is enabled false only for partners categories |
Responses
200 OK
List of transaction categories
Body
application/json
{
"categories": [
{
"id": "partner_service_manual",
"name": "Recurring payments",
"group_id": "partner_other",
"group_name": "Other payments of the partner",
"is_enabled": false,
"is_editable": false,
"is_creatable": false,
"is_affecting_driver_balance": false
}
]
}
|
Name |
Description |
|
categories* |
Type: TransactionCategory[] |
TransactionCategory
|
Name |
Description |
|
group_id* |
Type: string Group of transaction category. Possible values:
Example: Min length: Max length: |
|
group_name* |
Type: string Localized name of the transaction category group Example: Min length: Max length: |
|
id* |
Type: string Transaction category. Possible values can be obtained through the API /v2/parks/transactions/categories/list. Example: Min length: Max length: |
|
is_affecting_driver_balance* |
Type: boolean Whether the transaction in the category impacts the driver's account balance |
|
is_creatable* |
Type: boolean Whether a new transaction can be created in the category |
|
is_editable* |
Type: boolean Whether the transaction category is editable true for partners category |
|
is_enabled* |
Type: boolean Whether the transaction category is enabled false only for partners categories |
|
name* |
Type: string Localized name of the transaction category Example: Min length: Max length: |
400 Bad Request
Invalid request parameters
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 |
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 |
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.