Update an expense claim leg
Recomputes the mileage, then the trip's travel days and the claim total.
Path Parameters
Business slug that scopes this request. If you do not have one yet, call common_accessible_businesses_list and pick a slug from the response.
Identifier of the target claim. If the ID is not known, use the corresponding list endpoint with relevant filters and/or the search parameter to discover valid IDs.
Identifier of the target leg. If the ID is not known, use the corresponding list endpoint with relevant filters and/or the search parameter to discover valid IDs.
Identifier of the target trip. If the ID is not known, use the corresponding list endpoint with relevant filters and/or the search parameter to discover valid IDs.
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X PATCH "https://example.com/v1/business/string/expense_claims/0/trips/0/legs/0/" \ -H "Content-Type: application/json" \ -d '{}'{ "id": 0, "position": 0, "departure_address": "string", "destination_address": "string", "departure_at": "2019-08-24T14:15:22Z", "arrival_at": "2019-08-24T14:15:22Z", "description": "string", "vehicle": "CAR", "distance_km": "string", "route_distance_km": "string", "distance_source": "ROUTE", "extra_passengers": 0, "has_trailer": true, "has_heavy_load": true, "country_change": "string", "rate_per_km": "string", "amount": 0.1}