Manage Buyer

Get customer count

get
/admin-customer/customer-count

This endpoint retrieves the total count of customers.

Responses
200

Successfully got the buyer count

get
/admin-customer/customer-count
200

Successfully got the buyer count

Get customer list

get
/admin-customer

This endpoint retrieves the list of customers with optional filters such as customer group, date, email, and name.

Query parameters
customerGroupstringOptional

Filter by customer group

datestring · dateOptional

Filter by date

keywordstringOptional

Search by keyword

emailstringOptional

Filter by email address

namestringOptional

Filter by customer name

limitintegerOptional

Limit the number of results

offsetintegerOptional

Offset for pagination

countintegerOptional

Indicates if only count is returned (1 for count, 0 for list)

statusstringOptional

Filter by customer status

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Responses
200

Successfully got the customer list

get
/admin-customer
200

Successfully got the customer list

Create a new customer

post
/admin-customer

This endpoint allows the creation of a new customer with the provided details.

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Body
customerGroupIdintegerRequiredExample: 75
usernamestringRequiredExample: test
emailstringRequiredExample: [email protected]
mobileNumberstringRequiredExample: 4364536456
passwordstringRequiredExample: Picco123@
confirmPasswordstringRequiredExample: Picco123@
avatarstringOptional
newsletterstringOptional
mailStatusintegerOptionalExample: 0
statusstringRequiredExample: 1
siteIdintegerRequiredExample: 2
Responses
200

Successfully created a new customer

post
/admin-customer
200

Successfully created a new customer

Get customer group list

get
/customer-group

This endpoint retrieves the list of customer groups with optional filters such as keyword, limit, and offset.

Query parameters
limitintegerOptional

Limit the number of results

offsetintegerOptional

Offset for pagination

keywordstringOptional

Search by keyword

countintegerOptional

Indicates if only count is returned (1 for count, 0 for list)

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Responses
200

Successfully got all customer group list

get
/customer-group
200

Successfully got all customer group list

Get system settings

get
/settings

This endpoint retrieves the current system settings.

Responses
200

Successfully retrieved settings

get
/settings
200

Successfully retrieved settings

Get customer details

get
/admin-customer/customer-detail/{id}

Retrieves the details of a specific customer by their ID

Path parameters
idintegerRequired

ID of the customer

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Responses
200

Successfully retrieved customer details

get
/admin-customer/customer-detail/{id}

Update a customer

put
/admin-customer/{id}

Updates the details of a specific customer

Path parameters
idintegerRequired

ID of the customer

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Body
customerGroupIdintegerOptional
usernamestringOptional
emailstringOptional
mobileNumberstringOptional
passwordstringOptional
confirmPasswordstringOptional
avatarstringOptional
newsletterstringOptional
mailStatusintegerOptional
statusstringOptional
siteIdintegerOptional
customerIdstringOptional
Responses
200

Successfully updated the customer

put
/admin-customer/{id}

Last updated