# mba-cli voucher

> Read vouchers (key-scoped)

Read vouchers (key-scoped)

CLI version: `0.3.2`

## Commands

### mba-cli voucher get

Get one voucher by id

Get single voucher resource

Get a single voucher resource

Get one voucher by id

Flags:

- `--id` (string): Voucher record id

API endpoints:

- GET /vouchers/{id} — https://mybusinessapp.co.za/developers/api/voucher#tag/Voucher/getSingleVoucher

### mba-cli voucher get-by-code

Get one voucher by voucher code

Get single voucher resource by its unique code

Get a single voucher resource by its unique code

Get one voucher by voucher code

Flags:

- `--code` (string): Voucher code
- `--team-id` (string): Team id scoping the lookup

API endpoints:

- GET /vouchers/vouchercode/{voucherCode} — https://mybusinessapp.co.za/developers/api/voucher#tag/Voucher/getSingleVoucherByVoucherCode

### mba-cli voucher ls

List vouchers

Get all voucher resources

Get all the voucher resources

List vouchers

Flags:

- `--all` (bool, default `false`): Return all vouchers (paginate=false)
- `--limit` (int, default `20`): Items per page
- `--page` (int, default `1`): Page number

API endpoints:

- GET /vouchers — https://mybusinessapp.co.za/developers/api/voucher#tag/Voucher/getAllVouchers

---

[Rendered page](https://mybusinessapp.co.za/developers/cli/reference/voucher)

© MyBusinessApp (Pty) Ltd. Proprietary documentation — do not republish.
