Help Instance Help

m8ty_client_customer

Customers information API is used to get a list of all users having access to the currently logged in user. Every product is assigned to a specific user.

Before you start

Check the documentation of the m8ty_client_customer library to get an idea about the available models and their properties.

import all needed libraries

import 'package:dio/dio.dart'; import 'package:m8ty_client_customer/m8ty_client_customer.dart'; import 'package:m8ty_client_common/m8ty_client_common.dart'; import 'package:built_collection/built_collection.dart';

How to perform different tasks

Here some examples how the dart client can be used

Get list of all customers

final client = M8tyClientCustomer().getCustomerApi(); final Response<CustomersOfUserListModel> customers = await client.retrieveCustomerOverview( page: 1, size: 100, );

Get specific customer by id

final client = M8tyClientCustomer().getCustomerApi(); final Response<CustomersOfUserListModel> customers = await client.retrieveCustomerById( customerId: "1234", page: 1, size: 100, );
Last modified: 02 January 2025