Three lines

Uber

Developers

Get Sandbox Run

GEThttps://sandbox-api.uber.com/v1/sandbox/run/{run_id}

Use case

Use this endpoint to retrieve the run state created via POST /v1/sandbox-post-terminal-state-trip-run endpoint. Note that this endpoint is only available to be invoked from sandbox environment.

Authorization

OAuth 2.0 Bearer token with the business.receipts scope.

Request
Example request
curl -X GET \
  -H "authorization: Bearer <access_token>" \
  'https://sandbox-api.uber.com/v1/sandbox/run/<run_id>'
Request URL parameters
URL parameter Type Description
run_id string A unique identifier of a sandbox run (required).
Response
Example response
{
    "state": "COMPLETED",
}
Response body parameters
Field Type Description
state string Execution state of sandbox run. Possible values: RUNNING, COMPLETED, FAILED
message string Optional message field provides additional information about the run state.
Errors
HTTP Status Code Description
400 BAD_REQUEST Suggests that the server was unable to understand or process the request due to its incorrect or malformed structure.
403 FORBIDDEN Indicates that the server understood the request but refuses to authorize it.
404 NOT_FOUND Suggests that the server was unable to find requested runID
500 INTERNAL_SERVER_ERROR Represents an unanticipated error occurred on the server side while processing the request.

Uber

Developers
© 2023 Uber Technologies Inc.