GetFare
POST/v1/rides/get-fare¶ Description
Returns the fare breakdown for the requested fare id. Fails if the fare id does not correspond to any fare associated with the order.
¶ Request Parameters
| Name | Type | Description | Required |
|---|---|---|---|
| context | ThirdPartyRequestContext | Context of this request | Y |
| requested_by | ParticipantEntity | The requester who is requesting the fare breakdown | Y |
| origin | LocationSpecification | Origin location specification.Origin specification for which the estimate was requested for the give fare_spec. | Y |
| fare_spec | FareSpecification | FareSpec for which fare is requested | Y |
¶ Response Parameters
| Name | Type | Description | Required |
|---|---|---|---|
| fare | Fare | The fare for the requested fare spec | Y |
¶ Errors
| HTTP status | Code | Message |
|---|---|---|
| 422 | ERROR_CODE_OUTSIDE_SERVICE_AREA | Origin location is outside the service area |
| 400 | ERROR_CODE_VALIDATION_FAILED | Fare id is invalid |
| 404 | ERROR_CODE_FARE_NOT_FOUND | The fare specification with the given id was not found |
| 412 | ERROR_CODE_INVALID_FARE_SPECIFICATION | The provided fare spec is for a different product type or user than the order |