Create Run

POST {{sandbox_base_url}}/sandbox/terminal-state-trip-run

https://developer.uber.com/docs/vouchers/references/api/v1/sandbox-terminalstatetrip_run-post

Use this endpoint to create a sandbox run for mocking a terminal state trip. You can select from available scenarioIDs for simulating desired kind of trip.

If there’s a voucher available on the rider account, it will be auto-applied on the trip.

Request Body

{"pickup"=>{"point"=>{"latitude"=>37.34443627446, "longitude"=>-121.90963934004229}}, "dropoff"=>{"point"=>{"latitude"=>37.20280308355573, "longitude"=>-121.85208719982494}}, "rider_info"=>{"identifier"=>{"email_address"=>"{{guest_email}}"}}, "scenario"=>{"id"=>"{{scenario_id}}"}, "product_type"=>"{{product_type}}"}

HEADERS

KeyDatatypeRequiredDescription
content-typestring
User-Agentstring

RESPONSES

status: OK

{"run_id":"Redacted","trip_id":"Redacted"}