Download OpenAPI specification:Download
Return dashboard access logs.
page_size | integer [ 10 .. 500 ] Default: 20 The maximum items to return. |
last_primary_key | integer >= 1 Identifier of the last access log record on the current page, used to request the next page. |
date_min | string <datetime> The minimum date of access logs to show. |
date_max | string <datetime> The maximum date of access logs to show. |
user_id | integer >= 1 The user id to show. |
target_path | string [ 1 .. 2048 ] characters The path that was requested by the user. |
verb | string [ 1 .. 10 ] characters The request http method. |
user_agent | string [ 1 .. 2048 ] characters The user agent used for the request. |
ip | string [ 1 .. 128 ] characters The ip address used for the request. |
http_code_min | integer >= 0 The minimum value of the http response status to show. |
http_code_max | integer >= 0 The maximum value of the http response status to show. |
knot_code_min | integer The minimum value of the response code to show. |
knot_code_max | integer The maximum value of the response code to show. |
{- "code": 0,
- "data": [
- {
- "date": "string",
- "user_id": 1,
- "target_path": "string",
- "query": { },
- "body": { },
- "verb": "string",
- "user_agent": "string",
- "ip": "string",
- "http_code": 0,
- "knot_code": 0,
- "log_id": "14b5977f-7a80-40ca-bb79-eca6c2abdb34",
- "fullname": "string"
}
]
}
Create a new app label.
App label parameters.
name required | string/^[a-z]{1,20}$/ The unique label name. |
display_name required | string [ 1 .. 32 ] characters The label name that will be displayed. |
required | object (AppLabelBillingParams) Billing information for invoicing. |
{- "name": "string",
- "display_name": "string",
- "billing_info": {
- "name": "string",
- "legal_form": "SAS",
- "vat_number": "string",
- "registration_number": "string",
- "capital": "string",
- "street": "string",
- "zip_code": "string",
- "city": "string",
- "country": "string",
- "issuer": "string"
}
}
{- "code": 0,
- "data": {
- "app_label_id": 1
}
}
Return detail of the application white label.
app_label_id required | integer >= 1 Identifier of the app label. |
{- "code": 0,
- "data": {
- "require_sms_validation": true,
- "phone_sms_provider_id": 1,
- "require_terms_of_use": true,
- "auto_delete_users": true,
- "saved_payment_method_is_optional": true,
- "contact_email": "user@example.com",
- "contact_phone_number": "string",
- "google_auth_client_id": "string",
- "google_auth_ios_client_id": "string",
- "google_redirect_url": "string",
- "apple_server_id": "string",
- "apple_app_id": "string",
- "apple_key_id": "string",
- "apple_team_id": "string",
- "billing_info": {
- "name": "string",
- "legal_form": "SAS",
- "vat_number": "string",
- "registration_number": "string",
- "capital": "string",
- "street": "string",
- "zip_code": "string",
- "city": "string",
- "country": "string",
- "issuer": "string"
}
}
}
Update parameters of the app label.
app_label_id required | integer >= 1 Identifier of the app label. |
App label parameters.
require_sms_validation required | boolean Indicate if new user require a phone number with sms validation. |
phone_sms_provider_id required | integer or null >= 1 Configured provider id to send SMS. |
require_terms_of_use required | boolean Indicate if new user should accept the term of use. |
auto_delete_users required | boolean Indicate if inactive users should be deleted. |
android_store_url required | string or null <uri> [ 1 .. 100 ] characters Url of the Android application on Google play store. |
ios_store_url required | string or null <uri> [ 1 .. 100 ] characters Url of the iOS application on Apple app store. |
saved_payment_method_is_optional required | boolean Indicate if users can rent without saved payment method. |
website required | string or null <uri> <= 100 characters Url of the website of the white label. |
contact_email required | string or null <email> <= 100 characters Contact email of the white label, for end user. |
contact_phone_number required | string or null <= 100 characters Contact phone number of the white label, for end user. |
{- "require_sms_validation": true,
- "phone_sms_provider_id": 1,
- "require_terms_of_use": true,
- "auto_delete_users": true,
- "saved_payment_method_is_optional": true,
- "contact_email": "user@example.com",
- "contact_phone_number": "string"
}
{- "code": 0
}
Get the mail setting of the app label.
app_label_id required | integer >= 1 Identifier of the app label. |
{- "code": 0,
- "data": {
- "send_mails": true,
- "sender_address": "user@example.com",
- "sender_name": "string",
- "reply_to": "user@example.com",
- "notification_email": "user@example.com"
}
}
Set the mail setting of the app label.
app_label_id required | integer >= 1 Identifier of the app label. |
App label mail parameters.
send_mails required | boolean Indicate if mail are enabled. |
sender_address required | string <email> <= 255 characters Email used to send the mail. Needs to be validated on AWS SES, and DNS should be configured according to it. |
sender_name required | string <= 32 characters The name of sender. |
reply_to required | string or null <email> <= 255 characters Email in reply-to header. |
notification_email required | string <email> <= 255 characters Reference email for notifications. |
{- "send_mails": true,
- "sender_address": "user@example.com",
- "sender_name": "string",
- "reply_to": "user@example.com",
- "notification_email": "user@example.com"
}
{- "code": 0
}
Update billing information of the app label.
app_label_id required | integer >= 1 Identifier of the app label. |
App label billing parameters.
name | string [ 1 .. 100 ] characters Name of the company. |
legal_form | string or null [ 1 .. 50 ] characters Legal form of the company. |
vat_number | string or null [ 1 .. 50 ] characters International VAT number. |
registration_number | string or null [ 1 .. 50 ] characters Registration number of the company (for example, SIRET in France). |
capital | string or null [ 1 .. 50 ] characters Capital of the company. |
street required | string [ 1 .. 200 ] characters Number and street name of the legal address of the company. |
zip_code required | string [ 1 .. 20 ] characters Zip code of the legal address of the company. |
city required | string [ 1 .. 150 ] characters City of the legal address of the company. |
country required | string [ 1 .. 100 ] characters Country of the legal address of the company. |
issuer | string or null [ 1 .. 100 ] characters Issuer of the invoice (i.e brand of the app). |
{- "name": "string",
- "legal_form": "SAS",
- "vat_number": "string",
- "registration_number": "string",
- "capital": "string",
- "street": "string",
- "zip_code": "string",
- "city": "string",
- "country": "string",
- "issuer": "string"
}
{- "code": 0
}
Get the payment methods and which are enabled on the app label.
app_label_id required | integer >= 1 Identifier of the app label. |
{- "code": 0,
- "data": [
- {
- "method_id": 1,
- "type": "string",
- "provider": "string",
- "is_enabled": true
}
]
}
Enable a payment method on the app label.
app_label_id required | integer >= 1 Identifier of the app label. |
method_id required | integer >= 1 Identifier of the payment method. |
{- "code": 0
}
Disable the payment method on the app label. Warning, all user who have saved the payment method won't be able to use it.
app_label_id required | integer >= 1 Identifier of the app label. |
method_id required | integer >= 1 Identifier of the payment method. |
{- "code": 0
}
Return clusters of the specified networks with availability, spot count info, dates, etc.
networks required | Array of integers[ items >= 1 ] Examples:
Identifier of networks of which to get the vehicles. |
{- "code": 0,
- "data": [
- {
- "cluster_id": 1,
- "cluster_name": "string",
- "total_spots": 0,
- "available_vehicles": 0,
- "total_parking_capacity": 0,
- "commissioning_date": "2019-08-24T14:15:22Z",
- "location": "string",
- "latitude": 48.5900027,
- "longitude": 7.7531998,
- "network_id": 1,
- "network_name": "string",
- "svaas_ids": [
- 1
], - "type": "virtual",
- "online": true,
- "availability": 1,
- "maintenances": {
- "info": 0,
- "low": 0,
- "high": 0
}
}
]
}
Search for cluster with a given name in specified networks.
name required | string non-empty Search value. |
networks required | Array of integers[ items >= 1 ] Examples:
Identifier of networks of which to get clusters. |
badge_reader | boolean Search only for station with a badge reader. |
{- "code": 0,
- "data": [
- {
- "cluster_id": 1,
- "cluster_name": "string",
- "network_id": 1,
- "network_name": "string",
- "total_spots": 0,
- "total_parking_capacity": 0
}
]
}
Return the details of the specified cluster.
id required | integer >= 1 Identifier of the cluster. |
lang required | string = 2 characters The lang in which to get the cluster description localized. |
{- "code": 0,
- "data": {
- "total_spots": 0,
- "available_vehicles": 0,
- "total_parking_capacity": 0,
- "commissioning_date": "2019-08-24T14:15:22Z",
- "location": "string",
- "latitude": 48.5900027,
- "longitude": 7.7531998,
- "network_id": 1,
- "network_name": "string",
- "cluster_name": "string",
- "free_spots": 0,
- "free_parking_capacity": 0,
- "exceptional_out_of_order": {
- "exceptional_out_of_order_id": 1,
- "type": "other",
- "reason": "string",
- "custom_reason": "We had to stop this station for extensive maintenance"
}, - "max_unlock_distance": 0,
- "description_key": "string",
- "description": "string",
- "comment": "string"
}
}
Upload a picture to the specified cluster.
id required | integer >= 1 Identifier of the cluster of which we want to add a picture. |
The picture to upload & some info on the cluster.
cluster_picture required | string <binary> The picture file data. |
{- "code": 0,
}
Delete a cluster picture.
id required | integer >= 1 Identifier of the cluster of which we want to delete a picture. |
picture required | string non-empty Example: picture=clusterpictures/96361409-5115-e583-9c6f-2ee87903ce76.jpg Key of the picture that we want to delete. |
{- "code": 0
}
Return station's details of the specified cluster with all spots and contained vehicle if present.
id required | integer >= 1 Identifier of the cluster. |
{- "code": 0,
- "data": [
- {
- "station_id": 1,
- "creation_date": "string",
- "last_boot": "string",
- "last_request": "string",
- "last_response": "string",
- "service_id": 1,
- "has_badge_reader": true,
- "connected_since": "string",
- "temperature": -20,
- "speaker_volume": 100,
- "alarm_threshold": 100,
- "connectivity": {
- "type": "GSM",
- "rssi": -120,
- "rsrp": -140
}, - "total_active_energy": 0,
- "maintenance_level": "info",
- "spots": [
- {
- "spot_id": 1,
- "contained_vehicle": {
- "vehicle_id": 1,
- "serial_number": "string",
- "battery_level": 100,
- "maintenance_level": "info",
- "model_type": "kick-scooter",
- "charging": true,
- "iot_online": true
}, - "displayed_number": 1,
- "lock_status": 0,
- "maintenance_level": "info"
}
]
}
]
}
Return outages history of all physical station linked to the specified cluster.
id required | integer >= 1 Identifier of the cluster. |
{- "code": 0,
- "data": [
- {
- "station_id": 1,
- "start_date": "string",
- "end_date": "string",
- "weather": "light rain",
- "outage_type": "connectivity",
- "outage_detail": "MQTT_KEEP_ALIVE_TIMEOUT"
}
]
}
Return virtual parkings of the specified cluster with contained vehicle if present.
id required | integer >= 1 Identifier of the cluster. |
{- "code": 0,
- "data": [
- {
- "shape": [
- [
- -180,
- -180,
- -180
]
], - "capacity": 0,
- "virtual_parking_id": 1,
- "creation_date": "string",
- "vehicles": [
- {
- "vehicle_id": 1,
- "serial_number": "string",
- "battery_level": 100,
- "maintenance_level": "info",
- "model_type": "kick-scooter"
}
]
}
]
}
Create a virtual parking attached to this cluster.
id required | integer >= 1 Identifier of the cluster. |
Parking parameters
shape required | Array of numbers[ items >= 3 items [ items = 2 items [ -180 .. 180 ] ] ] Shape of virtual parking as a list of points making a polygon. |
capacity required | integer >= 0 How many vehicle can be parked. |
{- "shape": [
- [
- -180,
- -180,
- -180
]
], - "capacity": 0
}
{- "code": 0
}
Set cluster's commissioning date.
id required | integer >= 1 Identifier of the cluster. |
The commissioning date.
date required | string <date-time> The date at which the cluster should be commissioned. |
{- "date": "2019-08-24T14:15:22Z"
}
{- "code": 0
}
Return the history of all maintenances on spot for the specified cluster.
id required | integer >= 1 Identifier of the cluster. |
{- "code": 0,
- "data": [
- {
- "maintenance_id": 1,
- "maintenance_type": "string",
- "comment": "string",
- "start_date": "string",
- "started_by": "user@example.com",
- "started_by_uid": 1,
- "severity": "info",
- "stop_date": "string",
- "stopped_by": "user@example.com",
- "stopped_by_uid": 1,
- "displayed_number": 1
}
]
}
Update the location (text) of the cluster. This address is for informational purposes only, it does not move the pin of the station.
id required | integer >= 1 Identifier of the cluster of which we want to change location. |
The new location.
location required | string [ 5 .. 100 ] characters The new location of the cluster. |
{- "location": "6 Rue des Boeufs, 67000 Strasbourg"
}
{- "code": 0
}
Update the max unlock distance, the internal comment and allow to force the cluster to be down.
id required | integer >= 1 Identifier of the cluster of which we want to change settings. |
New settings.
max_unlock_distance required | integer [ 25 .. 500 ] The maximum distance between user position and the cluster to allow vehicle unlocking. |
comment required | string [ 1 .. 500 ] characters Internal comment, only displayed on the dashboard. Can be used to set contact information, etc. |
{- "max_unlock_distance": 25,
- "comment": "string"
}
{- "code": 0
}
Update the description of the cluster. This description is visible by end users, it allow to specify information to end users.
id required | integer >= 1 Identifier of the cluster of which we want to change description. |
The new description.
lang required | string = 2 characters The language of the description. |
description required | string or null [ 1 .. 500 ] characters The text of the description. |
{- "lang": "st",
- "description": "string"
}
{- "code": 0
}
Return the details of the specified out of order.
id required | integer >= 1 Identifier of the cluster. |
lang required | string = 2 characters The lang in which to get the cluster description localized. |
{- "code": 0,
- "data": {
- "type": "other",
- "custom_reason": "string",
- "start_date": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24T14:15:22Z"
}
}
Get the users that logged in with the same device as the given one.
id required | string <= 50 characters The identifier of the device to look for. |
{- "code": 0,
- "data": [
- {
- "user_id": 1,
- "email": "user@example.com",
- "app_version": "string",
- "last_login": "string"
}
]
}
Return reports made by the app when it encountered an unknown error.
{- "code": 0,
- "data": [
- {
- "report_id": 1,
- "user_id": 1,
- "email": "user@example.com",
- "date": "2019-08-24T14:15:22Z",
- "app_page": "string",
- "app_version": "string",
- "app_version_off": "string",
- "device_os": "string",
- "error_code": 0,
- "device": "string",
- "app_label": "string"
}
]
}
Mark the specified app reports as resolved.
Reports to resolve.
reports required | Array of integers[ items >= 1 ] |
{- "reports": [
- 1
]
}
{- "code": 0
}
Return current and minimal version for all platform of the application white label.
{- "code": 0,
- "data": [
- {
- "android_current": 0,
- "android_minimal": 0,
- "ios_current": 0,
- "ios_minimal": 0,
- "legacy_current": 0,
- "legacy_minimal": 0
}
]
}
Update the current and minimal xamarin application version.
New app versions.
current required | integer >= 0 The current available application version. |
minimal required | integer >= 0 The minimal application version required to use the service. |
app_label_id required | integer >= 1 The identifier of the app label. |
platform required | string Enum: "android" "ios" "legacy" The platform of the new version. |
{- "current": 0,
- "minimal": 0,
- "app_label_id": 1,
- "platform": "android"
}
{- "code": 0
}
Get the list of available discounts with discounts codes.
{- "code": 0,
- "data": [
- {
- "discount_id": 1,
- "name": "string",
- "type": 1,
- "start_date": "2019-08-24",
- "request_end_date": "2019-08-24",
- "stop_date": "2019-08-24",
- "data": 0,
- "currency": "string",
- "used": true,
- "codes": [
- {
- "code_id": 1,
- "code": "string",
- "remaining": -1,
- "email_access_pattern": "string",
- "used_count": 0
}
]
}
]
}
Create a new discount.
Parameters for the new discount to create.
network_id required | integer >= 1 The network's identifier. |
name required | string The new discount's name. |
type required | integer Enum: 1 2 3 5 6 The new discount's type. 1: Add credits to the user; 2: Discount on the price of the next trip; 3: Percentage discount on all future purchases until the stop date of the discount; 5: Discount on the price of the next purchase; 6: Percentage discount on all future trips until the stop date of the discount. |
data required | number >= 0 The value of the discount (in percentage or in credit according to the type). |
start_date required | string <date> The date from which the discount can be registered and used by the user. |
request_end_date required | string or null <date> The date from which the discount can no longer be registered by the user. |
stop_date required | string or null <date> The date from which the discount can no longer be used by the user. |
{- "network_id": 1,
- "name": "string",
- "type": 1,
- "data": 0,
- "start_date": "2019-08-24",
- "request_end_date": "2019-08-24",
- "stop_date": "2019-08-24"
}
{- "code": 0,
- "data": 1
}
Update a discount.
id required | integer >= 1 Identifier of the discount. |
Parameters for the new discount to create.
name | string The new discount's name. |
data | number >= 0 The value of the discount (in percentage or in credit according to the type). |
start_date | string <date> The date from which the discount can be registered and used by the user. |
request_end_date | string or null <date> The date from which the discount can no longer be registered by the user. |
stop_date | string or null <date> The date from which the discount can no longer be used by the user. |
{- "name": "string",
- "data": 0,
- "start_date": "2019-08-24",
- "request_end_date": "2019-08-24",
- "stop_date": "2019-08-24"
}
{- "code": 0,
- "data": 1
}
Delete an unused discount or disable it if the discount has already been used.
id required | integer >= 1 Identifier of the discount. |
{- "code": 0,
- "data": 1
}
Create a new discount code.
id required | integer >= 1 Identifier of the discount to which the code should be linked. |
Parameters for the new discount code to create.
code required | string [ 1 .. 50 ] characters /^[A-Z0-9-@_#]{1,50}$/ The discount code. |
remaining required | integer >= -1 Number of uses of the remaining code. -1 for unlimited. |
email_access_pattern required | string non-empty /^[a-zA-Z0-9@._(){}[\]|*+?%#\\-]+$/ Pattern of the user's email that can use the code. Using '%' makes the code available to all users. |
{- "code": "string",
- "remaining": -1,
- "email_access_pattern": "string"
}
{- "code": 0,
- "data": 1
}
Update a discount code.
id required | integer >= 1 Identifier of the discount code. |
Parameters for update the discount code.
code | string [ 1 .. 50 ] characters /^[A-Z0-9-@_#]{1,50}$/ The discount code. |
remaining | integer >= -1 Number of uses of the remaining code. -1 for unlimited. |
email_access_pattern | string non-empty /^[a-zA-Z0-9@._(){}[\]|*+?%#\\-]+$/ Pattern of the user's email that can use the code. Using '%' makes the code available to all users. |
{- "code": "string",
- "remaining": -1,
- "email_access_pattern": "string"
}
{- "code": 0,
- "data": 1
}
Create a new FAQ category.
Category parameters.
key required | string^faq\.[0-9]+\.categories\.[a-z0-9-]+$ The unique key of this category. |
{- "key": "string"
}
{- "code": 0,
- "data": {
- "sort_order": 32767
}
}
Update a FAQ category.
Category parameters.
key required | string^faq\.[0-9]+\.categories\.[a-z0-9-]+$ The unique key of this category. |
sort_order required | integer [ 0 .. 32767 ] The order in which the elements should be displayed. |
{- "key": "string",
- "sort_order": 32767
}
{- "code": 0
}
Delete a FAQ category. It should not have any sub-categories.
key required | string^faq\.[0-9]+\.categories\.[a-z0-9-]+$ Key of the category to delete. |
{- "code": 0
}
Update a FAQ category name.
lang required | string^[a-zA-Z]{2}$ The lang in which to update the name. |
Category name parameters.
key required | string^faq\.[0-9]+\.categories\.[a-z0-9-]+$ The unique key of this category. |
name required | string [ 1 .. 100 ] characters The name of the category. |
{- "key": "string",
- "name": "string"
}
{- "code": 0
}
Create a new FAQ sub-category.
Sub-category parameters.
key required | string^faq\.[0-9]+\.sub_categories\.[a-z0-9-]+\.[a-... The unique key of this sub-category. |
replacements | Array of strings unique Items Enum: "app-label" "support-email" "support-phone" The variables to use in the text as replacements. |
category required | string^faq\.[0-9]+\.categories\.[a-z0-9-]+$ The key of the category in which to put this sub-category. |
is_spacer | boolean Set to true to set this as a spacer. |
{- "key": "string",
- "replacements": [
- "app-label"
], - "category": "string",
- "is_spacer": true
}
{- "code": 0,
- "data": {
- "sort_order": 32767
}
}
Update a FAQ sub-category.
Sub-category parameters.
key required | string^faq\.[0-9]+\.sub_categories\.[a-z0-9-]+\.[a-... The unique key of this sub-category. |
sort_order required | integer [ 0 .. 32767 ] The order in which the elements should be displayed. |
replacements | Array of strings unique Items Enum: "app-label" "support-email" "support-phone" The variables to use in the text as replacements. |
{- "key": "string",
- "sort_order": 32767,
- "replacements": [
- "app-label"
]
}
{- "code": 0
}
Delete a FAQ sub-category. It should not have any content.
key required | string^faq\.[0-9]+\.sub_categories\.[a-z0-9-]+\.[a-... Key of the sub-category to delete. |
{- "code": -39999999,
- "message": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}
}
Update a FAQ sub-category name.
lang required | string^[a-zA-Z]{2}$ The lang in which to update the name. |
Sub-category name parameters.
key required | string^faq\.[0-9]+\.sub_categories\.[a-z0-9-]+\.[a-... The unique key of this sub-category. |
name required | string [ 1 .. 100 ] characters The name of the category. |
{- "key": "string",
- "name": "string"
}
{- "code": 0
}
Create a new FAQ content.
Content parameters.
key required | string^faq\.[0-9]+\.contents\.[a-z0-9-]+\.[a-z0-9-]... The unique key of this content. |
replacements | Array of strings unique Items Enum: "app-label" "support-email" "support-phone" The variables to use in the text as replacements. |
bold required | boolean Whether or not to display the text in bold. |
margin | string^\d{1-3},\d{1-3},\d{1-3},\d{1-3}$ The margin to apply around the content. |
text_color | string Enum: "primary" "secondary" "tertiary" "quaternary" "success" "warn" "danger" "white" The color of the text if different than the default one. |
bullet_color | string Enum: "primary" "secondary" "tertiary" "quaternary" "success" "warn" "danger" "white" The color of the bullet point. Required for content of type bullet-point, ignored otherwise. |
sub_category required | string^faq\.[0-9]+\.sub_categories\.[a-z0-9-]+\.[a-... The sub-category for this content. |
type required | string Enum: "text" "formatted-text" "bullet-point" The type of content. |
{- "key": "string",
- "replacements": [
- "app-label"
], - "bold": true,
- "margin": "string",
- "text_color": "primary",
- "bullet_color": "primary",
- "sub_category": "string",
- "type": "text"
}
{- "code": 0,
- "data": {
- "sort_order": 32767
}
}
Update a FAQ content.
Content parameters.
key required | string^faq\.[0-9]+\.contents\.[a-z0-9-]+\.[a-z0-9-]... The unique key of this content. |
sort_order required | integer [ 0 .. 32767 ] The order in which the elements should be displayed. |
replacements | Array of strings unique Items Enum: "app-label" "support-email" "support-phone" The variables to use in the text as replacements. |
bold required | boolean Whether or not to display the text in bold. |
margin | string^\d{1-3},\d{1-3},\d{1-3},\d{1-3}$ The margin to apply around the content. |
text_color | string Enum: "primary" "secondary" "tertiary" "quaternary" "success" "warn" "danger" "white" The color of the text if different than the default one. |
bullet_color | string Enum: "primary" "secondary" "tertiary" "quaternary" "success" "warn" "danger" "white" The color of the bullet point. Required for content of type bullet-point, ignored otherwise. |
{- "key": "string",
- "sort_order": 32767,
- "replacements": [
- "app-label"
], - "bold": true,
- "margin": "string",
- "text_color": "primary",
- "bullet_color": "primary"
}
{- "code": 0
}
Update a FAQ content text.
lang required | string^[a-zA-Z]{2}$ The lang in which to update the content. |
Content text parameters.
key required | string^faq\.[0-9]+\.contents\.[a-z0-9-]+\.[a-z0-9-]... The unique key of this content. |
content required | string >= 1 The new text of the content. |
{- "key": "string",
- "content": "string"
}
{- "code": 0
}
Get languages of the faq of the specified app label.
app_label_id required | integer >= 1 Identifier of the app label. |
{- "code": 0,
- "data": [
- {
- "lang": "string",
- "translations_count": 1
}
]
}
Returns current fleet alerts of the specified networks.
networks required | Array of integers[ items >= 1 ] Examples:
Identifier of networks of which to get the fleet alerts. |
{- "code": 0,
- "data": [
- {
- "alert_id": 1,
- "alert_type": "unexpected-unlock",
- "alert_severity": "low",
- "spot_id": 1,
- "station_id": 1,
- "vehicle_lease_id": 1,
- "creation_date": "string",
- "other_occurrences": [
- "string"
], - "resolved_at": "string",
- "network_id": 1,
- "network_name": "string",
- "cluster_id": 1,
- "cluster_name": "string",
- "displayed_number": 1,
- "vehicle_id": 1,
- "serial_number": "string"
}
]
}
Returns old fleet alerts of the specified networks.
networks required | Array of integers[ items >= 1 ] Examples:
Identifier of networks of which to get the fleet alerts. |
primary_key_dir | string Default: "DESC" Enum: "ASC" "DESC" Sort direction of the transaction identifier. |
page_size | integer [ 10 .. 500 ] Default: 20 The maximum items to return. |
last_primary_key | integer >= 1 Identifier of the last transaction on the current page, used to request the next page. |
sort_by | string Enum: "creation_date" "alert_severity" "resolved_at" Custom sort key. |
sort_dir | string Default: "DESC" Enum: "ASC" "DESC" Sort direction of the custom sort key. |
alert_type | string (AlertType) Enum: "unexpected-unlock" "spot-identify-fail" "spot-high-temperature" "station-power-cut" "station-alarm-triggered" "vehicle-illegal-moving" "vehicle-dismantling" "vehicle-lifted" "vehicle-fallen" "vehicle-out-of-network-area" Filter by alert type. |
alert_severity | string (AlertSeverity) Enum: "low" "high" "critical" Filter by alert severity. |
creation_date_min | string <date> Filter the minimum alert creation date. |
creation_date_max | string <date> Filter the maximum alert creation date. |
user_id | integer >= 1 Filter by the user's identifier who made the transaction. |
string non-empty Filter by the user's email who made the transaction (partial match search). | |
resolved_at_min | string <date> Filter by minimum resolution date. |
resolved_at_max | string <date> Filter by maximum resolution date. |
cluster_name | string [ 1 .. 50 ] characters What the name of the cluster concerned by the alert should contains. |
cluster_id | integer >= 1 Filter by the id of the cluster concerned by the alert. |
vehicle_id | integer >= 1 Filter by the id of the vehicle concerned by the alert. |
serial_number | string [ 6 .. 10 ] characters Filter by serial number of a vehicle concerned by the alert. |
{- "code": 0,
- "data": [
- {
- "alert_id": 1,
- "alert_type": "unexpected-unlock",
- "alert_severity": "low",
- "spot_id": 1,
- "station_id": 1,
- "vehicle_lease_id": 1,
- "creation_date": "string",
- "other_occurrences": [
- "string"
], - "resolved_at": "string",
- "network_id": 1,
- "network_name": "string",
- "cluster_id": 1,
- "cluster_name": "string",
- "displayed_number": 1,
- "vehicle_id": 1,
- "serial_number": "string",
- "resolved_by": 1,
- "resolved_by_email": "user@example.com"
}
]
}
Mark the specified alerts as resolved.
Ids of alerts to solve.
alert_ids required | Array of integers non-empty [ items >= 1 ] Array of identifier to resolve. |
{- "alert_ids": [
- 1
]
}
{- "code": 0
}
Return the list of points to make a heatmap.
networks required | Array of integers[ items >= 1 ] Examples:
Identifier of networks of which to get the offers. |
lat required | number [ -90 .. 90 ] The latitude of the center of the area in which to get points. |
lng required | number [ -180 .. 180 ] The longitude of the center of the area in which to get points. |
latDeg required | number [ -90 .. 90 ] The number of latitude degree of the area in which to get points. Can be compared to the height of the area. |
lngDeg required | number [ -180 .. 180 ] The number of longitude degree of the area in which to get points. Can be compared to the width of the area. |
date_min required | string <datetime> The minimum start date of points to show. Rounded by month, every points made in a month are given the first day of the month as a date. |
date_max required | string <datetime> The maximum start date of points to show. Rounded by month, every points made in a month are given the first day of the month as a date. |
zoom required | integer Enum: 0 1 2 The zoom level, change the points precision. 0 -> x.xxx, 1 -> x.xxx(0|5), 2 -> x.xxxx |
{- "code": 0,
- "data": [
- {
- "latitude": -90,
- "longitude": -180,
- "quantity": 1
}
]
}
Get the list of invoices linked to the user.
page required | integer The page number of the invoices. |
{- "code": 0,
- "data": [
- {
- "ref": "string",
- "date": "2019-08-24T14:15:22Z",
- "paid": true,
- "amount": "350.000",
- "currency": "string"
}
]
}
Download an invoice in PDF format.
ref required | string The invoice's reference. |
{- "code": -39999999,
- "message": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}
}
Get the list of localizations for the specified language.
lang required | string = 2 characters The lang in which to get localizations. |
{- "code": 0,
- "data": [
- {
- "key": "string",
- "value": "string"
}
]
}
Create a new localization for the specified type and lang, update if already exist.
Info on the localization to create or update.
key required | string [ 1 .. 100 ] characters The key of the localization. |
value required | string The value of the localization. |
lang required | string/^[a-zA-Z]{2}$/ The language of the localization. |
{- "key": "string",
- "value": "string",
- "lang": "string"
}
{- "code": 0
}
Create a new language for the specified ISO639-1 lang code and name.
Info on the language to create.
iso_639_1 required | string/^[a-zA-Z]{2}$/ ISO639-1 key of the language. |
name required | string <= 50 characters The name of the language. |
{- "iso_639_1": "fr",
- "name": "Français"
}
{- "code": 0
}
Get mail template base for the given app label.
app_label_id required | integer >= 1 Identifier of the app label. |
{- "code": 0,
- "data": [
- {
- "design": "string",
- "html": "string",
- "last_update": "string",
- "draft": true,
- "button_color": "string",
- "button_text_size": 0,
- "button_text_color": "string",
- "text_size": 0,
- "text_color": "string",
- "title_size": 0,
- "title_color": "string"
}
]
}
Update the template base draft.
app_label_id required | integer >= 1 Identifier of the app label. |
Template base parameters.
design required | string The json produced by the unlayer editor. |
html required | string The html produced by the unlayer editor. |
{- "design": "string",
- "html": "string"
}
{- "code": 0
}
Get the mail template content.
app_label_id required | integer >= 1 Identifier of the app label. |
template_name required | string [ 1 .. 32 ] characters Name of the mail template. |
{- "code": 0,
- "data": {
- "blocks": [
- {
- "html": "string",
- "variable": "string",
- "constant": "string",
- "translations": [
- {
- "app_label_id": 0,
- "key": "string",
- "value": "string",
- "lang": "string",
- "draft": true,
- "last_update": "string"
}
], - "shared": true
}
], - "langs": [
- "st"
], - "variables": [
- "string"
], - "custom_variables": {
- "property1": {
- "app_label_id": 0,
- "key": "string",
- "value": "string",
- "lang": "string",
- "draft": true,
- "last_update": "string"
}, - "property2": {
- "app_label_id": 0,
- "key": "string",
- "value": "string",
- "lang": "string",
- "draft": true,
- "last_update": "string"
}
}
}
}
Update the template content draft.
app_label_id required | integer >= 1 Identifier of the app label. |
template_name required | string [ 1 .. 32 ] characters Name of the mail template. |
Template content parameters.
lang required | string^[a-zA-Z]{2}$ The language of the content. |
required | Array of objects The updated contents. |
{- "lang": "string",
- "contents": [
- {
- "key": "string",
- "value": "string"
}
]
}
{- "code": 0
}
Get the mail template content languages and their translation completion status.
app_label_id required | integer >= 1 Identifier of the app label. |
template_name required | string [ 1 .. 32 ] characters Name of the mail template. |
{- "code": 0,
- "data": [
- {
- "lang": "st",
- "keys": 0,
- "translated": 0,
- "translated_draft": 0
}
]
}
Delete the mail template content language by deleting all of its translations.
app_label_id required | integer >= 1 Identifier of the app label. |
template_name required | string [ 1 .. 32 ] characters Name of the mail template. |
lang required | string^[a-z]{2}$ Lang to delete. |
{- "code": 0
}
Send a test mail of the given mail template to the requesting user.
app_label_id required | integer >= 1 Identifier of the app label. |
template_name required | string [ 1 .. 32 ] characters Name of the mail template. |
Test mail parameters.
lang required | string:^[a-zA-Z]{2}$ The language of the content. |
draft required | boolean Whether or not to send the draft or production version of the template. |
required | object And object containing all replacements variables and their values. |
{- "lang": "string",
- "draft": true,
- "variables": {
- "property1": "string",
- "property2": "string"
}
}
{- "code": 0
}
Get the list of images usable for mail template for the given app label.
app_label_id required | integer >= 1 Identifier of the app label. |
{- "code": 0,
- "data": [
- {
- "image_id": 1,
- "url": "string"
}
]
}
Upload a new image to be used in mail templates.
app_label_id required | integer >= 1 Identifier of the app label. |
The image to upload.
image required | string <binary> The image file data. |
{- "code": 0,
- "data": {
- "image_id": 1,
- "url": "string"
}
}
Promote the current mail template base draft to production.
app_label_id required | integer >= 1 Identifier of the app label. |
The promote parameters.
force | boolean Whether or not to force the promotion. |
{- "code": 0
}
Promote the current mail template content draft to production.
app_label_id required | integer >= 1 Identifier of the app label. |
template_name required | string [ 1 .. 32 ] characters Name of the mail template. |
The promote parameters.
force | boolean Whether or not to force the promotion. |
{- "code": 0
}
Delete the current mail template content draft.
app_label_id required | integer >= 1 Identifier of the app label. |
template_name required | string [ 1 .. 32 ] characters Name of the mail template. |
{- "code": 0
}
Get mailing lists for the given app label.
app_label_id required | integer >= 1 Identifier of the app label. |
{- "code": 0,
- "data": [
- {
- "list_id": 1,
- "name": "string",
- "source": "string",
- "email_count": 0
}
]
}
Route to get all current maintenances of the active fleet (vehicle on station or virtual parked, spots, stations).
networks required | Array of integers[ items >= 1 ] Examples:
Identifier of networks of which to get fleet maintenance. |
lang required | string = 2 characters The lang in which to get the maintenance types localized. |
{- "code": 0,
- "data": [
- {
- "maintenance_id": 1,
- "maintenance_type": "string",
- "target_type": "vehicle",
- "comment": "string",
- "start_date": "string",
- "severity": "info",
- "automatic_code_description": "string",
- "vehicle_id": 1,
- "serial_number": "string",
- "cluster_id": 1,
- "cluster_name": "string",
- "displayed_number": 1
}
]
}
Create a new maintenance type.
Info on the maintenance type to create.
key required | string [ 1 .. 50 ] characters Unique key of maintenance type. |
target_type required | string (MaintenanceTargetType) Enum: "station" "spot" "vehicle" The type of object on which this type applies. |
severity required | string (MaintenanceSeverity) Enum: "info" "low" "high" The severity of the problem.
|
{- "key": "string",
- "target_type": "station",
- "severity": "info"
}
{- "code": 0
}
Remove the maintenance type, avoiding it from being used to create new maintenances.
key required | string [ 1 .. 50 ] characters The key of the maintenance type to delete. |
{- "code": 0
}
Return all networks with some indicators (network's owner, creation date, total stations, vehicles and trips).
{- "code": 0,
- "data": [
- {
- "network_id": 1,
- "network_name": "string",
- "default_vat": 0.1,
- "currency": "string",
- "country": 1,
- "country_name": "France",
- "creation_date": "2019-08-24T14:15:22Z",
- "deletion_date": "2019-08-24T14:15:22Z",
- "clusters": 0,
- "vehicles": 0,
- "trips": 0,
- "users": 0,
- "third_party_id": 1,
- "third_party_name": "string",
- "app_label_id": 1,
- "app_label_name": "string"
}
]
}
Create a new network.
Parameters for the new network to create.
name required | string [ 1 .. 200 ] characters The new network's name. |
default_vat required | number [ 0 .. 1 ] The default vat percentage of the network. |
country_id required | integer >= 1 The identifier of the country where the network is situated. |
currency required | string Enum: "AED" "AFN" "ALL" "AMD" "ANG" "AOA" "ARS" "AUD" "AWG" "AZN" "BAM" "BBD" "BDT" "BGN" "BHD" "BIF" "BMD" "BND" "BOB" "BRL" "BSD" "BTN" "BWP" "BYN" "BYR" "BZD" "CAD" "CDF" "CHF" "CLF" "CLP" "CNY" "COP" "CRC" "CUC" "CUP" "CVE" "CZK" "DJF" "DKK" "DOP" "DZD" "EGP" "ERN" "ETB" "EUR" "FJD" "FKP" "GBP" "GEL" "GGP" "GHS" "GIP" "GMD" "GNF" "GTQ" "GYD" "HKD" "HNL" "HRK" "HTG" "HUF" "IDR" "ILS" "IMP" "INR" "IQD" "IRR" "ISK" "JEP" "JMD" "JOD" "JPY" "KES" "KGS" "KHR" "KMF" "KPW" "KRW" "KWD" "KYD" "KZT" "LAK" "LBP" "LKR" "LRD" "LSL" "LTL" "LVL" "LYD" "MAD" "MDL" "MGA" "MKD" "MMK" "MNT" "MOP" "MRO" "MUR" "MVR" "MWK" "MXN" "MYR" "MZN" "NAD" "NGN" "NIO" "NOK" "NPR" "NZD" "OMR" "PAB" "PEN" "PGK" "PHP" "PKR" "PLN" "PYG" "QAR" "RON" "RSD" "RUB" "RWF" "SAR" "SBD" "SCR" "SDG" "SEK" "SGD" "SHP" "SLL" "SOS" "SRD" "STD" "SVC" "SYP" "SZL" "THB" "TJS" "TMT" "TND" "TOP" "TRY" "TTD" "TWD" "TZS" "UAH" "UGX" "USD" "UYU" "UZS" "VEF" "VND" "VUV" "WST" "XAF" "XAG" "XAU" "XCD" "XDR" "XOF" "XPF" "YER" "ZAR" "ZMK" "ZMW" "ZWL" The currency of the network. Used for default_vehicle_guarantee, offers, and network pricing. |
default_vehicle_guarantee required | number >= 0 The amount of the pre-authorization to rent a vehicle on the network. |
trip_to_skip_pre_auth_guarantee required | integer >= -1 Number of trips to be finished in order not to have the pre-authorization (-1: pre-authorization is mandatory, 0: pre-authorization never performed). |
timezone required | string Enum: "Africa/Abidjan" "Africa/Accra" "Africa/Addis_Ababa" "Africa/Algiers" "Africa/Asmara" "Africa/Bamako" "Africa/Bangui" "Africa/Banjul" "Africa/Bissau" "Africa/Blantyre" "Africa/Brazzaville" "Africa/Bujumbura" "Africa/Cairo" "Africa/Casablanca" "Africa/Ceuta" "Africa/Conakry" "Africa/Dakar" "Africa/Dar_es_Salaam" "Africa/Djibouti" "Africa/Douala" "Africa/El_Aaiun" "Africa/Freetown" "Africa/Gaborone" "Africa/Harare" "Africa/Johannesburg" "Africa/Juba" "Africa/Kampala" "Africa/Khartoum" "Africa/Kigali" "Africa/Kinshasa" "Africa/Lagos" "Africa/Libreville" "Africa/Lome" "Africa/Luanda" "Africa/Lubumbashi" "Africa/Lusaka" "Africa/Malabo" "Africa/Maputo" "Africa/Maseru" "Africa/Mbabane" "Africa/Mogadishu" "Africa/Monrovia" "Africa/Nairobi" "Africa/Ndjamena" "Africa/Niamey" "Africa/Nouakchott" "Africa/Ouagadougou" "Africa/Porto-Novo" "Africa/Sao_Tome" "Africa/Tripoli" "Africa/Tunis" "Africa/Windhoek" "America/Adak" "America/Anchorage" "America/Anguilla" "America/Antigua" "America/Araguaina" "America/Argentina/Buenos_Aires" "America/Argentina/Catamarca" "America/Argentina/Cordoba" "America/Argentina/Jujuy" "America/Argentina/La_Rioja" "America/Argentina/Mendoza" "America/Argentina/Rio_Gallegos" "America/Argentina/Salta" "America/Argentina/San_Juan" "America/Argentina/San_Luis" "America/Argentina/Tucuman" "America/Argentina/Ushuaia" "America/Aruba" "America/Asuncion" "America/Atikokan" "America/Bahia" "America/Bahia_Banderas" "America/Barbados" "America/Belem" "America/Belize" "America/Blanc-Sablon" "America/Boa_Vista" "America/Bogota" "America/Boise" "America/Cambridge_Bay" "America/Campo_Grande" "America/Cancun" "America/Caracas" "America/Cayenne" "America/Cayman" "America/Chicago" "America/Chihuahua" "America/Costa_Rica" "America/Creston" "America/Cuiaba" "America/Curacao" "America/Danmarkshavn" "America/Dawson" "America/Dawson_Creek" "America/Denver" "America/Detroit" "America/Dominica" "America/Edmonton" "America/Eirunepe" "America/El_Salvador" "America/Fort_Nelson" "America/Fortaleza" "America/Glace_Bay" "America/Goose_Bay" "America/Grand_Turk" "America/Grenada" "America/Guadeloupe" "America/Guatemala" "America/Guayaquil" "America/Guyana" "America/Halifax" "America/Havana" "America/Hermosillo" "America/Indiana/Indianapolis" "America/Indiana/Knox" "America/Indiana/Marengo" "America/Indiana/Petersburg" "America/Indiana/Tell_City" "America/Indiana/Vevay" "America/Indiana/Vincennes" "America/Indiana/Winamac" "America/Inuvik" "America/Iqaluit" "America/Jamaica" "America/Juneau" "America/Kentucky/Louisville" "America/Kentucky/Monticello" "America/Kralendijk" "America/La_Paz" "America/Lima" "America/Los_Angeles" "America/Lower_Princes" "America/Maceio" "America/Managua" "America/Manaus" "America/Marigot" "America/Martinique" "America/Matamoros" "America/Mazatlan" "America/Menominee" "America/Merida" "America/Metlakatla" "America/Mexico_City" "America/Miquelon" "America/Moncton" "America/Monterrey" "America/Montevideo" "America/Montserrat" "America/Nassau" "America/New_York" "America/Nipigon" "America/Nome" "America/Noronha" "America/North_Dakota/Beulah" "America/North_Dakota/Center" "America/North_Dakota/New_Salem" "America/Nuuk" "America/Ojinaga" "America/Panama" "America/Pangnirtung" "America/Paramaribo" "America/Phoenix" "America/Port-au-Prince" "America/Port_of_Spain" "America/Porto_Velho" "America/Puerto_Rico" "America/Punta_Arenas" "America/Rainy_River" "America/Rankin_Inlet" "America/Recife" "America/Regina" "America/Resolute" "America/Rio_Branco" "America/Santarem" "America/Santiago" "America/Santo_Domingo" "America/Sao_Paulo" "America/Scoresbysund" "America/Sitka" "America/St_Barthelemy" "America/St_Johns" "America/St_Kitts" "America/St_Lucia" "America/St_Thomas" "America/St_Vincent" "America/Swift_Current" "America/Tegucigalpa" "America/Thule" "America/Thunder_Bay" "America/Tijuana" "America/Toronto" "America/Tortola" "America/Vancouver" "America/Whitehorse" "America/Winnipeg" "America/Yakutat" "America/Yellowknife" "Antarctica/Casey" "Antarctica/Davis" "Antarctica/DumontDUrville" "Antarctica/Macquarie" "Antarctica/Mawson" "Antarctica/McMurdo" "Antarctica/Palmer" "Antarctica/Rothera" "Antarctica/Syowa" "Antarctica/Troll" "Antarctica/Vostok" "Arctic/Longyearbyen" "Asia/Aden" "Asia/Almaty" "Asia/Amman" "Asia/Anadyr" "Asia/Aqtau" "Asia/Aqtobe" "Asia/Ashgabat" "Asia/Atyrau" "Asia/Baghdad" "Asia/Bahrain" "Asia/Baku" "Asia/Bangkok" "Asia/Barnaul" "Asia/Beirut" "Asia/Bishkek" "Asia/Brunei" "Asia/Chita" "Asia/Choibalsan" "Asia/Colombo" "Asia/Damascus" "Asia/Dhaka" "Asia/Dili" "Asia/Dubai" "Asia/Dushanbe" "Asia/Famagusta" "Asia/Gaza" "Asia/Hebron" "Asia/Ho_Chi_Minh" "Asia/Hong_Kong" "Asia/Hovd" "Asia/Irkutsk" "Asia/Jakarta" "Asia/Jayapura" "Asia/Jerusalem" "Asia/Kabul" "Asia/Kamchatka" "Asia/Karachi" "Asia/Kathmandu" "Asia/Khandyga" "Asia/Kolkata" "Asia/Krasnoyarsk" "Asia/Kuala_Lumpur" "Asia/Kuching" "Asia/Kuwait" "Asia/Macau" "Asia/Magadan" "Asia/Makassar" "Asia/Manila" "Asia/Muscat" "Asia/Nicosia" "Asia/Novokuznetsk" "Asia/Novosibirsk" "Asia/Omsk" "Asia/Oral" "Asia/Phnom_Penh" "Asia/Pontianak" "Asia/Pyongyang" "Asia/Qatar" "Asia/Qostanay" "Asia/Qyzylorda" "Asia/Riyadh" "Asia/Sakhalin" "Asia/Samarkand" "Asia/Seoul" "Asia/Shanghai" "Asia/Singapore" "Asia/Srednekolymsk" "Asia/Taipei" "Asia/Tashkent" "Asia/Tbilisi" "Asia/Tehran" "Asia/Thimphu" "Asia/Tokyo" "Asia/Tomsk" "Asia/Ulaanbaatar" "Asia/Urumqi" "Asia/Ust-Nera" "Asia/Vientiane" "Asia/Vladivostok" "Asia/Yakutsk" "Asia/Yangon" "Asia/Yekaterinburg" "Asia/Yerevan" "Atlantic/Azores" "Atlantic/Bermuda" "Atlantic/Canary" "Atlantic/Cape_Verde" "Atlantic/Faroe" "Atlantic/Madeira" "Atlantic/Reykjavik" "Atlantic/South_Georgia" "Atlantic/St_Helena" "Atlantic/Stanley" "Australia/Adelaide" "Australia/Brisbane" "Australia/Broken_Hill" "Australia/Darwin" "Australia/Eucla" "Australia/Hobart" "Australia/Lindeman" "Australia/Lord_Howe" "Australia/Melbourne" "Australia/Perth" "Australia/Sydney" "Europe/Amsterdam" "Europe/Andorra" "Europe/Astrakhan" "Europe/Athens" "Europe/Belgrade" "Europe/Berlin" "Europe/Bratislava" "Europe/Brussels" "Europe/Bucharest" "Europe/Budapest" "Europe/Busingen" "Europe/Chisinau" "Europe/Copenhagen" "Europe/Dublin" "Europe/Gibraltar" "Europe/Guernsey" "Europe/Helsinki" "Europe/Isle_of_Man" "Europe/Istanbul" "Europe/Jersey" "Europe/Kaliningrad" "Europe/Kiev" "Europe/Kirov" "Europe/Lisbon" "Europe/Ljubljana" "Europe/London" "Europe/Luxembourg" "Europe/Madrid" "Europe/Malta" "Europe/Mariehamn" "Europe/Minsk" "Europe/Monaco" "Europe/Moscow" "Europe/Oslo" "Europe/Paris" "Europe/Podgorica" "Europe/Prague" "Europe/Riga" "Europe/Rome" "Europe/Samara" "Europe/San_Marino" "Europe/Sarajevo" "Europe/Saratov" "Europe/Simferopol" "Europe/Skopje" "Europe/Sofia" "Europe/Stockholm" "Europe/Tallinn" "Europe/Tirane" "Europe/Ulyanovsk" "Europe/Uzhgorod" "Europe/Vaduz" "Europe/Vatican" "Europe/Vienna" "Europe/Vilnius" "Europe/Volgograd" "Europe/Warsaw" "Europe/Zagreb" "Europe/Zaporozhye" "Europe/Zurich" "Indian/Antananarivo" "Indian/Chagos" "Indian/Christmas" "Indian/Cocos" "Indian/Comoro" "Indian/Kerguelen" "Indian/Mahe" "Indian/Maldives" "Indian/Mauritius" "Indian/Mayotte" "Indian/Reunion" "Pacific/Apia" "Pacific/Auckland" "Pacific/Bougainville" "Pacific/Chatham" "Pacific/Chuuk" "Pacific/Easter" "Pacific/Efate" "Pacific/Enderbury" "Pacific/Fakaofo" "Pacific/Fiji" "Pacific/Funafuti" "Pacific/Galapagos" "Pacific/Gambier" "Pacific/Guadalcanal" "Pacific/Guam" "Pacific/Honolulu" "Pacific/Kiritimati" "Pacific/Kosrae" "Pacific/Kwajalein" "Pacific/Majuro" "Pacific/Marquesas" "Pacific/Midway" "Pacific/Nauru" "Pacific/Niue" "Pacific/Norfolk" "Pacific/Noumea" "Pacific/Pago_Pago" "Pacific/Palau" "Pacific/Pitcairn" "Pacific/Pohnpei" "Pacific/Port_Moresby" "Pacific/Rarotonga" "Pacific/Saipan" "Pacific/Tahiti" "Pacific/Tarawa" "Pacific/Tongatapu" "Pacific/Wake" "Pacific/Wallis" "UTC" The timezone where the network is situated. |
third_party_id | integer >= 1 The identifier of the third party that own the network (if any). |
app_label_id required | integer >= 1 The identifier of default app label of the network. |
{- "name": "string",
- "default_vat": 1,
- "country_id": 1,
- "currency": "string",
- "default_vehicle_guarantee": 0,
- "trip_to_skip_pre_auth_guarantee": -1,
- "timezone": "Africa/Abidjan",
- "third_party_id": 1,
- "app_label_id": 1
}
{- "code": 0,
- "data": 1
}
Get the list of authorized networks in activity for the user. The main purpose is the dashboard network selector.
{- "code": 0,
- "data": [
- {
- "network_id": 1,
- "network_name": "string",
- "default_vat": 0.1,
- "currency": "string"
}
]
}
Return details of the specified network.
network_id required | integer >= 1 Identifier of the network. |
{- "code": 0,
- "data": {
- "network_id": 1,
- "network_name": "string",
- "default_vat": 0.1,
- "currency": "string",
- "country": 1,
- "country_name": "France",
- "creation_date": "2019-08-24T14:15:22Z",
- "deletion_date": "2019-08-24T14:15:22Z",
- "clusters": 0,
- "vehicles": 0,
- "trips": 0,
- "users": 0,
- "third_party_id": 1,
- "third_party_name": "string",
- "app_label_id": 1,
- "app_label_name": "string",
- "freefloat_to_station_discount_per_km": 99999999,
- "freefloat_to_station_free_credits": 99999999,
- "freefloat_to_receiver_station_free_credits": 99999999,
- "freefloat_to_station_min_battery": 100,
- "sponsoring_reward": 0,
- "sponsored_reward": 0,
- "timezone": "Africa/Abidjan",
- "exceptional_out_of_order": {
- "exceptional_out_of_order_id": 1,
- "type": "other",
- "reason": "string",
- "custom_reason": "Network is closed this night for extensive maintenance"
}
}
}
Return access rules of a given network.
network_id required | integer >= 1 Identifier of the network of which to get access rules. |
{- "code": 0,
- "data": [
- {
- "access_rule_id": 1,
- "network_id": 1,
- "email_pattern": "%@gmail.com",
- "organization": 1,
- "organization_name": "Knot Corp",
- "app_label": 1,
- "app_label_name": "knot"
}
]
}
Create a new access rule for a given network.
network_id required | integer >= 1 Identifier of the network on which to create the access rule. |
Info on the new access rule to create, at least one property is required.
email_pattern | string/^[a-zA-Z0-9@._(){}[\]|*+?%#\\-]+$/ A pgsql pattern that specifies which email can access this network. |
organization | integer >= 1 The identifier of an organization that can access this network. |
app_label | integer >= 1 The identifier of the app white label that can access this network. |
{- "email_pattern": "string",
- "organization": 1,
- "app_label": 1
}
{- "code": 0,
- "data": 1
}
Update the given network access rule.
network_id required | integer >= 1 Identifier of the network on which the access rule is. |
rid required | integer >= 1 Identifier of the network access rule to edit. |
Info on the new access rule to update, at least one property is required.
email_pattern required | string or null/^[a-zA-Z0-9@._(){}[\]|*+?%#\\-]+$/ A pgsql pattern that specifies which email can access this network. |
organization required | integer or null >= 1 The identifier of an organization that can access this network. |
app_label required | integer or null >= 1 The identifier of the app white label that can access this network. |
{- "email_pattern": "string",
- "organization": 1,
- "app_label": 1
}
{- "code": 0
}
Delete the given network access rule.
network_id required | integer >= 1 Identifier of the network on which the access rule is. |
rid required | integer >= 1 Identifier of the network access rule to delete. |
{- "code": 0
}
Update the network's logo.
network_id required | integer >= 1 The network's identifier. |
The picture to upload.
network_logo required | string <binary> The picture file data. |
{- "code": 0,
}
Update network the amount of sponsorship rewards.
network_id required | integer >= 1 The network's identifier. |
The new reward amount for sponsorship.
sponsoring_reward required | number >= 0 The amount given to the wallet of the user that sponsored another user. |
sponsored_reward required | number >= 0 The amount given to the wallet of the sponsored user, when he made his first trip. |
{- "sponsoring_reward": 0,
- "sponsored_reward": 0
}
{- "code": 0
}
Get the list of vehicle models with a specific settings on the network.
network_id required | integer >= 1 The network's identifier. |
{- "code": 0,
- "data": [
- {
- "model_id": 1,
- "auto_light": true,
- "forced_speed_mode": 1,
- "model_name": "string",
- "manufacturer": "string"
}
]
}
Get the list of vehicle models with a specific guarantee on the network.
network_id required | integer >= 1 The network's identifier. |
{- "code": 0,
- "data": [
- {
- "model_id": 1,
- "guarantee": "string",
- "pre_auth": "string",
- "model_name": "string",
- "manufacturer": "string"
}
]
}
Update vehicle settings for a specific network and vehicle model.
network_id required | integer >= 1 The network's identifier. |
model_id required | integer >= 1 The vehicle model identifier. |
The new settings.
auto_light required | boolean True to automatically turn on the vehicle light when unlocking. |
speed_mode required | integer or null Enum: 1 2 3 If not null, block the vehicle speed mode in the specified mode and disable the speed button (1 = ECO, 2 = NORMAL, 3 = SPORT). |
{- "code": 0
}
Update vehicle guarantees for a specific network and vehicle model.
network_id required | integer >= 1 The network's identifier. |
model_id required | integer >= 1 The vehicle model identifier. |
The new guarantee.
guarantee required | number <float> >= 0 The amount that will be billed to the user if it does not return the vehicle. |
pre_auth required | number <float> >= 0 The amount that will be asked for the vehicle model for a pre auth before starting a trip. |
{- "code": 0
}
Get the speed settings for vehicles of the network.
network_id required | integer >= 1 The network's identifier. |
{- "code": 0,
- "data": {
- "default_low_speed": 0,
- "default_medium_speed": 0,
- "default_high_speed": 0,
- "min_battery_to_slow_down": 0,
- "battery_slow_down_speed": 0
}
}
Update the speed settings for vehicles of the network.
network_id required | integer >= 1 The network's identifier. |
The new settings.
default_low_speed required | integer The default low speed of vehicles. |
default_medium_speed required | integer The default medium speed of vehicles. |
default_high_speed required | integer The default high speed of vehicles. |
min_battery_to_slow_down required | integer or null The battery level at which the vehicle will slow down. |
battery_slow_down_speed required | integer or null The speed at which the vehicle will be maxed out when the battery reach the min battery level. |
{- "code": 0
}
Add an out of order for a specific network.
network_id required | integer >= 1 The network's identifier. |
Info on the out of order to create.
type required | string Enum: "other" "winter" Type of the out of order. |
reason | string [ 1 .. 100 ] characters Reason of the out of order. |
start_date required | string <date-time> Start date of the out of order. |
end_date | string or null <date-time> End date of the out of order. |
{- "type": "other",
- "reason": "string",
- "start_date": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24T14:15:22Z"
}
{- "code": 0,
- "data": {
- "exceptional_out_of_order_id": 1
}
}
Return rent settings and timings of the specified network.
network_id required | integer >= 1 Identifier of the network. |
{- "code": 0,
- "data": {
- "default_vehicle_guarantee": 0,
- "trip_to_skip_pre_auth_guarantee": -1,
- "first_purchase_required": true,
- "min_battery_to_rent": 10,
- "max_simultaneous_rented_vehicle": 1,
- "trip_on_hold": true,
- "credit_depletion_auto_lock": true,
- "min_battery_to_auto_lock": 1,
- "trip_too_long_notifications": 3600,
- "trip_too_long_notifications_frequency": 900,
- "vehicle_stolen": 43200,
- "trip_auto_pause": 604800,
- "trip_max_pause": 604800,
- "trip_auto_lock": 604800
}
}
Update rent settings of the specified network.
network_id required | integer >= 1 The network's identifier. |
Rent settings.
default_vehicle_guarantee required | number >= 0 The amount of the vehicle guarantee. |
trip_to_skip_pre_auth_guarantee required | integer >= -1 Number of trips to be finished in order not to skip the pre-authorization (-1: mandatory pre-authorization, 0: never pre-authorization). |
first_purchase_required required | boolean Force user to do a purchase before renting for the first time. |
min_battery_to_rent required | integer [ 10 .. 95 ] The minimum battery level of a vehicle to be able to rent it. |
max_simultaneous_rented_vehicle required | integer [ 1 .. 10 ] Maximum number of vehicle that can be rented at the same time by one user. |
trip_on_hold required | boolean Indicate if user can put trip on hold (temporary lock). |
credit_depletion_auto_lock required | boolean Force to lock the vehicle if user doesn't has enough credit on it's account. |
min_battery_to_auto_lock required | integer or null [ 1 .. 50 ] Force to lock the vehicle if the battery is lower than the indicated level . |
{- "default_vehicle_guarantee": 0,
- "trip_to_skip_pre_auth_guarantee": -1,
- "first_purchase_required": true,
- "min_battery_to_rent": 10,
- "max_simultaneous_rented_vehicle": 1,
- "trip_on_hold": true,
- "credit_depletion_auto_lock": true,
- "min_battery_to_auto_lock": 1
}
{- "code": 0
}
Update rent timings of the specified network.
network_id required | integer >= 1 The network's identifier. |
Rent timings. All values are in seconds.
trip_too_long_notifications required | number [ 3600 .. 604800 ] Time after which the user will receive notifications that his trip is too long and he should return the vehicle. |
trip_too_long_notifications_frequency required | integer [ 900 .. 604800 ] Frequency in seconds of sending return vehicle notifications. |
vehicle_stolen required | integer [ 43200 .. 2592000 ] Time after which a vehicle is considered stolen if it is still not returned. |
trip_auto_pause required | integer [ 0 .. 604800 ] Time after which the trip will be on-hold (temporarily lock) if the vehicle doesn't move anymore. |
trip_max_pause required | integer [ 0 .. 604800 ] Maximum duration of a pause. If the user doesn't unlock the vehicle after this delay, the trip will be stopped and the vehicle will be available to everyone. |
trip_auto_lock required | integer [ 0 .. 604800 ] Maximum duration of a trip. The vehicle will be lock and the trip stopped if it exceed this value. |
{- "trip_too_long_notifications": 3600,
- "trip_too_long_notifications_frequency": 900,
- "vehicle_stolen": 43200,
- "trip_auto_pause": 604800,
- "trip_max_pause": 604800,
- "trip_auto_lock": 604800
}
{- "code": 0
}
Return freefloat to station reward of the specified network.
network_id required | integer >= 1 Identifier of the network. |
{- "code": 0,
- "data": {
- "freefloat_to_station_discount_per_km": 99999999,
- "freefloat_to_station_free_credits": 99999999,
- "freefloat_to_receiver_station_free_credits": 99999999,
- "freefloat_to_station_min_battery": 100
}
}
Update freefloat to station reward of the specified network.
network_id required | integer >= 1 The network's identifier. |
Freefloat to station rewards.
freefloat_to_station_discount_per_km | number or null <float> [ 0 .. 99999999 ] The amount given to the user per km made on a trip from freefloat to a station. |
freefloat_to_station_free_credits | number or null <float> [ 0 .. 99999999 ] The amount given for a vehicle that returns to a station. |
freefloat_to_receiver_station_free_credits | number or null <float> [ 0 .. 99999999 ] The amount given for a vehicle that returns to a station that is a receiver. |
freefloat_to_station_min_battery | integer or null [ 0 .. 100 ] The minimum battery level of the vehicle. If the vehicle has a greater battery level the rewards won't be granted. |
{- "freefloat_to_station_discount_per_km": 99999999,
- "freefloat_to_station_free_credits": 99999999,
- "freefloat_to_receiver_station_free_credits": 99999999,
- "freefloat_to_station_min_battery": 100
}
{- "code": 0
}
Get notifications settings of the specified network.
network_id required | integer >= 1 The network's identifier. |
{- "code": 0,
- "data": [
- {
- "notification_id": 1,
- "notification_type": "fleet-alert",
- "alert_types": [
- "unexpected-unlock"
], - "alert_severities": [
- "low"
], - "creation_date": "string",
- "check_interval": 0,
- "check_delay": 0,
- "last_check": "string",
- "targets": [
- {
- "email": "user@example.com",
- "user_id": 1
}
]
}
]
}
Add a notifications settings.
network_id required | integer >= 1 The network's identifier. |
Info on the notification settings to create.
notification_type required | string Enum: "fleet-alert" "vehicle-fault" "station-down" "support-report" "support-message" The type of notification |
alert_types required | Array of strings (AlertType) non-empty Items Enum: "unexpected-unlock" "spot-identify-fail" "spot-high-temperature" "station-power-cut" "station-alarm-triggered" "vehicle-illegal-moving" "vehicle-dismantling" "vehicle-lifted" "vehicle-fallen" "vehicle-out-of-network-area" Type of alerts sent. |
alert_severities required | Array of strings (AlertSeverity) non-empty Items Enum: "low" "high" "critical" Severity level of alerts sent. |
check_interval | integer >= 0 The interval in seconds in which the system will check for new alerts to sent. |
check_delay | integer >= 0 The delay to wait before sending a notifications. Only notifications older than the specified delay will be sent. |
{- "notification_type": "fleet-alert",
- "alert_types": [
- "unexpected-unlock"
], - "alert_severities": [
- "low"
], - "check_interval": 0,
- "check_delay": 0
}
{- "code": 0,
- "data": {
- "notification_id": 1
}
}
Edit a notifications settings.
network_id required | integer >= 1 The network's identifier. |
notification_id required | integer >= 1 The notification setting's identifier. |
News values for the notification settings.
notification_type required | string Enum: "fleet-alert" "vehicle-fault" "station-down" "support-report" "support-message" The type of notification |
alert_types required | Array of strings (AlertType) non-empty Items Enum: "unexpected-unlock" "spot-identify-fail" "spot-high-temperature" "station-power-cut" "station-alarm-triggered" "vehicle-illegal-moving" "vehicle-dismantling" "vehicle-lifted" "vehicle-fallen" "vehicle-out-of-network-area" Type of alerts sent. |
alert_severities required | Array of strings (AlertSeverity) non-empty Items Enum: "low" "high" "critical" Severity level of alerts sent. |
check_interval | integer >= 0 The interval in seconds in which the system will check for new alerts to sent. |
check_delay | integer >= 0 The delay to wait before sending a notifications. Only notifications older than the specified delay will be sent. |
{- "notification_type": "fleet-alert",
- "alert_types": [
- "unexpected-unlock"
], - "alert_severities": [
- "low"
], - "check_interval": 0,
- "check_delay": 0
}
{- "code": 0
}
Remove a notifications settings.
network_id required | integer >= 1 The network's identifier. |
notification_id required | integer >= 1 The notification setting's identifier. |
{- "code": 0
}
Add a notifications target.
network_id required | integer >= 1 The network's identifier. |
notification_id required | integer >= 1 The notification setting's identifier. |
Target email or user data.
user_id required | integer >= 1 Identifier of the user. |
{- "user_id": 1
}
{- "code": 0
}
Remove a notifications target.
network_id required | integer >= 1 The network's identifier. |
notification_id required | integer >= 1 The notification setting's identifier. |
user_id | integer >= 1 The identifier of the user to remove from targets. Required if email is absent. |
string <email> The external email to remove from targets. Required if user_id is absent. |
{- "code": 0
}
Get the list of cluster that beneficiate from balancing.
network_id required | integer >= 1 The network's identifier. |
{- "code": 0,
- "data": [
- {
- "cluster_id": 1,
- "cluster_name": "string",
- "balancing_type": "donor",
- "target_count": 0,
- "total_spots": 0,
- "total_parking_capacity": 0
}
]
}
Add a cluster to the list of clusters that beneficiate from balancing.
network_id required | integer >= 1 The network's identifier. |
Info on the cluster balancing to create.
cluster_id required | integer >= 0 The identifier of the cluster. |
target_count required | integer The number of vehicle that we target (to be less than for donor clusters and greater than for receiver clusters). |
balancing_type required | string (BalancingType) Enum: "donor" "receiver" The type of the station for the balancing discounts. Renting a vehicle from a donor station to a receiver station will grant the user a discount on its trip. |
{- "cluster_id": 0,
- "target_count": 0,
- "balancing_type": "donor"
}
{- "code": 0
}
Update the target count of a cluster balancing.
network_id required | integer >= 1 The network's identifier. |
Info on the cluster balancing to update.
cluster_id required | integer >= 0 The identifier of the cluster. |
target_count required | integer The number of vehicle that we target (to be less than for donor clusters and greater than for receiver clusters). |
{- "cluster_id": 0,
- "target_count": 0
}
{- "code": 0
}
Remove a cluster from the list of clusters that beneficiate from balancing.
network_id required | integer >= 1 The network's identifier. |
cluster_id required | integer >= 1 The cluster's identifier. |
{- "code": 0
}
Get the discount amount of a clusters balancing discount.
network_id required | integer >= 1 The network's identifier. |
{- "code": 0,
- "data": [
- {
- "donor_cluster_id": 1,
- "donor_cluster_name": "string",
- "receiver_cluster_id": 1,
- "receiver_cluster_name": "string",
- "discount_amount": "string"
}
]
}
Update the discount of a cluster balancing route.
network_id required | integer >= 1 The network's identifier. |
Info on the balancing discount to update.
donor_cluster_id required | integer >= 1 The identifier of the cluster on which the trip need to start. |
receiver_cluster_id required | integer >= 1 The identifier of the cluster on which the trip need to finish. |
discount_amount required | number The amount of the discount applied to the trip. |
{- "donor_cluster_id": 1,
- "receiver_cluster_id": 1,
- "discount_amount": 0
}
{- "code": 0
}
Get the average duration of the x percent of the fastest trips between two clusters.
network_id required | integer >= 1 The network's identifier. |
donor_cluster_id required | integer >= 1 The cluster id on which the trip start. |
receiver_cluster_id required | integer >= 1 The cluster id on which the trip finish. |
fastest_trip_percentage required | integer [ 1 .. 50 ] The size of the sample of trips to use. |
{- "code": 0,
- "data": [
- {
- "avg_duration": 0
}
]
}
{- "code": 0,
- "data": [
- {
- "newsletter_id": 1,
- "name": "string",
- "sent_at": "2019-08-24T14:15:22Z",
- "planned_send_date": "2019-08-24T14:15:22Z",
- "newsletter_type": "legal",
- "transport": "mails",
- "targets": [
- {
- "target_type": "app-label",
- "target_id": 1
}
]
}
]
}
Create a new newsletter for the given app label.
Newsletter parameters.
name required | string [ 1 .. 255 ] characters The name of the newsletter. |
type required | string Enum: "legal" "network-status" "marketing" "custom-list" The type of the newsletter. |
transport required | string Enum: "mails" "push" The way the newsletter will be sent. |
target_type required | string Enum: "app-label" "network" "organization" "mailing-list" The type of the target of the newsletter (a newsletter should have a least one target). |
target_id required | integer >= 1 The identifier of the target (app label id, network id, organization id or mailing list id). |
{- "name": "string",
- "type": "legal",
- "transport": "mails",
- "target_type": "app-label",
- "target_id": 1
}
{- "code": 0,
- "data": {
- "newsletter_id": 1
}
}
Get the details of a newsletter.
newsletter_id required | integer >= 1 Identifier of the newsletter to get details of. |
{- "code": 0,
- "data": {
- "sent_at": "2019-08-24T14:15:22Z",
- "planned_send_date": "2019-08-24T14:15:22Z",
- "newsletter_type": "legal",
- "transport": "mails",
- "targets": [
- {
- "newsletter_target_id": 1,
- "target_type": "app-label",
- "target_id": 0,
- "target_name": "string",
- "target_user_count": 0
}
], - "user_count": 0,
- "user_languages": [
- {
- "lang": "st",
- "count": 1
}
], - "content_langs": [
- "st"
]
}
}
Send the given newsletter to all the matching users.
newsletter_id required | integer >= 1 Identifier of the newsletter. |
Send parameters.
planned_send_date | string <datetime> The date at which you want the newsletter to be sent. Should be rounded to a whole hour in the future. |
{- "planned_send_date": "string"
}
{- "code": 0
}
Send the given newsletter to the requesting user for testing purposes.
newsletter_id required | integer >= 1 Identifier of the newsletter. |
Send parameters.
lang | string^[a-zA-Z]{2}$ The language of the user that the newsletter will be sent to. |
{- "lang": "string"
}
{- "code": 0
}
Add a target to the given newsletter.
newsletter_id required | integer >= 1 Identifier of the newsletter. |
Target object.
target_type required | string Enum: "app-label" "network" "organization" "mailing-list" The type of the new target. |
target_id required | integer >= 1 The identifier of the target (app label id, network id, organization id or mailing list id). |
{- "target_type": "app-label",
- "target_id": 1
}
{- "code": 0,
- "data": {
- "newsletter_target_id": 1
}
}
Delete a target of the given newsletter.
newsletter_id required | integer >= 1 Identifier of the newsletter. |
target_id required | integer >= 1 Identifier of the newsletter target. |
{- "code": 0
}
Add a filter to the given newsletter target.
newsletter_id required | integer >= 1 Identifier of the newsletter. |
target_id required | integer >= 1 Identifier of the newsletter target. |
Target object.
filter_type required | string Enum: "trip_count" "visited_station" "register_duration" "last_activity" "traveled_distance" "usage_frequency" The type of the new target filter. |
filter_value required | integer The used in the comparison. Can be a whole number, seconds or a cluster_id according the to filter type. |
operator required | string Enum: "<" "=" ">" How to compare the value. |
{- "filter_type": "trip_count",
- "filter_value": 0,
- "operator": "<"
}
{- "code": 0,
- "data": {
- "newsletter_target_filter_id": 1
}
}
Delete a filter of the given newsletter target.
newsletter_id required | integer >= 1 Identifier of the newsletter. |
target_id required | integer >= 1 Identifier of the newsletter target. |
filter_id required | integer >= 1 Identifier of the newsletter target filter. |
{- "code": 0
}
Get the template of a newsletter (mails).
newsletter_id required | integer >= 1 Identifier of the newsletter. |
lang required | string^[a-zA-Z]{2}$ The language of the template to get. |
{- "code": 0,
- "data": {
- "subject": "string",
- "design": "string",
- "html": "string"
}
}
Create or update a newsletter template (mails).
newsletter_id required | integer >= 1 Identifier of the newsletter. |
lang required | string^[a-zA-Z]{2}$ The language of the template. |
Target object.
subject required | string [ 1 .. 255 ] characters The subject of the mail. |
design required | string The unlayer design for the template. |
html required | string The html rendered for the mail. |
{- "subject": "string",
- "design": "string",
- "html": "string"
}
{- "code": 0
}
Delete a template of a newsletter (mails).
newsletter_id required | integer >= 1 Identifier of the newsletter. |
lang required | string^[a-zA-Z]{2}$ The language of the template to delete. |
{- "code": 0
}
Get the text of a newsletter (push notification).
newsletter_id required | integer >= 1 Identifier of the newsletter. |
lang required | string^[a-zA-Z]{2}$ The language of the text to get. |
{- "code": 0,
- "data": {
- "title": "string",
- "message": "string"
}
}
Create or update a newsletter text (push notification).
newsletter_id required | integer >= 1 Identifier of the newsletter. |
lang required | string^[a-zA-Z]{2}$ The language of the text. |
Text object.
title required | string [ 1 .. 65 ] characters The title of the push notification. |
message required | string [ 1 .. 240 ] characters The message of the push notification. |
{- "title": "string",
- "message": "string"
}
{- "code": 0
}
Delete a text of a newsletter (push notification).
newsletter_id required | integer >= 1 Identifier of the newsletter. |
lang required | string^[a-zA-Z]{2}$ The language of the text to delete. |
{- "code": 0
}
Get the list of images usable for newsletter templates.
newsletter_id required | integer >= 1 Identifier of the newsletter. |
{- "code": 0,
- "data": [
- {
- "image_id": 1,
- "url": "string"
}
]
}
Upload a new image to be used in newsletters template.
newsletter_id required | integer >= 1 Identifier of the newsletter. |
The image to upload.
image required | string <binary> The image file data. |
{- "code": 0,
- "data": {
- "image_id": 1,
- "url": "string"
}
}
Get the statistics of a published newsletter.
newsletter_id required | integer >= 1 Identifier of the newsletter. |
{- "code": 0,
- "data": {
- "total": 0,
- "sent": 0,
- "delivered": 0,
- "bounce": 0,
- "error": 0,
- "opened": 0
}
}
Returns offers of the specified networks.
networks required | Array of integers[ items >= 1 ] Examples:
Identifier of networks of which to get the offers. |
{- "code": 0,
- "data": [
- {
- "offer_id": 1,
- "title": "Strasbourg2 5€",
- "available": true,
- "network_name": "string",
- "network_id": 1,
- "vat_percentage": 0.1,
- "currency": "string",
- "price": 0.001,
- "given_amount": 0.001,
- "already_used": true
}
]
}
Create a new offer.
Info of the offer to create.
title required | string [ 1 .. 50 ] characters Title of the offer. |
available required | boolean True when the offer is available. |
network_id required | integer >= 1 The identifier of the offer's network. |
price required | number Price of the offer. |
given_amount required | number Amount given in the wallet. |
{- "title": "Strasbourg2 5€",
- "available": true,
- "network_id": 1,
- "price": 0,
- "given_amount": 0
}
{- "code": 0,
- "data": {
- "offer_id": 1
}
}
Update an offer. Only availability can be changed on an offer that was already bought at least one time.
id required | integer >= 1 Identifier of the offer. |
Offer info to update.
title | string [ 1 .. 50 ] characters Title of the offer. |
available | boolean True when the offer is available. |
price | number Price of the offer. |
given_amount | number Amount given in the wallet. |
{- "title": "Strasbourg2 5€",
- "available": true,
- "price": 0,
- "given_amount": 0
}
{- "code": 0
}
Return the list of organizations.
{- "code": 0,
- "data": [
- {
- "organization_id": 1,
- "organization_name": "string",
- "start_date": "2019-08-24T14:15:22Z",
- "address": "string",
- "zipcode": "string",
- "city": "string",
- "country": "string",
- "administrator_email": "user@example.com",
- "administration_id": 0,
- "is_guarantor": true,
- "end_date": "2019-08-24T14:15:22Z"
}
]
}
Create a new organization.
Info about the organization.
third_party_id required | integer >= 1 The identifier of the third party this organization will be linked to. |
name required | string [ 1 .. 255 ] characters The name of the organization. |
administrator_id required | integer >= 1 The identifier of the user who will administer the organization. |
is_guarantor required | boolean Whether or not the organization will pay for stolen vehicles. |
allow_outside_rules required | boolean Whether or not the organization allow trips to start outside of the given rules. |
paid_outside_rules_ratio required | number [ 0 .. 1 ] The ratio of trip cost which is paid by the organization. This only applies to the duration of trips that run outside of the defined rules. |
only_show_matching_clusters required | boolean Whether of not users of the organization will see all clusters or only those that they have the right to use. |
email_pattern | string/^[a-zA-Z0-9@._(){}[\]|*+?%#\\-]+$/ A Postgresql pattern to determine which email are selected to join the organization. |
pays_rule_overrun required | boolean Whether or not the organization pays for the parts of trips that started in a rules but overran its duration and finished outside of one. |
reenrolment_frequency_in_days | number >= 1 The frequency in days at which the users of the organization needs to confirm their emails again. |
description | string A description for this organization. |
{- "third_party_id": 1,
- "name": "string",
- "administrator_id": 1,
- "is_guarantor": true,
- "allow_outside_rules": true,
- "paid_outside_rules_ratio": 1,
- "only_show_matching_clusters": true,
- "email_pattern": "%@knot.city",
- "pays_rule_overrun": true,
- "reenrolment_frequency_in_days": 1,
- "description": "string"
}
{- "code": 0,
- "data": {
- "organization_id": 1,
- "start_date": "string"
}
}
Return the details of an organization.
id required | integer >= 1 The identifier of the organization. |
{- "code": 0,
- "data": {
- "organization_id": 1,
- "organization_name": "string",
- "start_date": "2019-08-24T14:15:22Z",
- "address": "string",
- "zipcode": "string",
- "city": "string",
- "country": "string",
- "administrator_email": "user@example.com",
- "administration_id": 0,
- "is_guarantor": true,
- "end_date": "2019-08-24T14:15:22Z",
- "country_id": 1,
- "email_pattern": "%@knot.city",
- "paid_outside_rules_ratio": 1,
- "allow_outside_rules": true,
- "logo_url": "string",
- "only_show_matching_clusters": true,
- "description": "string",
- "pays_rule_overrun": true,
- "reenrolment_frequency_in_days": 1,
- "enrolment_manual_approbation": true,
- "enrolment_custom_field": "string",
- "pending_enrolment": 0
}
}
Update organization info.
id required | integer >= 1 The identifier of the organization. |
Info about the organization.
name required | string [ 1 .. 255 ] characters The name of the organization. |
description | string A description for this organization. |
only_show_matching_clusters required | boolean Whether of not users of the organization will see all clusters or only those that they have the right to use. |
{- "name": "string",
- "description": "string",
- "only_show_matching_clusters": true
}
{- "code": 0
}
Return the list of rules of an organization.
id required | integer >= 1 The identifier of the organization. |
networks required | Array of integers[ items >= 1 ] Examples:
Identifier of networks of which to get transactions. |
{- "code": 0,
- "data": [
- {
- "org_rule_id": 1,
- "network_id": 1,
- "start_dow": 6,
- "start_hod": "string",
- "end_dow": 6,
- "end_hod": "string",
- "max_vehicles": 0,
- "paid_by_org_ratio": 1,
- "rule_name": "string"
}
]
}
Create a new organization rule.
id required | integer >= 1 The identifier of the organization. |
Info about the organization rule.
network_id required | integer >= 1 The identifier of the network on which the rule applies. |
start_dow required | integer [ 0 .. 6 ] The day of the week at which the rule starts. |
start_hod required | string^((([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d)|24:00:0... The hour of the day at which the rule starts. |
end_dow required | integer [ 0 .. 6 ] The day of the week at which the rule ends. |
end_hod required | string^((([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d)|24:00:0... The hour of the day at which the rule ends. |
max_vehicles | integer >= 1 The maximum number of vehicle the user can rent at the same time. If null or undefined, the default 3 is used. |
paid_by_org_ratio required | number [ 0 .. 1 ] The ratio of the bill that will be paid by the organization for the duration of trips that span the period of the rule. |
rule_name required | string [ 1 .. 128 ] characters The display name of the rule. |
network_name required | string [ 1 .. 128 ] characters The name of the network on which the rule applies. |
{- "network_id": 1,
- "start_dow": 6,
- "start_hod": "string",
- "end_dow": 6,
- "end_hod": "string",
- "max_vehicles": 1,
- "paid_by_org_ratio": 1,
- "rule_name": "string",
- "network_name": "string"
}
{- "code": 0,
- "data": {
- "org_rule_id": 1
}
}
Update organization rule.
id required | integer >= 1 The identifier of the organization. |
rid required | integer >= 1 The identifier of the rule. |
Info about the organization rule.
network_id required | integer >= 1 The identifier of the network on which the rule applies. |
start_dow required | integer [ 0 .. 6 ] The day of the week at which the rule starts. |
start_hod required | string^((([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d)|24:00:0... The hour of the day at which the rule starts. |
end_dow required | integer [ 0 .. 6 ] The day of the week at which the rule ends. |
end_hod required | string^((([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d)|24:00:0... The hour of the day at which the rule ends. |
max_vehicles | integer >= 1 The maximum number of vehicle the user can rent at the same time. If null or undefined, the default 3 is used. |
paid_by_org_ratio required | number [ 0 .. 1 ] The ratio of the bill that will be paid by the organization for the duration of trips that span the period of the rule. |
rule_name required | string [ 1 .. 128 ] characters The display name of the rule. |
network_name required | string [ 1 .. 128 ] characters The name of the network on which the rule applies. |
{- "network_id": 1,
- "start_dow": 6,
- "start_hod": "string",
- "end_dow": 6,
- "end_hod": "string",
- "max_vehicles": 1,
- "paid_by_org_ratio": 1,
- "rule_name": "string",
- "network_name": "string"
}
{- "code": 0
}
Delete an organization rule.
id required | integer >= 1 The identifier of the organization. |
rid required | integer >= 1 The identifier of the rule. |
{- "code": 0
}
Update organization enrolment conditions.
id required | integer >= 1 The identifier of the organization. |
The organization enrolment conditions.
email_pattern required | string/^[a-zA-Z0-9@._(){}[\]|*+?%#\\-]+$/ A Postgresql pattern to determine which email are selected to join the organization. |
reenrolment_frequency_in_days required | number >= 1 The frequency in days at which the users of the organization needs to confirm their emails again. |
manual_approbation required | boolean Enable manual approbation of organization enrolment. |
enable_enrolment_token required | boolean Enable enrolment using link / qr code for users without corporation email. |
enrolment_custom_field required | string or null Custom field in user registration / organization enrolment. The value entered by the user will be reported in the approval list. |
{- "email_pattern": "%@knot.city",
- "reenrolment_frequency_in_days": 1,
- "manual_approbation": true,
- "enable_enrolment_token": true,
- "enrolment_custom_field": "string"
}
{- "code": 0,
}
Update organization administrator. The user should have the organization permission (write) for the organization it will be the administrator.
id required | integer >= 1 The identifier of the organization. |
The organization new administrator.
administrator_id required | integer >= 1 The user identifier of the new administrator. |
{- "administrator_id": 1
}
{- "code": 0
}
Update organization payments conditions & settings.
id required | integer >= 1 The identifier of the organization. |
The organization payments conditions & settings.
is_guarantor required | boolean Whether or not the organization will pay for stolen vehicles. |
allow_outside_rules required | boolean Whether or not the organization allow trips to start outside of the given rules. |
paid_outside_rules_ratio required | number [ 0 .. 1 ] The ratio of trip cost which is paid by the organization. This only applies to the duration of trips that run outside of the defined rules. |
pays_rule_overrun required | boolean Whether or not the organization pays for the parts of trips that started in a rules but overran its duration and finished outside of one. |
{- "is_guarantor": true,
- "allow_outside_rules": true,
- "paid_outside_rules_ratio": 1,
- "pays_rule_overrun": true
}
{- "code": 0
}
Upload & set a new organization logo.
id required | integer >= 1 The identifier of the organization. |
The organization logo.
logo required | string <binary> The new logo for the organization. |
{- "code": 0,
}
Return the list of enrolment requests of an organization.
id required | integer >= 1 The identifier of the organization. |
{- "code": 0,
- "data": [
- {
- "organization_enrolment_request_id": 1,
- "user_id": 1,
- "email": "user@example.com",
- "lastname": "string",
- "firstname": "string",
- "creation_date": "2019-08-24T14:15:22Z",
- "approved_date": "2019-08-24T14:15:22Z",
- "rejected_date": "2019-08-24T14:15:22Z",
- "custom_field_value": "string"
}
]
}
Accept or reject an enrolment request.
id required | integer >= 1 The identifier of the organization. |
enrolment_id required | integer >= 1 The identifier of the enrolment request. |
Reject or accept data.
accept required | boolean Whether the enrolment is accepted or refused. |
reject_reason | string [ 1 .. 500 ] characters Optional reason if rejected. |
revoke_at | string <date> Optional auto revoke user from organization at the specified date. |
{- "accept": true,
- "reject_reason": "string",
- "revoke_at": "2019-08-24"
}
{- "code": 0
}
Get the list of organizational units.
{- "code": 0,
- "data": [
- {
- "ou_id": 1,
- "ou_name": "string",
- "creation_date": "2019-08-24T14:15:22Z",
- "modification_date": "2019-08-24T14:15:22Z",
- "users": 0,
- "networks": [
- {
- "network_id": 1,
- "network_name": "string"
}
], - "organizations": [
- {
- "organization_id": 1,
- "organization_name": "string"
}
], - "app_labels": [
- {
- "app_label_id": 1,
- "label_name": "string",
- "display_name": "string"
}
], - "clusters": [
- {
- "cluster_id": 1,
- "cluster_name": "string"
}
]
}
]
}
Create a new organizational unit.
Organizational unit data.
name required | string [ 3 .. 50 ] characters The name of the organizational unit. |
app_labels required | Array of integers >= 0 items unique [ items >= 1 ] The list of application labels included in this organizational unit. |
organizations required | Array of integers >= 0 items unique [ items >= 1 ] The list of organization included in this organizational unit. |
networks required | Array of integers >= 0 items unique [ items >= 1 ] The list of networks included in this organizational unit. |
clusters required | Array of integers >= 0 items unique [ items >= 1 ] A restricted list of cluster included in this organizational unit. Allow to restrict given permission to only some clusters. |
{- "name": "string",
- "app_labels": [
- 1
], - "organizations": [
- 1
], - "networks": [
- 1
], - "clusters": [
- 1
]
}
{- "code": 0,
- "data": {
- "ou_id": 1
}
}
Update name and/or linked objects of an organizational unit.
Updated organizational unit data.
name required | string [ 3 .. 50 ] characters The name of the organizational unit. |
app_labels required | Array of integers >= 0 items unique [ items >= 1 ] The list of application labels included in this organizational unit. |
organizations required | Array of integers >= 0 items unique [ items >= 1 ] The list of organization included in this organizational unit. |
networks required | Array of integers >= 0 items unique [ items >= 1 ] The list of networks included in this organizational unit. |
clusters required | Array of integers >= 0 items unique [ items >= 1 ] A restricted list of cluster included in this organizational unit. Allow to restrict given permission to only some clusters. |
ou_id required | integer >= 1 The identifier of the organizational unit. |
{- "name": "string",
- "app_labels": [
- 1
], - "organizations": [
- 1
], - "networks": [
- 1
], - "clusters": [
- 1
], - "ou_id": 1
}
{- "code": 0
}
Delete the specified organizational unit if there is no longer user with permissions linked to it.
id required | integer >= 1 The organizational unit's identifier. |
{- "code": 0
}
Get the list of users with their permissions for the given organizational unit.
id required | integer >= 1 The organizational unit's identifier. |
{- "code": 0,
- "data": [
- {
- "user_id": 1,
- "email": "string",
- "permissions": [
- {
- "perm_key": "string",
- "role_key": "string",
- "start_date": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24T14:15:22Z",
- "granted_by": 1,
- "granted_by_email": "string",
- "write": true
}
]
}
]
}
Update an out of order.
id required | integer >= 1 Identifier of the out of order. |
The out of order date.
reason | string or null [ 1 .. 100 ] characters The out of order reason. |
end_date | string or null <date-time> The out of order end date. |
{- "reason": "string",
- "end_date": "2019-08-24T14:15:22Z"
}
{- "code": 0
}
Return stats on the stations of specified networks.
networks required | Array of integers[ items >= 1 ] Examples:
Identifier of networks of which to get trips. |
{- "code": 0,
- "data": {
- "total": 0,
- "available": 0,
- "maintenance": 0,
- "identification_errors": 0,
- "free_spots": 0,
- "total_spots": 0,
- "availability": 1
}
}
Return stats on the vehicles of specified networks.
networks required | Array of integers[ items >= 1 ] Examples:
Identifier of networks of which to get trips. |
{- "code": 0,
- "data": {
- "total": 0,
- "available": 0,
- "unavailable": 0,
- "rented": 0,
- "parked": 0,
- "has_maintenance": 0
}
}
Return stats on the trips of specified networks.
networks required | Array of integers[ items >= 1 ] Examples:
Identifier of networks of which to get trips. |
timezone required | string (Timezone) Enum: "Africa/Abidjan" "Africa/Accra" "Africa/Addis_Ababa" "Africa/Algiers" "Africa/Asmara" "Africa/Bamako" "Africa/Bangui" "Africa/Banjul" "Africa/Bissau" "Africa/Blantyre" "Africa/Brazzaville" "Africa/Bujumbura" "Africa/Cairo" "Africa/Casablanca" "Africa/Ceuta" "Africa/Conakry" "Africa/Dakar" "Africa/Dar_es_Salaam" "Africa/Djibouti" "Africa/Douala" "Africa/El_Aaiun" "Africa/Freetown" "Africa/Gaborone" "Africa/Harare" "Africa/Johannesburg" "Africa/Juba" "Africa/Kampala" "Africa/Khartoum" "Africa/Kigali" "Africa/Kinshasa" "Africa/Lagos" "Africa/Libreville" "Africa/Lome" "Africa/Luanda" "Africa/Lubumbashi" "Africa/Lusaka" "Africa/Malabo" "Africa/Maputo" "Africa/Maseru" "Africa/Mbabane" "Africa/Mogadishu" "Africa/Monrovia" "Africa/Nairobi" "Africa/Ndjamena" "Africa/Niamey" "Africa/Nouakchott" "Africa/Ouagadougou" "Africa/Porto-Novo" "Africa/Sao_Tome" "Africa/Tripoli" "Africa/Tunis" "Africa/Windhoek" "America/Adak" "America/Anchorage" "America/Anguilla" "America/Antigua" "America/Araguaina" "America/Argentina/Buenos_Aires" "America/Argentina/Catamarca" "America/Argentina/Cordoba" "America/Argentina/Jujuy" "America/Argentina/La_Rioja" "America/Argentina/Mendoza" "America/Argentina/Rio_Gallegos" "America/Argentina/Salta" "America/Argentina/San_Juan" "America/Argentina/San_Luis" "America/Argentina/Tucuman" "America/Argentina/Ushuaia" "America/Aruba" "America/Asuncion" "America/Atikokan" "America/Bahia" "America/Bahia_Banderas" "America/Barbados" "America/Belem" "America/Belize" "America/Blanc-Sablon" "America/Boa_Vista" "America/Bogota" "America/Boise" "America/Cambridge_Bay" "America/Campo_Grande" "America/Cancun" "America/Caracas" "America/Cayenne" "America/Cayman" "America/Chicago" "America/Chihuahua" "America/Costa_Rica" "America/Creston" "America/Cuiaba" "America/Curacao" "America/Danmarkshavn" "America/Dawson" "America/Dawson_Creek" "America/Denver" "America/Detroit" "America/Dominica" "America/Edmonton" "America/Eirunepe" "America/El_Salvador" "America/Fort_Nelson" "America/Fortaleza" "America/Glace_Bay" "America/Goose_Bay" "America/Grand_Turk" "America/Grenada" "America/Guadeloupe" "America/Guatemala" "America/Guayaquil" "America/Guyana" "America/Halifax" "America/Havana" "America/Hermosillo" "America/Indiana/Indianapolis" "America/Indiana/Knox" "America/Indiana/Marengo" "America/Indiana/Petersburg" "America/Indiana/Tell_City" "America/Indiana/Vevay" "America/Indiana/Vincennes" "America/Indiana/Winamac" "America/Inuvik" "America/Iqaluit" "America/Jamaica" "America/Juneau" "America/Kentucky/Louisville" "America/Kentucky/Monticello" "America/Kralendijk" "America/La_Paz" "America/Lima" "America/Los_Angeles" "America/Lower_Princes" "America/Maceio" "America/Managua" "America/Manaus" "America/Marigot" "America/Martinique" "America/Matamoros" "America/Mazatlan" "America/Menominee" "America/Merida" "America/Metlakatla" "America/Mexico_City" "America/Miquelon" "America/Moncton" "America/Monterrey" "America/Montevideo" "America/Montserrat" "America/Nassau" "America/New_York" "America/Nipigon" "America/Nome" "America/Noronha" "America/North_Dakota/Beulah" "America/North_Dakota/Center" "America/North_Dakota/New_Salem" "America/Nuuk" "America/Ojinaga" "America/Panama" "America/Pangnirtung" "America/Paramaribo" "America/Phoenix" "America/Port-au-Prince" "America/Port_of_Spain" "America/Porto_Velho" "America/Puerto_Rico" "America/Punta_Arenas" "America/Rainy_River" "America/Rankin_Inlet" "America/Recife" "America/Regina" "America/Resolute" "America/Rio_Branco" "America/Santarem" "America/Santiago" "America/Santo_Domingo" "America/Sao_Paulo" "America/Scoresbysund" "America/Sitka" "America/St_Barthelemy" "America/St_Johns" "America/St_Kitts" "America/St_Lucia" "America/St_Thomas" "America/St_Vincent" "America/Swift_Current" "America/Tegucigalpa" "America/Thule" "America/Thunder_Bay" "America/Tijuana" "America/Toronto" "America/Tortola" "America/Vancouver" "America/Whitehorse" "America/Winnipeg" "America/Yakutat" "America/Yellowknife" "Antarctica/Casey" "Antarctica/Davis" "Antarctica/DumontDUrville" "Antarctica/Macquarie" "Antarctica/Mawson" "Antarctica/McMurdo" "Antarctica/Palmer" "Antarctica/Rothera" "Antarctica/Syowa" "Antarctica/Troll" "Antarctica/Vostok" "Arctic/Longyearbyen" "Asia/Aden" "Asia/Almaty" "Asia/Amman" "Asia/Anadyr" "Asia/Aqtau" "Asia/Aqtobe" "Asia/Ashgabat" "Asia/Atyrau" "Asia/Baghdad" "Asia/Bahrain" "Asia/Baku" "Asia/Bangkok" "Asia/Barnaul" "Asia/Beirut" "Asia/Bishkek" "Asia/Brunei" "Asia/Chita" "Asia/Choibalsan" "Asia/Colombo" "Asia/Damascus" "Asia/Dhaka" "Asia/Dili" "Asia/Dubai" "Asia/Dushanbe" "Asia/Famagusta" "Asia/Gaza" "Asia/Hebron" "Asia/Ho_Chi_Minh" "Asia/Hong_Kong" "Asia/Hovd" "Asia/Irkutsk" "Asia/Jakarta" "Asia/Jayapura" "Asia/Jerusalem" "Asia/Kabul" "Asia/Kamchatka" "Asia/Karachi" "Asia/Kathmandu" "Asia/Khandyga" "Asia/Kolkata" "Asia/Krasnoyarsk" "Asia/Kuala_Lumpur" "Asia/Kuching" "Asia/Kuwait" "Asia/Macau" "Asia/Magadan" "Asia/Makassar" "Asia/Manila" "Asia/Muscat" "Asia/Nicosia" "Asia/Novokuznetsk" "Asia/Novosibirsk" "Asia/Omsk" "Asia/Oral" "Asia/Phnom_Penh" "Asia/Pontianak" "Asia/Pyongyang" "Asia/Qatar" "Asia/Qostanay" "Asia/Qyzylorda" "Asia/Riyadh" "Asia/Sakhalin" "Asia/Samarkand" "Asia/Seoul" "Asia/Shanghai" "Asia/Singapore" "Asia/Srednekolymsk" "Asia/Taipei" "Asia/Tashkent" "Asia/Tbilisi" "Asia/Tehran" "Asia/Thimphu" "Asia/Tokyo" "Asia/Tomsk" "Asia/Ulaanbaatar" "Asia/Urumqi" "Asia/Ust-Nera" "Asia/Vientiane" "Asia/Vladivostok" "Asia/Yakutsk" "Asia/Yangon" "Asia/Yekaterinburg" "Asia/Yerevan" "Atlantic/Azores" "Atlantic/Bermuda" "Atlantic/Canary" "Atlantic/Cape_Verde" "Atlantic/Faroe" "Atlantic/Madeira" "Atlantic/Reykjavik" "Atlantic/South_Georgia" "Atlantic/St_Helena" "Atlantic/Stanley" "Australia/Adelaide" "Australia/Brisbane" "Australia/Broken_Hill" "Australia/Darwin" "Australia/Eucla" "Australia/Hobart" "Australia/Lindeman" "Australia/Lord_Howe" "Australia/Melbourne" "Australia/Perth" "Australia/Sydney" "Europe/Amsterdam" "Europe/Andorra" "Europe/Astrakhan" "Europe/Athens" "Europe/Belgrade" "Europe/Berlin" "Europe/Bratislava" "Europe/Brussels" "Europe/Bucharest" "Europe/Budapest" "Europe/Busingen" "Europe/Chisinau" "Europe/Copenhagen" "Europe/Dublin" "Europe/Gibraltar" "Europe/Guernsey" "Europe/Helsinki" "Europe/Isle_of_Man" "Europe/Istanbul" "Europe/Jersey" "Europe/Kaliningrad" "Europe/Kiev" "Europe/Kirov" "Europe/Lisbon" "Europe/Ljubljana" "Europe/London" "Europe/Luxembourg" "Europe/Madrid" "Europe/Malta" "Europe/Mariehamn" "Europe/Minsk" "Europe/Monaco" "Europe/Moscow" "Europe/Oslo" "Europe/Paris" "Europe/Podgorica" "Europe/Prague" "Europe/Riga" "Europe/Rome" "Europe/Samara" "Europe/San_Marino" "Europe/Sarajevo" "Europe/Saratov" "Europe/Simferopol" "Europe/Skopje" "Europe/Sofia" "Europe/Stockholm" "Europe/Tallinn" "Europe/Tirane" "Europe/Ulyanovsk" "Europe/Uzhgorod" "Europe/Vaduz" "Europe/Vatican" "Europe/Vienna" "Europe/Vilnius" "Europe/Volgograd" "Europe/Warsaw" "Europe/Zagreb" "Europe/Zaporozhye" "Europe/Zurich" "Indian/Antananarivo" "Indian/Chagos" "Indian/Christmas" "Indian/Cocos" "Indian/Comoro" "Indian/Kerguelen" "Indian/Mahe" "Indian/Maldives" "Indian/Mauritius" "Indian/Mayotte" "Indian/Reunion" "Pacific/Apia" "Pacific/Auckland" "Pacific/Bougainville" "Pacific/Chatham" "Pacific/Chuuk" "Pacific/Easter" "Pacific/Efate" "Pacific/Enderbury" "Pacific/Fakaofo" "Pacific/Fiji" "Pacific/Funafuti" "Pacific/Galapagos" "Pacific/Gambier" "Pacific/Guadalcanal" "Pacific/Guam" "Pacific/Honolulu" "Pacific/Kiritimati" "Pacific/Kosrae" "Pacific/Kwajalein" "Pacific/Majuro" "Pacific/Marquesas" "Pacific/Midway" "Pacific/Nauru" "Pacific/Niue" "Pacific/Norfolk" "Pacific/Noumea" "Pacific/Pago_Pago" "Pacific/Palau" "Pacific/Pitcairn" "Pacific/Pohnpei" "Pacific/Port_Moresby" "Pacific/Rarotonga" "Pacific/Saipan" "Pacific/Tahiti" "Pacific/Tarawa" "Pacific/Tongatapu" "Pacific/Wake" "Pacific/Wallis" "UTC" The timezone of the user making the request. |
{- "code": 0,
- "data": {
- "today_ongoing": 0,
- "today_total": 0,
- "today_paid": 0,
- "today_free": 0,
- "today_demo": 0,
- "ongoing_long": 0
}
}
Return stats on the users of specified networks.
networks required | Array of integers[ items >= 1 ] Examples:
Identifier of networks of which to get users. |
timezone required | string (Timezone) Enum: "Africa/Abidjan" "Africa/Accra" "Africa/Addis_Ababa" "Africa/Algiers" "Africa/Asmara" "Africa/Bamako" "Africa/Bangui" "Africa/Banjul" "Africa/Bissau" "Africa/Blantyre" "Africa/Brazzaville" "Africa/Bujumbura" "Africa/Cairo" "Africa/Casablanca" "Africa/Ceuta" "Africa/Conakry" "Africa/Dakar" "Africa/Dar_es_Salaam" "Africa/Djibouti" "Africa/Douala" "Africa/El_Aaiun" "Africa/Freetown" "Africa/Gaborone" "Africa/Harare" "Africa/Johannesburg" "Africa/Juba" "Africa/Kampala" "Africa/Khartoum" "Africa/Kigali" "Africa/Kinshasa" "Africa/Lagos" "Africa/Libreville" "Africa/Lome" "Africa/Luanda" "Africa/Lubumbashi" "Africa/Lusaka" "Africa/Malabo" "Africa/Maputo" "Africa/Maseru" "Africa/Mbabane" "Africa/Mogadishu" "Africa/Monrovia" "Africa/Nairobi" "Africa/Ndjamena" "Africa/Niamey" "Africa/Nouakchott" "Africa/Ouagadougou" "Africa/Porto-Novo" "Africa/Sao_Tome" "Africa/Tripoli" "Africa/Tunis" "Africa/Windhoek" "America/Adak" "America/Anchorage" "America/Anguilla" "America/Antigua" "America/Araguaina" "America/Argentina/Buenos_Aires" "America/Argentina/Catamarca" "America/Argentina/Cordoba" "America/Argentina/Jujuy" "America/Argentina/La_Rioja" "America/Argentina/Mendoza" "America/Argentina/Rio_Gallegos" "America/Argentina/Salta" "America/Argentina/San_Juan" "America/Argentina/San_Luis" "America/Argentina/Tucuman" "America/Argentina/Ushuaia" "America/Aruba" "America/Asuncion" "America/Atikokan" "America/Bahia" "America/Bahia_Banderas" "America/Barbados" "America/Belem" "America/Belize" "America/Blanc-Sablon" "America/Boa_Vista" "America/Bogota" "America/Boise" "America/Cambridge_Bay" "America/Campo_Grande" "America/Cancun" "America/Caracas" "America/Cayenne" "America/Cayman" "America/Chicago" "America/Chihuahua" "America/Costa_Rica" "America/Creston" "America/Cuiaba" "America/Curacao" "America/Danmarkshavn" "America/Dawson" "America/Dawson_Creek" "America/Denver" "America/Detroit" "America/Dominica" "America/Edmonton" "America/Eirunepe" "America/El_Salvador" "America/Fort_Nelson" "America/Fortaleza" "America/Glace_Bay" "America/Goose_Bay" "America/Grand_Turk" "America/Grenada" "America/Guadeloupe" "America/Guatemala" "America/Guayaquil" "America/Guyana" "America/Halifax" "America/Havana" "America/Hermosillo" "America/Indiana/Indianapolis" "America/Indiana/Knox" "America/Indiana/Marengo" "America/Indiana/Petersburg" "America/Indiana/Tell_City" "America/Indiana/Vevay" "America/Indiana/Vincennes" "America/Indiana/Winamac" "America/Inuvik" "America/Iqaluit" "America/Jamaica" "America/Juneau" "America/Kentucky/Louisville" "America/Kentucky/Monticello" "America/Kralendijk" "America/La_Paz" "America/Lima" "America/Los_Angeles" "America/Lower_Princes" "America/Maceio" "America/Managua" "America/Manaus" "America/Marigot" "America/Martinique" "America/Matamoros" "America/Mazatlan" "America/Menominee" "America/Merida" "America/Metlakatla" "America/Mexico_City" "America/Miquelon" "America/Moncton" "America/Monterrey" "America/Montevideo" "America/Montserrat" "America/Nassau" "America/New_York" "America/Nipigon" "America/Nome" "America/Noronha" "America/North_Dakota/Beulah" "America/North_Dakota/Center" "America/North_Dakota/New_Salem" "America/Nuuk" "America/Ojinaga" "America/Panama" "America/Pangnirtung" "America/Paramaribo" "America/Phoenix" "America/Port-au-Prince" "America/Port_of_Spain" "America/Porto_Velho" "America/Puerto_Rico" "America/Punta_Arenas" "America/Rainy_River" "America/Rankin_Inlet" "America/Recife" "America/Regina" "America/Resolute" "America/Rio_Branco" "America/Santarem" "America/Santiago" "America/Santo_Domingo" "America/Sao_Paulo" "America/Scoresbysund" "America/Sitka" "America/St_Barthelemy" "America/St_Johns" "America/St_Kitts" "America/St_Lucia" "America/St_Thomas" "America/St_Vincent" "America/Swift_Current" "America/Tegucigalpa" "America/Thule" "America/Thunder_Bay" "America/Tijuana" "America/Toronto" "America/Tortola" "America/Vancouver" "America/Whitehorse" "America/Winnipeg" "America/Yakutat" "America/Yellowknife" "Antarctica/Casey" "Antarctica/Davis" "Antarctica/DumontDUrville" "Antarctica/Macquarie" "Antarctica/Mawson" "Antarctica/McMurdo" "Antarctica/Palmer" "Antarctica/Rothera" "Antarctica/Syowa" "Antarctica/Troll" "Antarctica/Vostok" "Arctic/Longyearbyen" "Asia/Aden" "Asia/Almaty" "Asia/Amman" "Asia/Anadyr" "Asia/Aqtau" "Asia/Aqtobe" "Asia/Ashgabat" "Asia/Atyrau" "Asia/Baghdad" "Asia/Bahrain" "Asia/Baku" "Asia/Bangkok" "Asia/Barnaul" "Asia/Beirut" "Asia/Bishkek" "Asia/Brunei" "Asia/Chita" "Asia/Choibalsan" "Asia/Colombo" "Asia/Damascus" "Asia/Dhaka" "Asia/Dili" "Asia/Dubai" "Asia/Dushanbe" "Asia/Famagusta" "Asia/Gaza" "Asia/Hebron" "Asia/Ho_Chi_Minh" "Asia/Hong_Kong" "Asia/Hovd" "Asia/Irkutsk" "Asia/Jakarta" "Asia/Jayapura" "Asia/Jerusalem" "Asia/Kabul" "Asia/Kamchatka" "Asia/Karachi" "Asia/Kathmandu" "Asia/Khandyga" "Asia/Kolkata" "Asia/Krasnoyarsk" "Asia/Kuala_Lumpur" "Asia/Kuching" "Asia/Kuwait" "Asia/Macau" "Asia/Magadan" "Asia/Makassar" "Asia/Manila" "Asia/Muscat" "Asia/Nicosia" "Asia/Novokuznetsk" "Asia/Novosibirsk" "Asia/Omsk" "Asia/Oral" "Asia/Phnom_Penh" "Asia/Pontianak" "Asia/Pyongyang" "Asia/Qatar" "Asia/Qostanay" "Asia/Qyzylorda" "Asia/Riyadh" "Asia/Sakhalin" "Asia/Samarkand" "Asia/Seoul" "Asia/Shanghai" "Asia/Singapore" "Asia/Srednekolymsk" "Asia/Taipei" "Asia/Tashkent" "Asia/Tbilisi" "Asia/Tehran" "Asia/Thimphu" "Asia/Tokyo" "Asia/Tomsk" "Asia/Ulaanbaatar" "Asia/Urumqi" "Asia/Ust-Nera" "Asia/Vientiane" "Asia/Vladivostok" "Asia/Yakutsk" "Asia/Yangon" "Asia/Yekaterinburg" "Asia/Yerevan" "Atlantic/Azores" "Atlantic/Bermuda" "Atlantic/Canary" "Atlantic/Cape_Verde" "Atlantic/Faroe" "Atlantic/Madeira" "Atlantic/Reykjavik" "Atlantic/South_Georgia" "Atlantic/St_Helena" "Atlantic/Stanley" "Australia/Adelaide" "Australia/Brisbane" "Australia/Broken_Hill" "Australia/Darwin" "Australia/Eucla" "Australia/Hobart" "Australia/Lindeman" "Australia/Lord_Howe" "Australia/Melbourne" "Australia/Perth" "Australia/Sydney" "Europe/Amsterdam" "Europe/Andorra" "Europe/Astrakhan" "Europe/Athens" "Europe/Belgrade" "Europe/Berlin" "Europe/Bratislava" "Europe/Brussels" "Europe/Bucharest" "Europe/Budapest" "Europe/Busingen" "Europe/Chisinau" "Europe/Copenhagen" "Europe/Dublin" "Europe/Gibraltar" "Europe/Guernsey" "Europe/Helsinki" "Europe/Isle_of_Man" "Europe/Istanbul" "Europe/Jersey" "Europe/Kaliningrad" "Europe/Kiev" "Europe/Kirov" "Europe/Lisbon" "Europe/Ljubljana" "Europe/London" "Europe/Luxembourg" "Europe/Madrid" "Europe/Malta" "Europe/Mariehamn" "Europe/Minsk" "Europe/Monaco" "Europe/Moscow" "Europe/Oslo" "Europe/Paris" "Europe/Podgorica" "Europe/Prague" "Europe/Riga" "Europe/Rome" "Europe/Samara" "Europe/San_Marino" "Europe/Sarajevo" "Europe/Saratov" "Europe/Simferopol" "Europe/Skopje" "Europe/Sofia" "Europe/Stockholm" "Europe/Tallinn" "Europe/Tirane" "Europe/Ulyanovsk" "Europe/Uzhgorod" "Europe/Vaduz" "Europe/Vatican" "Europe/Vienna" "Europe/Vilnius" "Europe/Volgograd" "Europe/Warsaw" "Europe/Zagreb" "Europe/Zaporozhye" "Europe/Zurich" "Indian/Antananarivo" "Indian/Chagos" "Indian/Christmas" "Indian/Cocos" "Indian/Comoro" "Indian/Kerguelen" "Indian/Mahe" "Indian/Maldives" "Indian/Mauritius" "Indian/Mayotte" "Indian/Reunion" "Pacific/Apia" "Pacific/Auckland" "Pacific/Bougainville" "Pacific/Chatham" "Pacific/Chuuk" "Pacific/Easter" "Pacific/Efate" "Pacific/Enderbury" "Pacific/Fakaofo" "Pacific/Fiji" "Pacific/Funafuti" "Pacific/Galapagos" "Pacific/Gambier" "Pacific/Guadalcanal" "Pacific/Guam" "Pacific/Honolulu" "Pacific/Kiritimati" "Pacific/Kosrae" "Pacific/Kwajalein" "Pacific/Majuro" "Pacific/Marquesas" "Pacific/Midway" "Pacific/Nauru" "Pacific/Niue" "Pacific/Norfolk" "Pacific/Noumea" "Pacific/Pago_Pago" "Pacific/Palau" "Pacific/Pitcairn" "Pacific/Pohnpei" "Pacific/Port_Moresby" "Pacific/Rarotonga" "Pacific/Saipan" "Pacific/Tahiti" "Pacific/Tarawa" "Pacific/Tongatapu" "Pacific/Wake" "Pacific/Wallis" "UTC" The timezone of the user making the request. |
{- "code": 0,
- "data": {
- "total": 0,
- "active": 0,
- "today_registration": 0,
- "with_subscription": 0,
- "with_organization": 0,
- "with_debt": 0
}
}
Return info of the stations of specified networks to display on the map.
networks required | Array of integers[ items >= 1 ] Examples:
Identifier of networks of which to get users. |
{- "code": 0,
- "data": {
- "network_id": 1,
- "shape": [
- [
- 10,
- 45
], - [
- -2.8,
- 4
], - [
- 67,
- -45.8
]
], - "name": "string",
- "clusters": [
- {
- "cluster_id": 1,
- "name": "string",
- "latitude": -90,
- "longitude": -180,
- "available_vehicles": 0,
- "total_spots": 0,
- "cluster_is_down": true,
- "maintenances": {
- "info": 0,
- "low": 0,
- "high": 0
}
}
]
}
}
Return the list of all Passes of the specified network.
networks required | Array of integers[ items >= 1 ] Examples:
Identifier of networks of which to get the offers. |
{- "code": 0,
- "data": [
- {
- "available": true,
- "title": "string",
- "network_id": 1,
- "price": 0.001,
- "duration": 0,
- "validity": "day",
- "pass_id": 1,
- "currency": "string",
- "network_name": "string",
- "already_used": true
}
]
}
Add new Pass on the specified network.
Parameters of the new Pass.
available required | boolean If the Pass is available. |
title required | string [ 1 .. 50 ] characters The title of the Pass. |
network_id required | integer >= 1 Network identifier on which the Pass applies. |
price required | number <double> >= 0.001 The Pass's price, subtract from user wallet. |
duration required | integer >= 0 The duration of the Pass, in seconds. |
validity required | string or null Enum: "day" "week" "month" "unlimited" The pass's validity. |
{- "available": true,
- "title": "string",
- "network_id": 1,
- "price": 0.001,
- "duration": 0,
- "validity": "day"
}
{- "code": 0,
- "data": {
- "pass_id": 1
}
}
Update an Pass. Only the availability can be changed on a Pass that was already bought at least one time.
id required | integer >= 1 The Pass's identifier. |
Pass identifier and new value parameters.
available required | boolean If the Pass is available. |
title | string [ 1 .. 50 ] characters The title of the Pass. |
price | number >= 0 The Pass's price, subtract from user wallet. |
duration | integer >= 0 The duration of the Pass, in seconds. |
validity | string or null Enum: "day" "week" "month" "unlimited" The pass's validity. |
{- "available": true,
- "title": "string",
- "price": 0,
- "duration": 0,
- "validity": "day"
}
{- "code": 0
}
Get the payment methods with the same fingerprint as the given one.
fingerprint required | string The fingerprint to look for. |
{- "code": 0,
- "data": [
- {
- "user_payment_method_id": 1,
- "valid": true,
- "provider_method_id": "string",
- "creation_date": "string",
- "deletion_date": "string",
- "details": { },
- "type": "string",
- "provider": "string",
- "user_id": 1,
- "email": "user@example.com"
}
]
}
Get the list of available permissions.
lang required | string = 2 characters The lang in which to get the permission localized. |
{- "code": 0,
- "data": [
- {
- "perm_key": "networks.manage",
- "is_read": true,
- "is_write": true,
- "is_global": true,
- "name": "string",
- "description": "string"
}
]
}
Return pricing (price by minute of rent, price to unlock and to free float lock) of the specified network.
networks required | Array of integers[ items >= 1 ] Examples:
Identifier of networks of which to get the pricing. |
{- "code": 0,
- "data": [
- {
- "start_dow": 6,
- "start_hod": "string",
- "end_dow": 6,
- "end_hod": "string",
- "unlock_price": 0.1,
- "unlock_included_time": 0,
- "freefloat_lock_price": 0.1,
- "use_per_minute_price": 0.1,
- "on_hold_price": 0.1,
- "currency": "string",
- "network_pricing_id": 1
}
]
}
Add a pricing rule for the specified network.
Pricing parameters.
start_dow required | integer [ 0 .. 6 ] The start day of week. 0 is Sunday. |
start_hod required | string^((([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d)|24:00:0... The time when the rule start (Network local time). |
end_dow required | integer [ 0 .. 6 ] The end day of week. 0 is Sunday. |
end_hod required | string^((([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d)|24:00:0... The time when the rule end (Network local time). |
unlock_price required | number <float> >= 0 The price to unlock a vehicle on the network. |
unlock_included_time required | number >= 0 Use time in second included in the unlock price. Once this time has elapsed, the use price per minute applies. |
freefloat_lock_price required | number <float> >= 0 The price to lock a vehicle in freefloat mode on the network. |
use_per_minute_price required | number <float> >= 0 The price by minute to rent a vehicle on the network. |
on_hold_price required | number <float> >= 0 The price by minute to keep a vehicle on-hold (rented but locked). Usually lower than use_per_minute_price. |
network_id required | integer >= 1 Network identifier on which this price applies. |
{- "start_dow": 6,
- "start_hod": "string",
- "end_dow": 6,
- "end_hod": "string",
- "unlock_price": 0.1,
- "unlock_included_time": 0,
- "freefloat_lock_price": 0.1,
- "use_per_minute_price": 0.1,
- "on_hold_price": 0.1,
- "network_id": 1
}
{- "code": 0,
- "data": {
- "network_pricing_id": 1
}
}
Update the specified pricing rule.
id required | integer >= 1 The pricing's identifier. |
Pricing parameters.
start_dow required | integer [ 0 .. 6 ] The start day of week. 0 is Sunday. |
start_hod required | string^((([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d)|24:00:0... The time when the rule start (Network local time). |
end_dow required | integer [ 0 .. 6 ] The end day of week. 0 is Sunday. |
end_hod required | string^((([0-1]?\d|2[0-3]):[0-5]\d:[0-5]\d)|24:00:0... The time when the rule end (Network local time). |
unlock_price required | number <float> >= 0 The price to unlock a vehicle on the network. |
unlock_included_time required | number >= 0 Use time in second included in the unlock price. Once this time has elapsed, the use price per minute applies. |
freefloat_lock_price required | number <float> >= 0 The price to lock a vehicle in freefloat mode on the network. |
use_per_minute_price required | number <float> >= 0 The price by minute to rent a vehicle on the network. |
on_hold_price required | number <float> >= 0 The price by minute to keep a vehicle on-hold (rented but locked). Usually lower than use_per_minute_price. |
network_id required | integer >= 1 Network identifier on which this price applies. |
{- "start_dow": 6,
- "start_hod": "string",
- "end_dow": 6,
- "end_hod": "string",
- "unlock_price": 0.1,
- "unlock_included_time": 0,
- "freefloat_lock_price": 0.1,
- "use_per_minute_price": 0.1,
- "on_hold_price": 0.1,
- "network_id": 1
}
{- "code": 0
}
Return reports of specified networks.
networks required | Array of integers[ items >= 1 ] Examples:
Identifier of networks of which to get users. |
primary_key_dir | string Default: "DESC" Enum: "ASC" "DESC" Sort direction of the user identifier. |
page_size | integer [ 10 .. 500 ] Default: 20 The maximum items to return. |
last_primary_key | integer >= 1 Identifier of the last user on the current page, used to request the next page. |
sort_by | string Value: "date" Custom sort key. |
string >= 1 Filter by email. | |
archived | boolean Filter by current reports (false) or archived reports (true) |
{- "code": 0,
- "data": [
- {
- "report_id": 1,
- "type": "vehicle-damaged",
- "date": "2019-08-24T14:15:22Z",
- "answered": true,
- "unread": 0,
- "email": "user@example.com"
}
], - "total": 0
}
Return details of a report.
id required | integer >= 1 Identifier of the report. |
{- "code": 0,
- "data": {
- "type": "vehicle-damaged",
- "user_id": 1,
- "language": "string",
- "message": "string",
- "date": "2019-08-24T14:15:22Z",
- "resolved_at": "2019-08-24T14:15:22Z",
- "cluster_id": 1,
- "cluster_name": "string",
- "cluster_latitude": 48.5900027,
- "cluster_longitude": 7.4300011,
- "vehicle_id": 1,
- "vehicle_serial_number": "string",
- "vehicle_latitude": 47.6780027,
- "vehicle_longitude": 6.48743011,
- "user_latitude": 47.6780027,
- "user_longitude": 6.48743011,
- "spots": [
- {
- "spot_displayed_number": 1,
- "spot_id": 1
}
], - "networks": [
- {
- "network_id": 1,
- "name": "string"
}
]
}
}
Send a chat message to the specified report's chat.
id required | integer >= 1 Identifier of the report to which send the message. |
Chat message parameter.
message required | string [ 1 .. 2000 ] characters The network to link to the report. |
page | string [ 1 .. 256 ] characters The name of app page or the url linked to this message (the app will show a button if present). |
{- "message": "string",
- "page": "string"
}
{- "code": 0,
- "data": {
- "message_id": "string",
- "message": "string",
- "date": "2019-08-24T14:15:22Z",
- "firstname": "string",
- "email": "user@example.com",
- "attachment": "string",
- "reply": true,
- "modified_date": "2019-08-24T14:15:22Z",
- "read": true
}
}
Update the specified chat message.
id required | integer >= 1 Identifier of the report in which the message is. |
message_id required | string <bigint> Identifier of the message to edit. |
Chat message parameter.
message required | string [ 1 .. 2000 ] characters The network to link to the report. |
{- "message": "string"
}
{- "code": 0
}
Delete the specified chat message.
id required | integer >= 1 Identifier of the report in which the message is. |
message_id required | string <bigint> Identifier of the message to edit. |
{- "code": 0
}
Return paginated messages of the specified report's chat ordered by newest.
id required | integer >= 1 Identifier of the report of which to get messages. |
last_message_date | string <date-time> Offset to apply on the query to retrieve older message. |
{- "code": 0,
- "data": [
- {
- "message_id": "string",
- "message": "string",
- "date": "2019-08-24T14:15:22Z",
- "firstname": "string",
- "email": "user@example.com",
- "attachment": "string",
- "reply": true,
- "modified_date": "2019-08-24T14:15:22Z",
- "read": true
}
]
}
Send an image to the specified report's chat.
id required | integer >= 1 Identifier of the report to which send the message. |
The picture to upload.
chat_image required | string <binary> The picture file data. |
{- "code": 0,
- "data": {
- "message_id": "string",
- "message": "string",
- "date": "2019-08-24T14:15:22Z",
- "firstname": "string",
- "email": "user@example.com",
- "attachment": "string",
- "reply": true,
- "modified_date": "2019-08-24T14:15:22Z",
- "read": true
}
}
Link the specified network to the report.
id required | integer >= 1 Identifier of the report. |
Network parameter.
network_id required | integer >= 1 The network to link to the report. |
{- "network_id": 1
}
{- "code": 0
}
Unlink the specified network from the report.
id required | integer >= 1 Identifier of the report. |
network_id required | integer >= 1 Identifier of the network to unlink. |
{- "code": 0
}
Get the list of available roles.
lang required | string = 2 characters The lang in which to get the permission localized. |
{- "code": 0,
- "data": [
- {
- "role_key": "string",
- "role_name": "string",
- "creation_date": "2019-08-24T14:15:22Z",
- "modification_date": "2019-08-24T14:15:22Z",
- "users": 1,
- "perm_keys": [
- "networks.manage"
]
}
]
}
Create a new permission role.
Role key and its permissions.
key required | string [ 3 .. 50 ] characters The key of the new role. |
perms required | Array of strings (Permission) unique Items Enum: "networks.manage" "vehicles.register" "maintenances" "unlock.admin" "networks.show.private" "dashboard.access" "users.list" "demonstration" "stations" "stations.advanced" "users.permissions" "users.block" "users.credits" "transactions" "developer" "emails.newsletters" "emails.transactional" "emails.templates" "users.support" "trips" "stocks.vehicles" "stocks.manage" "vehicles.manage" "notifications" "offers" "long.term.rentals" "vehicles.alerts" "terms.of.use" "organizations" "users.badges" "virtual.parking" "app.debug" "roles" "feature.beta" "faq" "app.label" The list of permissions to add to the role. |
{- "key": "string",
- "perms": [
- "networks.manage"
]
}
{- "code": 0
}
Update the permissions associated to a role.
Role key and permissions to change.
key required | string [ 3 .. 50 ] characters The key of the role to update. |
perms_to_add required | Array of strings (Permission) unique Items Enum: "networks.manage" "vehicles.register" "maintenances" "unlock.admin" "networks.show.private" "dashboard.access" "users.list" "demonstration" "stations" "stations.advanced" "users.permissions" "users.block" "users.credits" "transactions" "developer" "emails.newsletters" "emails.transactional" "emails.templates" "users.support" "trips" "stocks.vehicles" "stocks.manage" "vehicles.manage" "notifications" "offers" "long.term.rentals" "vehicles.alerts" "terms.of.use" "organizations" "users.badges" "virtual.parking" "app.debug" "roles" "feature.beta" "faq" "app.label" The list of permissions to add to the role. |
perms_to_remove required | Array of strings (Permission) unique Items Enum: "networks.manage" "vehicles.register" "maintenances" "unlock.admin" "networks.show.private" "dashboard.access" "users.list" "demonstration" "stations" "stations.advanced" "users.permissions" "users.block" "users.credits" "transactions" "developer" "emails.newsletters" "emails.transactional" "emails.templates" "users.support" "trips" "stocks.vehicles" "stocks.manage" "vehicles.manage" "notifications" "offers" "long.term.rentals" "vehicles.alerts" "terms.of.use" "organizations" "users.badges" "virtual.parking" "app.debug" "roles" "feature.beta" "faq" "app.label" The list of permissions to remove from the role. |
{- "key": "string",
- "perms_to_add": [
- "networks.manage"
], - "perms_to_remove": [
- "networks.manage"
]
}
{- "code": 0
}
Get the border of the specified network and the setting of the border
network_id required | integer >= 1 Identifier of the network. |
{- "code": 0,
- "data": {
- "trigger_alert": true,
- "notify_user": true,
- "reduce_vehicle_speed": true,
- "play_vehicle_sound": true,
- "lock_vehicle": true,
- "shape": [
- [
- -180,
- -180,
- -180
]
]
}
}
Define a new shape for the border of the specified network.
Border shape parameters.
network_id required | number >= 1 Identifier of the network |
shape required | Array of numbers >= 3 items [ items = 2 items [ items [ -180 .. 180 ] ] ] New shape of the network's border which is a list of GPS coordinates. |
{- "network_id": 1,
- "shape": [
- [
- 10,
- 45
], - [
- -2.8,
- 4
], - [
- 67,
- -45.8
]
]
}
{- "code": 0
}
Update border's settings (action when a vehicle leave the limit) of the specified network.
Border setting parameters.
trigger_alert required | boolean Indicate if an alert should be created when a vehicle leave the limit of the network. |
notify_user required | boolean Indicate if the user should receive a push notification when he leave the limit of the network while renting a vehicle. |
reduce_vehicle_speed required | boolean Indicate if the speed of the vehicle should be reduce to minimum when it leave the limit of the network. |
play_vehicle_sound required | boolean Indicate if the vehicle should play the geofencing sound when it leave the limit of the network. |
lock_vehicle required | boolean Indicate if the vehicle should be locked when it leave the limit of the network. |
network_id required | number >= 1 Identifier of the network |
{- "trigger_alert": true,
- "notify_user": true,
- "reduce_vehicle_speed": true,
- "play_vehicle_sound": true,
- "lock_vehicle": true,
- "network_id": 1
}
{- "code": 0
}
Get the list of available speed zone for the specified network.
network_id required | integer >= 1 Identifier of the network. |
{- "code": 0,
- "data": [
- {
- "speed_zone_id": 1,
- "shape": [
- [
- -180,
- -180,
- -180
]
], - "max_speed": 0
}
]
}
Create a new speed zone.
Speed zone create parameters.
network_id required | integer >= 1 Identifier of the network. |
shape required | Array of numbers[ items[ items [ -180 .. 180 ] ] ] Shape of this speed zone as a list of points making a polygon. |
max_speed required | integer [ 6 .. 25 ] Max speed authorized. |
{- "network_id": 1,
- "shape": [
- [
- -180
]
], - "max_speed": 6
}
{- "code": 0
}
Update the speed zone.
Speed zone update parameters.
speed_zone_id required | integer >= 1 Identifier of the speed zone. |
shape | Array of numbers[ items[ items [ -180 .. 180 ] ] ] Shape of this speed zone as a list of points making a polygon. |
max_speed | integer [ 6 .. 25 ] Max speed authorized. |
{- "speed_zone_id": 1,
- "shape": [
- [
- -180
]
], - "max_speed": 6
}
{- "code": 0
}
Get the list of virtual parking for the specified network.
network_id required | integer >= 1 Identifier of the network. |
{- "code": 0,
- "data": [
- {
- "virtual_parking_id": 1,
- "creation_date": "string",
- "shape": [
- [
- -180,
- -180,
- -180
]
], - "capacity": 0,
- "cluster_id": 1,
- "cluster_name": "string"
}
]
}
Create a new virtual parking (not attached to a cluster).
Parking create parameters.
shape required | Array of numbers[ items >= 3 items [ items = 2 items [ -180 .. 180 ] ] ] Shape of virtual parking as a list of points making a polygon. |
capacity required | integer >= 0 How many vehicle can be parked. |
network_id required | integer or null >= 1 Identifier of the network to whom the parking lot will belong. |
{- "shape": [
- [
- -180,
- -180,
- -180
]
], - "capacity": 0,
- "network_id": 1
}
{- "code": 0,
- "data": {
- "virtual_parking_id": 1,
- "creation_date": "string"
}
}
Update the virtual parking.
id required | integer >= 1 Identifier of the virtual parking. |
Parking update parameters.
shape required | Array of numbers[ items >= 3 items [ items = 2 items [ -180 .. 180 ] ] ] Shape of virtual parking as a list of points making a polygon. |
capacity required | integer >= 0 How many vehicle can be parked. |
{- "shape": [
- [
- -180,
- -180,
- -180
]
], - "capacity": 0
}
{- "code": 0
}
Return the energy consumption of the station in the specified range.
id required | integer >= 1 Identifier of the station. |
start_date required | string <date> The start date of the period. |
end_date required | string <date> The end date of the period. Should be after the start_date. |
timezone required | string (Timezone) Enum: "Africa/Abidjan" "Africa/Accra" "Africa/Addis_Ababa" "Africa/Algiers" "Africa/Asmara" "Africa/Bamako" "Africa/Bangui" "Africa/Banjul" "Africa/Bissau" "Africa/Blantyre" "Africa/Brazzaville" "Africa/Bujumbura" "Africa/Cairo" "Africa/Casablanca" "Africa/Ceuta" "Africa/Conakry" "Africa/Dakar" "Africa/Dar_es_Salaam" "Africa/Djibouti" "Africa/Douala" "Africa/El_Aaiun" "Africa/Freetown" "Africa/Gaborone" "Africa/Harare" "Africa/Johannesburg" "Africa/Juba" "Africa/Kampala" "Africa/Khartoum" "Africa/Kigali" "Africa/Kinshasa" "Africa/Lagos" "Africa/Libreville" "Africa/Lome" "Africa/Luanda" "Africa/Lubumbashi" "Africa/Lusaka" "Africa/Malabo" "Africa/Maputo" "Africa/Maseru" "Africa/Mbabane" "Africa/Mogadishu" "Africa/Monrovia" "Africa/Nairobi" "Africa/Ndjamena" "Africa/Niamey" "Africa/Nouakchott" "Africa/Ouagadougou" "Africa/Porto-Novo" "Africa/Sao_Tome" "Africa/Tripoli" "Africa/Tunis" "Africa/Windhoek" "America/Adak" "America/Anchorage" "America/Anguilla" "America/Antigua" "America/Araguaina" "America/Argentina/Buenos_Aires" "America/Argentina/Catamarca" "America/Argentina/Cordoba" "America/Argentina/Jujuy" "America/Argentina/La_Rioja" "America/Argentina/Mendoza" "America/Argentina/Rio_Gallegos" "America/Argentina/Salta" "America/Argentina/San_Juan" "America/Argentina/San_Luis" "America/Argentina/Tucuman" "America/Argentina/Ushuaia" "America/Aruba" "America/Asuncion" "America/Atikokan" "America/Bahia" "America/Bahia_Banderas" "America/Barbados" "America/Belem" "America/Belize" "America/Blanc-Sablon" "America/Boa_Vista" "America/Bogota" "America/Boise" "America/Cambridge_Bay" "America/Campo_Grande" "America/Cancun" "America/Caracas" "America/Cayenne" "America/Cayman" "America/Chicago" "America/Chihuahua" "America/Costa_Rica" "America/Creston" "America/Cuiaba" "America/Curacao" "America/Danmarkshavn" "America/Dawson" "America/Dawson_Creek" "America/Denver" "America/Detroit" "America/Dominica" "America/Edmonton" "America/Eirunepe" "America/El_Salvador" "America/Fort_Nelson" "America/Fortaleza" "America/Glace_Bay" "America/Goose_Bay" "America/Grand_Turk" "America/Grenada" "America/Guadeloupe" "America/Guatemala" "America/Guayaquil" "America/Guyana" "America/Halifax" "America/Havana" "America/Hermosillo" "America/Indiana/Indianapolis" "America/Indiana/Knox" "America/Indiana/Marengo" "America/Indiana/Petersburg" "America/Indiana/Tell_City" "America/Indiana/Vevay" "America/Indiana/Vincennes" "America/Indiana/Winamac" "America/Inuvik" "America/Iqaluit" "America/Jamaica" "America/Juneau" "America/Kentucky/Louisville" "America/Kentucky/Monticello" "America/Kralendijk" "America/La_Paz" "America/Lima" "America/Los_Angeles" "America/Lower_Princes" "America/Maceio" "America/Managua" "America/Manaus" "America/Marigot" "America/Martinique" "America/Matamoros" "America/Mazatlan" "America/Menominee" "America/Merida" "America/Metlakatla" "America/Mexico_City" "America/Miquelon" "America/Moncton" "America/Monterrey" "America/Montevideo" "America/Montserrat" "America/Nassau" "America/New_York" "America/Nipigon" "America/Nome" "America/Noronha" "America/North_Dakota/Beulah" "America/North_Dakota/Center" "America/North_Dakota/New_Salem" "America/Nuuk" "America/Ojinaga" "America/Panama" "America/Pangnirtung" "America/Paramaribo" "America/Phoenix" "America/Port-au-Prince" "America/Port_of_Spain" "America/Porto_Velho" "America/Puerto_Rico" "America/Punta_Arenas" "America/Rainy_River" "America/Rankin_Inlet" "America/Recife" "America/Regina" "America/Resolute" "America/Rio_Branco" "America/Santarem" "America/Santiago" "America/Santo_Domingo" "America/Sao_Paulo" "America/Scoresbysund" "America/Sitka" "America/St_Barthelemy" "America/St_Johns" "America/St_Kitts" "America/St_Lucia" "America/St_Thomas" "America/St_Vincent" "America/Swift_Current" "America/Tegucigalpa" "America/Thule" "America/Thunder_Bay" "America/Tijuana" "America/Toronto" "America/Tortola" "America/Vancouver" "America/Whitehorse" "America/Winnipeg" "America/Yakutat" "America/Yellowknife" "Antarctica/Casey" "Antarctica/Davis" "Antarctica/DumontDUrville" "Antarctica/Macquarie" "Antarctica/Mawson" "Antarctica/McMurdo" "Antarctica/Palmer" "Antarctica/Rothera" "Antarctica/Syowa" "Antarctica/Troll" "Antarctica/Vostok" "Arctic/Longyearbyen" "Asia/Aden" "Asia/Almaty" "Asia/Amman" "Asia/Anadyr" "Asia/Aqtau" "Asia/Aqtobe" "Asia/Ashgabat" "Asia/Atyrau" "Asia/Baghdad" "Asia/Bahrain" "Asia/Baku" "Asia/Bangkok" "Asia/Barnaul" "Asia/Beirut" "Asia/Bishkek" "Asia/Brunei" "Asia/Chita" "Asia/Choibalsan" "Asia/Colombo" "Asia/Damascus" "Asia/Dhaka" "Asia/Dili" "Asia/Dubai" "Asia/Dushanbe" "Asia/Famagusta" "Asia/Gaza" "Asia/Hebron" "Asia/Ho_Chi_Minh" "Asia/Hong_Kong" "Asia/Hovd" "Asia/Irkutsk" "Asia/Jakarta" "Asia/Jayapura" "Asia/Jerusalem" "Asia/Kabul" "Asia/Kamchatka" "Asia/Karachi" "Asia/Kathmandu" "Asia/Khandyga" "Asia/Kolkata" "Asia/Krasnoyarsk" "Asia/Kuala_Lumpur" "Asia/Kuching" "Asia/Kuwait" "Asia/Macau" "Asia/Magadan" "Asia/Makassar" "Asia/Manila" "Asia/Muscat" "Asia/Nicosia" "Asia/Novokuznetsk" "Asia/Novosibirsk" "Asia/Omsk" "Asia/Oral" "Asia/Phnom_Penh" "Asia/Pontianak" "Asia/Pyongyang" "Asia/Qatar" "Asia/Qostanay" "Asia/Qyzylorda" "Asia/Riyadh" "Asia/Sakhalin" "Asia/Samarkand" "Asia/Seoul" "Asia/Shanghai" "Asia/Singapore" "Asia/Srednekolymsk" "Asia/Taipei" "Asia/Tashkent" "Asia/Tbilisi" "Asia/Tehran" "Asia/Thimphu" "Asia/Tokyo" "Asia/Tomsk" "Asia/Ulaanbaatar" "Asia/Urumqi" "Asia/Ust-Nera" "Asia/Vientiane" "Asia/Vladivostok" "Asia/Yakutsk" "Asia/Yangon" "Asia/Yekaterinburg" "Asia/Yerevan" "Atlantic/Azores" "Atlantic/Bermuda" "Atlantic/Canary" "Atlantic/Cape_Verde" "Atlantic/Faroe" "Atlantic/Madeira" "Atlantic/Reykjavik" "Atlantic/South_Georgia" "Atlantic/St_Helena" "Atlantic/Stanley" "Australia/Adelaide" "Australia/Brisbane" "Australia/Broken_Hill" "Australia/Darwin" "Australia/Eucla" "Australia/Hobart" "Australia/Lindeman" "Australia/Lord_Howe" "Australia/Melbourne" "Australia/Perth" "Australia/Sydney" "Europe/Amsterdam" "Europe/Andorra" "Europe/Astrakhan" "Europe/Athens" "Europe/Belgrade" "Europe/Berlin" "Europe/Bratislava" "Europe/Brussels" "Europe/Bucharest" "Europe/Budapest" "Europe/Busingen" "Europe/Chisinau" "Europe/Copenhagen" "Europe/Dublin" "Europe/Gibraltar" "Europe/Guernsey" "Europe/Helsinki" "Europe/Isle_of_Man" "Europe/Istanbul" "Europe/Jersey" "Europe/Kaliningrad" "Europe/Kiev" "Europe/Kirov" "Europe/Lisbon" "Europe/Ljubljana" "Europe/London" "Europe/Luxembourg" "Europe/Madrid" "Europe/Malta" "Europe/Mariehamn" "Europe/Minsk" "Europe/Monaco" "Europe/Moscow" "Europe/Oslo" "Europe/Paris" "Europe/Podgorica" "Europe/Prague" "Europe/Riga" "Europe/Rome" "Europe/Samara" "Europe/San_Marino" "Europe/Sarajevo" "Europe/Saratov" "Europe/Simferopol" "Europe/Skopje" "Europe/Sofia" "Europe/Stockholm" "Europe/Tallinn" "Europe/Tirane" "Europe/Ulyanovsk" "Europe/Uzhgorod" "Europe/Vaduz" "Europe/Vatican" "Europe/Vienna" "Europe/Vilnius" "Europe/Volgograd" "Europe/Warsaw" "Europe/Zagreb" "Europe/Zaporozhye" "Europe/Zurich" "Indian/Antananarivo" "Indian/Chagos" "Indian/Christmas" "Indian/Cocos" "Indian/Comoro" "Indian/Kerguelen" "Indian/Mahe" "Indian/Maldives" "Indian/Mauritius" "Indian/Mayotte" "Indian/Reunion" "Pacific/Apia" "Pacific/Auckland" "Pacific/Bougainville" "Pacific/Chatham" "Pacific/Chuuk" "Pacific/Easter" "Pacific/Efate" "Pacific/Enderbury" "Pacific/Fakaofo" "Pacific/Fiji" "Pacific/Funafuti" "Pacific/Galapagos" "Pacific/Gambier" "Pacific/Guadalcanal" "Pacific/Guam" "Pacific/Honolulu" "Pacific/Kiritimati" "Pacific/Kosrae" "Pacific/Kwajalein" "Pacific/Majuro" "Pacific/Marquesas" "Pacific/Midway" "Pacific/Nauru" "Pacific/Niue" "Pacific/Norfolk" "Pacific/Noumea" "Pacific/Pago_Pago" "Pacific/Palau" "Pacific/Pitcairn" "Pacific/Pohnpei" "Pacific/Port_Moresby" "Pacific/Rarotonga" "Pacific/Saipan" "Pacific/Tahiti" "Pacific/Tarawa" "Pacific/Tongatapu" "Pacific/Wake" "Pacific/Wallis" "UTC" The timezone of the user making the request. |
{- "code": 0,
- "data": [
- {
- "date": "string",
- "total_active_energy": 0,
- "total_apparent_energy": 0
}
]
}
Fetch the list of stocks address for the specific network.
networks required | Array of integers[ items >= 1 ] Examples:
Identifier of networks of which to get the stocks. |
{- "code": 0,
- "data": [
- {
- "stock_id": 1,
- "name": "string",
- "country": "string",
- "country_id": 1,
- "city": "string",
- "zipcode": "string",
- "street": "string",
- "damaged_vehicle": "string",
- "total_vehicle": "string"
}
]
}
Create a new stock address where vehicles can be stored.
New address data.
name required | string [ 4 .. 128 ] characters The name of the new address. |
country required | integer >= 1 The identifier of the country of the new address. |
city required | string [ 1 .. 128 ] The name of the city of the new address. |
zipcode required | string [ 1 .. 16 ] The zipcode of the new address. |
street required | string [ 1 .. 128 ] The street number and name of the new address. |
{- "name": "My super stock",
- "country": 1,
- "city": "Strasbourg",
- "zipcode": "67000",
- "street": "45 example street"
}
{- "code": 0,
- "data": {
- "stock_id": 1
}
}
Fetch the list of vehicles stored in the specified stock address.
stocks required | Array of integers[ items >= 1 ] Examples:
Identifier of stocks of which to get the content. |
{- "code": 0,
- "data": [
- {
- "vehicle_id": 1,
- "serial_number": "string",
- "stock_name": "string",
- "manufacturer": "string",
- "model_name": "string",
- "user_id": 1,
- "email": "user@example.com",
- "arrival_date": "2019-08-24T14:15:22Z",
- "comment": "string",
- "maintenances": [
- {
- "maintenance_type": "string",
- "comment": "string",
- "start_date": "string",
- "severity": "info"
}
]
}
]
}
Define a new shape for the auto stock feature for the specified stock.
Auto stock shape parameters.
stock_id required | number >= 1 Identifier of the stock. |
shape required | Array of numbers >= 3 items [ items = 2 items [ items [ -180 .. 180 ] ] ] New shape of the network's border which is a list of GPS coordinates. |
{- "stock_id": 1,
- "shape": [
- [
- 10,
- 45
], - [
- -2.8,
- 4
], - [
- 67,
- -45.8
]
]
}
{- "code": 0
}
Returns subscriptions of the specified networks.
networks required | Array of integers[ items >= 1 ] Examples:
Identifier of networks of which to get the subscriptions. |
{- "code": 0,
- "data": [
- {
- "name": "string",
- "trip_duration": 1,
- "trip_waiting_period": 1,
- "organization_only": true,
- "network_id": 1,
- "subscription_id": 1,
- "network_name": "string",
- "creation_date": "2019-08-24T14:15:22Z"
}
]
}
Create a new subscription.
Info of the subscription to create.
name required | string [ 1 .. 50 ] characters Display name for this subscription. |
trip_duration required | integer >= 1 The duration in seconds that the subscription cover for each trip that it applies to. |
trip_waiting_period required | integer or null >= 1 The duration in seconds that the user needs to wait after having finished a trip that the subscription was used for, if a trip is started before the duration elapsed the new trip will be fully charged. |
organization_only required | boolean Whether or not this subscription can only be used by organization members. |
network_id required | integer >= 1 Identifier of the network on which the subscription can be used. |
{- "name": "string",
- "trip_duration": 1,
- "trip_waiting_period": 1,
- "organization_only": true,
- "network_id": 1
}
{- "code": 0,
- "data": {
- "subscription_id": 1
}
}
Returns subscription discounts of the specified networks.
networks required | Array of integers[ items >= 1 ] Examples:
Identifier of networks of which to get the subscriptions discounts. |
{- "code": 0,
- "data": [
- {
- "percent_off": 1,
- "duration": "once",
- "duration_in_months": 0,
- "network_id": 1,
- "subscription_discount_id": 1,
- "network_name": "string",
- "creation_date": "string"
}
]
}
Create a new subscription discount.
Info of the subscription discount to create.
percent_off required | number [ 1 .. 100 ] The percentage of the discount. |
duration required | string Enum: "once" "repeating" "forever" The duration during which the discount is applied on a subscription.
|
duration_in_months required | integer or null >= 0 The duration of the discount in months. This is not null only when the property |
network_id required | integer >= 1 The identifier of the network on which this discount is usable. |
{- "percent_off": 1,
- "duration": "once",
- "duration_in_months": 0,
- "network_id": 1
}
{- "code": 0,
- "data": {
- "subscription_discount_id": 1
}
}
Update a subscription.
id required | integer >= 1 The identifier of the subscription. |
Info of the subscription to create.
name | string [ 1 .. 50 ] characters Display name for this subscription. |
trip_duration | integer >= 1 The duration in seconds that the subscription cover for each trip that it applies to. |
trip_waiting_period | integer or null >= 1 The duration in seconds that the user needs to wait after having finished a trip that the subscription was used for, if a trip is started before the duration elapsed the new trip will be fully charged. |
organization_only | boolean Whether or not this subscription can only be used by organization members. |
{- "name": "string",
- "trip_duration": 1,
- "trip_waiting_period": 1,
- "organization_only": true
}
{- "code": 0
}
Get the different price of a subscription.
id required | integer >= 1 The identifier of the subscription. |
{- "code": 0,
- "data": [
- {
- "price": 0,
- "interval_type": "day",
- "interval_count": 1,
- "free_credits": 0.001,
- "available": true,
- "subscription_price_id": 1,
- "creation_date": "2019-08-24T14:15:22Z",
- "currency": "EUR",
- "subscribers": 0
}
]
}
Create a new price for a subscription.
id required | integer >= 1 The identifier of the subscription. |
Info of the subscription price to create.
price required | number >= 0 The amount of the subscription price. |
interval_type required | string Enum: "day" "week" "month" "year" The type of interval used for this price. |
interval_count required | integer [ 1 .. 365 ] How many interval_type are between each renewal. |
free_credits required | number or null >= 0.001 The amount given as a gift to the user on his wallet. |
available required | boolean Whether or not this price is available for the end users. |
{- "price": 0,
- "interval_type": "day",
- "interval_count": 1,
- "free_credits": 0.001,
- "available": true
}
{- "code": 0,
- "data": {
- "subscription_price_id": 1
}
}
Update a subscription price.
id required | integer >= 1 The identifier of the subscription. |
price_id required | integer >= 1 The identifier of the subscription price. |
Info of the subscription price to update.
available | boolean Whether or not this price is visible to user. |
free_credits | number or null >= 0.001 The amount given as a gift to the user on his wallet. |
{- "available": true,
- "free_credits": 0.001
}
{- "code": 0
}
Delete a subscription price.
id required | integer >= 1 The identifier of the subscription. |
price_id required | integer >= 1 The identifier of the subscription price. |
{- "code": 0
}
Get the different organization linked to a subscription.
id required | integer >= 1 The identifier of the subscription. |
{- "code": 0,
- "data": [
- {
- "organization_id": 1,
- "subscription_discount_id": 1,
- "organization_name": "string"
}
]
}
Link a subscription to an organization so that members of the organization can use the subscription with a discount.
id required | integer >= 1 The identifier of the subscription. |
Info of the subscription organization link to create.
organization_id required | integer >= 1 The identifier organization that will have access to this subscription. |
subscription_discount_id required | integer or null >= 1 Identifier of the subscription discount to apply automatically for members of the organization. |
{- "organization_id": 1,
- "subscription_discount_id": 1
}
{- "code": 0
}
Update a subscription organization link.
id required | integer >= 1 The identifier of the subscription. |
organization_id required | integer >= 1 The identifier of the organization |
Info of the subscription organization link to update.
subscription_discount_id required | integer or null >= 1 Identifier of the subscription discount to apply automatically for members of the organization. |
{- "subscription_discount_id": 1
}
{- "code": 0
}
Delete the link between the subscription and the organization.
id required | integer >= 1 The identifier of the subscription. |
organization_id required | integer >= 1 The identifier of the organization. |
{- "code": 0
}
Get the terms of use for the given app label, network or organization.
type required | string Enum: "app_label" "network" "organization" The type of object targeted by the terms of use. |
type_id required | integer >= 1 The identifier of the object of the type given by the type parameter, targeted by the terms of use. |
{- "code": 0,
- "data": [
- {
- "terms_of_use_id": 1,
- "creation_date": "string",
- "publication_date": "string",
- "deletion_date": "string",
- "langs": [
- "string"
]
}
]
}
Create a new terms of use for the given app label, network or organization.
type required | string Enum: "app_label" "network" "organization" The type of object targeted by the terms of use. |
type_id required | integer >= 1 The identifier of the object of the type given by the type parameter, targeted by the terms of use. |
{- "code": 0,
- "data": {
- "terms_of_use_id": 1
}
}
Publish the terms of use by generating all pdfs and sending them to all concerned users.
terms_of_use_id required | integer >= 1 The identifier of the terms of use. |
{- "code": 0
}
Get the terms of use content in the given language.
terms_of_use_id required | integer >= 1 The identifier of the terms of use. |
lang required | string^[a-zA-Z]{2}$ The language of the terms of use content. |
{- "code": 0,
- "data": {
- "content": "string",
- "publication_url": "string",
- "file_name": "string"
}
}
Create or update the terms of use content in the given language.
terms_of_use_id required | integer >= 1 The identifier of the terms of use. |
lang required | string^[a-zA-Z]{2}$ The language of the terms of use content. |
Info on the new terms of use content.
content required | string The text of the terms of use, formatted using markdown. |
file_name required | string [ 1 .. 64 ] characters The name of the pdf file that will be sent to the users with the content given in the content property. |
{- "content": "string",
- "file_name": "string"
}
{- "code": 0
}
Get the terms of use attachments of the given language.
terms_of_use_id required | integer >= 1 The identifier of the terms of use. |
lang required | string^[a-zA-Z]{2}$ The language of the terms of use attachment. |
{- "code": 0,
- "data": [
- {
- "attachment_url": "string",
- "attachment_name": "string"
}
]
}
Upload an attachment for the terms of use of the given language.
terms_of_use_id required | integer >= 1 The identifier of the terms of use. |
lang required | string^[a-zA-Z]{2}$ The language of the terms of use attachment. |
Info on the new terms of use attachment.
attachment_name required | string [ 1 .. 128 ] characters The name of the attachment to create or delete. |
attachment required | string <binary> Attachment file content. |
{- "attachment_name": "string",
- "attachment": "string"
}
{- "code": 0,
- "data": {
- "attachment_url": "string"
}
}
Delete an attachment of the terms of use of the given language.
terms_of_use_id required | integer >= 1 The identifier of the terms of use. |
lang required | string^[a-zA-Z]{2}$ The language of the terms of use attachment. |
attachment_name required | string [ 1 .. 128 ] characters The name of the attachment to create or delete. |
{- "code": 0
}
Create a third-party not linked to the ERP.
Info about the third-party.
name required | string [ 1 .. 255 ] characters The third-party's name. |
address required | string [ 1 .. 512 ] characters The third-party's address number and street. |
zipcode required | string [ 1 .. 10 ] characters The third-party's address zip code. |
city required | string [ 1 .. 128 ] characters The third-party's address city. |
country_id required | integer >= 1 The identifier of the country in which the third party is located. |
{- "name": "string",
- "address": "string",
- "zipcode": "string",
- "city": "string",
- "country_id": 1
}
{- "code": 0,
- "data": {
- "third_party_id": 1
}
}
Import a third-party from the ERP.
Info about the third-party.
erp_id required | integer >= 1 The ERP third-party's identifier. |
{- "erp_id": 1
}
{- "code": 0,
- "data": {
- "third_party_id": 1,
- "country": "string"
}
}
Return transactions made on specified networks.
networks required | Array of integers[ items >= 1 ] Examples:
Identifier of networks of which to get transactions. |
primary_key_dir | string Default: "DESC" Enum: "ASC" "DESC" Sort direction of the transaction identifier. |
page_size | integer [ 10 .. 500 ] Default: 20 The maximum items to return. |
last_primary_key | integer >= 1 Identifier of the last transaction on the current page, used to request the next page. |
sort_by | string Enum: "date" "amount_w_vat" "amount" "product_title" "refund_amount" "auto_payment" "payment_provider_fee" "network_id" Custom sort key. |
sort_dir | string Default: "DESC" Enum: "ASC" "DESC" Sort direction of the custom sort key. |
transaction_id_min | integer >= 1 Filter the minimum transaction's identifier. |
transaction_id_max | integer >= 1 Filter the maximum transaction's identifier. |
date_min | string <date> Filter the minimum transaction's date. |
date_max | string <date> Filter the maximum transaction's date. |
amount_w_vat_min | number >= 0 Filter the minimum transaction's amount with VAT. |
amount_w_vat_max | number >= 0 Filter the maximum transaction's amount with VAT. |
amount_min | number >= 0 Filter the minimum transaction's amount without VAT. |
amount_max | number >= 0 Filter the maximum transaction's amount without VAT. |
user_id | integer >= 1 Filter by the user's identifier who made the transaction. |
string non-empty Filter by the user's email who made the transaction (partial match search). | |
product_title | string [ 1 .. 100 ] characters Filter by the transaction's product title (partial match search). |
refunded | boolean Filter refunded state. |
refund_date_min | string <date> Filter the minimum transaction's refund date. |
refund_date_max | string <date> Filter the maximum transaction's refund date. |
auto_payment | boolean Filter auto-payment. |
payment_provider_fee_min | number >= 0 Filter by the minimum transaction's provider fee amount. |
payment_provider_fee_max | integer >= 0 Filter by the maximum transaction's provider fee amount. |
payment_provider | string [ 1 .. 20 ] characters Filter by the transaction's payment method provider (partial match search). |
payment_method_type | string [ 1 .. 20 ] characters Filter by the transaction's payment method type (partial match search). |
{- "code": 0,
- "data": [
- {
- "transaction_id": 1,
- "date": "2019-08-24T14:15:22Z",
- "currency": "string",
- "amount_w_vat": 0,
- "amount": 0,
- "vat": 0,
- "user_id": 1,
- "email": "user@example.com",
- "product_title": "string",
- "auto_payment": true,
- "refund_amount": 0,
- "payment_provider_fee": 0,
- "network_id": 1,
- "network_name": "string",
- "payment_provider": "string",
- "payment_method_type": "string"
}
], - "total": 0
}
Return details of the specified transaction.
id required | integer >= 1 The identifier of the transaction. |
{- "code": 0,
- "data": {
- "amount": 0,
- "amount_w_vat": 0,
- "payment_provider": "string",
- "payment_method_type": "string",
- "allow_partial_refund": true,
- "offer_id": 1,
- "offer_wallet_amount": 0,
- "pass_id": 1,
- "pass_duration": 0,
- "pass_validity": "day",
- "user_subscription_id": 1,
- "discount_id": 1,
- "discount_name": "string",
- "discount_data": 100,
- "refunds": [
- {
- "id": 1,
- "amount": 0,
- "date": "2019-08-24T14:15:22Z",
- "reason": "stringstri",
- "refunder": "string",
- "refunder_id": 1,
- "type": "user-action",
- "fees": 0
}
], - "trip_id": 1,
- "trip_cost": 0,
- "trip_started_at": "2019-08-24T14:15:22Z",
- "wallet_id": 0,
- "wallet_current_amount": "string"
}
}
Refund the specified transaction.
id required | integer >= 1 The identifier of the transaction. |
Data of the refund.
reason required | string [ 10 .. 2048 ] characters The reason to refund this transaction. |
amount required | number >= 0 The amount to refund. Cannot be greater than the amount of the transaction. |
{- "reason": "stringstri",
- "amount": 0
}
{- "code": 0,
- "data": {
- "refund_id": 1
}
}
Return income summary of the requested period, in the requested currency.
start_date required | string <date> The start date of the period. |
end_date required | string <date> The end date of the period. Should be after the start_date. |
currency required | string (Currency) Enum: "AED" "AFN" "ALL" "AMD" "ANG" "AOA" "ARS" "AUD" "AWG" "AZN" "BAM" "BBD" "BDT" "BGN" "BHD" "BIF" "BMD" "BND" "BOB" "BRL" "BSD" "BTN" "BWP" "BYN" "BYR" "BZD" "CAD" "CDF" "CHF" "CLF" "CLP" "CNY" "COP" "CRC" "CUC" "CUP" "CVE" "CZK" "DJF" "DKK" "DOP" "DZD" "EGP" "ERN" "ETB" "EUR" "FJD" "FKP" "GBP" "GEL" "GGP" "GHS" "GIP" "GMD" "GNF" "GTQ" "GYD" "HKD" "HNL" "HRK" "HTG" "HUF" "IDR" "ILS" "IMP" "INR" "IQD" "IRR" "ISK" "JEP" "JMD" "JOD" "JPY" "KES" "KGS" "KHR" "KMF" "KPW" "KRW" "KWD" "KYD" "KZT" "LAK" "LBP" "LKR" "LRD" "LSL" "LTL" "LVL" "LYD" "MAD" "MDL" "MGA" "MKD" "MMK" "MNT" "MOP" "MRO" "MUR" "MVR" "MWK" "MXN" "MYR" "MZN" "NAD" "NGN" "NIO" "NOK" "NPR" "NZD" "OMR" "PAB" "PEN" "PGK" "PHP" "PKR" "PLN" "PYG" "QAR" "RON" "RSD" "RUB" "RWF" "SAR" "SBD" "SCR" "SDG" "SEK" "SGD" "SHP" "SLL" "SOS" "SRD" "STD" "SVC" "SYP" "SZL" "THB" "TJS" "TMT" "TND" "TOP" "TRY" "TTD" "TWD" "TZS" "UAH" "UGX" "USD" "UYU" "UZS" "VEF" "VND" "VUV" "WST" "XAF" "XAG" "XAU" "XCD" "XDR" "XOF" "XPF" "YER" "ZAR" "ZMK" "ZMW" "ZWL" Example: currency=EUR The currency in which to convert the amounts. |
timezone required | string (Timezone) Enum: "Africa/Abidjan" "Africa/Accra" "Africa/Addis_Ababa" "Africa/Algiers" "Africa/Asmara" "Africa/Bamako" "Africa/Bangui" "Africa/Banjul" "Africa/Bissau" "Africa/Blantyre" "Africa/Brazzaville" "Africa/Bujumbura" "Africa/Cairo" "Africa/Casablanca" "Africa/Ceuta" "Africa/Conakry" "Africa/Dakar" "Africa/Dar_es_Salaam" "Africa/Djibouti" "Africa/Douala" "Africa/El_Aaiun" "Africa/Freetown" "Africa/Gaborone" "Africa/Harare" "Africa/Johannesburg" "Africa/Juba" "Africa/Kampala" "Africa/Khartoum" "Africa/Kigali" "Africa/Kinshasa" "Africa/Lagos" "Africa/Libreville" "Africa/Lome" "Africa/Luanda" "Africa/Lubumbashi" "Africa/Lusaka" "Africa/Malabo" "Africa/Maputo" "Africa/Maseru" "Africa/Mbabane" "Africa/Mogadishu" "Africa/Monrovia" "Africa/Nairobi" "Africa/Ndjamena" "Africa/Niamey" "Africa/Nouakchott" "Africa/Ouagadougou" "Africa/Porto-Novo" "Africa/Sao_Tome" "Africa/Tripoli" "Africa/Tunis" "Africa/Windhoek" "America/Adak" "America/Anchorage" "America/Anguilla" "America/Antigua" "America/Araguaina" "America/Argentina/Buenos_Aires" "America/Argentina/Catamarca" "America/Argentina/Cordoba" "America/Argentina/Jujuy" "America/Argentina/La_Rioja" "America/Argentina/Mendoza" "America/Argentina/Rio_Gallegos" "America/Argentina/Salta" "America/Argentina/San_Juan" "America/Argentina/San_Luis" "America/Argentina/Tucuman" "America/Argentina/Ushuaia" "America/Aruba" "America/Asuncion" "America/Atikokan" "America/Bahia" "America/Bahia_Banderas" "America/Barbados" "America/Belem" "America/Belize" "America/Blanc-Sablon" "America/Boa_Vista" "America/Bogota" "America/Boise" "America/Cambridge_Bay" "America/Campo_Grande" "America/Cancun" "America/Caracas" "America/Cayenne" "America/Cayman" "America/Chicago" "America/Chihuahua" "America/Costa_Rica" "America/Creston" "America/Cuiaba" "America/Curacao" "America/Danmarkshavn" "America/Dawson" "America/Dawson_Creek" "America/Denver" "America/Detroit" "America/Dominica" "America/Edmonton" "America/Eirunepe" "America/El_Salvador" "America/Fort_Nelson" "America/Fortaleza" "America/Glace_Bay" "America/Goose_Bay" "America/Grand_Turk" "America/Grenada" "America/Guadeloupe" "America/Guatemala" "America/Guayaquil" "America/Guyana" "America/Halifax" "America/Havana" "America/Hermosillo" "America/Indiana/Indianapolis" "America/Indiana/Knox" "America/Indiana/Marengo" "America/Indiana/Petersburg" "America/Indiana/Tell_City" "America/Indiana/Vevay" "America/Indiana/Vincennes" "America/Indiana/Winamac" "America/Inuvik" "America/Iqaluit" "America/Jamaica" "America/Juneau" "America/Kentucky/Louisville" "America/Kentucky/Monticello" "America/Kralendijk" "America/La_Paz" "America/Lima" "America/Los_Angeles" "America/Lower_Princes" "America/Maceio" "America/Managua" "America/Manaus" "America/Marigot" "America/Martinique" "America/Matamoros" "America/Mazatlan" "America/Menominee" "America/Merida" "America/Metlakatla" "America/Mexico_City" "America/Miquelon" "America/Moncton" "America/Monterrey" "America/Montevideo" "America/Montserrat" "America/Nassau" "America/New_York" "America/Nipigon" "America/Nome" "America/Noronha" "America/North_Dakota/Beulah" "America/North_Dakota/Center" "America/North_Dakota/New_Salem" "America/Nuuk" "America/Ojinaga" "America/Panama" "America/Pangnirtung" "America/Paramaribo" "America/Phoenix" "America/Port-au-Prince" "America/Port_of_Spain" "America/Porto_Velho" "America/Puerto_Rico" "America/Punta_Arenas" "America/Rainy_River" "America/Rankin_Inlet" "America/Recife" "America/Regina" "America/Resolute" "America/Rio_Branco" "America/Santarem" "America/Santiago" "America/Santo_Domingo" "America/Sao_Paulo" "America/Scoresbysund" "America/Sitka" "America/St_Barthelemy" "America/St_Johns" "America/St_Kitts" "America/St_Lucia" "America/St_Thomas" "America/St_Vincent" "America/Swift_Current" "America/Tegucigalpa" "America/Thule" "America/Thunder_Bay" "America/Tijuana" "America/Toronto" "America/Tortola" "America/Vancouver" "America/Whitehorse" "America/Winnipeg" "America/Yakutat" "America/Yellowknife" "Antarctica/Casey" "Antarctica/Davis" "Antarctica/DumontDUrville" "Antarctica/Macquarie" "Antarctica/Mawson" "Antarctica/McMurdo" "Antarctica/Palmer" "Antarctica/Rothera" "Antarctica/Syowa" "Antarctica/Troll" "Antarctica/Vostok" "Arctic/Longyearbyen" "Asia/Aden" "Asia/Almaty" "Asia/Amman" "Asia/Anadyr" "Asia/Aqtau" "Asia/Aqtobe" "Asia/Ashgabat" "Asia/Atyrau" "Asia/Baghdad" "Asia/Bahrain" "Asia/Baku" "Asia/Bangkok" "Asia/Barnaul" "Asia/Beirut" "Asia/Bishkek" "Asia/Brunei" "Asia/Chita" "Asia/Choibalsan" "Asia/Colombo" "Asia/Damascus" "Asia/Dhaka" "Asia/Dili" "Asia/Dubai" "Asia/Dushanbe" "Asia/Famagusta" "Asia/Gaza" "Asia/Hebron" "Asia/Ho_Chi_Minh" "Asia/Hong_Kong" "Asia/Hovd" "Asia/Irkutsk" "Asia/Jakarta" "Asia/Jayapura" "Asia/Jerusalem" "Asia/Kabul" "Asia/Kamchatka" "Asia/Karachi" "Asia/Kathmandu" "Asia/Khandyga" "Asia/Kolkata" "Asia/Krasnoyarsk" "Asia/Kuala_Lumpur" "Asia/Kuching" "Asia/Kuwait" "Asia/Macau" "Asia/Magadan" "Asia/Makassar" "Asia/Manila" "Asia/Muscat" "Asia/Nicosia" "Asia/Novokuznetsk" "Asia/Novosibirsk" "Asia/Omsk" "Asia/Oral" "Asia/Phnom_Penh" "Asia/Pontianak" "Asia/Pyongyang" "Asia/Qatar" "Asia/Qostanay" "Asia/Qyzylorda" "Asia/Riyadh" "Asia/Sakhalin" "Asia/Samarkand" "Asia/Seoul" "Asia/Shanghai" "Asia/Singapore" "Asia/Srednekolymsk" "Asia/Taipei" "Asia/Tashkent" "Asia/Tbilisi" "Asia/Tehran" "Asia/Thimphu" "Asia/Tokyo" "Asia/Tomsk" "Asia/Ulaanbaatar" "Asia/Urumqi" "Asia/Ust-Nera" "Asia/Vientiane" "Asia/Vladivostok" "Asia/Yakutsk" "Asia/Yangon" "Asia/Yekaterinburg" "Asia/Yerevan" "Atlantic/Azores" "Atlantic/Bermuda" "Atlantic/Canary" "Atlantic/Cape_Verde" "Atlantic/Faroe" "Atlantic/Madeira" "Atlantic/Reykjavik" "Atlantic/South_Georgia" "Atlantic/St_Helena" "Atlantic/Stanley" "Australia/Adelaide" "Australia/Brisbane" "Australia/Broken_Hill" "Australia/Darwin" "Australia/Eucla" "Australia/Hobart" "Australia/Lindeman" "Australia/Lord_Howe" "Australia/Melbourne" "Australia/Perth" "Australia/Sydney" "Europe/Amsterdam" "Europe/Andorra" "Europe/Astrakhan" "Europe/Athens" "Europe/Belgrade" "Europe/Berlin" "Europe/Bratislava" "Europe/Brussels" "Europe/Bucharest" "Europe/Budapest" "Europe/Busingen" "Europe/Chisinau" "Europe/Copenhagen" "Europe/Dublin" "Europe/Gibraltar" "Europe/Guernsey" "Europe/Helsinki" "Europe/Isle_of_Man" "Europe/Istanbul" "Europe/Jersey" "Europe/Kaliningrad" "Europe/Kiev" "Europe/Kirov" "Europe/Lisbon" "Europe/Ljubljana" "Europe/London" "Europe/Luxembourg" "Europe/Madrid" "Europe/Malta" "Europe/Mariehamn" "Europe/Minsk" "Europe/Monaco" "Europe/Moscow" "Europe/Oslo" "Europe/Paris" "Europe/Podgorica" "Europe/Prague" "Europe/Riga" "Europe/Rome" "Europe/Samara" "Europe/San_Marino" "Europe/Sarajevo" "Europe/Saratov" "Europe/Simferopol" "Europe/Skopje" "Europe/Sofia" "Europe/Stockholm" "Europe/Tallinn" "Europe/Tirane" "Europe/Ulyanovsk" "Europe/Uzhgorod" "Europe/Vaduz" "Europe/Vatican" "Europe/Vienna" "Europe/Vilnius" "Europe/Volgograd" "Europe/Warsaw" "Europe/Zagreb" "Europe/Zaporozhye" "Europe/Zurich" "Indian/Antananarivo" "Indian/Chagos" "Indian/Christmas" "Indian/Cocos" "Indian/Comoro" "Indian/Kerguelen" "Indian/Mahe" "Indian/Maldives" "Indian/Mauritius" "Indian/Mayotte" "Indian/Reunion" "Pacific/Apia" "Pacific/Auckland" "Pacific/Bougainville" "Pacific/Chatham" "Pacific/Chuuk" "Pacific/Easter" "Pacific/Efate" "Pacific/Enderbury" "Pacific/Fakaofo" "Pacific/Fiji" "Pacific/Funafuti" "Pacific/Galapagos" "Pacific/Gambier" "Pacific/Guadalcanal" "Pacific/Guam" "Pacific/Honolulu" "Pacific/Kiritimati" "Pacific/Kosrae" "Pacific/Kwajalein" "Pacific/Majuro" "Pacific/Marquesas" "Pacific/Midway" "Pacific/Nauru" "Pacific/Niue" "Pacific/Norfolk" "Pacific/Noumea" "Pacific/Pago_Pago" "Pacific/Palau" "Pacific/Pitcairn" "Pacific/Pohnpei" "Pacific/Port_Moresby" "Pacific/Rarotonga" "Pacific/Saipan" "Pacific/Tahiti" "Pacific/Tarawa" "Pacific/Tongatapu" "Pacific/Wake" "Pacific/Wallis" "UTC" The timezone of the user making the request. |
provider | string (PaymentProvider) Enum: "stripe" "uzcard" "braintree" "hdcpay" The name of the payment provider to use as a filter. Not giving this parameters returns stats for all providers. |
{- "code": 0,
- "data": {
- "total_vat": 0,
- "total_w_vat": 0,
- "payment_provider_fees": 0,
- "refund": 0,
- "knot_fees": 0,
- "vehicle_count": 0,
- "vehicle_availability": 1
}
}
Return income sources of the requested period, in the requested currency.
start_date required | string <date> The start date of the period. |
end_date required | string <date> The end date of the period. Should be after the start_date. |
currency required | string (Currency) Enum: "AED" "AFN" "ALL" "AMD" "ANG" "AOA" "ARS" "AUD" "AWG" "AZN" "BAM" "BBD" "BDT" "BGN" "BHD" "BIF" "BMD" "BND" "BOB" "BRL" "BSD" "BTN" "BWP" "BYN" "BYR" "BZD" "CAD" "CDF" "CHF" "CLF" "CLP" "CNY" "COP" "CRC" "CUC" "CUP" "CVE" "CZK" "DJF" "DKK" "DOP" "DZD" "EGP" "ERN" "ETB" "EUR" "FJD" "FKP" "GBP" "GEL" "GGP" "GHS" "GIP" "GMD" "GNF" "GTQ" "GYD" "HKD" "HNL" "HRK" "HTG" "HUF" "IDR" "ILS" "IMP" "INR" "IQD" "IRR" "ISK" "JEP" "JMD" "JOD" "JPY" "KES" "KGS" "KHR" "KMF" "KPW" "KRW" "KWD" "KYD" "KZT" "LAK" "LBP" "LKR" "LRD" "LSL" "LTL" "LVL" "LYD" "MAD" "MDL" "MGA" "MKD" "MMK" "MNT" "MOP" "MRO" "MUR" "MVR" "MWK" "MXN" "MYR" "MZN" "NAD" "NGN" "NIO" "NOK" "NPR" "NZD" "OMR" "PAB" "PEN" "PGK" "PHP" "PKR" "PLN" "PYG" "QAR" "RON" "RSD" "RUB" "RWF" "SAR" "SBD" "SCR" "SDG" "SEK" "SGD" "SHP" "SLL" "SOS" "SRD" "STD" "SVC" "SYP" "SZL" "THB" "TJS" "TMT" "TND" "TOP" "TRY" "TTD" "TWD" "TZS" "UAH" "UGX" "USD" "UYU" "UZS" "VEF" "VND" "VUV" "WST" "XAF" "XAG" "XAU" "XCD" "XDR" "XOF" "XPF" "YER" "ZAR" "ZMK" "ZMW" "ZWL" Example: currency=EUR The currency in which to convert the amounts. |
timezone required | string (Timezone) Enum: "Africa/Abidjan" "Africa/Accra" "Africa/Addis_Ababa" "Africa/Algiers" "Africa/Asmara" "Africa/Bamako" "Africa/Bangui" "Africa/Banjul" "Africa/Bissau" "Africa/Blantyre" "Africa/Brazzaville" "Africa/Bujumbura" "Africa/Cairo" "Africa/Casablanca" "Africa/Ceuta" "Africa/Conakry" "Africa/Dakar" "Africa/Dar_es_Salaam" "Africa/Djibouti" "Africa/Douala" "Africa/El_Aaiun" "Africa/Freetown" "Africa/Gaborone" "Africa/Harare" "Africa/Johannesburg" "Africa/Juba" "Africa/Kampala" "Africa/Khartoum" "Africa/Kigali" "Africa/Kinshasa" "Africa/Lagos" "Africa/Libreville" "Africa/Lome" "Africa/Luanda" "Africa/Lubumbashi" "Africa/Lusaka" "Africa/Malabo" "Africa/Maputo" "Africa/Maseru" "Africa/Mbabane" "Africa/Mogadishu" "Africa/Monrovia" "Africa/Nairobi" "Africa/Ndjamena" "Africa/Niamey" "Africa/Nouakchott" "Africa/Ouagadougou" "Africa/Porto-Novo" "Africa/Sao_Tome" "Africa/Tripoli" "Africa/Tunis" "Africa/Windhoek" "America/Adak" "America/Anchorage" "America/Anguilla" "America/Antigua" "America/Araguaina" "America/Argentina/Buenos_Aires" "America/Argentina/Catamarca" "America/Argentina/Cordoba" "America/Argentina/Jujuy" "America/Argentina/La_Rioja" "America/Argentina/Mendoza" "America/Argentina/Rio_Gallegos" "America/Argentina/Salta" "America/Argentina/San_Juan" "America/Argentina/San_Luis" "America/Argentina/Tucuman" "America/Argentina/Ushuaia" "America/Aruba" "America/Asuncion" "America/Atikokan" "America/Bahia" "America/Bahia_Banderas" "America/Barbados" "America/Belem" "America/Belize" "America/Blanc-Sablon" "America/Boa_Vista" "America/Bogota" "America/Boise" "America/Cambridge_Bay" "America/Campo_Grande" "America/Cancun" "America/Caracas" "America/Cayenne" "America/Cayman" "America/Chicago" "America/Chihuahua" "America/Costa_Rica" "America/Creston" "America/Cuiaba" "America/Curacao" "America/Danmarkshavn" "America/Dawson" "America/Dawson_Creek" "America/Denver" "America/Detroit" "America/Dominica" "America/Edmonton" "America/Eirunepe" "America/El_Salvador" "America/Fort_Nelson" "America/Fortaleza" "America/Glace_Bay" "America/Goose_Bay" "America/Grand_Turk" "America/Grenada" "America/Guadeloupe" "America/Guatemala" "America/Guayaquil" "America/Guyana" "America/Halifax" "America/Havana" "America/Hermosillo" "America/Indiana/Indianapolis" "America/Indiana/Knox" "America/Indiana/Marengo" "America/Indiana/Petersburg" "America/Indiana/Tell_City" "America/Indiana/Vevay" "America/Indiana/Vincennes" "America/Indiana/Winamac" "America/Inuvik" "America/Iqaluit" "America/Jamaica" "America/Juneau" "America/Kentucky/Louisville" "America/Kentucky/Monticello" "America/Kralendijk" "America/La_Paz" "America/Lima" "America/Los_Angeles" "America/Lower_Princes" "America/Maceio" "America/Managua" "America/Manaus" "America/Marigot" "America/Martinique" "America/Matamoros" "America/Mazatlan" "America/Menominee" "America/Merida" "America/Metlakatla" "America/Mexico_City" "America/Miquelon" "America/Moncton" "America/Monterrey" "America/Montevideo" "America/Montserrat" "America/Nassau" "America/New_York" "America/Nipigon" "America/Nome" "America/Noronha" "America/North_Dakota/Beulah" "America/North_Dakota/Center" "America/North_Dakota/New_Salem" "America/Nuuk" "America/Ojinaga" "America/Panama" "America/Pangnirtung" "America/Paramaribo" "America/Phoenix" "America/Port-au-Prince" "America/Port_of_Spain" "America/Porto_Velho" "America/Puerto_Rico" "America/Punta_Arenas" "America/Rainy_River" "America/Rankin_Inlet" "America/Recife" "America/Regina" "America/Resolute" "America/Rio_Branco" "America/Santarem" "America/Santiago" "America/Santo_Domingo" "America/Sao_Paulo" "America/Scoresbysund" "America/Sitka" "America/St_Barthelemy" "America/St_Johns" "America/St_Kitts" "America/St_Lucia" "America/St_Thomas" "America/St_Vincent" "America/Swift_Current" "America/Tegucigalpa" "America/Thule" "America/Thunder_Bay" "America/Tijuana" "America/Toronto" "America/Tortola" "America/Vancouver" "America/Whitehorse" "America/Winnipeg" "America/Yakutat" "America/Yellowknife" "Antarctica/Casey" "Antarctica/Davis" "Antarctica/DumontDUrville" "Antarctica/Macquarie" "Antarctica/Mawson" "Antarctica/McMurdo" "Antarctica/Palmer" "Antarctica/Rothera" "Antarctica/Syowa" "Antarctica/Troll" "Antarctica/Vostok" "Arctic/Longyearbyen" "Asia/Aden" "Asia/Almaty" "Asia/Amman" "Asia/Anadyr" "Asia/Aqtau" "Asia/Aqtobe" "Asia/Ashgabat" "Asia/Atyrau" "Asia/Baghdad" "Asia/Bahrain" "Asia/Baku" "Asia/Bangkok" "Asia/Barnaul" "Asia/Beirut" "Asia/Bishkek" "Asia/Brunei" "Asia/Chita" "Asia/Choibalsan" "Asia/Colombo" "Asia/Damascus" "Asia/Dhaka" "Asia/Dili" "Asia/Dubai" "Asia/Dushanbe" "Asia/Famagusta" "Asia/Gaza" "Asia/Hebron" "Asia/Ho_Chi_Minh" "Asia/Hong_Kong" "Asia/Hovd" "Asia/Irkutsk" "Asia/Jakarta" "Asia/Jayapura" "Asia/Jerusalem" "Asia/Kabul" "Asia/Kamchatka" "Asia/Karachi" "Asia/Kathmandu" "Asia/Khandyga" "Asia/Kolkata" "Asia/Krasnoyarsk" "Asia/Kuala_Lumpur" "Asia/Kuching" "Asia/Kuwait" "Asia/Macau" "Asia/Magadan" "Asia/Makassar" "Asia/Manila" "Asia/Muscat" "Asia/Nicosia" "Asia/Novokuznetsk" "Asia/Novosibirsk" "Asia/Omsk" "Asia/Oral" "Asia/Phnom_Penh" "Asia/Pontianak" "Asia/Pyongyang" "Asia/Qatar" "Asia/Qostanay" "Asia/Qyzylorda" "Asia/Riyadh" "Asia/Sakhalin" "Asia/Samarkand" "Asia/Seoul" "Asia/Shanghai" "Asia/Singapore" "Asia/Srednekolymsk" "Asia/Taipei" "Asia/Tashkent" "Asia/Tbilisi" "Asia/Tehran" "Asia/Thimphu" "Asia/Tokyo" "Asia/Tomsk" "Asia/Ulaanbaatar" "Asia/Urumqi" "Asia/Ust-Nera" "Asia/Vientiane" "Asia/Vladivostok" "Asia/Yakutsk" "Asia/Yangon" "Asia/Yekaterinburg" "Asia/Yerevan" "Atlantic/Azores" "Atlantic/Bermuda" "Atlantic/Canary" "Atlantic/Cape_Verde" "Atlantic/Faroe" "Atlantic/Madeira" "Atlantic/Reykjavik" "Atlantic/South_Georgia" "Atlantic/St_Helena" "Atlantic/Stanley" "Australia/Adelaide" "Australia/Brisbane" "Australia/Broken_Hill" "Australia/Darwin" "Australia/Eucla" "Australia/Hobart" "Australia/Lindeman" "Australia/Lord_Howe" "Australia/Melbourne" "Australia/Perth" "Australia/Sydney" "Europe/Amsterdam" "Europe/Andorra" "Europe/Astrakhan" "Europe/Athens" "Europe/Belgrade" "Europe/Berlin" "Europe/Bratislava" "Europe/Brussels" "Europe/Bucharest" "Europe/Budapest" "Europe/Busingen" "Europe/Chisinau" "Europe/Copenhagen" "Europe/Dublin" "Europe/Gibraltar" "Europe/Guernsey" "Europe/Helsinki" "Europe/Isle_of_Man" "Europe/Istanbul" "Europe/Jersey" "Europe/Kaliningrad" "Europe/Kiev" "Europe/Kirov" "Europe/Lisbon" "Europe/Ljubljana" "Europe/London" "Europe/Luxembourg" "Europe/Madrid" "Europe/Malta" "Europe/Mariehamn" "Europe/Minsk" "Europe/Monaco" "Europe/Moscow" "Europe/Oslo" "Europe/Paris" "Europe/Podgorica" "Europe/Prague" "Europe/Riga" "Europe/Rome" "Europe/Samara" "Europe/San_Marino" "Europe/Sarajevo" "Europe/Saratov" "Europe/Simferopol" "Europe/Skopje" "Europe/Sofia" "Europe/Stockholm" "Europe/Tallinn" "Europe/Tirane" "Europe/Ulyanovsk" "Europe/Uzhgorod" "Europe/Vaduz" "Europe/Vatican" "Europe/Vienna" "Europe/Vilnius" "Europe/Volgograd" "Europe/Warsaw" "Europe/Zagreb" "Europe/Zaporozhye" "Europe/Zurich" "Indian/Antananarivo" "Indian/Chagos" "Indian/Christmas" "Indian/Cocos" "Indian/Comoro" "Indian/Kerguelen" "Indian/Mahe" "Indian/Maldives" "Indian/Mauritius" "Indian/Mayotte" "Indian/Reunion" "Pacific/Apia" "Pacific/Auckland" "Pacific/Bougainville" "Pacific/Chatham" "Pacific/Chuuk" "Pacific/Easter" "Pacific/Efate" "Pacific/Enderbury" "Pacific/Fakaofo" "Pacific/Fiji" "Pacific/Funafuti" "Pacific/Galapagos" "Pacific/Gambier" "Pacific/Guadalcanal" "Pacific/Guam" "Pacific/Honolulu" "Pacific/Kiritimati" "Pacific/Kosrae" "Pacific/Kwajalein" "Pacific/Majuro" "Pacific/Marquesas" "Pacific/Midway" "Pacific/Nauru" "Pacific/Niue" "Pacific/Norfolk" "Pacific/Noumea" "Pacific/Pago_Pago" "Pacific/Palau" "Pacific/Pitcairn" "Pacific/Pohnpei" "Pacific/Port_Moresby" "Pacific/Rarotonga" "Pacific/Saipan" "Pacific/Tahiti" "Pacific/Tarawa" "Pacific/Tongatapu" "Pacific/Wake" "Pacific/Wallis" "UTC" The timezone of the user making the request. |
provider | string (PaymentProvider) Enum: "stripe" "uzcard" "braintree" "hdcpay" The name of the payment provider to use as a filter. Not giving this parameters returns stats for all providers. |
{- "code": 0,
- "data": {
- "offers": [
- {
- "name": "string",
- "price": 0,
- "converted_price": 0,
- "count": 0,
- "sum": 0,
- "converted_sum": 0,
- "currency": "string"
}
], - "passes_purchases": [
- {
- "name": "string",
- "price": 0,
- "converted_price": 0,
- "count": 0,
- "sum": 0,
- "converted_sum": 0,
- "currency": "string"
}
], - "subscriptions": [
- {
- "name": "string",
- "price": 0,
- "converted_price": 0,
- "count": 0,
- "sum": 0,
- "converted_sum": 0,
- "currency": "string"
}
], - "passes": [
- {
- "name": "string",
- "duration": 0,
- "count": 0,
- "activation": 0
}
], - "trip_payments": {
- "count": 0,
- "sum": 0
}
}
}
Return income distribution by day of the week of the requested period, in the requested currency.
start_date required | string <date> The start date of the period. |
end_date required | string <date> The end date of the period. Should be after the start_date. |
currency required | string (Currency) Enum: "AED" "AFN" "ALL" "AMD" "ANG" "AOA" "ARS" "AUD" "AWG" "AZN" "BAM" "BBD" "BDT" "BGN" "BHD" "BIF" "BMD" "BND" "BOB" "BRL" "BSD" "BTN" "BWP" "BYN" "BYR" "BZD" "CAD" "CDF" "CHF" "CLF" "CLP" "CNY" "COP" "CRC" "CUC" "CUP" "CVE" "CZK" "DJF" "DKK" "DOP" "DZD" "EGP" "ERN" "ETB" "EUR" "FJD" "FKP" "GBP" "GEL" "GGP" "GHS" "GIP" "GMD" "GNF" "GTQ" "GYD" "HKD" "HNL" "HRK" "HTG" "HUF" "IDR" "ILS" "IMP" "INR" "IQD" "IRR" "ISK" "JEP" "JMD" "JOD" "JPY" "KES" "KGS" "KHR" "KMF" "KPW" "KRW" "KWD" "KYD" "KZT" "LAK" "LBP" "LKR" "LRD" "LSL" "LTL" "LVL" "LYD" "MAD" "MDL" "MGA" "MKD" "MMK" "MNT" "MOP" "MRO" "MUR" "MVR" "MWK" "MXN" "MYR" "MZN" "NAD" "NGN" "NIO" "NOK" "NPR" "NZD" "OMR" "PAB" "PEN" "PGK" "PHP" "PKR" "PLN" "PYG" "QAR" "RON" "RSD" "RUB" "RWF" "SAR" "SBD" "SCR" "SDG" "SEK" "SGD" "SHP" "SLL" "SOS" "SRD" "STD" "SVC" "SYP" "SZL" "THB" "TJS" "TMT" "TND" "TOP" "TRY" "TTD" "TWD" "TZS" "UAH" "UGX" "USD" "UYU" "UZS" "VEF" "VND" "VUV" "WST" "XAF" "XAG" "XAU" "XCD" "XDR" "XOF" "XPF" "YER" "ZAR" "ZMK" "ZMW" "ZWL" Example: currency=EUR The currency in which to convert the amounts. |
timezone required | string (Timezone) Enum: "Africa/Abidjan" "Africa/Accra" "Africa/Addis_Ababa" "Africa/Algiers" "Africa/Asmara" "Africa/Bamako" "Africa/Bangui" "Africa/Banjul" "Africa/Bissau" "Africa/Blantyre" "Africa/Brazzaville" "Africa/Bujumbura" "Africa/Cairo" "Africa/Casablanca" "Africa/Ceuta" "Africa/Conakry" "Africa/Dakar" "Africa/Dar_es_Salaam" "Africa/Djibouti" "Africa/Douala" "Africa/El_Aaiun" "Africa/Freetown" "Africa/Gaborone" "Africa/Harare" "Africa/Johannesburg" "Africa/Juba" "Africa/Kampala" "Africa/Khartoum" "Africa/Kigali" "Africa/Kinshasa" "Africa/Lagos" "Africa/Libreville" "Africa/Lome" "Africa/Luanda" "Africa/Lubumbashi" "Africa/Lusaka" "Africa/Malabo" "Africa/Maputo" "Africa/Maseru" "Africa/Mbabane" "Africa/Mogadishu" "Africa/Monrovia" "Africa/Nairobi" "Africa/Ndjamena" "Africa/Niamey" "Africa/Nouakchott" "Africa/Ouagadougou" "Africa/Porto-Novo" "Africa/Sao_Tome" "Africa/Tripoli" "Africa/Tunis" "Africa/Windhoek" "America/Adak" "America/Anchorage" "America/Anguilla" "America/Antigua" "America/Araguaina" "America/Argentina/Buenos_Aires" "America/Argentina/Catamarca" "America/Argentina/Cordoba" "America/Argentina/Jujuy" "America/Argentina/La_Rioja" "America/Argentina/Mendoza" "America/Argentina/Rio_Gallegos" "America/Argentina/Salta" "America/Argentina/San_Juan" "America/Argentina/San_Luis" "America/Argentina/Tucuman" "America/Argentina/Ushuaia" "America/Aruba" "America/Asuncion" "America/Atikokan" "America/Bahia" "America/Bahia_Banderas" "America/Barbados" "America/Belem" "America/Belize" "America/Blanc-Sablon" "America/Boa_Vista" "America/Bogota" "America/Boise" "America/Cambridge_Bay" "America/Campo_Grande" "America/Cancun" "America/Caracas" "America/Cayenne" "America/Cayman" "America/Chicago" "America/Chihuahua" "America/Costa_Rica" "America/Creston" "America/Cuiaba" "America/Curacao" "America/Danmarkshavn" "America/Dawson" "America/Dawson_Creek" "America/Denver" "America/Detroit" "America/Dominica" "America/Edmonton" "America/Eirunepe" "America/El_Salvador" "America/Fort_Nelson" "America/Fortaleza" "America/Glace_Bay" "America/Goose_Bay" "America/Grand_Turk" "America/Grenada" "America/Guadeloupe" "America/Guatemala" "America/Guayaquil" "America/Guyana" "America/Halifax" "America/Havana" "America/Hermosillo" "America/Indiana/Indianapolis" "America/Indiana/Knox" "America/Indiana/Marengo" "America/Indiana/Petersburg" "America/Indiana/Tell_City" "America/Indiana/Vevay" "America/Indiana/Vincennes" "America/Indiana/Winamac" "America/Inuvik" "America/Iqaluit" "America/Jamaica" "America/Juneau" "America/Kentucky/Louisville" "America/Kentucky/Monticello" "America/Kralendijk" "America/La_Paz" "America/Lima" "America/Los_Angeles" "America/Lower_Princes" "America/Maceio" "America/Managua" "America/Manaus" "America/Marigot" "America/Martinique" "America/Matamoros" "America/Mazatlan" "America/Menominee" "America/Merida" "America/Metlakatla" "America/Mexico_City" "America/Miquelon" "America/Moncton" "America/Monterrey" "America/Montevideo" "America/Montserrat" "America/Nassau" "America/New_York" "America/Nipigon" "America/Nome" "America/Noronha" "America/North_Dakota/Beulah" "America/North_Dakota/Center" "America/North_Dakota/New_Salem" "America/Nuuk" "America/Ojinaga" "America/Panama" "America/Pangnirtung" "America/Paramaribo" "America/Phoenix" "America/Port-au-Prince" "America/Port_of_Spain" "America/Porto_Velho" "America/Puerto_Rico" "America/Punta_Arenas" "America/Rainy_River" "America/Rankin_Inlet" "America/Recife" "America/Regina" "America/Resolute" "America/Rio_Branco" "America/Santarem" "America/Santiago" "America/Santo_Domingo" "America/Sao_Paulo" "America/Scoresbysund" "America/Sitka" "America/St_Barthelemy" "America/St_Johns" "America/St_Kitts" "America/St_Lucia" "America/St_Thomas" "America/St_Vincent" "America/Swift_Current" "America/Tegucigalpa" "America/Thule" "America/Thunder_Bay" "America/Tijuana" "America/Toronto" "America/Tortola" "America/Vancouver" "America/Whitehorse" "America/Winnipeg" "America/Yakutat" "America/Yellowknife" "Antarctica/Casey" "Antarctica/Davis" "Antarctica/DumontDUrville" "Antarctica/Macquarie" "Antarctica/Mawson" "Antarctica/McMurdo" "Antarctica/Palmer" "Antarctica/Rothera" "Antarctica/Syowa" "Antarctica/Troll" "Antarctica/Vostok" "Arctic/Longyearbyen" "Asia/Aden" "Asia/Almaty" "Asia/Amman" "Asia/Anadyr" "Asia/Aqtau" "Asia/Aqtobe" "Asia/Ashgabat" "Asia/Atyrau" "Asia/Baghdad" "Asia/Bahrain" "Asia/Baku" "Asia/Bangkok" "Asia/Barnaul" "Asia/Beirut" "Asia/Bishkek" "Asia/Brunei" "Asia/Chita" "Asia/Choibalsan" "Asia/Colombo" "Asia/Damascus" "Asia/Dhaka" "Asia/Dili" "Asia/Dubai" "Asia/Dushanbe" "Asia/Famagusta" "Asia/Gaza" "Asia/Hebron" "Asia/Ho_Chi_Minh" "Asia/Hong_Kong" "Asia/Hovd" "Asia/Irkutsk" "Asia/Jakarta" "Asia/Jayapura" "Asia/Jerusalem" "Asia/Kabul" "Asia/Kamchatka" "Asia/Karachi" "Asia/Kathmandu" "Asia/Khandyga" "Asia/Kolkata" "Asia/Krasnoyarsk" "Asia/Kuala_Lumpur" "Asia/Kuching" "Asia/Kuwait" "Asia/Macau" "Asia/Magadan" "Asia/Makassar" "Asia/Manila" "Asia/Muscat" "Asia/Nicosia" "Asia/Novokuznetsk" "Asia/Novosibirsk" "Asia/Omsk" "Asia/Oral" "Asia/Phnom_Penh" "Asia/Pontianak" "Asia/Pyongyang" "Asia/Qatar" "Asia/Qostanay" "Asia/Qyzylorda" "Asia/Riyadh" "Asia/Sakhalin" "Asia/Samarkand" "Asia/Seoul" "Asia/Shanghai" "Asia/Singapore" "Asia/Srednekolymsk" "Asia/Taipei" "Asia/Tashkent" "Asia/Tbilisi" "Asia/Tehran" "Asia/Thimphu" "Asia/Tokyo" "Asia/Tomsk" "Asia/Ulaanbaatar" "Asia/Urumqi" "Asia/Ust-Nera" "Asia/Vientiane" "Asia/Vladivostok" "Asia/Yakutsk" "Asia/Yangon" "Asia/Yekaterinburg" "Asia/Yerevan" "Atlantic/Azores" "Atlantic/Bermuda" "Atlantic/Canary" "Atlantic/Cape_Verde" "Atlantic/Faroe" "Atlantic/Madeira" "Atlantic/Reykjavik" "Atlantic/South_Georgia" "Atlantic/St_Helena" "Atlantic/Stanley" "Australia/Adelaide" "Australia/Brisbane" "Australia/Broken_Hill" "Australia/Darwin" "Australia/Eucla" "Australia/Hobart" "Australia/Lindeman" "Australia/Lord_Howe" "Australia/Melbourne" "Australia/Perth" "Australia/Sydney" "Europe/Amsterdam" "Europe/Andorra" "Europe/Astrakhan" "Europe/Athens" "Europe/Belgrade" "Europe/Berlin" "Europe/Bratislava" "Europe/Brussels" "Europe/Bucharest" "Europe/Budapest" "Europe/Busingen" "Europe/Chisinau" "Europe/Copenhagen" "Europe/Dublin" "Europe/Gibraltar" "Europe/Guernsey" "Europe/Helsinki" "Europe/Isle_of_Man" "Europe/Istanbul" "Europe/Jersey" "Europe/Kaliningrad" "Europe/Kiev" "Europe/Kirov" "Europe/Lisbon" "Europe/Ljubljana" "Europe/London" "Europe/Luxembourg" "Europe/Madrid" "Europe/Malta" "Europe/Mariehamn" "Europe/Minsk" "Europe/Monaco" "Europe/Moscow" "Europe/Oslo" "Europe/Paris" "Europe/Podgorica" "Europe/Prague" "Europe/Riga" "Europe/Rome" "Europe/Samara" "Europe/San_Marino" "Europe/Sarajevo" "Europe/Saratov" "Europe/Simferopol" "Europe/Skopje" "Europe/Sofia" "Europe/Stockholm" "Europe/Tallinn" "Europe/Tirane" "Europe/Ulyanovsk" "Europe/Uzhgorod" "Europe/Vaduz" "Europe/Vatican" "Europe/Vienna" "Europe/Vilnius" "Europe/Volgograd" "Europe/Warsaw" "Europe/Zagreb" "Europe/Zaporozhye" "Europe/Zurich" "Indian/Antananarivo" "Indian/Chagos" "Indian/Christmas" "Indian/Cocos" "Indian/Comoro" "Indian/Kerguelen" "Indian/Mahe" "Indian/Maldives" "Indian/Mauritius" "Indian/Mayotte" "Indian/Reunion" "Pacific/Apia" "Pacific/Auckland" "Pacific/Bougainville" "Pacific/Chatham" "Pacific/Chuuk" "Pacific/Easter" "Pacific/Efate" "Pacific/Enderbury" "Pacific/Fakaofo" "Pacific/Fiji" "Pacific/Funafuti" "Pacific/Galapagos" "Pacific/Gambier" "Pacific/Guadalcanal" "Pacific/Guam" "Pacific/Honolulu" "Pacific/Kiritimati" "Pacific/Kosrae" "Pacific/Kwajalein" "Pacific/Majuro" "Pacific/Marquesas" "Pacific/Midway" "Pacific/Nauru" "Pacific/Niue" "Pacific/Norfolk" "Pacific/Noumea" "Pacific/Pago_Pago" "Pacific/Palau" "Pacific/Pitcairn" "Pacific/Pohnpei" "Pacific/Port_Moresby" "Pacific/Rarotonga" "Pacific/Saipan" "Pacific/Tahiti" "Pacific/Tarawa" "Pacific/Tongatapu" "Pacific/Wake" "Pacific/Wallis" "UTC" The timezone of the user making the request. |
provider | string (PaymentProvider) Enum: "stripe" "uzcard" "braintree" "hdcpay" The name of the payment provider to use as a filter. Not giving this parameters returns stats for all providers. |
{- "code": 0,
- "data": [
- {
- "dow": 6,
- "value": 0
}
]
}
Return income details by day of the requested period, in the requested currency.
start_date required | string <date> The start date of the period. |
end_date required | string <date> The end date of the period. Should be after the start_date. |
currency required | string (Currency) Enum: "AED" "AFN" "ALL" "AMD" "ANG" "AOA" "ARS" "AUD" "AWG" "AZN" "BAM" "BBD" "BDT" "BGN" "BHD" "BIF" "BMD" "BND" "BOB" "BRL" "BSD" "BTN" "BWP" "BYN" "BYR" "BZD" "CAD" "CDF" "CHF" "CLF" "CLP" "CNY" "COP" "CRC" "CUC" "CUP" "CVE" "CZK" "DJF" "DKK" "DOP" "DZD" "EGP" "ERN" "ETB" "EUR" "FJD" "FKP" "GBP" "GEL" "GGP" "GHS" "GIP" "GMD" "GNF" "GTQ" "GYD" "HKD" "HNL" "HRK" "HTG" "HUF" "IDR" "ILS" "IMP" "INR" "IQD" "IRR" "ISK" "JEP" "JMD" "JOD" "JPY" "KES" "KGS" "KHR" "KMF" "KPW" "KRW" "KWD" "KYD" "KZT" "LAK" "LBP" "LKR" "LRD" "LSL" "LTL" "LVL" "LYD" "MAD" "MDL" "MGA" "MKD" "MMK" "MNT" "MOP" "MRO" "MUR" "MVR" "MWK" "MXN" "MYR" "MZN" "NAD" "NGN" "NIO" "NOK" "NPR" "NZD" "OMR" "PAB" "PEN" "PGK" "PHP" "PKR" "PLN" "PYG" "QAR" "RON" "RSD" "RUB" "RWF" "SAR" "SBD" "SCR" "SDG" "SEK" "SGD" "SHP" "SLL" "SOS" "SRD" "STD" "SVC" "SYP" "SZL" "THB" "TJS" "TMT" "TND" "TOP" "TRY" "TTD" "TWD" "TZS" "UAH" "UGX" "USD" "UYU" "UZS" "VEF" "VND" "VUV" "WST" "XAF" "XAG" "XAU" "XCD" "XDR" "XOF" "XPF" "YER" "ZAR" "ZMK" "ZMW" "ZWL" Example: currency=EUR The currency in which to convert the amounts. |
timezone required | string (Timezone) Enum: "Africa/Abidjan" "Africa/Accra" "Africa/Addis_Ababa" "Africa/Algiers" "Africa/Asmara" "Africa/Bamako" "Africa/Bangui" "Africa/Banjul" "Africa/Bissau" "Africa/Blantyre" "Africa/Brazzaville" "Africa/Bujumbura" "Africa/Cairo" "Africa/Casablanca" "Africa/Ceuta" "Africa/Conakry" "Africa/Dakar" "Africa/Dar_es_Salaam" "Africa/Djibouti" "Africa/Douala" "Africa/El_Aaiun" "Africa/Freetown" "Africa/Gaborone" "Africa/Harare" "Africa/Johannesburg" "Africa/Juba" "Africa/Kampala" "Africa/Khartoum" "Africa/Kigali" "Africa/Kinshasa" "Africa/Lagos" "Africa/Libreville" "Africa/Lome" "Africa/Luanda" "Africa/Lubumbashi" "Africa/Lusaka" "Africa/Malabo" "Africa/Maputo" "Africa/Maseru" "Africa/Mbabane" "Africa/Mogadishu" "Africa/Monrovia" "Africa/Nairobi" "Africa/Ndjamena" "Africa/Niamey" "Africa/Nouakchott" "Africa/Ouagadougou" "Africa/Porto-Novo" "Africa/Sao_Tome" "Africa/Tripoli" "Africa/Tunis" "Africa/Windhoek" "America/Adak" "America/Anchorage" "America/Anguilla" "America/Antigua" "America/Araguaina" "America/Argentina/Buenos_Aires" "America/Argentina/Catamarca" "America/Argentina/Cordoba" "America/Argentina/Jujuy" "America/Argentina/La_Rioja" "America/Argentina/Mendoza" "America/Argentina/Rio_Gallegos" "America/Argentina/Salta" "America/Argentina/San_Juan" "America/Argentina/San_Luis" "America/Argentina/Tucuman" "America/Argentina/Ushuaia" "America/Aruba" "America/Asuncion" "America/Atikokan" "America/Bahia" "America/Bahia_Banderas" "America/Barbados" "America/Belem" "America/Belize" "America/Blanc-Sablon" "America/Boa_Vista" "America/Bogota" "America/Boise" "America/Cambridge_Bay" "America/Campo_Grande" "America/Cancun" "America/Caracas" "America/Cayenne" "America/Cayman" "America/Chicago" "America/Chihuahua" "America/Costa_Rica" "America/Creston" "America/Cuiaba" "America/Curacao" "America/Danmarkshavn" "America/Dawson" "America/Dawson_Creek" "America/Denver" "America/Detroit" "America/Dominica" "America/Edmonton" "America/Eirunepe" "America/El_Salvador" "America/Fort_Nelson" "America/Fortaleza" "America/Glace_Bay" "America/Goose_Bay" "America/Grand_Turk" "America/Grenada" "America/Guadeloupe" "America/Guatemala" "America/Guayaquil" "America/Guyana" "America/Halifax" "America/Havana" "America/Hermosillo" "America/Indiana/Indianapolis" "America/Indiana/Knox" "America/Indiana/Marengo" "America/Indiana/Petersburg" "America/Indiana/Tell_City" "America/Indiana/Vevay" "America/Indiana/Vincennes" "America/Indiana/Winamac" "America/Inuvik" "America/Iqaluit" "America/Jamaica" "America/Juneau" "America/Kentucky/Louisville" "America/Kentucky/Monticello" "America/Kralendijk" "America/La_Paz" "America/Lima" "America/Los_Angeles" "America/Lower_Princes" "America/Maceio" "America/Managua" "America/Manaus" "America/Marigot" "America/Martinique" "America/Matamoros" "America/Mazatlan" "America/Menominee" "America/Merida" "America/Metlakatla" "America/Mexico_City" "America/Miquelon" "America/Moncton" "America/Monterrey" "America/Montevideo" "America/Montserrat" "America/Nassau" "America/New_York" "America/Nipigon" "America/Nome" "America/Noronha" "America/North_Dakota/Beulah" "America/North_Dakota/Center" "America/North_Dakota/New_Salem" "America/Nuuk" "America/Ojinaga" "America/Panama" "America/Pangnirtung" "America/Paramaribo" "America/Phoenix" "America/Port-au-Prince" "America/Port_of_Spain" "America/Porto_Velho" "America/Puerto_Rico" "America/Punta_Arenas" "America/Rainy_River" "America/Rankin_Inlet" "America/Recife" "America/Regina" "America/Resolute" "America/Rio_Branco" "America/Santarem" "America/Santiago" "America/Santo_Domingo" "America/Sao_Paulo" "America/Scoresbysund" "America/Sitka" "America/St_Barthelemy" "America/St_Johns" "America/St_Kitts" "America/St_Lucia" "America/St_Thomas" "America/St_Vincent" "America/Swift_Current" "America/Tegucigalpa" "America/Thule" "America/Thunder_Bay" "America/Tijuana" "America/Toronto" "America/Tortola" "America/Vancouver" "America/Whitehorse" "America/Winnipeg" "America/Yakutat" "America/Yellowknife" "Antarctica/Casey" "Antarctica/Davis" "Antarctica/DumontDUrville" "Antarctica/Macquarie" "Antarctica/Mawson" "Antarctica/McMurdo" "Antarctica/Palmer" "Antarctica/Rothera" "Antarctica/Syowa" "Antarctica/Troll" "Antarctica/Vostok" "Arctic/Longyearbyen" "Asia/Aden" "Asia/Almaty" "Asia/Amman" "Asia/Anadyr" "Asia/Aqtau" "Asia/Aqtobe" "Asia/Ashgabat" "Asia/Atyrau" "Asia/Baghdad" "Asia/Bahrain" "Asia/Baku" "Asia/Bangkok" "Asia/Barnaul" "Asia/Beirut" "Asia/Bishkek" "Asia/Brunei" "Asia/Chita" "Asia/Choibalsan" "Asia/Colombo" "Asia/Damascus" "Asia/Dhaka" "Asia/Dili" "Asia/Dubai" "Asia/Dushanbe" "Asia/Famagusta" "Asia/Gaza" "Asia/Hebron" "Asia/Ho_Chi_Minh" "Asia/Hong_Kong" "Asia/Hovd" "Asia/Irkutsk" "Asia/Jakarta" "Asia/Jayapura" "Asia/Jerusalem" "Asia/Kabul" "Asia/Kamchatka" "Asia/Karachi" "Asia/Kathmandu" "Asia/Khandyga" "Asia/Kolkata" "Asia/Krasnoyarsk" "Asia/Kuala_Lumpur" "Asia/Kuching" "Asia/Kuwait" "Asia/Macau" "Asia/Magadan" "Asia/Makassar" "Asia/Manila" "Asia/Muscat" "Asia/Nicosia" "Asia/Novokuznetsk" "Asia/Novosibirsk" "Asia/Omsk" "Asia/Oral" "Asia/Phnom_Penh" "Asia/Pontianak" "Asia/Pyongyang" "Asia/Qatar" "Asia/Qostanay" "Asia/Qyzylorda" "Asia/Riyadh" "Asia/Sakhalin" "Asia/Samarkand" "Asia/Seoul" "Asia/Shanghai" "Asia/Singapore" "Asia/Srednekolymsk" "Asia/Taipei" "Asia/Tashkent" "Asia/Tbilisi" "Asia/Tehran" "Asia/Thimphu" "Asia/Tokyo" "Asia/Tomsk" "Asia/Ulaanbaatar" "Asia/Urumqi" "Asia/Ust-Nera" "Asia/Vientiane" "Asia/Vladivostok" "Asia/Yakutsk" "Asia/Yangon" "Asia/Yekaterinburg" "Asia/Yerevan" "Atlantic/Azores" "Atlantic/Bermuda" "Atlantic/Canary" "Atlantic/Cape_Verde" "Atlantic/Faroe" "Atlantic/Madeira" "Atlantic/Reykjavik" "Atlantic/South_Georgia" "Atlantic/St_Helena" "Atlantic/Stanley" "Australia/Adelaide" "Australia/Brisbane" "Australia/Broken_Hill" "Australia/Darwin" "Australia/Eucla" "Australia/Hobart" "Australia/Lindeman" "Australia/Lord_Howe" "Australia/Melbourne" "Australia/Perth" "Australia/Sydney" "Europe/Amsterdam" "Europe/Andorra" "Europe/Astrakhan" "Europe/Athens" "Europe/Belgrade" "Europe/Berlin" "Europe/Bratislava" "Europe/Brussels" "Europe/Bucharest" "Europe/Budapest" "Europe/Busingen" "Europe/Chisinau" "Europe/Copenhagen" "Europe/Dublin" "Europe/Gibraltar" "Europe/Guernsey" "Europe/Helsinki" "Europe/Isle_of_Man" "Europe/Istanbul" "Europe/Jersey" "Europe/Kaliningrad" "Europe/Kiev" "Europe/Kirov" "Europe/Lisbon" "Europe/Ljubljana" "Europe/London" "Europe/Luxembourg" "Europe/Madrid" "Europe/Malta" "Europe/Mariehamn" "Europe/Minsk" "Europe/Monaco" "Europe/Moscow" "Europe/Oslo" "Europe/Paris" "Europe/Podgorica" "Europe/Prague" "Europe/Riga" "Europe/Rome" "Europe/Samara" "Europe/San_Marino" "Europe/Sarajevo" "Europe/Saratov" "Europe/Simferopol" "Europe/Skopje" "Europe/Sofia" "Europe/Stockholm" "Europe/Tallinn" "Europe/Tirane" "Europe/Ulyanovsk" "Europe/Uzhgorod" "Europe/Vaduz" "Europe/Vatican" "Europe/Vienna" "Europe/Vilnius" "Europe/Volgograd" "Europe/Warsaw" "Europe/Zagreb" "Europe/Zaporozhye" "Europe/Zurich" "Indian/Antananarivo" "Indian/Chagos" "Indian/Christmas" "Indian/Cocos" "Indian/Comoro" "Indian/Kerguelen" "Indian/Mahe" "Indian/Maldives" "Indian/Mauritius" "Indian/Mayotte" "Indian/Reunion" "Pacific/Apia" "Pacific/Auckland" "Pacific/Bougainville" "Pacific/Chatham" "Pacific/Chuuk" "Pacific/Easter" "Pacific/Efate" "Pacific/Enderbury" "Pacific/Fakaofo" "Pacific/Fiji" "Pacific/Funafuti" "Pacific/Galapagos" "Pacific/Gambier" "Pacific/Guadalcanal" "Pacific/Guam" "Pacific/Honolulu" "Pacific/Kiritimati" "Pacific/Kosrae" "Pacific/Kwajalein" "Pacific/Majuro" "Pacific/Marquesas" "Pacific/Midway" "Pacific/Nauru" "Pacific/Niue" "Pacific/Norfolk" "Pacific/Noumea" "Pacific/Pago_Pago" "Pacific/Palau" "Pacific/Pitcairn" "Pacific/Pohnpei" "Pacific/Port_Moresby" "Pacific/Rarotonga" "Pacific/Saipan" "Pacific/Tahiti" "Pacific/Tarawa" "Pacific/Tongatapu" "Pacific/Wake" "Pacific/Wallis" "UTC" The timezone of the user making the request. |
provider | string (PaymentProvider) Enum: "stripe" "uzcard" "braintree" "hdcpay" The name of the payment provider to use as a filter. Not giving this parameters returns stats for all providers. |
{- "code": 0,
- "data": [
- {
- "date": "2019-08-24",
- "value": 0
}
]
}
Return trips made on specified networks.
networks required | Array of integers[ items >= 1 ] Examples:
Identifier of networks of which to get trips. |
primary_key_dir | string Default: "DESC" Enum: "ASC" "DESC" Sort direction of the trip identifier. |
page_size | integer [ 10 .. 500 ] Default: 20 The maximum items to return. |
last_primary_key | integer >= 1 Identifier of the last trip on the current page, used to request the next page. |
sort_by | string Enum: "start_date" "end_date" "duration" "distance" Custom sort key. |
sort_dir | string Default: "DESC" Enum: "ASC" "DESC" Sort direction of the custom sort key. |
state | Array of strings Items Enum: "finished" "running" "on-hold" "cancelled" Examples:
States of the trip to show. |
start_date_min | string <datetime> The minimum start date of trips to show. |
start_date_max | string <datetime> The maximum start date of trips to show. |
end_date_min | string <datetime> The minimum end date of trips to show. |
end_date_max | string <datetime> The maximum end date of trips to show. |
trip_id_min | integer >= 1 The minimum trip id to show. |
trip_id_max | integer >= 1 The maximum trip id to show. |
serial_number | string [ 1 .. 10 ] characters Filter by serial number of the rented vehicle. |
model_name | string [ 1 .. 20 ] characters Filter by model of the rented vehicle. |
demo | boolean Whether to show only demonstration or non-demonstration trips. |
string What the user email should contains. | |
user_id | integer >= 1 The identifier of the user to get trips of. |
cluster_start_name | string [ 1 .. 50 ] characters What the name of the starting cluster should contains. |
cluster_start_id | integer >= 1 The identifier of the starting cluster of trips to get. |
cluster_end_name | string [ 1 .. 50 ] characters What the name of the ending cluster should contains. |
cluster_end_id | integer >= 1 The identifier of the ending cluster of trips to get. |
duration_min | integer >= 0 Minimum duration of trips to get (in seconds). |
duration_max | integer >= 0 Maximum duration of trips to get (in seconds). |
distance_min | integer >= 0 Minimum traveled distance of trips to get (in meters). |
distance_max | integer >= 0 Maximum traveled distance of trips to get (in meters). |
{- "code": 0,
- "data": [
- {
- "trip_id": 1,
- "state": "finished",
- "start_date": "string",
- "end_date": "string",
- "billing_time_stop": "string",
- "vehicle_id": 1,
- "serial_number": "string",
- "model_name": "string",
- "model_type": "kick-scooter",
- "user_id": 1,
- "user_email": "user@example.com",
- "user_organization_name": "string",
- "user_organization_id": 1,
- "currency": "EUR",
- "cost": 0,
- "duration": 0,
- "distance": 0,
- "network_name": "string",
- "demo": true,
- "cluster_start_name": "string",
- "cluster_end_name": "string",
- "cluster_start_id": 1,
- "cluster_end_id": 1,
- "spot_start_number": 1,
- "spot_end_number": 1,
- "spot_start_id": 1,
- "spot_end_id": 1,
- "balancing_discount": 0,
- "passes": [
- 1
], - "user_subscription_id": 1
}
], - "total": 0
}
Return the detail of a trip.
id required | integer >= 1 Identifier of trip to get the detail of. |
{- "code": 0,
- "data": {
- "coords": {
- "lat": -90,
- "lng": -180,
- "date": "2019-08-24T14:15:22Z"
}, - "used_passes": [
- {
- "pass_id": 1,
- "user_pass_id": 1,
- "duration": 0,
- "remaining": 0,
- "used": 1
}
], - "on_hold_ranges": [
- [
- "string",
- "string"
]
], - "on_hold_since": "string",
- "battery_level_start": 100,
- "battery_level_end": 100,
- "lock_id": 1,
- "lock_type": 0
}
}
Set the trip billing stop date, do not set a date to erase a previous stop date.
id required | integer >= 1 Identifier of trip to get the detail of. |
Date to set.
date required | string or null <date-time> The date at which to stop the billing. |
{- "date": "2019-08-24T14:15:22Z"
}
{- "code": 0
}
Return number of trips and unique users grouped by day, week, month or quarter (depending on the period between the requested dates).
networks required | Array of integers[ items >= 1 ] Examples:
Identifier of networks of which to get trips. |
start_date required | string <date> The start date of the period. |
end_date required | string <date> The end date of the period. Should be after the start_date. |
timezone required | string (Timezone) Enum: "Africa/Abidjan" "Africa/Accra" "Africa/Addis_Ababa" "Africa/Algiers" "Africa/Asmara" "Africa/Bamako" "Africa/Bangui" "Africa/Banjul" "Africa/Bissau" "Africa/Blantyre" "Africa/Brazzaville" "Africa/Bujumbura" "Africa/Cairo" "Africa/Casablanca" "Africa/Ceuta" "Africa/Conakry" "Africa/Dakar" "Africa/Dar_es_Salaam" "Africa/Djibouti" "Africa/Douala" "Africa/El_Aaiun" "Africa/Freetown" "Africa/Gaborone" "Africa/Harare" "Africa/Johannesburg" "Africa/Juba" "Africa/Kampala" "Africa/Khartoum" "Africa/Kigali" "Africa/Kinshasa" "Africa/Lagos" "Africa/Libreville" "Africa/Lome" "Africa/Luanda" "Africa/Lubumbashi" "Africa/Lusaka" "Africa/Malabo" "Africa/Maputo" "Africa/Maseru" "Africa/Mbabane" "Africa/Mogadishu" "Africa/Monrovia" "Africa/Nairobi" "Africa/Ndjamena" "Africa/Niamey" "Africa/Nouakchott" "Africa/Ouagadougou" "Africa/Porto-Novo" "Africa/Sao_Tome" "Africa/Tripoli" "Africa/Tunis" "Africa/Windhoek" "America/Adak" "America/Anchorage" "America/Anguilla" "America/Antigua" "America/Araguaina" "America/Argentina/Buenos_Aires" "America/Argentina/Catamarca" "America/Argentina/Cordoba" "America/Argentina/Jujuy" "America/Argentina/La_Rioja" "America/Argentina/Mendoza" "America/Argentina/Rio_Gallegos" "America/Argentina/Salta" "America/Argentina/San_Juan" "America/Argentina/San_Luis" "America/Argentina/Tucuman" "America/Argentina/Ushuaia" "America/Aruba" "America/Asuncion" "America/Atikokan" "America/Bahia" "America/Bahia_Banderas" "America/Barbados" "America/Belem" "America/Belize" "America/Blanc-Sablon" "America/Boa_Vista" "America/Bogota" "America/Boise" "America/Cambridge_Bay" "America/Campo_Grande" "America/Cancun" "America/Caracas" "America/Cayenne" "America/Cayman" "America/Chicago" "America/Chihuahua" "America/Costa_Rica" "America/Creston" "America/Cuiaba" "America/Curacao" "America/Danmarkshavn" "America/Dawson" "America/Dawson_Creek" "America/Denver" "America/Detroit" "America/Dominica" "America/Edmonton" "America/Eirunepe" "America/El_Salvador" "America/Fort_Nelson" "America/Fortaleza" "America/Glace_Bay" "America/Goose_Bay" "America/Grand_Turk" "America/Grenada" "America/Guadeloupe" "America/Guatemala" "America/Guayaquil" "America/Guyana" "America/Halifax" "America/Havana" "America/Hermosillo" "America/Indiana/Indianapolis" "America/Indiana/Knox" "America/Indiana/Marengo" "America/Indiana/Petersburg" "America/Indiana/Tell_City" "America/Indiana/Vevay" "America/Indiana/Vincennes" "America/Indiana/Winamac" "America/Inuvik" "America/Iqaluit" "America/Jamaica" "America/Juneau" "America/Kentucky/Louisville" "America/Kentucky/Monticello" "America/Kralendijk" "America/La_Paz" "America/Lima" "America/Los_Angeles" "America/Lower_Princes" "America/Maceio" "America/Managua" "America/Manaus" "America/Marigot" "America/Martinique" "America/Matamoros" "America/Mazatlan" "America/Menominee" "America/Merida" "America/Metlakatla" "America/Mexico_City" "America/Miquelon" "America/Moncton" "America/Monterrey" "America/Montevideo" "America/Montserrat" "America/Nassau" "America/New_York" "America/Nipigon" "America/Nome" "America/Noronha" "America/North_Dakota/Beulah" "America/North_Dakota/Center" "America/North_Dakota/New_Salem" "America/Nuuk" "America/Ojinaga" "America/Panama" "America/Pangnirtung" "America/Paramaribo" "America/Phoenix" "America/Port-au-Prince" "America/Port_of_Spain" "America/Porto_Velho" "America/Puerto_Rico" "America/Punta_Arenas" "America/Rainy_River" "America/Rankin_Inlet" "America/Recife" "America/Regina" "America/Resolute" "America/Rio_Branco" "America/Santarem" "America/Santiago" "America/Santo_Domingo" "America/Sao_Paulo" "America/Scoresbysund" "America/Sitka" "America/St_Barthelemy" "America/St_Johns" "America/St_Kitts" "America/St_Lucia" "America/St_Thomas" "America/St_Vincent" "America/Swift_Current" "America/Tegucigalpa" "America/Thule" "America/Thunder_Bay" "America/Tijuana" "America/Toronto" "America/Tortola" "America/Vancouver" "America/Whitehorse" "America/Winnipeg" "America/Yakutat" "America/Yellowknife" "Antarctica/Casey" "Antarctica/Davis" "Antarctica/DumontDUrville" "Antarctica/Macquarie" "Antarctica/Mawson" "Antarctica/McMurdo" "Antarctica/Palmer" "Antarctica/Rothera" "Antarctica/Syowa" "Antarctica/Troll" "Antarctica/Vostok" "Arctic/Longyearbyen" "Asia/Aden" "Asia/Almaty" "Asia/Amman" "Asia/Anadyr" "Asia/Aqtau" "Asia/Aqtobe" "Asia/Ashgabat" "Asia/Atyrau" "Asia/Baghdad" "Asia/Bahrain" "Asia/Baku" "Asia/Bangkok" "Asia/Barnaul" "Asia/Beirut" "Asia/Bishkek" "Asia/Brunei" "Asia/Chita" "Asia/Choibalsan" "Asia/Colombo" "Asia/Damascus" "Asia/Dhaka" "Asia/Dili" "Asia/Dubai" "Asia/Dushanbe" "Asia/Famagusta" "Asia/Gaza" "Asia/Hebron" "Asia/Ho_Chi_Minh" "Asia/Hong_Kong" "Asia/Hovd" "Asia/Irkutsk" "Asia/Jakarta" "Asia/Jayapura" "Asia/Jerusalem" "Asia/Kabul" "Asia/Kamchatka" "Asia/Karachi" "Asia/Kathmandu" "Asia/Khandyga" "Asia/Kolkata" "Asia/Krasnoyarsk" "Asia/Kuala_Lumpur" "Asia/Kuching" "Asia/Kuwait" "Asia/Macau" "Asia/Magadan" "Asia/Makassar" "Asia/Manila" "Asia/Muscat" "Asia/Nicosia" "Asia/Novokuznetsk" "Asia/Novosibirsk" "Asia/Omsk" "Asia/Oral" "Asia/Phnom_Penh" "Asia/Pontianak" "Asia/Pyongyang" "Asia/Qatar" "Asia/Qostanay" "Asia/Qyzylorda" "Asia/Riyadh" "Asia/Sakhalin" "Asia/Samarkand" "Asia/Seoul" "Asia/Shanghai" "Asia/Singapore" "Asia/Srednekolymsk" "Asia/Taipei" "Asia/Tashkent" "Asia/Tbilisi" "Asia/Tehran" "Asia/Thimphu" "Asia/Tokyo" "Asia/Tomsk" "Asia/Ulaanbaatar" "Asia/Urumqi" "Asia/Ust-Nera" "Asia/Vientiane" "Asia/Vladivostok" "Asia/Yakutsk" "Asia/Yangon" "Asia/Yekaterinburg" "Asia/Yerevan" "Atlantic/Azores" "Atlantic/Bermuda" "Atlantic/Canary" "Atlantic/Cape_Verde" "Atlantic/Faroe" "Atlantic/Madeira" "Atlantic/Reykjavik" "Atlantic/South_Georgia" "Atlantic/St_Helena" "Atlantic/Stanley" "Australia/Adelaide" "Australia/Brisbane" "Australia/Broken_Hill" "Australia/Darwin" "Australia/Eucla" "Australia/Hobart" "Australia/Lindeman" "Australia/Lord_Howe" "Australia/Melbourne" "Australia/Perth" "Australia/Sydney" "Europe/Amsterdam" "Europe/Andorra" "Europe/Astrakhan" "Europe/Athens" "Europe/Belgrade" "Europe/Berlin" "Europe/Bratislava" "Europe/Brussels" "Europe/Bucharest" "Europe/Budapest" "Europe/Busingen" "Europe/Chisinau" "Europe/Copenhagen" "Europe/Dublin" "Europe/Gibraltar" "Europe/Guernsey" "Europe/Helsinki" "Europe/Isle_of_Man" "Europe/Istanbul" "Europe/Jersey" "Europe/Kaliningrad" "Europe/Kiev" "Europe/Kirov" "Europe/Lisbon" "Europe/Ljubljana" "Europe/London" "Europe/Luxembourg" "Europe/Madrid" "Europe/Malta" "Europe/Mariehamn" "Europe/Minsk" "Europe/Monaco" "Europe/Moscow" "Europe/Oslo" "Europe/Paris" "Europe/Podgorica" "Europe/Prague" "Europe/Riga" "Europe/Rome" "Europe/Samara" "Europe/San_Marino" "Europe/Sarajevo" "Europe/Saratov" "Europe/Simferopol" "Europe/Skopje" "Europe/Sofia" "Europe/Stockholm" "Europe/Tallinn" "Europe/Tirane" "Europe/Ulyanovsk" "Europe/Uzhgorod" "Europe/Vaduz" "Europe/Vatican" "Europe/Vienna" "Europe/Vilnius" "Europe/Volgograd" "Europe/Warsaw" "Europe/Zagreb" "Europe/Zaporozhye" "Europe/Zurich" "Indian/Antananarivo" "Indian/Chagos" "Indian/Christmas" "Indian/Cocos" "Indian/Comoro" "Indian/Kerguelen" "Indian/Mahe" "Indian/Maldives" "Indian/Mauritius" "Indian/Mayotte" "Indian/Reunion" "Pacific/Apia" "Pacific/Auckland" "Pacific/Bougainville" "Pacific/Chatham" "Pacific/Chuuk" "Pacific/Easter" "Pacific/Efate" "Pacific/Enderbury" "Pacific/Fakaofo" "Pacific/Fiji" "Pacific/Funafuti" "Pacific/Galapagos" "Pacific/Gambier" "Pacific/Guadalcanal" "Pacific/Guam" "Pacific/Honolulu" "Pacific/Kiritimati" "Pacific/Kosrae" "Pacific/Kwajalein" "Pacific/Majuro" "Pacific/Marquesas" "Pacific/Midway" "Pacific/Nauru" "Pacific/Niue" "Pacific/Norfolk" "Pacific/Noumea" "Pacific/Pago_Pago" "Pacific/Palau" "Pacific/Pitcairn" "Pacific/Pohnpei" "Pacific/Port_Moresby" "Pacific/Rarotonga" "Pacific/Saipan" "Pacific/Tahiti" "Pacific/Tarawa" "Pacific/Tongatapu" "Pacific/Wake" "Pacific/Wallis" "UTC" The timezone of the user making the request. |
organizations | Array of integers[ items >= 1 ] Examples:
Filter by identifier of organizations of which to get trips. Set to 'null' to get trips from user without organization. Ignore to get trips from all users. |
{- "code": 0,
- "data": [
- {
- "date": "2022 Q2",
- "trips": 3463,
- "unique_users": 456
}
]
}
Return usage stats (total trips, unique users, rented vehicle ; total, average, median and max distance of trips ; total, average median and max duration of trips) in the requested period.
networks required | Array of integers[ items >= 1 ] Examples:
Identifier of networks of which to get trips. |
start_date required | string <date> The start date of the period. |
end_date required | string <date> The end date of the period. Should be after the start_date. |
timezone required | string (Timezone) Enum: "Africa/Abidjan" "Africa/Accra" "Africa/Addis_Ababa" "Africa/Algiers" "Africa/Asmara" "Africa/Bamako" "Africa/Bangui" "Africa/Banjul" "Africa/Bissau" "Africa/Blantyre" "Africa/Brazzaville" "Africa/Bujumbura" "Africa/Cairo" "Africa/Casablanca" "Africa/Ceuta" "Africa/Conakry" "Africa/Dakar" "Africa/Dar_es_Salaam" "Africa/Djibouti" "Africa/Douala" "Africa/El_Aaiun" "Africa/Freetown" "Africa/Gaborone" "Africa/Harare" "Africa/Johannesburg" "Africa/Juba" "Africa/Kampala" "Africa/Khartoum" "Africa/Kigali" "Africa/Kinshasa" "Africa/Lagos" "Africa/Libreville" "Africa/Lome" "Africa/Luanda" "Africa/Lubumbashi" "Africa/Lusaka" "Africa/Malabo" "Africa/Maputo" "Africa/Maseru" "Africa/Mbabane" "Africa/Mogadishu" "Africa/Monrovia" "Africa/Nairobi" "Africa/Ndjamena" "Africa/Niamey" "Africa/Nouakchott" "Africa/Ouagadougou" "Africa/Porto-Novo" "Africa/Sao_Tome" "Africa/Tripoli" "Africa/Tunis" "Africa/Windhoek" "America/Adak" "America/Anchorage" "America/Anguilla" "America/Antigua" "America/Araguaina" "America/Argentina/Buenos_Aires" "America/Argentina/Catamarca" "America/Argentina/Cordoba" "America/Argentina/Jujuy" "America/Argentina/La_Rioja" "America/Argentina/Mendoza" "America/Argentina/Rio_Gallegos" "America/Argentina/Salta" "America/Argentina/San_Juan" "America/Argentina/San_Luis" "America/Argentina/Tucuman" "America/Argentina/Ushuaia" "America/Aruba" "America/Asuncion" "America/Atikokan" "America/Bahia" "America/Bahia_Banderas" "America/Barbados" "America/Belem" "America/Belize" "America/Blanc-Sablon" "America/Boa_Vista" "America/Bogota" "America/Boise" "America/Cambridge_Bay" "America/Campo_Grande" "America/Cancun" "America/Caracas" "America/Cayenne" "America/Cayman" "America/Chicago" "America/Chihuahua" "America/Costa_Rica" "America/Creston" "America/Cuiaba" "America/Curacao" "America/Danmarkshavn" "America/Dawson" "America/Dawson_Creek" "America/Denver" "America/Detroit" "America/Dominica" "America/Edmonton" "America/Eirunepe" "America/El_Salvador" "America/Fort_Nelson" "America/Fortaleza" "America/Glace_Bay" "America/Goose_Bay" "America/Grand_Turk" "America/Grenada" "America/Guadeloupe" "America/Guatemala" "America/Guayaquil" "America/Guyana" "America/Halifax" "America/Havana" "America/Hermosillo" "America/Indiana/Indianapolis" "America/Indiana/Knox" "America/Indiana/Marengo" "America/Indiana/Petersburg" "America/Indiana/Tell_City" "America/Indiana/Vevay" "America/Indiana/Vincennes" "America/Indiana/Winamac" "America/Inuvik" "America/Iqaluit" "America/Jamaica" "America/Juneau" "America/Kentucky/Louisville" "America/Kentucky/Monticello" "America/Kralendijk" "America/La_Paz" "America/Lima" "America/Los_Angeles" "America/Lower_Princes" "America/Maceio" "America/Managua" "America/Manaus" "America/Marigot" "America/Martinique" "America/Matamoros" "America/Mazatlan" "America/Menominee" "America/Merida" "America/Metlakatla" "America/Mexico_City" "America/Miquelon" "America/Moncton" "America/Monterrey" "America/Montevideo" "America/Montserrat" "America/Nassau" "America/New_York" "America/Nipigon" "America/Nome" "America/Noronha" "America/North_Dakota/Beulah" "America/North_Dakota/Center" "America/North_Dakota/New_Salem" "America/Nuuk" "America/Ojinaga" "America/Panama" "America/Pangnirtung" "America/Paramaribo" "America/Phoenix" "America/Port-au-Prince" "America/Port_of_Spain" "America/Porto_Velho" "America/Puerto_Rico" "America/Punta_Arenas" "America/Rainy_River" "America/Rankin_Inlet" "America/Recife" "America/Regina" "America/Resolute" "America/Rio_Branco" "America/Santarem" "America/Santiago" "America/Santo_Domingo" "America/Sao_Paulo" "America/Scoresbysund" "America/Sitka" "America/St_Barthelemy" "America/St_Johns" "America/St_Kitts" "America/St_Lucia" "America/St_Thomas" "America/St_Vincent" "America/Swift_Current" "America/Tegucigalpa" "America/Thule" "America/Thunder_Bay" "America/Tijuana" "America/Toronto" "America/Tortola" "America/Vancouver" "America/Whitehorse" "America/Winnipeg" "America/Yakutat" "America/Yellowknife" "Antarctica/Casey" "Antarctica/Davis" "Antarctica/DumontDUrville" "Antarctica/Macquarie" "Antarctica/Mawson" "Antarctica/McMurdo" "Antarctica/Palmer" "Antarctica/Rothera" "Antarctica/Syowa" "Antarctica/Troll" "Antarctica/Vostok" "Arctic/Longyearbyen" "Asia/Aden" "Asia/Almaty" "Asia/Amman" "Asia/Anadyr" "Asia/Aqtau" "Asia/Aqtobe" "Asia/Ashgabat" "Asia/Atyrau" "Asia/Baghdad" "Asia/Bahrain" "Asia/Baku" "Asia/Bangkok" "Asia/Barnaul" "Asia/Beirut" "Asia/Bishkek" "Asia/Brunei" "Asia/Chita" "Asia/Choibalsan" "Asia/Colombo" "Asia/Damascus" "Asia/Dhaka" "Asia/Dili" "Asia/Dubai" "Asia/Dushanbe" "Asia/Famagusta" "Asia/Gaza" "Asia/Hebron" "Asia/Ho_Chi_Minh" "Asia/Hong_Kong" "Asia/Hovd" "Asia/Irkutsk" "Asia/Jakarta" "Asia/Jayapura" "Asia/Jerusalem" "Asia/Kabul" "Asia/Kamchatka" "Asia/Karachi" "Asia/Kathmandu" "Asia/Khandyga" "Asia/Kolkata" "Asia/Krasnoyarsk" "Asia/Kuala_Lumpur" "Asia/Kuching" "Asia/Kuwait" "Asia/Macau" "Asia/Magadan" "Asia/Makassar" "Asia/Manila" "Asia/Muscat" "Asia/Nicosia" "Asia/Novokuznetsk" "Asia/Novosibirsk" "Asia/Omsk" "Asia/Oral" "Asia/Phnom_Penh" "Asia/Pontianak" "Asia/Pyongyang" "Asia/Qatar" "Asia/Qostanay" "Asia/Qyzylorda" "Asia/Riyadh" "Asia/Sakhalin" "Asia/Samarkand" "Asia/Seoul" "Asia/Shanghai" "Asia/Singapore" "Asia/Srednekolymsk" "Asia/Taipei" "Asia/Tashkent" "Asia/Tbilisi" "Asia/Tehran" "Asia/Thimphu" "Asia/Tokyo" "Asia/Tomsk" "Asia/Ulaanbaatar" "Asia/Urumqi" "Asia/Ust-Nera" "Asia/Vientiane" "Asia/Vladivostok" "Asia/Yakutsk" "Asia/Yangon" "Asia/Yekaterinburg" "Asia/Yerevan" "Atlantic/Azores" "Atlantic/Bermuda" "Atlantic/Canary" "Atlantic/Cape_Verde" "Atlantic/Faroe" "Atlantic/Madeira" "Atlantic/Reykjavik" "Atlantic/South_Georgia" "Atlantic/St_Helena" "Atlantic/Stanley" "Australia/Adelaide" "Australia/Brisbane" "Australia/Broken_Hill" "Australia/Darwin" "Australia/Eucla" "Australia/Hobart" "Australia/Lindeman" "Australia/Lord_Howe" "Australia/Melbourne" "Australia/Perth" "Australia/Sydney" "Europe/Amsterdam" "Europe/Andorra" "Europe/Astrakhan" "Europe/Athens" "Europe/Belgrade" "Europe/Berlin" "Europe/Bratislava" "Europe/Brussels" "Europe/Bucharest" "Europe/Budapest" "Europe/Busingen" "Europe/Chisinau" "Europe/Copenhagen" "Europe/Dublin" "Europe/Gibraltar" "Europe/Guernsey" "Europe/Helsinki" "Europe/Isle_of_Man" "Europe/Istanbul" "Europe/Jersey" "Europe/Kaliningrad" "Europe/Kiev" "Europe/Kirov" "Europe/Lisbon" "Europe/Ljubljana" "Europe/London" "Europe/Luxembourg" "Europe/Madrid" "Europe/Malta" "Europe/Mariehamn" "Europe/Minsk" "Europe/Monaco" "Europe/Moscow" "Europe/Oslo" "Europe/Paris" "Europe/Podgorica" "Europe/Prague" "Europe/Riga" "Europe/Rome" "Europe/Samara" "Europe/San_Marino" "Europe/Sarajevo" "Europe/Saratov" "Europe/Simferopol" "Europe/Skopje" "Europe/Sofia" "Europe/Stockholm" "Europe/Tallinn" "Europe/Tirane" "Europe/Ulyanovsk" "Europe/Uzhgorod" "Europe/Vaduz" "Europe/Vatican" "Europe/Vienna" "Europe/Vilnius" "Europe/Volgograd" "Europe/Warsaw" "Europe/Zagreb" "Europe/Zaporozhye" "Europe/Zurich" "Indian/Antananarivo" "Indian/Chagos" "Indian/Christmas" "Indian/Cocos" "Indian/Comoro" "Indian/Kerguelen" "Indian/Mahe" "Indian/Maldives" "Indian/Mauritius" "Indian/Mayotte" "Indian/Reunion" "Pacific/Apia" "Pacific/Auckland" "Pacific/Bougainville" "Pacific/Chatham" "Pacific/Chuuk" "Pacific/Easter" "Pacific/Efate" "Pacific/Enderbury" "Pacific/Fakaofo" "Pacific/Fiji" "Pacific/Funafuti" "Pacific/Galapagos" "Pacific/Gambier" "Pacific/Guadalcanal" "Pacific/Guam" "Pacific/Honolulu" "Pacific/Kiritimati" "Pacific/Kosrae" "Pacific/Kwajalein" "Pacific/Majuro" "Pacific/Marquesas" "Pacific/Midway" "Pacific/Nauru" "Pacific/Niue" "Pacific/Norfolk" "Pacific/Noumea" "Pacific/Pago_Pago" "Pacific/Palau" "Pacific/Pitcairn" "Pacific/Pohnpei" "Pacific/Port_Moresby" "Pacific/Rarotonga" "Pacific/Saipan" "Pacific/Tahiti" "Pacific/Tarawa" "Pacific/Tongatapu" "Pacific/Wake" "Pacific/Wallis" "UTC" The timezone of the user making the request. |
organizations | Array of integers[ items >= 1 ] Examples:
Filter by identifier of organizations of which to get trips. Set to 'null' to get trips from user without organization. Ignore to get trips from all users. |
{- "code": 0,
- "data": {
- "trips": 0,
- "unique_users": 0,
- "rented_vehicles": 0,
- "avg_trips_by_day": 0,
- "avg_users_by_day": 0,
- "avg_vehicles_by_day": 0,
- "distance_sum": 0,
- "distance_max": 0,
- "distance_avg": 0,
- "distance_median": 0,
- "duration_sum": 0,
- "duration_max": 0,
- "duration_avg": 0,
- "duration_median": 0,
- "vehicle_count": 0,
- "vehicle_availability": 1
}
}
Return number of trips by day of the week in the requested period.
networks required | Array of integers[ items >= 1 ] Examples:
Identifier of networks of which to get trips. |
start_date required | string <date> The start date of the period. |
end_date required | string <date> The end date of the period. Should be after the start_date. |
timezone required | string (Timezone) Enum: "Africa/Abidjan" "Africa/Accra" "Africa/Addis_Ababa" "Africa/Algiers" "Africa/Asmara" "Africa/Bamako" "Africa/Bangui" "Africa/Banjul" "Africa/Bissau" "Africa/Blantyre" "Africa/Brazzaville" "Africa/Bujumbura" "Africa/Cairo" "Africa/Casablanca" "Africa/Ceuta" "Africa/Conakry" "Africa/Dakar" "Africa/Dar_es_Salaam" "Africa/Djibouti" "Africa/Douala" "Africa/El_Aaiun" "Africa/Freetown" "Africa/Gaborone" "Africa/Harare" "Africa/Johannesburg" "Africa/Juba" "Africa/Kampala" "Africa/Khartoum" "Africa/Kigali" "Africa/Kinshasa" "Africa/Lagos" "Africa/Libreville" "Africa/Lome" "Africa/Luanda" "Africa/Lubumbashi" "Africa/Lusaka" "Africa/Malabo" "Africa/Maputo" "Africa/Maseru" "Africa/Mbabane" "Africa/Mogadishu" "Africa/Monrovia" "Africa/Nairobi" "Africa/Ndjamena" "Africa/Niamey" "Africa/Nouakchott" "Africa/Ouagadougou" "Africa/Porto-Novo" "Africa/Sao_Tome" "Africa/Tripoli" "Africa/Tunis" "Africa/Windhoek" "America/Adak" "America/Anchorage" "America/Anguilla" "America/Antigua" "America/Araguaina" "America/Argentina/Buenos_Aires" "America/Argentina/Catamarca" "America/Argentina/Cordoba" "America/Argentina/Jujuy" "America/Argentina/La_Rioja" "America/Argentina/Mendoza" "America/Argentina/Rio_Gallegos" "America/Argentina/Salta" "America/Argentina/San_Juan" "America/Argentina/San_Luis" "America/Argentina/Tucuman" "America/Argentina/Ushuaia" "America/Aruba" "America/Asuncion" "America/Atikokan" "America/Bahia" "America/Bahia_Banderas" "America/Barbados" "America/Belem" "America/Belize" "America/Blanc-Sablon" "America/Boa_Vista" "America/Bogota" "America/Boise" "America/Cambridge_Bay" "America/Campo_Grande" "America/Cancun" "America/Caracas" "America/Cayenne" "America/Cayman" "America/Chicago" "America/Chihuahua" "America/Costa_Rica" "America/Creston" "America/Cuiaba" "America/Curacao" "America/Danmarkshavn" "America/Dawson" "America/Dawson_Creek" "America/Denver" "America/Detroit" "America/Dominica" "America/Edmonton" "America/Eirunepe" "America/El_Salvador" "America/Fort_Nelson" "America/Fortaleza" "America/Glace_Bay" "America/Goose_Bay" "America/Grand_Turk" "America/Grenada" "America/Guadeloupe" "America/Guatemala" "America/Guayaquil" "America/Guyana" "America/Halifax" "America/Havana" "America/Hermosillo" "America/Indiana/Indianapolis" "America/Indiana/Knox" "America/Indiana/Marengo" "America/Indiana/Petersburg" "America/Indiana/Tell_City" "America/Indiana/Vevay" "America/Indiana/Vincennes" "America/Indiana/Winamac" "America/Inuvik" "America/Iqaluit" "America/Jamaica" "America/Juneau" "America/Kentucky/Louisville" "America/Kentucky/Monticello" "America/Kralendijk" "America/La_Paz" "America/Lima" "America/Los_Angeles" "America/Lower_Princes" "America/Maceio" "America/Managua" "America/Manaus" "America/Marigot" "America/Martinique" "America/Matamoros" "America/Mazatlan" "America/Menominee" "America/Merida" "America/Metlakatla" "America/Mexico_City" "America/Miquelon" "America/Moncton" "America/Monterrey" "America/Montevideo" "America/Montserrat" "America/Nassau" "America/New_York" "America/Nipigon" "America/Nome" "America/Noronha" "America/North_Dakota/Beulah" "America/North_Dakota/Center" "America/North_Dakota/New_Salem" "America/Nuuk" "America/Ojinaga" "America/Panama" "America/Pangnirtung" "America/Paramaribo" "America/Phoenix" "America/Port-au-Prince" "America/Port_of_Spain" "America/Porto_Velho" "America/Puerto_Rico" "America/Punta_Arenas" "America/Rainy_River" "America/Rankin_Inlet" "America/Recife" "America/Regina" "America/Resolute" "America/Rio_Branco" "America/Santarem" "America/Santiago" "America/Santo_Domingo" "America/Sao_Paulo" "America/Scoresbysund" "America/Sitka" "America/St_Barthelemy" "America/St_Johns" "America/St_Kitts" "America/St_Lucia" "America/St_Thomas" "America/St_Vincent" "America/Swift_Current" "America/Tegucigalpa" "America/Thule" "America/Thunder_Bay" "America/Tijuana" "America/Toronto" "America/Tortola" "America/Vancouver" "America/Whitehorse" "America/Winnipeg" "America/Yakutat" "America/Yellowknife" "Antarctica/Casey" "Antarctica/Davis" "Antarctica/DumontDUrville" "Antarctica/Macquarie" "Antarctica/Mawson" "Antarctica/McMurdo" "Antarctica/Palmer" "Antarctica/Rothera" "Antarctica/Syowa" "Antarctica/Troll" "Antarctica/Vostok" "Arctic/Longyearbyen" "Asia/Aden" "Asia/Almaty" "Asia/Amman" "Asia/Anadyr" "Asia/Aqtau" "Asia/Aqtobe" "Asia/Ashgabat" "Asia/Atyrau" "Asia/Baghdad" "Asia/Bahrain" "Asia/Baku" "Asia/Bangkok" "Asia/Barnaul" "Asia/Beirut" "Asia/Bishkek" "Asia/Brunei" "Asia/Chita" "Asia/Choibalsan" "Asia/Colombo" "Asia/Damascus" "Asia/Dhaka" "Asia/Dili" "Asia/Dubai" "Asia/Dushanbe" "Asia/Famagusta" "Asia/Gaza" "Asia/Hebron" "Asia/Ho_Chi_Minh" "Asia/Hong_Kong" "Asia/Hovd" "Asia/Irkutsk" "Asia/Jakarta" "Asia/Jayapura" "Asia/Jerusalem" "Asia/Kabul" "Asia/Kamchatka" "Asia/Karachi" "Asia/Kathmandu" "Asia/Khandyga" "Asia/Kolkata" "Asia/Krasnoyarsk" "Asia/Kuala_Lumpur" "Asia/Kuching" "Asia/Kuwait" "Asia/Macau" "Asia/Magadan" "Asia/Makassar" "Asia/Manila" "Asia/Muscat" "Asia/Nicosia" "Asia/Novokuznetsk" "Asia/Novosibirsk" "Asia/Omsk" "Asia/Oral" "Asia/Phnom_Penh" "Asia/Pontianak" "Asia/Pyongyang" "Asia/Qatar" "Asia/Qostanay" "Asia/Qyzylorda" "Asia/Riyadh" "Asia/Sakhalin" "Asia/Samarkand" "Asia/Seoul" "Asia/Shanghai" "Asia/Singapore" "Asia/Srednekolymsk" "Asia/Taipei" "Asia/Tashkent" "Asia/Tbilisi" "Asia/Tehran" "Asia/Thimphu" "Asia/Tokyo" "Asia/Tomsk" "Asia/Ulaanbaatar" "Asia/Urumqi" "Asia/Ust-Nera" "Asia/Vientiane" "Asia/Vladivostok" "Asia/Yakutsk" "Asia/Yangon" "Asia/Yekaterinburg" "Asia/Yerevan" "Atlantic/Azores" "Atlantic/Bermuda" "Atlantic/Canary" "Atlantic/Cape_Verde" "Atlantic/Faroe" "Atlantic/Madeira" "Atlantic/Reykjavik" "Atlantic/South_Georgia" "Atlantic/St_Helena" "Atlantic/Stanley" "Australia/Adelaide" "Australia/Brisbane" "Australia/Broken_Hill" "Australia/Darwin" "Australia/Eucla" "Australia/Hobart" "Australia/Lindeman" "Australia/Lord_Howe" "Australia/Melbourne" "Australia/Perth" "Australia/Sydney" "Europe/Amsterdam" "Europe/Andorra" "Europe/Astrakhan" "Europe/Athens" "Europe/Belgrade" "Europe/Berlin" "Europe/Bratislava" "Europe/Brussels" "Europe/Bucharest" "Europe/Budapest" "Europe/Busingen" "Europe/Chisinau" "Europe/Copenhagen" "Europe/Dublin" "Europe/Gibraltar" "Europe/Guernsey" "Europe/Helsinki" "Europe/Isle_of_Man" "Europe/Istanbul" "Europe/Jersey" "Europe/Kaliningrad" "Europe/Kiev" "Europe/Kirov" "Europe/Lisbon" "Europe/Ljubljana" "Europe/London" "Europe/Luxembourg" "Europe/Madrid" "Europe/Malta" "Europe/Mariehamn" "Europe/Minsk" "Europe/Monaco" "Europe/Moscow" "Europe/Oslo" "Europe/Paris" "Europe/Podgorica" "Europe/Prague" "Europe/Riga" "Europe/Rome" "Europe/Samara" "Europe/San_Marino" "Europe/Sarajevo" "Europe/Saratov" "Europe/Simferopol" "Europe/Skopje" "Europe/Sofia" "Europe/Stockholm" "Europe/Tallinn" "Europe/Tirane" "Europe/Ulyanovsk" "Europe/Uzhgorod" "Europe/Vaduz" "Europe/Vatican" "Europe/Vienna" "Europe/Vilnius" "Europe/Volgograd" "Europe/Warsaw" "Europe/Zagreb" "Europe/Zaporozhye" "Europe/Zurich" "Indian/Antananarivo" "Indian/Chagos" "Indian/Christmas" "Indian/Cocos" "Indian/Comoro" "Indian/Kerguelen" "Indian/Mahe" "Indian/Maldives" "Indian/Mauritius" "Indian/Mayotte" "Indian/Reunion" "Pacific/Apia" "Pacific/Auckland" "Pacific/Bougainville" "Pacific/Chatham" "Pacific/Chuuk" "Pacific/Easter" "Pacific/Efate" "Pacific/Enderbury" "Pacific/Fakaofo" "Pacific/Fiji" "Pacific/Funafuti" "Pacific/Galapagos" "Pacific/Gambier" "Pacific/Guadalcanal" "Pacific/Guam" "Pacific/Honolulu" "Pacific/Kiritimati" "Pacific/Kosrae" "Pacific/Kwajalein" "Pacific/Majuro" "Pacific/Marquesas" "Pacific/Midway" "Pacific/Nauru" "Pacific/Niue" "Pacific/Norfolk" "Pacific/Noumea" "Pacific/Pago_Pago" "Pacific/Palau" "Pacific/Pitcairn" "Pacific/Pohnpei" "Pacific/Port_Moresby" "Pacific/Rarotonga" "Pacific/Saipan" "Pacific/Tahiti" "Pacific/Tarawa" "Pacific/Tongatapu" "Pacific/Wake" "Pacific/Wallis" "UTC" The timezone of the user making the request. |
organizations | Array of integers[ items >= 1 ] Examples:
Filter by identifier of organizations of which to get trips. Set to 'null' to get trips from user without organization. Ignore to get trips from all users. |
{- "code": 0,
- "data": [
- {
- "dow": 6,
- "value": 0
}
]
}
Return number of trips by time of day in the requested period.
networks required | Array of integers[ items >= 1 ] Examples:
Identifier of networks of which to get trips. |
start_date required | string <date> The start date of the period. |
end_date required | string <date> The end date of the period. Should be after the start_date. |
timezone required | string (Timezone) Enum: "Africa/Abidjan" "Africa/Accra" "Africa/Addis_Ababa" "Africa/Algiers" "Africa/Asmara" "Africa/Bamako" "Africa/Bangui" "Africa/Banjul" "Africa/Bissau" "Africa/Blantyre" "Africa/Brazzaville" "Africa/Bujumbura" "Africa/Cairo" "Africa/Casablanca" "Africa/Ceuta" "Africa/Conakry" "Africa/Dakar" "Africa/Dar_es_Salaam" "Africa/Djibouti" "Africa/Douala" "Africa/El_Aaiun" "Africa/Freetown" "Africa/Gaborone" "Africa/Harare" "Africa/Johannesburg" "Africa/Juba" "Africa/Kampala" "Africa/Khartoum" "Africa/Kigali" "Africa/Kinshasa" "Africa/Lagos" "Africa/Libreville" "Africa/Lome" "Africa/Luanda" "Africa/Lubumbashi" "Africa/Lusaka" "Africa/Malabo" "Africa/Maputo" "Africa/Maseru" "Africa/Mbabane" "Africa/Mogadishu" "Africa/Monrovia" "Africa/Nairobi" "Africa/Ndjamena" "Africa/Niamey" "Africa/Nouakchott" "Africa/Ouagadougou" "Africa/Porto-Novo" "Africa/Sao_Tome" "Africa/Tripoli" "Africa/Tunis" "Africa/Windhoek" "America/Adak" "America/Anchorage" "America/Anguilla" "America/Antigua" "America/Araguaina" "America/Argentina/Buenos_Aires" "America/Argentina/Catamarca" "America/Argentina/Cordoba" "America/Argentina/Jujuy" "America/Argentina/La_Rioja" "America/Argentina/Mendoza" "America/Argentina/Rio_Gallegos" "America/Argentina/Salta" "America/Argentina/San_Juan" "America/Argentina/San_Luis" "America/Argentina/Tucuman" "America/Argentina/Ushuaia" "America/Aruba" "America/Asuncion" "America/Atikokan" "America/Bahia" "America/Bahia_Banderas" "America/Barbados" "America/Belem" "America/Belize" "America/Blanc-Sablon" "America/Boa_Vista" "America/Bogota" "America/Boise" "America/Cambridge_Bay" "America/Campo_Grande" "America/Cancun" "America/Caracas" "America/Cayenne" "America/Cayman" "America/Chicago" "America/Chihuahua" "America/Costa_Rica" "America/Creston" "America/Cuiaba" "America/Curacao" "America/Danmarkshavn" "America/Dawson" "America/Dawson_Creek" "America/Denver" "America/Detroit" "America/Dominica" "America/Edmonton" "America/Eirunepe" "America/El_Salvador" "America/Fort_Nelson" "America/Fortaleza" "America/Glace_Bay" "America/Goose_Bay" "America/Grand_Turk" "America/Grenada" "America/Guadeloupe" "America/Guatemala" "America/Guayaquil" "America/Guyana" "America/Halifax" "America/Havana" "America/Hermosillo" "America/Indiana/Indianapolis" "America/Indiana/Knox" "America/Indiana/Marengo" "America/Indiana/Petersburg" "America/Indiana/Tell_City" "America/Indiana/Vevay" "America/Indiana/Vincennes" "America/Indiana/Winamac" "America/Inuvik" "America/Iqaluit" "America/Jamaica" "America/Juneau" "America/Kentucky/Louisville" "America/Kentucky/Monticello" "America/Kralendijk" "America/La_Paz" "America/Lima" "America/Los_Angeles" "America/Lower_Princes" "America/Maceio" "America/Managua" "America/Manaus" "America/Marigot" "America/Martinique" "America/Matamoros" "America/Mazatlan" "America/Menominee" "America/Merida" "America/Metlakatla" "America/Mexico_City" "America/Miquelon" "America/Moncton" "America/Monterrey" "America/Montevideo" "America/Montserrat" "America/Nassau" "America/New_York" "America/Nipigon" "America/Nome" "America/Noronha" "America/North_Dakota/Beulah" "America/North_Dakota/Center" "America/North_Dakota/New_Salem" "America/Nuuk" "America/Ojinaga" "America/Panama" "America/Pangnirtung" "America/Paramaribo" "America/Phoenix" "America/Port-au-Prince" "America/Port_of_Spain" "America/Porto_Velho" "America/Puerto_Rico" "America/Punta_Arenas" "America/Rainy_River" "America/Rankin_Inlet" "America/Recife" "America/Regina" "America/Resolute" "America/Rio_Branco" "America/Santarem" "America/Santiago" "America/Santo_Domingo" "America/Sao_Paulo" "America/Scoresbysund" "America/Sitka" "America/St_Barthelemy" "America/St_Johns" "America/St_Kitts" "America/St_Lucia" "America/St_Thomas" "America/St_Vincent" "America/Swift_Current" "America/Tegucigalpa" "America/Thule" "America/Thunder_Bay" "America/Tijuana" "America/Toronto" "America/Tortola" "America/Vancouver" "America/Whitehorse" "America/Winnipeg" "America/Yakutat" "America/Yellowknife" "Antarctica/Casey" "Antarctica/Davis" "Antarctica/DumontDUrville" "Antarctica/Macquarie" "Antarctica/Mawson" "Antarctica/McMurdo" "Antarctica/Palmer" "Antarctica/Rothera" "Antarctica/Syowa" "Antarctica/Troll" "Antarctica/Vostok" "Arctic/Longyearbyen" "Asia/Aden" "Asia/Almaty" "Asia/Amman" "Asia/Anadyr" "Asia/Aqtau" "Asia/Aqtobe" "Asia/Ashgabat" "Asia/Atyrau" "Asia/Baghdad" "Asia/Bahrain" "Asia/Baku" "Asia/Bangkok" "Asia/Barnaul" "Asia/Beirut" "Asia/Bishkek" "Asia/Brunei" "Asia/Chita" "Asia/Choibalsan" "Asia/Colombo" "Asia/Damascus" "Asia/Dhaka" "Asia/Dili" "Asia/Dubai" "Asia/Dushanbe" "Asia/Famagusta" "Asia/Gaza" "Asia/Hebron" "Asia/Ho_Chi_Minh" "Asia/Hong_Kong" "Asia/Hovd" "Asia/Irkutsk" "Asia/Jakarta" "Asia/Jayapura" "Asia/Jerusalem" "Asia/Kabul" "Asia/Kamchatka" "Asia/Karachi" "Asia/Kathmandu" "Asia/Khandyga" "Asia/Kolkata" "Asia/Krasnoyarsk" "Asia/Kuala_Lumpur" "Asia/Kuching" "Asia/Kuwait" "Asia/Macau" "Asia/Magadan" "Asia/Makassar" "Asia/Manila" "Asia/Muscat" "Asia/Nicosia" "Asia/Novokuznetsk" "Asia/Novosibirsk" "Asia/Omsk" "Asia/Oral" "Asia/Phnom_Penh" "Asia/Pontianak" "Asia/Pyongyang" "Asia/Qatar" "Asia/Qostanay" "Asia/Qyzylorda" "Asia/Riyadh" "Asia/Sakhalin" "Asia/Samarkand" "Asia/Seoul" "Asia/Shanghai" "Asia/Singapore" "Asia/Srednekolymsk" "Asia/Taipei" "Asia/Tashkent" "Asia/Tbilisi" "Asia/Tehran" "Asia/Thimphu" "Asia/Tokyo" "Asia/Tomsk" "Asia/Ulaanbaatar" "Asia/Urumqi" "Asia/Ust-Nera" "Asia/Vientiane" "Asia/Vladivostok" "Asia/Yakutsk" "Asia/Yangon" "Asia/Yekaterinburg" "Asia/Yerevan" "Atlantic/Azores" "Atlantic/Bermuda" "Atlantic/Canary" "Atlantic/Cape_Verde" "Atlantic/Faroe" "Atlantic/Madeira" "Atlantic/Reykjavik" "Atlantic/South_Georgia" "Atlantic/St_Helena" "Atlantic/Stanley" "Australia/Adelaide" "Australia/Brisbane" "Australia/Broken_Hill" "Australia/Darwin" "Australia/Eucla" "Australia/Hobart" "Australia/Lindeman" "Australia/Lord_Howe" "Australia/Melbourne" "Australia/Perth" "Australia/Sydney" "Europe/Amsterdam" "Europe/Andorra" "Europe/Astrakhan" "Europe/Athens" "Europe/Belgrade" "Europe/Berlin" "Europe/Bratislava" "Europe/Brussels" "Europe/Bucharest" "Europe/Budapest" "Europe/Busingen" "Europe/Chisinau" "Europe/Copenhagen" "Europe/Dublin" "Europe/Gibraltar" "Europe/Guernsey" "Europe/Helsinki" "Europe/Isle_of_Man" "Europe/Istanbul" "Europe/Jersey" "Europe/Kaliningrad" "Europe/Kiev" "Europe/Kirov" "Europe/Lisbon" "Europe/Ljubljana" "Europe/London" "Europe/Luxembourg" "Europe/Madrid" "Europe/Malta" "Europe/Mariehamn" "Europe/Minsk" "Europe/Monaco" "Europe/Moscow" "Europe/Oslo" "Europe/Paris" "Europe/Podgorica" "Europe/Prague" "Europe/Riga" "Europe/Rome" "Europe/Samara" "Europe/San_Marino" "Europe/Sarajevo" "Europe/Saratov" "Europe/Simferopol" "Europe/Skopje" "Europe/Sofia" "Europe/Stockholm" "Europe/Tallinn" "Europe/Tirane" "Europe/Ulyanovsk" "Europe/Uzhgorod" "Europe/Vaduz" "Europe/Vatican" "Europe/Vienna" "Europe/Vilnius" "Europe/Volgograd" "Europe/Warsaw" "Europe/Zagreb" "Europe/Zaporozhye" "Europe/Zurich" "Indian/Antananarivo" "Indian/Chagos" "Indian/Christmas" "Indian/Cocos" "Indian/Comoro" "Indian/Kerguelen" "Indian/Mahe" "Indian/Maldives" "Indian/Mauritius" "Indian/Mayotte" "Indian/Reunion" "Pacific/Apia" "Pacific/Auckland" "Pacific/Bougainville" "Pacific/Chatham" "Pacific/Chuuk" "Pacific/Easter" "Pacific/Efate" "Pacific/Enderbury" "Pacific/Fakaofo" "Pacific/Fiji" "Pacific/Funafuti" "Pacific/Galapagos" "Pacific/Gambier" "Pacific/Guadalcanal" "Pacific/Guam" "Pacific/Honolulu" "Pacific/Kiritimati" "Pacific/Kosrae" "Pacific/Kwajalein" "Pacific/Majuro" "Pacific/Marquesas" "Pacific/Midway" "Pacific/Nauru" "Pacific/Niue" "Pacific/Norfolk" "Pacific/Noumea" "Pacific/Pago_Pago" "Pacific/Palau" "Pacific/Pitcairn" "Pacific/Pohnpei" "Pacific/Port_Moresby" "Pacific/Rarotonga" "Pacific/Saipan" "Pacific/Tahiti" "Pacific/Tarawa" "Pacific/Tongatapu" "Pacific/Wake" "Pacific/Wallis" "UTC" The timezone of the user making the request. |
organizations | Array of integers[ items >= 1 ] Examples:
Filter by identifier of organizations of which to get trips. Set to 'null' to get trips from user without organization. Ignore to get trips from all users. |
{- "code": 0,
- "data": [
- {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}, - {
- "time_of_day": "string",
- "count": 0
}
]
}
Return number of trips by range of distance and payment mode in the requested period.
networks required | Array of integers[ items >= 1 ] Examples:
Identifier of networks of which to get trips. |
start_date required | string <date> The start date of the period. |
end_date required | string <date> The end date of the period. Should be after the start_date. |
timezone required | string (Timezone) Enum: "Africa/Abidjan" "Africa/Accra" "Africa/Addis_Ababa" "Africa/Algiers" "Africa/Asmara" "Africa/Bamako" "Africa/Bangui" "Africa/Banjul" "Africa/Bissau" "Africa/Blantyre" "Africa/Brazzaville" "Africa/Bujumbura" "Africa/Cairo" "Africa/Casablanca" "Africa/Ceuta" "Africa/Conakry" "Africa/Dakar" "Africa/Dar_es_Salaam" "Africa/Djibouti" "Africa/Douala" "Africa/El_Aaiun" "Africa/Freetown" "Africa/Gaborone" "Africa/Harare" "Africa/Johannesburg" "Africa/Juba" "Africa/Kampala" "Africa/Khartoum" "Africa/Kigali" "Africa/Kinshasa" "Africa/Lagos" "Africa/Libreville" "Africa/Lome" "Africa/Luanda" "Africa/Lubumbashi" "Africa/Lusaka" "Africa/Malabo" "Africa/Maputo" "Africa/Maseru" "Africa/Mbabane" "Africa/Mogadishu" "Africa/Monrovia" "Africa/Nairobi" "Africa/Ndjamena" "Africa/Niamey" "Africa/Nouakchott" "Africa/Ouagadougou" "Africa/Porto-Novo" "Africa/Sao_Tome" "Africa/Tripoli" "Africa/Tunis" "Africa/Windhoek" "America/Adak" "America/Anchorage" "America/Anguilla" "America/Antigua" "America/Araguaina" "America/Argentina/Buenos_Aires" "America/Argentina/Catamarca" "America/Argentina/Cordoba" "America/Argentina/Jujuy" "America/Argentina/La_Rioja" "America/Argentina/Mendoza" "America/Argentina/Rio_Gallegos" "America/Argentina/Salta" "America/Argentina/San_Juan" "America/Argentina/San_Luis" "America/Argentina/Tucuman" "America/Argentina/Ushuaia" "America/Aruba" "America/Asuncion" "America/Atikokan" "America/Bahia" "America/Bahia_Banderas" "America/Barbados" "America/Belem" "America/Belize" "America/Blanc-Sablon" "America/Boa_Vista" "America/Bogota" "America/Boise" "America/Cambridge_Bay" "America/Campo_Grande" "America/Cancun" "America/Caracas" "America/Cayenne" "America/Cayman" "America/Chicago" "America/Chihuahua" "America/Costa_Rica" "America/Creston" "America/Cuiaba" "America/Curacao" "America/Danmarkshavn" "America/Dawson" "America/Dawson_Creek" "America/Denver" "America/Detroit" "America/Dominica" "America/Edmonton" "America/Eirunepe" "America/El_Salvador" "America/Fort_Nelson" "America/Fortaleza" "America/Glace_Bay" "America/Goose_Bay" "America/Grand_Turk" "America/Grenada" "America/Guadeloupe" "America/Guatemala" "America/Guayaquil" "America/Guyana" "America/Halifax" "America/Havana" "America/Hermosillo" "America/Indiana/Indianapolis" "America/Indiana/Knox" "America/Indiana/Marengo" "America/Indiana/Petersburg" "America/Indiana/Tell_City" "America/Indiana/Vevay" "America/Indiana/Vincennes" "America/Indiana/Winamac" "America/Inuvik" "America/Iqaluit" "America/Jamaica" "America/Juneau" "America/Kentucky/Louisville" "America/Kentucky/Monticello" "America/Kralendijk" "America/La_Paz" "America/Lima" "America/Los_Angeles" "America/Lower_Princes" "America/Maceio" "America/Managua" "America/Manaus" "America/Marigot" "America/Martinique" "America/Matamoros" "America/Mazatlan" "America/Menominee" "America/Merida" "America/Metlakatla" "America/Mexico_City" "America/Miquelon" "America/Moncton" "America/Monterrey" "America/Montevideo" "America/Montserrat" "America/Nassau" "America/New_York" "America/Nipigon" "America/Nome" "America/Noronha" "America/North_Dakota/Beulah" "America/North_Dakota/Center" "America/North_Dakota/New_Salem" "America/Nuuk" "America/Ojinaga" "America/Panama" "America/Pangnirtung" "America/Paramaribo" "America/Phoenix" "America/Port-au-Prince" "America/Port_of_Spain" "America/Porto_Velho" "America/Puerto_Rico" "America/Punta_Arenas" "America/Rainy_River" "America/Rankin_Inlet" "America/Recife" "America/Regina" "America/Resolute" "America/Rio_Branco" "America/Santarem" "America/Santiago" "America/Santo_Domingo" "America/Sao_Paulo" "America/Scoresbysund" "America/Sitka" "America/St_Barthelemy" "America/St_Johns" "America/St_Kitts" "America/St_Lucia" "America/St_Thomas" "America/St_Vincent" "America/Swift_Current" "America/Tegucigalpa" "America/Thule" "America/Thunder_Bay" "America/Tijuana" "America/Toronto" "America/Tortola" "America/Vancouver" "America/Whitehorse" "America/Winnipeg" "America/Yakutat" "America/Yellowknife" "Antarctica/Casey" "Antarctica/Davis" "Antarctica/DumontDUrville" "Antarctica/Macquarie" "Antarctica/Mawson" "Antarctica/McMurdo" "Antarctica/Palmer" "Antarctica/Rothera" "Antarctica/Syowa" "Antarctica/Troll" "Antarctica/Vostok" "Arctic/Longyearbyen" "Asia/Aden" "Asia/Almaty" "Asia/Amman" "Asia/Anadyr" "Asia/Aqtau" "Asia/Aqtobe" "Asia/Ashgabat" "Asia/Atyrau" "Asia/Baghdad" "Asia/Bahrain" "Asia/Baku" "Asia/Bangkok" "Asia/Barnaul" "Asia/Beirut" "Asia/Bishkek" "Asia/Brunei" "Asia/Chita" "Asia/Choibalsan" "Asia/Colombo" "Asia/Damascus" "Asia/Dhaka" "Asia/Dili" "Asia/Dubai" "Asia/Dushanbe" "Asia/Famagusta" "Asia/Gaza" "Asia/Hebron" "Asia/Ho_Chi_Minh" "Asia/Hong_Kong" "Asia/Hovd" "Asia/Irkutsk" "Asia/Jakarta" "Asia/Jayapura" "Asia/Jerusalem" "Asia/Kabul" "Asia/Kamchatka" "Asia/Karachi" "Asia/Kathmandu" "Asia/Khandyga" "Asia/Kolkata" "Asia/Krasnoyarsk" "Asia/Kuala_Lumpur" "Asia/Kuching" "Asia/Kuwait" "Asia/Macau" "Asia/Magadan" "Asia/Makassar" "Asia/Manila" "Asia/Muscat" "Asia/Nicosia" "Asia/Novokuznetsk" "Asia/Novosibirsk" "Asia/Omsk" "Asia/Oral" "Asia/Phnom_Penh" "Asia/Pontianak" "Asia/Pyongyang" "Asia/Qatar" "Asia/Qostanay" "Asia/Qyzylorda" "Asia/Riyadh" "Asia/Sakhalin" "Asia/Samarkand" "Asia/Seoul" "Asia/Shanghai" "Asia/Singapore" "Asia/Srednekolymsk" "Asia/Taipei" "Asia/Tashkent" "Asia/Tbilisi" "Asia/Tehran" "Asia/Thimphu" "Asia/Tokyo" "Asia/Tomsk" "Asia/Ulaanbaatar" "Asia/Urumqi" "Asia/Ust-Nera" "Asia/Vientiane" "Asia/Vladivostok" "Asia/Yakutsk" "Asia/Yangon" "Asia/Yekaterinburg" "Asia/Yerevan" "Atlantic/Azores" "Atlantic/Bermuda" "Atlantic/Canary" "Atlantic/Cape_Verde" "Atlantic/Faroe" "Atlantic/Madeira" "Atlantic/Reykjavik" "Atlantic/South_Georgia" "Atlantic/St_Helena" "Atlantic/Stanley" "Australia/Adelaide" "Australia/Brisbane" "Australia/Broken_Hill" "Australia/Darwin" "Australia/Eucla" "Australia/Hobart" "Australia/Lindeman" "Australia/Lord_Howe" "Australia/Melbourne" "Australia/Perth" "Australia/Sydney" "Europe/Amsterdam" "Europe/Andorra" "Europe/Astrakhan" "Europe/Athens" "Europe/Belgrade" "Europe/Berlin" "Europe/Bratislava" "Europe/Brussels" "Europe/Bucharest" "Europe/Budapest" "Europe/Busingen" "Europe/Chisinau" "Europe/Copenhagen" "Europe/Dublin" "Europe/Gibraltar" "Europe/Guernsey" "Europe/Helsinki" "Europe/Isle_of_Man" "Europe/Istanbul" "Europe/Jersey" "Europe/Kaliningrad" "Europe/Kiev" "Europe/Kirov" "Europe/Lisbon" "Europe/Ljubljana" "Europe/London" "Europe/Luxembourg" "Europe/Madrid" "Europe/Malta" "Europe/Mariehamn" "Europe/Minsk" "Europe/Monaco" "Europe/Moscow" "Europe/Oslo" "Europe/Paris" "Europe/Podgorica" "Europe/Prague" "Europe/Riga" "Europe/Rome" "Europe/Samara" "Europe/San_Marino" "Europe/Sarajevo" "Europe/Saratov" "Europe/Simferopol" "Europe/Skopje" "Europe/Sofia" "Europe/Stockholm" "Europe/Tallinn" "Europe/Tirane" "Europe/Ulyanovsk" "Europe/Uzhgorod" "Europe/Vaduz" "Europe/Vatican" "Europe/Vienna" "Europe/Vilnius" "Europe/Volgograd" "Europe/Warsaw" "Europe/Zagreb" "Europe/Zaporozhye" "Europe/Zurich" "Indian/Antananarivo" "Indian/Chagos" "Indian/Christmas" "Indian/Cocos" "Indian/Comoro" "Indian/Kerguelen" "Indian/Mahe" "Indian/Maldives" "Indian/Mauritius" "Indian/Mayotte" "Indian/Reunion" "Pacific/Apia" "Pacific/Auckland" "Pacific/Bougainville" "Pacific/Chatham" "Pacific/Chuuk" "Pacific/Easter" "Pacific/Efate" "Pacific/Enderbury" "Pacific/Fakaofo" "Pacific/Fiji" "Pacific/Funafuti" "Pacific/Galapagos" "Pacific/Gambier" "Pacific/Guadalcanal" "Pacific/Guam" "Pacific/Honolulu" "Pacific/Kiritimati" "Pacific/Kosrae" "Pacific/Kwajalein" "Pacific/Majuro" "Pacific/Marquesas" "Pacific/Midway" "Pacific/Nauru" "Pacific/Niue" "Pacific/Norfolk" "Pacific/Noumea" "Pacific/Pago_Pago" "Pacific/Palau" "Pacific/Pitcairn" "Pacific/Pohnpei" "Pacific/Port_Moresby" "Pacific/Rarotonga" "Pacific/Saipan" "Pacific/Tahiti" "Pacific/Tarawa" "Pacific/Tongatapu" "Pacific/Wake" "Pacific/Wallis" "UTC" The timezone of the user making the request. |
organizations | Array of integers[ items >= 1 ] Examples:
Filter by identifier of organizations of which to get trips. Set to 'null' to get trips from user without organization. Ignore to get trips from all users. |
{- "code": 0,
- "data": [
- {
- "range_min": 0,
- "range_max": 500,
- "paid_mode": "minute",
- "count": 45
}, - {
- "range_min": 500,
- "range_max": 1000,
- "paid_mode": "minute",
- "count": 23
}, - {
- "range_min": 500,
- "range_max": 1000,
- "paid_mode": "pass",
- "count": 4
}, - {
- "range_min": 1000,
- "range_max": 2000,
- "paid_mode": "minute",
- "count": 23
}
]
}
Return number of trips by range of duration and payment mode in the requested period.
networks required | Array of integers[ items >= 1 ] Examples:
Identifier of networks of which to get trips. |
start_date required | string <date> The start date of the period. |
end_date required | string <date> The end date of the period. Should be after the start_date. |
timezone required | string (Timezone) Enum: "Africa/Abidjan" "Africa/Accra" "Africa/Addis_Ababa" "Africa/Algiers" "Africa/Asmara" "Africa/Bamako" "Africa/Bangui" "Africa/Banjul" "Africa/Bissau" "Africa/Blantyre" "Africa/Brazzaville" "Africa/Bujumbura" "Africa/Cairo" "Africa/Casablanca" "Africa/Ceuta" "Africa/Conakry" "Africa/Dakar" "Africa/Dar_es_Salaam" "Africa/Djibouti" "Africa/Douala" "Africa/El_Aaiun" "Africa/Freetown" "Africa/Gaborone" "Africa/Harare" "Africa/Johannesburg" "Africa/Juba" "Africa/Kampala" "Africa/Khartoum" "Africa/Kigali" "Africa/Kinshasa" "Africa/Lagos" "Africa/Libreville" "Africa/Lome" "Africa/Luanda" "Africa/Lubumbashi" "Africa/Lusaka" "Africa/Malabo" "Africa/Maputo" "Africa/Maseru" "Africa/Mbabane" "Africa/Mogadishu" "Africa/Monrovia" "Africa/Nairobi" "Africa/Ndjamena" "Africa/Niamey" "Africa/Nouakchott" "Africa/Ouagadougou" "Africa/Porto-Novo" "Africa/Sao_Tome" "Africa/Tripoli" "Africa/Tunis" "Africa/Windhoek" "America/Adak" "America/Anchorage" "America/Anguilla" "America/Antigua" "America/Araguaina" "America/Argentina/Buenos_Aires" "America/Argentina/Catamarca" "America/Argentina/Cordoba" "America/Argentina/Jujuy" "America/Argentina/La_Rioja" "America/Argentina/Mendoza" "America/Argentina/Rio_Gallegos" "America/Argentina/Salta" "America/Argentina/San_Juan" "America/Argentina/San_Luis" "America/Argentina/Tucuman" "America/Argentina/Ushuaia" "America/Aruba" "America/Asuncion" "America/Atikokan" "America/Bahia" "America/Bahia_Banderas" "America/Barbados" "America/Belem" "America/Belize" "America/Blanc-Sablon" "America/Boa_Vista" "America/Bogota" "America/Boise" "America/Cambridge_Bay" "America/Campo_Grande" "America/Cancun" "America/Caracas" "America/Cayenne" "America/Cayman" "America/Chicago" "America/Chihuahua" "America/Costa_Rica" "America/Creston" "America/Cuiaba" "America/Curacao" "America/Danmarkshavn" "America/Dawson" "America/Dawson_Creek" "America/Denver" "America/Detroit" "America/Dominica" "America/Edmonton" "America/Eirunepe" "America/El_Salvador" "America/Fort_Nelson" "America/Fortaleza" "America/Glace_Bay" "America/Goose_Bay" "America/Grand_Turk" "America/Grenada" "America/Guadeloupe" "America/Guatemala" "America/Guayaquil" "America/Guyana" "America/Halifax" "America/Havana" "America/Hermosillo" "America/Indiana/Indianapolis" "America/Indiana/Knox" "America/Indiana/Marengo" "America/Indiana/Petersburg" "America/Indiana/Tell_City" "America/Indiana/Vevay" "America/Indiana/Vincennes" "America/Indiana/Winamac" "America/Inuvik" "America/Iqaluit" "America/Jamaica" "America/Juneau" "America/Kentucky/Louisville" "America/Kentucky/Monticello" "America/Kralendijk" "America/La_Paz" "America/Lima" "America/Los_Angeles" "America/Lower_Princes" "America/Maceio" "America/Managua" "America/Manaus" "America/Marigot" "America/Martinique" "America/Matamoros" "America/Mazatlan" "America/Menominee" "America/Merida" "America/Metlakatla" "America/Mexico_City" "America/Miquelon" "America/Moncton" "America/Monterrey" "America/Montevideo" "America/Montserrat" "America/Nassau" "America/New_York" "America/Nipigon" "America/Nome" "America/Noronha" "America/North_Dakota/Beulah" "America/North_Dakota/Center" "America/North_Dakota/New_Salem" "America/Nuuk" "America/Ojinaga" "America/Panama" "America/Pangnirtung" "America/Paramaribo" "America/Phoenix" "America/Port-au-Prince" "America/Port_of_Spain" "America/Porto_Velho" "America/Puerto_Rico" "America/Punta_Arenas" "America/Rainy_River" "America/Rankin_Inlet" "America/Recife" "America/Regina" "America/Resolute" "America/Rio_Branco" "America/Santarem" "America/Santiago" "America/Santo_Domingo" "America/Sao_Paulo" "America/Scoresbysund" "America/Sitka" "America/St_Barthelemy" "America/St_Johns" "America/St_Kitts" "America/St_Lucia" "America/St_Thomas" "America/St_Vincent" "America/Swift_Current" "America/Tegucigalpa" "America/Thule" "America/Thunder_Bay" "America/Tijuana" "America/Toronto" "America/Tortola" "America/Vancouver" "America/Whitehorse" "America/Winnipeg" "America/Yakutat" "America/Yellowknife" "Antarctica/Casey" "Antarctica/Davis" "Antarctica/DumontDUrville" "Antarctica/Macquarie" "Antarctica/Mawson" "Antarctica/McMurdo" "Antarctica/Palmer" "Antarctica/Rothera" "Antarctica/Syowa" "Antarctica/Troll" "Antarctica/Vostok" "Arctic/Longyearbyen" "Asia/Aden" "Asia/Almaty" "Asia/Amman" "Asia/Anadyr" "Asia/Aqtau" "Asia/Aqtobe" "Asia/Ashgabat" "Asia/Atyrau" "Asia/Baghdad" "Asia/Bahrain" "Asia/Baku" "Asia/Bangkok" "Asia/Barnaul" "Asia/Beirut" "Asia/Bishkek" "Asia/Brunei" "Asia/Chita" "Asia/Choibalsan" "Asia/Colombo" "Asia/Damascus" "Asia/Dhaka" "Asia/Dili" "Asia/Dubai" "Asia/Dushanbe" "Asia/Famagusta" "Asia/Gaza" "Asia/Hebron" "Asia/Ho_Chi_Minh" "Asia/Hong_Kong" "Asia/Hovd" "Asia/Irkutsk" "Asia/Jakarta" "Asia/Jayapura" "Asia/Jerusalem" "Asia/Kabul" "Asia/Kamchatka" "Asia/Karachi" "Asia/Kathmandu" "Asia/Khandyga" "Asia/Kolkata" "Asia/Krasnoyarsk" "Asia/Kuala_Lumpur" "Asia/Kuching" "Asia/Kuwait" "Asia/Macau" "Asia/Magadan" "Asia/Makassar" "Asia/Manila" "Asia/Muscat" "Asia/Nicosia" "Asia/Novokuznetsk" "Asia/Novosibirsk" "Asia/Omsk" "Asia/Oral" "Asia/Phnom_Penh" "Asia/Pontianak" "Asia/Pyongyang" "Asia/Qatar" "Asia/Qostanay" "Asia/Qyzylorda" "Asia/Riyadh" "Asia/Sakhalin" "Asia/Samarkand" "Asia/Seoul" "Asia/Shanghai" "Asia/Singapore" "Asia/Srednekolymsk" "Asia/Taipei" "Asia/Tashkent" "Asia/Tbilisi" "Asia/Tehran" "Asia/Thimphu" "Asia/Tokyo" "Asia/Tomsk" "Asia/Ulaanbaatar" "Asia/Urumqi" "Asia/Ust-Nera" "Asia/Vientiane" "Asia/Vladivostok" "Asia/Yakutsk" "Asia/Yangon" "Asia/Yekaterinburg" "Asia/Yerevan" "Atlantic/Azores" "Atlantic/Bermuda" "Atlantic/Canary" "Atlantic/Cape_Verde" "Atlantic/Faroe" "Atlantic/Madeira" "Atlantic/Reykjavik" "Atlantic/South_Georgia" "Atlantic/St_Helena" "Atlantic/Stanley" "Australia/Adelaide" "Australia/Brisbane" "Australia/Broken_Hill" "Australia/Darwin" "Australia/Eucla" "Australia/Hobart" "Australia/Lindeman" "Australia/Lord_Howe" "Australia/Melbourne" "Australia/Perth" "Australia/Sydney" "Europe/Amsterdam" "Europe/Andorra" "Europe/Astrakhan" "Europe/Athens" "Europe/Belgrade" "Europe/Berlin" "Europe/Bratislava" "Europe/Brussels" "Europe/Bucharest" "Europe/Budapest" "Europe/Busingen" "Europe/Chisinau" "Europe/Copenhagen" "Europe/Dublin" "Europe/Gibraltar" "Europe/Guernsey" "Europe/Helsinki" "Europe/Isle_of_Man" "Europe/Istanbul" "Europe/Jersey" "Europe/Kaliningrad" "Europe/Kiev" "Europe/Kirov" "Europe/Lisbon" "Europe/Ljubljana" "Europe/London" "Europe/Luxembourg" "Europe/Madrid" "Europe/Malta" "Europe/Mariehamn" "Europe/Minsk" "Europe/Monaco" "Europe/Moscow" "Europe/Oslo" "Europe/Paris" "Europe/Podgorica" "Europe/Prague" "Europe/Riga" "Europe/Rome" "Europe/Samara" "Europe/San_Marino" "Europe/Sarajevo" "Europe/Saratov" "Europe/Simferopol" "Europe/Skopje" "Europe/Sofia" "Europe/Stockholm" "Europe/Tallinn" "Europe/Tirane" "Europe/Ulyanovsk" "Europe/Uzhgorod" "Europe/Vaduz" "Europe/Vatican" "Europe/Vienna" "Europe/Vilnius" "Europe/Volgograd" "Europe/Warsaw" "Europe/Zagreb" "Europe/Zaporozhye" "Europe/Zurich" "Indian/Antananarivo" "Indian/Chagos" "Indian/Christmas" "Indian/Cocos" "Indian/Comoro" "Indian/Kerguelen" "Indian/Mahe" "Indian/Maldives" "Indian/Mauritius" "Indian/Mayotte" "Indian/Reunion" "Pacific/Apia" "Pacific/Auckland" "Pacific/Bougainville" "Pacific/Chatham" "Pacific/Chuuk" "Pacific/Easter" "Pacific/Efate" "Pacific/Enderbury" "Pacific/Fakaofo" "Pacific/Fiji" "Pacific/Funafuti" "Pacific/Galapagos" "Pacific/Gambier" "Pacific/Guadalcanal" "Pacific/Guam" "Pacific/Honolulu" "Pacific/Kiritimati" "Pacific/Kosrae" "Pacific/Kwajalein" "Pacific/Majuro" "Pacific/Marquesas" "Pacific/Midway" "Pacific/Nauru" "Pacific/Niue" "Pacific/Norfolk" "Pacific/Noumea" "Pacific/Pago_Pago" "Pacific/Palau" "Pacific/Pitcairn" "Pacific/Pohnpei" "Pacific/Port_Moresby" "Pacific/Rarotonga" "Pacific/Saipan" "Pacific/Tahiti" "Pacific/Tarawa" "Pacific/Tongatapu" "Pacific/Wake" "Pacific/Wallis" "UTC" The timezone of the user making the request. |
organizations | Array of integers[ items >= 1 ] Examples:
Filter by identifier of organizations of which to get trips. Set to 'null' to get trips from user without organization. Ignore to get trips from all users. |
{- "code": 0,
- "data": [
- {
- "range_min": 0,
- "range_max": 300,
- "paid_mode": "minute",
- "count": 32
}, - {
- "range_min": 300,
- "range_max": 900,
- "paid_mode": "minute",
- "count": 21
}, - {
- "range_min": 900,
- "range_max": 1800,
- "paid_mode": "pass",
- "count": 34
}, - {
- "range_min": 1800,
- "range_max": 3600,
- "paid_mode": "minute",
- "count": 234
}
]
}
Return number of started / ended for each station in the requested period.
networks required | Array of integers[ items >= 1 ] Examples:
Identifier of networks of which to get trips. |
start_date required | string <date> The start date of the period. |
end_date required | string <date> The end date of the period. Should be after the start_date. |
timezone required | string (Timezone) Enum: "Africa/Abidjan" "Africa/Accra" "Africa/Addis_Ababa" "Africa/Algiers" "Africa/Asmara" "Africa/Bamako" "Africa/Bangui" "Africa/Banjul" "Africa/Bissau" "Africa/Blantyre" "Africa/Brazzaville" "Africa/Bujumbura" "Africa/Cairo" "Africa/Casablanca" "Africa/Ceuta" "Africa/Conakry" "Africa/Dakar" "Africa/Dar_es_Salaam" "Africa/Djibouti" "Africa/Douala" "Africa/El_Aaiun" "Africa/Freetown" "Africa/Gaborone" "Africa/Harare" "Africa/Johannesburg" "Africa/Juba" "Africa/Kampala" "Africa/Khartoum" "Africa/Kigali" "Africa/Kinshasa" "Africa/Lagos" "Africa/Libreville" "Africa/Lome" "Africa/Luanda" "Africa/Lubumbashi" "Africa/Lusaka" "Africa/Malabo" "Africa/Maputo" "Africa/Maseru" "Africa/Mbabane" "Africa/Mogadishu" "Africa/Monrovia" "Africa/Nairobi" "Africa/Ndjamena" "Africa/Niamey" "Africa/Nouakchott" "Africa/Ouagadougou" "Africa/Porto-Novo" "Africa/Sao_Tome" "Africa/Tripoli" "Africa/Tunis" "Africa/Windhoek" "America/Adak" "America/Anchorage" "America/Anguilla" "America/Antigua" "America/Araguaina" "America/Argentina/Buenos_Aires" "America/Argentina/Catamarca" "America/Argentina/Cordoba" "America/Argentina/Jujuy" "America/Argentina/La_Rioja" "America/Argentina/Mendoza" "America/Argentina/Rio_Gallegos" "America/Argentina/Salta" "America/Argentina/San_Juan" "America/Argentina/San_Luis" "America/Argentina/Tucuman" "America/Argentina/Ushuaia" "America/Aruba" "America/Asuncion" "America/Atikokan" "America/Bahia" "America/Bahia_Banderas" "America/Barbados" "America/Belem" "America/Belize" "America/Blanc-Sablon" "America/Boa_Vista" "America/Bogota" "America/Boise" "America/Cambridge_Bay" "America/Campo_Grande" "America/Cancun" "America/Caracas" "America/Cayenne" "America/Cayman" "America/Chicago" "America/Chihuahua" "America/Costa_Rica" "America/Creston" "America/Cuiaba" "America/Curacao" "America/Danmarkshavn" "America/Dawson" "America/Dawson_Creek" "America/Denver" "America/Detroit" "America/Dominica" "America/Edmonton" "America/Eirunepe" "America/El_Salvador" "America/Fort_Nelson" "America/Fortaleza" "America/Glace_Bay" "America/Goose_Bay" "America/Grand_Turk" "America/Grenada" "America/Guadeloupe" "America/Guatemala" "America/Guayaquil" "America/Guyana" "America/Halifax" "America/Havana" "America/Hermosillo" "America/Indiana/Indianapolis" "America/Indiana/Knox" "America/Indiana/Marengo" "America/Indiana/Petersburg" "America/Indiana/Tell_City" "America/Indiana/Vevay" "America/Indiana/Vincennes" "America/Indiana/Winamac" "America/Inuvik" "America/Iqaluit" "America/Jamaica" "America/Juneau" "America/Kentucky/Louisville" "America/Kentucky/Monticello" "America/Kralendijk" "America/La_Paz" "America/Lima" "America/Los_Angeles" "America/Lower_Princes" "America/Maceio" "America/Managua" "America/Manaus" "America/Marigot" "America/Martinique" "America/Matamoros" "America/Mazatlan" "America/Menominee" "America/Merida" "America/Metlakatla" "America/Mexico_City" "America/Miquelon" "America/Moncton" "America/Monterrey" "America/Montevideo" "America/Montserrat" "America/Nassau" "America/New_York" "America/Nipigon" "America/Nome" "America/Noronha" "America/North_Dakota/Beulah" "America/North_Dakota/Center" "America/North_Dakota/New_Salem" "America/Nuuk" "America/Ojinaga" "America/Panama" "America/Pangnirtung" "America/Paramaribo" "America/Phoenix" "America/Port-au-Prince" "America/Port_of_Spain" "America/Porto_Velho" "America/Puerto_Rico" "America/Punta_Arenas" "America/Rainy_River" "America/Rankin_Inlet" "America/Recife" "America/Regina" "America/Resolute" "America/Rio_Branco" "America/Santarem" "America/Santiago" "America/Santo_Domingo" "America/Sao_Paulo" "America/Scoresbysund" "America/Sitka" "America/St_Barthelemy" "America/St_Johns" "America/St_Kitts" "America/St_Lucia" "America/St_Thomas" "America/St_Vincent" "America/Swift_Current" "America/Tegucigalpa" "America/Thule" "America/Thunder_Bay" "America/Tijuana" "America/Toronto" "America/Tortola" "America/Vancouver" "America/Whitehorse" "America/Winnipeg" "America/Yakutat" "America/Yellowknife" "Antarctica/Casey" "Antarctica/Davis" "Antarctica/DumontDUrville" "Antarctica/Macquarie" "Antarctica/Mawson" "Antarctica/McMurdo" "Antarctica/Palmer" "Antarctica/Rothera" "Antarctica/Syowa" "Antarctica/Troll" "Antarctica/Vostok" "Arctic/Longyearbyen" "Asia/Aden" "Asia/Almaty" "Asia/Amman" "Asia/Anadyr" "Asia/Aqtau" "Asia/Aqtobe" "Asia/Ashgabat" "Asia/Atyrau" "Asia/Baghdad" "Asia/Bahrain" "Asia/Baku" "Asia/Bangkok" "Asia/Barnaul" "Asia/Beirut" "Asia/Bishkek" "Asia/Brunei" "Asia/Chita" "Asia/Choibalsan" "Asia/Colombo" "Asia/Damascus" "Asia/Dhaka" "Asia/Dili" "Asia/Dubai" "Asia/Dushanbe" "Asia/Famagusta" "Asia/Gaza" "Asia/Hebron" "Asia/Ho_Chi_Minh" "Asia/Hong_Kong" "Asia/Hovd" "Asia/Irkutsk" "Asia/Jakarta" "Asia/Jayapura" "Asia/Jerusalem" "Asia/Kabul" "Asia/Kamchatka" "Asia/Karachi" "Asia/Kathmandu" "Asia/Khandyga" "Asia/Kolkata" "Asia/Krasnoyarsk" "Asia/Kuala_Lumpur" "Asia/Kuching" "Asia/Kuwait" "Asia/Macau" "Asia/Magadan" "Asia/Makassar" "Asia/Manila" "Asia/Muscat" "Asia/Nicosia" "Asia/Novokuznetsk" "Asia/Novosibirsk" "Asia/Omsk" "Asia/Oral" "Asia/Phnom_Penh" "Asia/Pontianak" "Asia/Pyongyang" "Asia/Qatar" "Asia/Qostanay" "Asia/Qyzylorda" "Asia/Riyadh" "Asia/Sakhalin" "Asia/Samarkand" "Asia/Seoul" "Asia/Shanghai" "Asia/Singapore" "Asia/Srednekolymsk" "Asia/Taipei" "Asia/Tashkent" "Asia/Tbilisi" "Asia/Tehran" "Asia/Thimphu" "Asia/Tokyo" "Asia/Tomsk" "Asia/Ulaanbaatar" "Asia/Urumqi" "Asia/Ust-Nera" "Asia/Vientiane" "Asia/Vladivostok" "Asia/Yakutsk" "Asia/Yangon" "Asia/Yekaterinburg" "Asia/Yerevan" "Atlantic/Azores" "Atlantic/Bermuda" "Atlantic/Canary" "Atlantic/Cape_Verde" "Atlantic/Faroe" "Atlantic/Madeira" "Atlantic/Reykjavik" "Atlantic/South_Georgia" "Atlantic/St_Helena" "Atlantic/Stanley" "Australia/Adelaide" "Australia/Brisbane" "Australia/Broken_Hill" "Australia/Darwin" "Australia/Eucla" "Australia/Hobart" "Australia/Lindeman" "Australia/Lord_Howe" "Australia/Melbourne" "Australia/Perth" "Australia/Sydney" "Europe/Amsterdam" "Europe/Andorra" "Europe/Astrakhan" "Europe/Athens" "Europe/Belgrade" "Europe/Berlin" "Europe/Bratislava" "Europe/Brussels" "Europe/Bucharest" "Europe/Budapest" "Europe/Busingen" "Europe/Chisinau" "Europe/Copenhagen" "Europe/Dublin" "Europe/Gibraltar" "Europe/Guernsey" "Europe/Helsinki" "Europe/Isle_of_Man" "Europe/Istanbul" "Europe/Jersey" "Europe/Kaliningrad" "Europe/Kiev" "Europe/Kirov" "Europe/Lisbon" "Europe/Ljubljana" "Europe/London" "Europe/Luxembourg" "Europe/Madrid" "Europe/Malta" "Europe/Mariehamn" "Europe/Minsk" "Europe/Monaco" "Europe/Moscow" "Europe/Oslo" "Europe/Paris" "Europe/Podgorica" "Europe/Prague" "Europe/Riga" "Europe/Rome" "Europe/Samara" "Europe/San_Marino" "Europe/Sarajevo" "Europe/Saratov" "Europe/Simferopol" "Europe/Skopje" "Europe/Sofia" "Europe/Stockholm" "Europe/Tallinn" "Europe/Tirane" "Europe/Ulyanovsk" "Europe/Uzhgorod" "Europe/Vaduz" "Europe/Vatican" "Europe/Vienna" "Europe/Vilnius" "Europe/Volgograd" "Europe/Warsaw" "Europe/Zagreb" "Europe/Zaporozhye" "Europe/Zurich" "Indian/Antananarivo" "Indian/Chagos" "Indian/Christmas" "Indian/Cocos" "Indian/Comoro" "Indian/Kerguelen" "Indian/Mahe" "Indian/Maldives" "Indian/Mauritius" "Indian/Mayotte" "Indian/Reunion" "Pacific/Apia" "Pacific/Auckland" "Pacific/Bougainville" "Pacific/Chatham" "Pacific/Chuuk" "Pacific/Easter" "Pacific/Efate" "Pacific/Enderbury" "Pacific/Fakaofo" "Pacific/Fiji" "Pacific/Funafuti" "Pacific/Galapagos" "Pacific/Gambier" "Pacific/Guadalcanal" "Pacific/Guam" "Pacific/Honolulu" "Pacific/Kiritimati" "Pacific/Kosrae" "Pacific/Kwajalein" "Pacific/Majuro" "Pacific/Marquesas" "Pacific/Midway" "Pacific/Nauru" "Pacific/Niue" "Pacific/Norfolk" "Pacific/Noumea" "Pacific/Pago_Pago" "Pacific/Palau" "Pacific/Pitcairn" "Pacific/Pohnpei" "Pacific/Port_Moresby" "Pacific/Rarotonga" "Pacific/Saipan" "Pacific/Tahiti" "Pacific/Tarawa" "Pacific/Tongatapu" "Pacific/Wake" "Pacific/Wallis" "UTC" The timezone of the user making the request. |
organizations | Array of integers[ items >= 1 ] Examples:
Filter by identifier of organizations of which to get trips. Set to 'null' to get trips from user without organization. Ignore to get trips from all users. |
{- "code": 0,
- "data": [
- {
- "cluster_name": "string",
- "latitude": -90,
- "longitude": -180,
- "start_trips_count": 0,
- "end_trips_count": 0
}
]
}
Return the list of organizations present on the requested networks for which the user has permission.
networks required | Array of integers[ items >= 1 ] Examples:
Identifier of networks of which to get trips. |
{- "code": 0,
- "data": [
- {
- "organization_id": 1,
- "organization_name": "string"
}
]
}
Return users of specified networks. A user belongs to a network from the moment he interacts with (consult offers, make a trip).
networks required | Array of integers[ items >= 1 ] Examples:
Identifier of networks of which to get users. |
primary_key_dir | string Default: "DESC" Enum: "ASC" "DESC" Sort direction of the user identifier. |
page_size | integer [ 10 .. 500 ] Default: 20 The maximum items to return. |
last_primary_key | integer >= 1 Identifier of the last user on the current page, used to request the next page. |
sort_by | string Enum: "register_at" "last_activity" "trip_count" Custom sort key. |
user_id_min | integer >= 1 Filter the minimum user's identifier. |
user_id_max | integer >= 1 Filter the maximum user's identifier. |
string >= 1 Filter by email. | |
lastname | string [ 1 .. 50 ] Filter by last name. |
firstname | string [ 1 .. 50 ] Filter by first name |
register_at_min | string <datetime> Filter the minimum register date. |
register_at_max | string <datetime> Filter the maximum register date. |
last_activity_min | string <datetime> Filter the minimum last activity date. |
last_activity_max | string <datetime> Filter the maximum last activity date. |
organization_name | string [ 1 .. 255 ] Filter by organization name |
blocked | boolean Filter by user's blocked |
trip_count_min | number >= 0 Filter the minimum trip . |
trip_count_max | number >= 0 Filter the maximum trip. |
label_name | string [ 1 .. 20 ] Filter by label name. |
phone_number | string [ 1 .. 20 ] Filter by phone number. |
currency required | string (Currency) Enum: "AED" "AFN" "ALL" "AMD" "ANG" "AOA" "ARS" "AUD" "AWG" "AZN" "BAM" "BBD" "BDT" "BGN" "BHD" "BIF" "BMD" "BND" "BOB" "BRL" "BSD" "BTN" "BWP" "BYN" "BYR" "BZD" "CAD" "CDF" "CHF" "CLF" "CLP" "CNY" "COP" "CRC" "CUC" "CUP" "CVE" "CZK" "DJF" "DKK" "DOP" "DZD" "EGP" "ERN" "ETB" "EUR" "FJD" "FKP" "GBP" "GEL" "GGP" "GHS" "GIP" "GMD" "GNF" "GTQ" "GYD" "HKD" "HNL" "HRK" "HTG" "HUF" "IDR" "ILS" "IMP" "INR" "IQD" "IRR" "ISK" "JEP" "JMD" "JOD" "JPY" "KES" "KGS" "KHR" "KMF" "KPW" "KRW" "KWD" "KYD" "KZT" "LAK" "LBP" "LKR" "LRD" "LSL" "LTL" "LVL" "LYD" "MAD" "MDL" "MGA" "MKD" "MMK" "MNT" "MOP" "MRO" "MUR" "MVR" "MWK" "MXN" "MYR" "MZN" "NAD" "NGN" "NIO" "NOK" "NPR" "NZD" "OMR" "PAB" "PEN" "PGK" "PHP" "PKR" "PLN" "PYG" "QAR" "RON" "RSD" "RUB" "RWF" "SAR" "SBD" "SCR" "SDG" "SEK" "SGD" "SHP" "SLL" "SOS" "SRD" "STD" "SVC" "SYP" "SZL" "THB" "TJS" "TMT" "TND" "TOP" "TRY" "TTD" "TWD" "TZS" "UAH" "UGX" "USD" "UYU" "UZS" "VEF" "VND" "VUV" "WST" "XAF" "XAG" "XAU" "XCD" "XDR" "XOF" "XPF" "YER" "ZAR" "ZMK" "ZMW" "ZWL" Example: currency=EUR The currency in which to convert the amounts. |
timezone required | string (Timezone) Enum: "Africa/Abidjan" "Africa/Accra" "Africa/Addis_Ababa" "Africa/Algiers" "Africa/Asmara" "Africa/Bamako" "Africa/Bangui" "Africa/Banjul" "Africa/Bissau" "Africa/Blantyre" "Africa/Brazzaville" "Africa/Bujumbura" "Africa/Cairo" "Africa/Casablanca" "Africa/Ceuta" "Africa/Conakry" "Africa/Dakar" "Africa/Dar_es_Salaam" "Africa/Djibouti" "Africa/Douala" "Africa/El_Aaiun" "Africa/Freetown" "Africa/Gaborone" "Africa/Harare" "Africa/Johannesburg" "Africa/Juba" "Africa/Kampala" "Africa/Khartoum" "Africa/Kigali" "Africa/Kinshasa" "Africa/Lagos" "Africa/Libreville" "Africa/Lome" "Africa/Luanda" "Africa/Lubumbashi" "Africa/Lusaka" "Africa/Malabo" "Africa/Maputo" "Africa/Maseru" "Africa/Mbabane" "Africa/Mogadishu" "Africa/Monrovia" "Africa/Nairobi" "Africa/Ndjamena" "Africa/Niamey" "Africa/Nouakchott" "Africa/Ouagadougou" "Africa/Porto-Novo" "Africa/Sao_Tome" "Africa/Tripoli" "Africa/Tunis" "Africa/Windhoek" "America/Adak" "America/Anchorage" "America/Anguilla" "America/Antigua" "America/Araguaina" "America/Argentina/Buenos_Aires" "America/Argentina/Catamarca" "America/Argentina/Cordoba" "America/Argentina/Jujuy" "America/Argentina/La_Rioja" "America/Argentina/Mendoza" "America/Argentina/Rio_Gallegos" "America/Argentina/Salta" "America/Argentina/San_Juan" "America/Argentina/San_Luis" "America/Argentina/Tucuman" "America/Argentina/Ushuaia" "America/Aruba" "America/Asuncion" "America/Atikokan" "America/Bahia" "America/Bahia_Banderas" "America/Barbados" "America/Belem" "America/Belize" "America/Blanc-Sablon" "America/Boa_Vista" "America/Bogota" "America/Boise" "America/Cambridge_Bay" "America/Campo_Grande" "America/Cancun" "America/Caracas" "America/Cayenne" "America/Cayman" "America/Chicago" "America/Chihuahua" "America/Costa_Rica" "America/Creston" "America/Cuiaba" "America/Curacao" "America/Danmarkshavn" "America/Dawson" "America/Dawson_Creek" "America/Denver" "America/Detroit" "America/Dominica" "America/Edmonton" "America/Eirunepe" "America/El_Salvador" "America/Fort_Nelson" "America/Fortaleza" "America/Glace_Bay" "America/Goose_Bay" "America/Grand_Turk" "America/Grenada" "America/Guadeloupe" "America/Guatemala" "America/Guayaquil" "America/Guyana" "America/Halifax" "America/Havana" "America/Hermosillo" "America/Indiana/Indianapolis" "America/Indiana/Knox" "America/Indiana/Marengo" "America/Indiana/Petersburg" "America/Indiana/Tell_City" "America/Indiana/Vevay" "America/Indiana/Vincennes" "America/Indiana/Winamac" "America/Inuvik" "America/Iqaluit" "America/Jamaica" "America/Juneau" "America/Kentucky/Louisville" "America/Kentucky/Monticello" "America/Kralendijk" "America/La_Paz" "America/Lima" "America/Los_Angeles" "America/Lower_Princes" "America/Maceio" "America/Managua" "America/Manaus" "America/Marigot" "America/Martinique" "America/Matamoros" "America/Mazatlan" "America/Menominee" "America/Merida" "America/Metlakatla" "America/Mexico_City" "America/Miquelon" "America/Moncton" "America/Monterrey" "America/Montevideo" "America/Montserrat" "America/Nassau" "America/New_York" "America/Nipigon" "America/Nome" "America/Noronha" "America/North_Dakota/Beulah" "America/North_Dakota/Center" "America/North_Dakota/New_Salem" "America/Nuuk" "America/Ojinaga" "America/Panama" "America/Pangnirtung" "America/Paramaribo" "America/Phoenix" "America/Port-au-Prince" "America/Port_of_Spain" "America/Porto_Velho" "America/Puerto_Rico" "America/Punta_Arenas" "America/Rainy_River" "America/Rankin_Inlet" "America/Recife" "America/Regina" "America/Resolute" "America/Rio_Branco" "America/Santarem" "America/Santiago" "America/Santo_Domingo" "America/Sao_Paulo" "America/Scoresbysund" "America/Sitka" "America/St_Barthelemy" "America/St_Johns" "America/St_Kitts" "America/St_Lucia" "America/St_Thomas" "America/St_Vincent" "America/Swift_Current" "America/Tegucigalpa" "America/Thule" "America/Thunder_Bay" "America/Tijuana" "America/Toronto" "America/Tortola" "America/Vancouver" "America/Whitehorse" "America/Winnipeg" "America/Yakutat" "America/Yellowknife" "Antarctica/Casey" "Antarctica/Davis" "Antarctica/DumontDUrville" "Antarctica/Macquarie" "Antarctica/Mawson" "Antarctica/McMurdo" "Antarctica/Palmer" "Antarctica/Rothera" "Antarctica/Syowa" "Antarctica/Troll" "Antarctica/Vostok" "Arctic/Longyearbyen" "Asia/Aden" "Asia/Almaty" "Asia/Amman" "Asia/Anadyr" "Asia/Aqtau" "Asia/Aqtobe" "Asia/Ashgabat" "Asia/Atyrau" "Asia/Baghdad" "Asia/Bahrain" "Asia/Baku" "Asia/Bangkok" "Asia/Barnaul" "Asia/Beirut" "Asia/Bishkek" "Asia/Brunei" "Asia/Chita" "Asia/Choibalsan" "Asia/Colombo" "Asia/Damascus" "Asia/Dhaka" "Asia/Dili" "Asia/Dubai" "Asia/Dushanbe" "Asia/Famagusta" "Asia/Gaza" "Asia/Hebron" "Asia/Ho_Chi_Minh" "Asia/Hong_Kong" "Asia/Hovd" "Asia/Irkutsk" "Asia/Jakarta" "Asia/Jayapura" "Asia/Jerusalem" "Asia/Kabul" "Asia/Kamchatka" "Asia/Karachi" "Asia/Kathmandu" "Asia/Khandyga" "Asia/Kolkata" "Asia/Krasnoyarsk" "Asia/Kuala_Lumpur" "Asia/Kuching" "Asia/Kuwait" "Asia/Macau" "Asia/Magadan" "Asia/Makassar" "Asia/Manila" "Asia/Muscat" "Asia/Nicosia" "Asia/Novokuznetsk" "Asia/Novosibirsk" "Asia/Omsk" "Asia/Oral" "Asia/Phnom_Penh" "Asia/Pontianak" "Asia/Pyongyang" "Asia/Qatar" "Asia/Qostanay" "Asia/Qyzylorda" "Asia/Riyadh" "Asia/Sakhalin" "Asia/Samarkand" "Asia/Seoul" "Asia/Shanghai" "Asia/Singapore" "Asia/Srednekolymsk" "Asia/Taipei" "Asia/Tashkent" "Asia/Tbilisi" "Asia/Tehran" "Asia/Thimphu" "Asia/Tokyo" "Asia/Tomsk" "Asia/Ulaanbaatar" "Asia/Urumqi" "Asia/Ust-Nera" "Asia/Vientiane" "Asia/Vladivostok" "Asia/Yakutsk" "Asia/Yangon" "Asia/Yekaterinburg" "Asia/Yerevan" "Atlantic/Azores" "Atlantic/Bermuda" "Atlantic/Canary" "Atlantic/Cape_Verde" "Atlantic/Faroe" "Atlantic/Madeira" "Atlantic/Reykjavik" "Atlantic/South_Georgia" "Atlantic/St_Helena" "Atlantic/Stanley" "Australia/Adelaide" "Australia/Brisbane" "Australia/Broken_Hill" "Australia/Darwin" "Australia/Eucla" "Australia/Hobart" "Australia/Lindeman" "Australia/Lord_Howe" "Australia/Melbourne" "Australia/Perth" "Australia/Sydney" "Europe/Amsterdam" "Europe/Andorra" "Europe/Astrakhan" "Europe/Athens" "Europe/Belgrade" "Europe/Berlin" "Europe/Bratislava" "Europe/Brussels" "Europe/Bucharest" "Europe/Budapest" "Europe/Busingen" "Europe/Chisinau" "Europe/Copenhagen" "Europe/Dublin" "Europe/Gibraltar" "Europe/Guernsey" "Europe/Helsinki" "Europe/Isle_of_Man" "Europe/Istanbul" "Europe/Jersey" "Europe/Kaliningrad" "Europe/Kiev" "Europe/Kirov" "Europe/Lisbon" "Europe/Ljubljana" "Europe/London" "Europe/Luxembourg" "Europe/Madrid" "Europe/Malta" "Europe/Mariehamn" "Europe/Minsk" "Europe/Monaco" "Europe/Moscow" "Europe/Oslo" "Europe/Paris" "Europe/Podgorica" "Europe/Prague" "Europe/Riga" "Europe/Rome" "Europe/Samara" "Europe/San_Marino" "Europe/Sarajevo" "Europe/Saratov" "Europe/Simferopol" "Europe/Skopje" "Europe/Sofia" "Europe/Stockholm" "Europe/Tallinn" "Europe/Tirane" "Europe/Ulyanovsk" "Europe/Uzhgorod" "Europe/Vaduz" "Europe/Vatican" "Europe/Vienna" "Europe/Vilnius" "Europe/Volgograd" "Europe/Warsaw" "Europe/Zagreb" "Europe/Zaporozhye" "Europe/Zurich" "Indian/Antananarivo" "Indian/Chagos" "Indian/Christmas" "Indian/Cocos" "Indian/Comoro" "Indian/Kerguelen" "Indian/Mahe" "Indian/Maldives" "Indian/Mauritius" "Indian/Mayotte" "Indian/Reunion" "Pacific/Apia" "Pacific/Auckland" "Pacific/Bougainville" "Pacific/Chatham" "Pacific/Chuuk" "Pacific/Easter" "Pacific/Efate" "Pacific/Enderbury" "Pacific/Fakaofo" "Pacific/Fiji" "Pacific/Funafuti" "Pacific/Galapagos" "Pacific/Gambier" "Pacific/Guadalcanal" "Pacific/Guam" "Pacific/Honolulu" "Pacific/Kiritimati" "Pacific/Kosrae" "Pacific/Kwajalein" "Pacific/Majuro" "Pacific/Marquesas" "Pacific/Midway" "Pacific/Nauru" "Pacific/Niue" "Pacific/Norfolk" "Pacific/Noumea" "Pacific/Pago_Pago" "Pacific/Palau" "Pacific/Pitcairn" "Pacific/Pohnpei" "Pacific/Port_Moresby" "Pacific/Rarotonga" "Pacific/Saipan" "Pacific/Tahiti" "Pacific/Tarawa" "Pacific/Tongatapu" "Pacific/Wake" "Pacific/Wallis" "UTC" The timezone of the user making the request. |
without_network required | boolean Show users that hasn't interact with any networks for the moment. |
{- "code": 0,
- "data": [
- {
- "user_id": 1,
- "email": "string",
- "lastname": "string",
- "firstname": "string",
- "register_at": "string",
- "has_payment_method": true,
- "last_activity": "string",
- "organization_name": "string",
- "blocked": true,
- "total_paid": 0.1,
- "trip_count": 0,
- "networks_name": [
- "string"
], - "label_name": "string",
- "phone_number": "string"
}
], - "total": 0
}
Get the badges of the specified user.
id required | integer >= 1 Identifier of the user. |
{- "code": 0,
- "data": [
- {
- "badge_id": 1,
- "serial": "string",
- "name": "string",
- "creation_date": "string"
}
]
}
Start a badge link for the specified user and station.
id required | integer >= 1 The user's identifier. |
Information about the badge registration.
cluster required | integer >= 1 The station used for the registration of the badge. |
name required | string [ 1 .. 30 ] characters The name of the badge. |
spot_id | integer >= 1 Identifier of the spot on which the user will put his badge to link it to his account. Only for station v6. |
{- "cluster": 1,
- "name": "string",
- "spot_id": 1
}
{- "code": 0
}
Return the user who has block given user and since when he is blocked.
id required | integer >= 1 Identifier of the user. |
{- "code": 0,
- "data": {
- "reason": "string",
- "blocker_id": 0,
- "firstname": "string",
- "lastname": "string",
- "date": "string",
- "email": "user@example.com"
}
}
Block the specified user with the given reason.
id required | integer >= 1 Identifier of the user. |
Block user parameters.
reason required | string [ 3 .. 1000 ] characters Reason to block the user. |
{- "reason": "string"
}
{- "code": 0
}
Get the devices of the specified user.
id required | integer >= 1 Identifier of the user. |
{- "code": 0,
- "data": [
- {
- "device_id": 1,
- "os": "Android",
- "model": "string",
- "app_version": "string",
- "last_login": "string",
- "has_push_notification": true
}
]
}
Send a message to the specified user
id required | integer >= 1 Identifier of the user. |
Message data.
message required | string [ 3 .. 1000 ] characters Content of the message to send to the user. |
{- "message": "string"
}
{- "code": 0
}
Return all passes assigned to a user.
id required | integer >= 1 Identifier of the user. |
{- "code": 0,
- "data": [
- {
- "pass_id": 1,
- "available_time": 0,
- "total_time": 0,
- "purchase_date": "2019-08-24T14:15:22Z",
- "activation_date": "2019-08-24T14:15:22Z",
- "validity": "day"
}
]
}
Get payment providers and associated payment methods of the specified user.
id required | integer >= 1 Identifier of the user. |
{- "code": 0,
- "data": [
- {
- "provider": "string",
- "provider_user_id": "string",
- "type": "card",
- "allow_pre_authorizations": true,
- "allow_direct_payments": true,
- "allow_automatic_payments": true,
- "payment_methods": [
- {
- "provider_method_id": "string",
- "user_payment_method_id": "string",
- "creation_date": "string",
- "deletion_date": "string",
- "details": {
- "card_provider": "string",
- "alias": "string",
- "expiration_date": "string",
- "fingerprint": "string",
- "funding": "credit",
- "wallet": "google_pay"
}, - "default": true
}
]
}
]
}
Delete the specified payment method of the user. If the default payment method is deleted, a new default payment method is selected automatically.
id required | integer >= 1 Identifier of the user. |
user_method_id required | integer >= 1 Identifier of the user payment method. |
{- "code": 0
}
Get the list of permissions granted to the specified user.
id required | integer >= 1 Identifier of the user. |
{- "code": 0,
- "data": [
- {
- "organizational_unit_name": "string",
- "permissions": [
- {
- "perm_key": "string",
- "role_key": "string",
- "start_date": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24T14:15:22Z",
- "granted_by": 1,
- "granted_by_email": "string",
- "write": true
}
]
}
]
}
Grant a permission to the specified user. If the user already has the permission but with a different end date, it will be overwritten. Granter needs to have the permission he want to grant.
id required | integer >= 1 Identifier of the user. |
Permission data.
start_date required | string <date-time> Start date of the permission / role. |
end_date required | string or null <date-time> When the permission / role will expire. Null to grant forever. |
organizational_unit required | integer or null >= 1 The identifier of the organizational unit to which to give the permission. Can be null for global permission. |
write required | boolean Grant the permission with write modifier. |
perm_key required | string Enum: "networks.manage" "vehicles.register" "maintenances" "unlock.admin" "networks.show.private" "dashboard.access" "users.list" "demonstration" "stations" "stations.advanced" "users.permissions" "users.block" "users.credits" "transactions" "developer" "emails.newsletters" "emails.transactional" "emails.templates" "users.support" "trips" "stocks.vehicles" "stocks.manage" "vehicles.manage" "notifications" "offers" "long.term.rentals" "vehicles.alerts" "terms.of.use" "organizations" "users.badges" "virtual.parking" "app.debug" "roles" "feature.beta" "faq" "app.label" The key of the permission to give. |
{- "start_date": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24T14:15:22Z",
- "organizational_unit": 1,
- "write": true,
- "perm_key": "networks.manage"
}
{- "code": 0
}
Revoke a permission from the specified user. The user needs to have the permission he want to revoke.
id required | integer >= 1 Identifier of the user. |
perm_key required | string (Permission) Enum: "networks.manage" "vehicles.register" "maintenances" "unlock.admin" "networks.show.private" "dashboard.access" "users.list" "demonstration" "stations" "stations.advanced" "users.permissions" "users.block" "users.credits" "transactions" "developer" "emails.newsletters" "emails.transactional" "emails.templates" "users.support" "trips" "stocks.vehicles" "stocks.manage" "vehicles.manage" "notifications" "offers" "long.term.rentals" "vehicles.alerts" "terms.of.use" "organizations" "users.badges" "virtual.parking" "app.debug" "roles" "feature.beta" "faq" "app.label" The key of the permission to revoke. |
organizational_unit | integer >= 1 The identifier of the organizational unit. Omit to revoke a global permission. |
{- "code": 0
}
Get the profile of the specified user
id required | integer >= 1 Identifier of the user. |
{- "code": 0,
- "data": [
- {
- "label_name": "string",
- "email": "user@example.com",
- "lastname": "string",
- "firstname": "string",
- "language": "string",
- "phone_number": "string",
- "organization_name": "string",
- "organization_id": 0,
- "networks_name": [
- "string"
], - "confirmed_email": "string",
- "purchase_count": 0,
- "trip_count": 0,
- "blocked": true,
- "registration_date": "string",
- "deletion_date": "string",
- "marked_for_deletion_after": "2019-08-24T14:15:22Z",
- "last_login": "string",
- "total_paid": 0,
- "pre_auth_bank_guarantees_disabled_by": 1,
- "pre_auth_bank_guarantees_disabled_by_email": 1
}
]
}
Get the user report of a specific user
id required | integer >= 1 Identifier of the user. |
{- "code": 0,
- "data": [
- {
- "date": "string",
- "resolved": true,
- "type": "string",
- "report_id": 1,
- "answered": true
}
]
}
Grant a role to the specified user. If the user already has the role but with a different end date, it will be overwritten. Granter needs to have the role he want to grant, or all permission of the role.
id required | integer >= 1 Identifier of the user. |
Role data.
start_date required | string <date-time> Start date of the permission / role. |
end_date required | string or null <date-time> When the permission / role will expire. Null to grant forever. |
organizational_unit required | integer or null >= 1 The identifier of the organizational unit to which to give the permission. Can be null for global permission. |
write required | boolean Grant the permission with write modifier. |
role_key required | string [ 3 .. 50 ] characters The key of the role. |
{- "start_date": "2019-08-24T14:15:22Z",
- "end_date": "2019-08-24T14:15:22Z",
- "organizational_unit": 1,
- "write": true,
- "role_key": "string"
}
{- "code": 0
}
Revoke a role from the specified user. The user needs to have the role he want to revoke, or all permission of the role.
id required | integer >= 1 Identifier of the user. |
role_key required | string [ 3 .. 50 ] characters The key of the role to revoke. |
organizational_unit | integer >= 1 The identifier of the organizational unit. Omit to revoke a global permission. |
{- "code": 0
}
Return non-empty wallets for the specified user.
id required | integer >= 1 The user's identifier of which to get wallets. |
get_empty | boolean Whether to get full or empty wallets. |
{- "code": 0,
- "data": {
- "wallet_id": 1,
- "creation_date": "2019-08-24T14:15:22Z",
- "original_amount": 0.0001,
- "current_amount": 0.0001,
- "currency": "string",
- "source": "purchase",
- "transaction_id": 1,
- "trip_id": 1,
- "discount_code_id": 1,
- "sponsor_user_id": 1,
- "usages": [
- {
- "amount": 0.0001,
- "trip_id": 1,
- "user_pass_id": 1,
- "refund_id": 1
}
]
}
}
Create a wallet for the user given.
id required | integer >= 1 Identifier of the user. |
Informations to create a wallet.
amount required | number >= 0.01 The amount to add. |
currency required | string Enum: "AED" "AFN" "ALL" "AMD" "ANG" "AOA" "ARS" "AUD" "AWG" "AZN" "BAM" "BBD" "BDT" "BGN" "BHD" "BIF" "BMD" "BND" "BOB" "BRL" "BSD" "BTN" "BWP" "BYN" "BYR" "BZD" "CAD" "CDF" "CHF" "CLF" "CLP" "CNY" "COP" "CRC" "CUC" "CUP" "CVE" "CZK" "DJF" "DKK" "DOP" "DZD" "EGP" "ERN" "ETB" "EUR" "FJD" "FKP" "GBP" "GEL" "GGP" "GHS" "GIP" "GMD" "GNF" "GTQ" "GYD" "HKD" "HNL" "HRK" "HTG" "HUF" "IDR" "ILS" "IMP" "INR" "IQD" "IRR" "ISK" "JEP" "JMD" "JOD" "JPY" "KES" "KGS" "KHR" "KMF" "KPW" "KRW" "KWD" "KYD" "KZT" "LAK" "LBP" "LKR" "LRD" "LSL" "LTL" "LVL" "LYD" "MAD" "MDL" "MGA" "MKD" "MMK" "MNT" "MOP" "MRO" "MUR" "MVR" "MWK" "MXN" "MYR" "MZN" "NAD" "NGN" "NIO" "NOK" "NPR" "NZD" "OMR" "PAB" "PEN" "PGK" "PHP" "PKR" "PLN" "PYG" "QAR" "RON" "RSD" "RUB" "RWF" "SAR" "SBD" "SCR" "SDG" "SEK" "SGD" "SHP" "SLL" "SOS" "SRD" "STD" "SVC" "SYP" "SZL" "THB" "TJS" "TMT" "TND" "TOP" "TRY" "TTD" "TWD" "TZS" "UAH" "UGX" "USD" "UYU" "UZS" "VEF" "VND" "VUV" "WST" "XAF" "XAG" "XAU" "XCD" "XDR" "XOF" "XPF" "YER" "ZAR" "ZMK" "ZMW" "ZWL" The currency of the wallet amount. |
reason required | string [ 5 .. 1000 ] characters Why this amount is added to the user wallet. |
{- "amount": 0.01,
- "currency": "string",
- "reason": "string"
}
{- "code": 0,
- "data": {
- "wallet_id": 1
}
}
Delete the specified wallet of a user.
id required | integer >= 1 Identifier of the user. |
wallet required | integer >= 1 Identifier of the wallet. |
reason required | string [ 3 .. 1000 ] characters Reason to delete the wallet. |
{- "code": 0
}
Get the sum of all wallet of the specified user, converted to given currency.
id required | integer >= 1 The identifier of the wallet. |
currency required | string (Currency) Enum: "AED" "AFN" "ALL" "AMD" "ANG" "AOA" "ARS" "AUD" "AWG" "AZN" "BAM" "BBD" "BDT" "BGN" "BHD" "BIF" "BMD" "BND" "BOB" "BRL" "BSD" "BTN" "BWP" "BYN" "BYR" "BZD" "CAD" "CDF" "CHF" "CLF" "CLP" "CNY" "COP" "CRC" "CUC" "CUP" "CVE" "CZK" "DJF" "DKK" "DOP" "DZD" "EGP" "ERN" "ETB" "EUR" "FJD" "FKP" "GBP" "GEL" "GGP" "GHS" "GIP" "GMD" "GNF" "GTQ" "GYD" "HKD" "HNL" "HRK" "HTG" "HUF" "IDR" "ILS" "IMP" "INR" "IQD" "IRR" "ISK" "JEP" "JMD" "JOD" "JPY" "KES" "KGS" "KHR" "KMF" "KPW" "KRW" "KWD" "KYD" "KZT" "LAK" "LBP" "LKR" "LRD" "LSL" "LTL" "LVL" "LYD" "MAD" "MDL" "MGA" "MKD" "MMK" "MNT" "MOP" "MRO" "MUR" "MVR" "MWK" "MXN" "MYR" "MZN" "NAD" "NGN" "NIO" "NOK" "NPR" "NZD" "OMR" "PAB" "PEN" "PGK" "PHP" "PKR" "PLN" "PYG" "QAR" "RON" "RSD" "RUB" "RWF" "SAR" "SBD" "SCR" "SDG" "SEK" "SGD" "SHP" "SLL" "SOS" "SRD" "STD" "SVC" "SYP" "SZL" "THB" "TJS" "TMT" "TND" "TOP" "TRY" "TTD" "TWD" "TZS" "UAH" "UGX" "USD" "UYU" "UZS" "VEF" "VND" "VUV" "WST" "XAF" "XAG" "XAU" "XCD" "XDR" "XOF" "XPF" "YER" "ZAR" "ZMK" "ZMW" "ZWL" Example: currency=EUR Currency code of the wallet money to convert to. |
{- "code": 0,
- "data": 0.1
}
Get the list of usable or currently used bank guarantees of a user.
id required | integer >= 1 The user's identifier of which to get bank guarantees. |
{- "code": 0,
- "data": [
- {
- "pre_auth_id": "string",
- "amount": "350.000",
- "currency": "string",
- "date": "2019-08-24T14:15:22Z",
- "trip_id": 1,
- "serial_number": "string",
- "keep_after_trip": true,
- "expire_at": "2019-08-24T14:15:22Z",
- "refund_date": "2019-08-24T14:15:22Z"
}
]
}
Enable or disable pre auth bank guarantee for the user. He still need to have a valid payment method to start trips.
id required | integer >= 1 Identifier of the user. |
Toggle state.
disabled required | boolean Wether or not the pre auth guarantee are disabled for this user. |
{- "disabled": true
}
{- "code": 0
}
Get the last 10 actions (unlock request, trips, transactions) done by the user.
id required | integer >= 1 Identifier of the user. |
before_date | string <date-time> The date of the oldest element that the client has, to get the elements coming before it. |
{- "code": 0,
- "data": [
- {
- "name": "unlock",
- "object_id": 1,
- "date": "2019-08-24T14:15:22Z",
- "state": "created",
- "vehicle_id": 1,
- "description": "string",
- "data": { }
}
]
}
Link a user to an organization.
id required | integer >= 1 Identifier of the user. |
Informations to create a wallet.
organization required | integer >= 1 The identifier of the organization to which the user will be linked. |
force | boolean True to unlink the current user's organization. |
{- "organization": 1,
- "force": true
}
{- "code": 0,
- "data": {
- "wallet_id": 1
}
}
Search for user with a given email.
email required | string [ 3 .. 200 ] characters Search value. |
{- "code": 0,
- "data": [
- {
- "user_id": 1,
- "email": "user@example.com",
- "label_name": "string"
}
]
}
Get the last 10 mails sent to the user.
id required | integer >= 1 Identifier of the user. |
before_date | string <date-time> The date of the oldest element that the client has, to get the elements coming before it. |
{- "code": 0,
- "data": [
- {
- "mail_uuid": "string",
- "template_name": "string",
- "target_lang": "string",
- "sent_langs": [
- "string"
], - "sent": "string",
- "delivered": true,
- "bounce": true,
- "bounce_type": "string",
- "opened": "string",
- "error": true,
- "context": "TRANSACTIONAL",
- "complaints": true,
- "newsletter_id": 1
}
]
}
Get the last 10 push notifications sent to the user.
id required | integer >= 1 Identifier of the user. |
before_date | string <date-time> The date of the oldest element that the client has, to get the elements coming before it. |
{- "code": 0,
- "data": [
- {
- "notification_id": "string",
- "sent_date": "string",
- "device_id": "string",
- "details": {
- "type": "string"
}
}
]
}
Get the api requests that the user made.
id required | integer >= 1 Identifier of the user. |
offset | integer >= 0 The page number. Defaults to 0. |
items | integer >= 1 The number of items to returns. Defaults to 20. |
{- "code": 0,
- "data": [
- {
- "date": "string",
- "target_path": "string",
- "query": { },
- "body": { },
- "verb": "string",
- "user_agent": "string",
- "ip": "string",
- "http_code": 0,
- "knot_code": 0,
- "process_time": 0
}
]
}
Remove a pass from a user.
id required | integer >= 1 Identifier of the user pass. |
refund | boolean True if the pass is to be refunded to the user. |
{- "code": 0
}
Disable a Pass so that it can be activated again. Optionally reset its available time.
id required | integer >= 1 Identifier of the user pass. |
Reset user pass.
reset | boolean True if the pass needs to be reset. |
{- "reset": true
}
{- "code": 0
}
Fetch the list of vehicles for the specific network.
networks required | Array of integers[ items >= 1 ] Examples:
Identifier of networks of which to get the vehicles. |
{- "code": 0,
- "data": [
- {
- "serial_number": "string",
- "network_name": "string",
- "network_id": 1,
- "model_name": "string",
- "model_type": "kick-scooter",
- "manufacturer": "string",
- "svaas_id": 1,
- "registration_date": "string",
- "battery": 100,
- "state": "rented",
- "email": "user@example.com",
- "user_id": 1,
- "location": {
- "lat": -90,
- "lng": -180,
- "cluster_name": "string",
- "cluster_id": 1,
- "spot_id": 1,
- "spot_number": 1,
- "stock_id": 1,
- "stock_name": "string"
}, - "last_trip_end_date": "2019-08-24T14:15:22Z",
- "vehicle_id": 1,
- "iot": {
- "freefloat": true,
- "imei": "stringstringstr",
- "online": true,
- "odometer": 0
}, - "maintenances": {
- "info": 0,
- "low": 0,
- "high": 0
}, - "trips": 0,
- "available": true,
- "availability": 1
}
]
}
Generate a QR code for the given vehicle serial number.
serial required | string/^[a-zA-Z0-9]{6,10}$/ Serial number to print on the QR code. |
{- "code": -39999999,
- "message": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}
}
Fetch the list of decommissioned vehicles for specified networks.
networks required | Array of integers[ items >= 1 ] Examples:
Identifier of networks of which to get the decommissioned vehicles. |
{- "code": 0,
- "data": [
- {
- "serial_number": "string",
- "network_name": "string",
- "network_id": 1,
- "model_name": "string",
- "model_type": "kick-scooter",
- "manufacturer": "string",
- "svaas_id": 1,
- "registration_date": "string",
- "vehicle_id": 1,
- "iot": {
- "imei": "stringstringstr",
- "odometer": 0
}, - "trips": 0,
- "age": 0,
- "decommission_date": "string",
- "reason": "lost-or-stolen",
- "comment": "string",
- "amount": 0.1,
- "currency": "string"
}
]
}
Generate sheet with QR codes for vehicles generated for the given parameters.
prefix required | string/^[A-Z][A-Z0-9]{0,6}$/ Prefix of the QR codes. |
begin_id required | integer >= 0 First id of the vehicle to generate, will be incremented for every QR code. |
width_in_cm required | number >= 0 Width of the sheet in centimeters. |
height_in_cm required | number >= 0 Height of the sheet in centimeters. |
{- "code": -39999999,
- "message": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}
}
Return the list of used serial number from the given list.
serials required | Array of strings[ items >= 1 ] Examples:
List of serial number to check. |
{- "code": 0,
- "data": [
- "string"
]
}
Fetch the detail of the specified vehicle.
id required | integer >= 1 Identifier of the vehicle. |
{- "code": 0,
- "data": {
- "serial_number": "string",
- "network_name": "string",
- "network_id": 1,
- "model_name": "string",
- "model_type": "kick-scooter",
- "manufacturer": "string",
- "svaas_id": 1,
- "registration_date": "string",
- "battery": 100,
- "state": "rented",
- "email": "user@example.com",
- "user_id": 1,
- "location": {
- "lat": -90,
- "lng": -180,
- "cluster_name": "string",
- "cluster_id": 1,
- "spot_id": 1,
- "spot_number": 1,
- "stock_id": 1,
- "stock_name": "string"
}, - "last_trip_end_date": "2019-08-24T14:15:22Z",
- "iot": {
- "freefloat": true,
- "imei": "stringstringstr",
- "connected_since": "2019-08-24T14:15:22Z",
- "locked": true,
- "last_response": "string",
- "last_location_date": "string"
}, - "maintenance_level": "info",
- "last_shutdown_date": "2019-08-24T14:15:22Z",
- "last_known_speed": 0,
- "charging": true,
- "decommission_date": "string",
- "external_locks": [
- {
- "external_lock_id": 0,
- "model": "string",
- "type": "u",
- "serial_number": "string",
- "code": "string",
- "register_date": "string",
- "last_code_update": "string"
}
]
}
}
Decommission a vehicle.
id required | integer >= 1 Identifier of the vehicle. |
reason required | string Enum: "lost-or-stolen" "sold" "irreparable" "economical" Why the vehicle is decommissioned. |
comment | string [ 1 .. 200 ] characters Optional comment on decommission. |
amount | number <float> Optional amount when the vehicle is sold, or the cost (negative amount) when the vehicle is recycled. Currency is the currency of the last vehicle's network. |
{- "code": 0
}
Generate the QR code for the given vehicle.
id required | integer >= 1 Identifier of the vehicle. |
{- "code": -39999999,
- "message": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}
}
Change the current network of a vehicle.
id required | integer >= 1 Identifier of the vehicle. |
Info about the network.
network_id required | integer >= 1 Identifier of the new network for the vehicle. |
{- "network_id": 1
}
{- "code": 0
}
Fetch the statistic of the specified vehicle.
id required | integer >= 1 Identifier of the vehicle. |
{- "code": 0,
- "data": {
- "trips": 0,
- "rent_time": 0,
- "odometer": 0,
- "maintenances": {
- "info": 0,
- "low": 0,
- "high": 0
}
}
}
Fetch the timeline (trip, parking, maintenance move) of the specified vehicle.
id required | integer >= 1 Identifier of the vehicle. |
before_date | string <date-time> The date of the oldest element that the client has, to get the elements coming before it. |
{- "code": 0,
- "data": [
- {
- "event_type": "parked",
- "date": "2019-08-24T14:15:22Z",
- "user_id": 1,
- "user_email": "user@example.com",
- "spot_id": 1,
- "spot_number": 1,
- "cluster_name": "string",
- "cluster_id": 1,
- "network_name": "string",
- "network_id": 1
}
]
}
Route to get all maintenances (current and old one) of a vehicle.
id required | integer >= 1 Identifier of the vehicle. |
lang required | string = 2 characters The lang in which to get the maintenance types localized. |
{- "code": 0,
- "data": [
- {
- "maintenance_id": 1,
- "maintenance_type": "string",
- "comment": "string",
- "start_date": "string",
- "started_by": "user@example.com",
- "started_by_uid": 1,
- "severity": "info",
- "automatic_code_description": "string",
- "stop_date": "string",
- "stopped_by": "user@example.com",
- "stopped_by_uid": 1
}
]
}
Route to get current alerts of a vehicle.
id required | integer >= 1 Identifier of the vehicle. |
{- "code": 0,
- "data": [
- {
- "alert_id": 1,
- "alert_type": "unexpected-unlock",
- "alert_severity": "low",
- "creation_date": "string",
- "other_occurrences": [
- "string"
], - "resolved_at": "string"
}
]
}
Register an external lock on the given vehicle.
The lock information.
vehicle_id required | integer >= 1 The identifier of the vehicle on which the lock is installed. |
model required | string [ 1 .. 64 ] characters The model of the lock. |
type required | string (VehicleExternalLockType) Enum: "u" "foldable" "flexible" "chain" "frame" The type of the lock |
serial_number required | string [ 1 .. 64 ] characters The unique serial number of the lock. |
code required | string [ 1 .. 16 ] characters The code to open the lock. |
{- "vehicle_id": 1,
- "model": "string",
- "type": "u",
- "serial_number": "string",
- "code": "string"
}
{- "code": 0,
- "data": {
- "external_lock_id": 1
}
}
Change the access code of an external lock (still require a physical operation on the lock, this only change the displayed code in the application).
id required | integer >= 1 Identifier of the vehicle. |
The new code.
code required | string [ 1 .. 16 ] characters The new code. |
{- "code": "string"
}
{- "code": 0
}