Three lines

Uber

Developers

Cancel Voucher Program

POSThttps://api.uber.com/v1/organizations/{organization_id}/voucher-programs/{voucher_program_id}/cancel

Privileged and Confidential This endpoint design has been confidentially shared with you. It is still under development and is subject to change without notice. Please do not share this document or API endpoint details with anyone who is not authorized to have access. For more information read about scopes.

Use Case

The Cancel Voucher Program endpoint allows you to cancel voucher program.

Authorization

The Cancel Voucher Program endpoint requires an access_token using the client credentials grant to organizations.voucher_programs scope or using authorization_code to organizations.voucher_programs.delegated scope.

If an application follows third party authentication, this endpoint requires organizations.voucher_programs.aggregator scope with the grant type as client_credentials.

Path Parameters
Name Type Optional Description
organization_id string No Identifier for the organization the developer is part of and the entity that owns this voucher program. Should be known to developer when their organization was onboarded to Uber For Business.
voucher_program_id string No The voucher_program_id returned back in the create voucher program call which identifies the voucher program created.
Response Fields
Name Type Description
Void null Assume success when no error is returned back
Example Request
curl -H 'Authorization: Bearer <TOKEN>' \
     -H 'Accept-Language: en_US' \
     -H 'Content-Type: application/json' \
     -X POST
     -d '{}'
  'https://api.uber.com/v1/organizations/<organization_id>/voucher-programs/<voucher_program_id>/cancel'
Example Response

Status-Code: 204 No Content

Error Responses
HTTP Status Code Description
400 invalid_request This request is invalid
403 user_not_allowed User is not authorized for api access
403 unauthorized Requester not allowed to perform requested action. When the third party app (3P) is not authorized by the U4B organization
404 resource_not_found Voucher program is not found
500 internal_server_error We have experienced a problem

Uber

Developers
© 2023 Uber Technologies Inc.