Vouchers API - Sandbox
Number of APIs: 16
Instruction guidelines to simulate a trip of the Voucher usage - see the Run folder in this collection for endpoints.
1. To simulate a trip, call POST terminal-state-trip-run. This will start an async flow to simulate a trip. This will return a runID and a tripID.
2. Pass the RunID to GET run-state endpoint to check the status of the run. Typically run can take 1-2 mins to reach `COMPLETED` state. This indicates that trip was completed successfully.
3. If devapp is configured, you should receive a voucherprogramcode_redeemed webhook
4. Call GetVoucherProgram api to check updated usage of the voucher
5. You can also verify whether voucher was applied by checking the reciept.
-
Authorization - Generate Access Token (client_credentials) POST https://login.uber.com/oauth/v2/token
-
Voucher program creation: Without Template - Create Voucher Program POST {{sandbox_base_url}}/organizations/:organization_id/voucher-programs
-
Voucher program creation: With Template - Create Voucher Template POST {{sandbox_base_url}}/organizations/:organization_id/voucher-program-templates
-
Voucher program creation: With Template - Create Voucher Program From Template POST {{sandbox_base_url}}/organizations/:organization_id/voucher-programs/create-from-template
-
Voucher Program Managment - Get Voucher Program GET {{sandbox_base_url}}/organizations/:organization_id/voucher-programs/:voucher_program_id/?include_guests=true
-
Voucher Program Managment - Search Voucher Programs POST {{sandbox_base_url}}/organizations/:organization_id/voucher-programs/search
-
Voucher Program Managment - Update Voucher Program PATCH {{sandbox_base_url}}/organizations/:organization_id/voucher-programs/:voucher_program_id
-
Voucher Program Managment - Cancel Voucher Program POST {{sandbox_base_url}}/organizations/:organization_id/voucher-programs/:voucher_program_id/cancel
-
Voucher Code Managment - Get Voucher Codes GET {{sandbox_base_url}}/organizations/:organization_id/voucher-programs/:voucher_program_id/codes?include_usage=true
-
Voucher Code Managment - Generate Voucher Codes POST {{sandbox_base_url}}/organizations/:organization_id/voucher-programs/:voucher_program_id/codes/generate