Spurtcommerce
DocumentAPI ReferenceAdd-ons
API Reference
API Reference
  • About Spurtcommerce APIs
  • Spurtcommerce
    • Admin API
      • Admin
        • Authentication
        • My Profile
        • Support
      • Buyers
        • Manage Buyer
      • Chat
      • CMS
        • Manage Banner
        • Manage Blogs
        • Manage Pages
        • Manage SEO
      • Dashboard
      • Marketing
        • Manage Cross Selling
          • Related Products
        • Manage Promotions
          • Coupon
      • Marketplace
        • Manage Products
        • Manage Sales
        • Manage Settlements
        • Product Configuration
        • Reports
      • Sellers
        • Seller
        • Seller Group
        • Seller KYC Request
      • Settings
        • Add-ons
        • Add-ons Product Attributes
        • Localization
        • Order Fulfilment Status
        • Personalise
        • Site Settings
        • Store Settings
        • System
        • User and Permission
        • Support-Category
    • Store API
      • Account Settings
        • Customer
        • My Order
        • My Quotation
        • My Wishlist
        • Profile
        • Support
      • Checkouts
      • Store
        • Admin Contact
        • Categories
        • Home
        • Product Detail Page
    • Vendor API
      • Page 1
      • Catalogue
        • Bulk Product Imports
          • Custom
          • Standard
        • Common Product
        • Data Export
        • Pricing
        • Product Localisation
        • Product List
        • Product Variants
        • Related Products
      • CRM
        • Customer
        • Customer Group
        • Question and Answer
        • Rating and Review
      • Dashboard
      • Marketing
      • Payments
        • Archeived Payments
        • Earnings
        • Settlements
      • Profile
        • Account Settings
          • My Business
          • My KYC
          • My Profile
          • My Shop
          • Personalised Setting
        • Chat
        • Vendor
        • Support
      • Reports
      • Sales
        • Archeive Orders
        • Back Orders
        • Failed Orders
        • Orders
        • Quotation Request
        • Stock Update
        • Variant Stock Update
      • Supplier
        • Contact
        • Supplier
Powered by GitBook
On this page
  1. Spurtcommerce
  2. Admin API
  3. Buyers

Manage Buyer

PreviousBuyersNextChat

Last updated 3 months ago

Get customer count

get

This endpoint retrieves the total count of customers.

Responses
200
Successfully got the buyer count
get
GET /backend/api/admin-customer/customer-count HTTP/1.1
Host: 139.59.67.17
Accept: */*
200

Successfully got the buyer count

<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Successfully got the buyer Count</message>
</object>

Get customer list

get

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
GET /backend/api/admin-customer HTTP/1.1
Host: 139.59.67.17
Authorization: text
Accept: */*
200

Successfully got the customer list

<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Successfully got Customer list.</message>
</object>

Get customer group list

get

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
GET /backend/api/customer-group HTTP/1.1
Host: 139.59.67.17
Authorization: text
Accept: */*
200

Successfully got all customer group list

<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Successfully got all customer group List</message>
</object>

Get system settings

get

This endpoint retrieves the current system settings.

Responses
200
Successfully retrieved settings
get
GET /backend/api/settings HTTP/1.1
Host: 139.59.67.17
Accept: */*
200

Successfully retrieved settings

<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Successfully got settings</message>
</object>

Get customer details

get

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
404
Customer not found
get
GET /backend/api/admin-customer/customer-detail/{id} HTTP/1.1
Host: 139.59.67.17
Authorization: text
Accept: */*
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Successfully got buyer details</message>
</object>
  • GETGet customer count
  • GETGet customer list
  • POSTCreate a new customer
  • GETGet customer group list
  • GETGet system settings
  • GETGet customer details
  • PUTUpdate a customer

Create a new customer

post

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: test@gmail.com
mobileNumberstringRequiredExample: 4364536456
passwordstringRequiredExample: Picco123@
confirmPasswordstringRequiredExample: Picco123@
avatarstringOptional
newsletterstringOptional
mailStatusintegerOptionalExample: 0
statusstringRequiredExample: 1
siteIdintegerRequiredExample: 2
Responses
200
Successfully created a new customer
post
POST /backend/api/admin-customer HTTP/1.1
Host: 139.59.67.17
Authorization: text
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 213

"customerGroupId=75&username='test'&email='test@gmail.com'&mobileNumber='4364536456'&password='Picco123@'&confirmPassword='Picco123@'&avatar=''&newsletter=''&mailStatus=0&status='1'&siteId=2"
200

Successfully created a new customer

<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Buyer created successfully</message>
</object>

Update a customer

put

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
404
Customer not found
put
PUT /backend/api/admin-customer/{id} HTTP/1.1
Host: 139.59.67.17
Authorization: text
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 217

"customerGroupId=1&username='text'&email='text'&mobileNumber='text'&password='text'&confirmPassword='text'&avatar='text'&newsletter='text'&mailStatus=1&status='text'&siteId=1&customerId='text'"
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Buyer updated successfully</message>
</object>