mba-cli customer

3 commands

Read customers (key-scoped)

Synopsis#

bash
mba-cli customer <command> [flags]

Available commands#

mba-cli customer getGet one customer by id
Retrieve a customer by id Returns the customer with the given `id` for the tenant identified by the API key, with profile metadata and team relationships. Related: `List customers`. Get one customer by id
--idstringCustomer record id
mba-cli customer lsList customers (default: page 1, 20 per page)
List customers Returns the customers in the tenant identified by the API key. Paginated: use `page`/`limit`, or `paginate=false` to return every row in one page. Filter by team (`teamId`/`teamIds`), creation date (`fromDate`/`toDate`), activity (`hasBookings`/`hasPets`/`hasAddresses`), flags (`isDifficult`/`isLatePayer`), booking/pet counts, and custom fields (`cf_<fieldId>`). To count without fetching rows, request `limit=1` and read `metadata.total`. Related: `Search customers`, `Retrieve a customer by id`. List customers (default: page 1, 20 per page)
--allbool = falseReturn all rows (paginate=false)
--from-datestringQuery parameter fromDate (from the API spec)
--has-addressesboolQuery parameter hasAddresses (from the API spec)
--has-bookingsboolQuery parameter hasBookings (from the API spec)
--has-petsboolQuery parameter hasPets (from the API spec)
--is-difficultboolQuery parameter isDifficult (from the API spec)
--is-late-payerboolQuery parameter isLatePayer (from the API spec)
--limitint = 20Query parameter limit (from the API spec)
--max-bookingsintQuery parameter maxBookings (from the API spec)
--max-petsintQuery parameter maxPets (from the API spec)
--min-bookingsintQuery parameter minBookings (from the API spec)
--min-petsintQuery parameter minPets (from the API spec)
--pageint = 1Query parameter page (from the API spec)
--paginatebool = trueQuery parameter paginate (from the API spec)
--querystringQuery parameter query (from the API spec)
--team-idstringQuery parameter teamId (from the API spec)
--team-idsstringQuery parameter teamIds (from the API spec)
--to-datestringQuery parameter toDate (from the API spec)
Was this page helpful?