Report billable trip usage.
HTTP request
POST https://fleetengine.googleapis.com/v1/{name=providers/*/billableTrips/*}:report
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
name |
Required. Must be in the format |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "countryCode": string, "platform": enum ( |
Fields | |
---|---|
country |
Required. Two letter country code of the country where the trip takes place. Price is defined according to country code. |
platform |
The platform upon which the request was issued. |
related |
The identifiers that are directly related to the trip being reported. These are usually IDs (for example, session IDs) of pre-booking operations done before the trip ID is available. The number of |
solution |
The type of GMP product solution (for example, |
Response body
If successful, the response body is an empty JSON object.
BillingPlatformIdentifier
A set of values that indicate upon which platform the request was issued.
Enums | |
---|---|
BILLING_PLATFORM_IDENTIFIER_UNSPECIFIED |
Default. Used for unspecified platforms. |
SERVER |
The platform is a client server. |
WEB |
The platform is a web browser. |
ANDROID |
The platform is an Android mobile device. |
IOS |
The platform is an IOS mobile device. |
OTHERS |
Other platforms that are not listed in this enumeration. |
SolutionType
Selector for different solution types of a reported trip.
Enums | |
---|---|
SOLUTION_TYPE_UNSPECIFIED |
The default value. For backwards-compatibility, the API will use ON_DEMAND_RIDESHARING_AND_DELIVERIES by default which is the first supported solution type. |
ON_DEMAND_RIDESHARING_AND_DELIVERIES |
The solution is an on-demand ridesharing and deliveries trip. |