Create Run
POST {{sandbox_base_url}}/v1/sandbox/terminal-state-trip-run
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. Note that this endpoint is only available to be invoked from sandbox environment.
Test rider account will be configured and provided by Uber for Business representative.
Request Body
{"pickup"=>{"point"=>{"latitude"=>37.76090335007541, "longitude"=>-122.4310332130306}}, "dropoff"=>{"point"=>{"latitude"=>37.69521960109359, "longitude"=>-122.47292838741257}}, "rider_info"=>{"identifier"=>{"email_address"=>"{{guest_email}}"}}, "scenario"=>{"id"=>"COMPLETED_STATE_TRIP"}, "product_type"=>"UBERX"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
content-type | string | ||
User-Agent | string |
RESPONSES
status: OK
{"run_id":"Redacted","trip_id":"Redacted"}