Spurtcommerce
DocumentAPI ReferenceAdd-ons
API Reference
API Reference
  • About Spurtcommerce APIs
  • Spurtcommerce
    • Admin API
      • Admin
        • Authentication
        • My Profile
      • 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
    • Store API
      • Account Settings
        • Customer
        • My Order
        • My Quotation
        • My Wishlist
        • Profile
      • Checkouts
      • Store
        • Admin Contact
        • Categories
        • Home
        • Product Detail Page
    • Vendor API
      • Catalogue
        • Bulk Product Imports
          • Custom
          • Standard
        • Common Product
        • Data Export
        • Pricing
        • Product List
        • Product Localisation
        • 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
      • 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 Core API
  2. Admin API

Manage Customers

Last updated 2 years ago

Customer

Customer Group

Customer Details

get

For viewing the entire details of a Customer.

Path parameters
idintegerRequired
Header parameters
AuthorizationstringRequired
Responses
200
Success Response
*/*
400
Error Response
*/*
get
GET /api/admin-customer/customer-detail/{id} HTTP/1.1
Host: 
Authorization: text
Accept: */*
{
  "status": 1,
  "message": "text"
}

Delete Customer

delete

Delete a Customer if you no longer need them.

Path parameters
idintegerRequired
Header parameters
AuthorizationstringRequired
Responses
200
Success Response
*/*
400
Error Response
*/*
delete
DELETE /api/customer/{id} HTTP/1.1
Host: 
Authorization: text
Accept: */*
{
  "status": 1,
  "message": "text"
}

Recent Customerlist

get

List of all the recent Customers

Header parameters
AuthorizationstringRequired
Responses
200
Success Response
*/*
get
GET /api/customer/recent-customerlist HTTP/1.1
Host: 
Authorization: text
Accept: */*
200

Success Response

{
  "status": 1,
  "message": "text"
}

Today's Customer Count

get

Customer count as on today.

Header parameters
AuthorizedstringRequired
Responses
200
Success Response
*/*
400
Error Response
*/*
get
GET /api/customer/today-customercount HTTP/1.1
Host: 
Authorized: text
Accept: */*
{
  "status": 1,
  "message": "text"
}

Customer List in Excel

get

Get the list of Customers in Excel.

Query parameters
customerIdstringRequired
Header parameters
AuthorizationstringRequired
Responses
400
Error Response
*/*
get
GET /api/customer/customer-excel-list?customerId=text HTTP/1.1
Host: 
Authorization: text
Accept: */*
400

Error Response

{
  "status": 1,
  "message": "text"
}

All Customer excel list

get

List of all the Customers in Excel.

Query parameters
namestringRequired
statusintegerRequired
emailstringRequired
customerGroupstringOptional
datestringOptional
Header parameters
AuthorizationstringRequired
Responses
400
Error Response
*/*
get
GET /api/customer/allcustomer-excel-list?name=text&status=1&email=text HTTP/1.1
Host: 
Authorization: text
Accept: */*
400

Error Response

{
  "status": 1,
  "message": "text"
}

Customer Count

get

Count or number of Customers in the eCommerce portal.

Header parameters
AuthorizationstringRequired
Responses
200
Success Response
*/*
get
GET /api/customer/customer-count HTTP/1.1
Host: 
Authorization: text
Accept: */*
200

Success Response

{
  "status": 1,
  "message": "text"
}

Order Product List

get

List of Products Ordered in the eCommerce portal.

Query parameters
limitintegerRequired
offsetintegerOptional
countintegerOptional
customerIdintegerOptional
Header parameters
AuthorizationstringRequired
Responses
200
Success Response
*/*
400
Error Response
*/*
get
GET /api/customer/order-product-list?limit=1 HTTP/1.1
Host: 
Authorization: text
Accept: */*
{
  "status": 1,
  "message": "text"
}

Product View log list

get

Log list of Product Views in the eCommerce Portal.

Query parameters
limitintegerRequired
offsetintegerOptional
countintegerOptional
customerIdintegerOptional
Header parameters
AuthorizationstringRequired
Responses
200
Success Response
*/*
get
GET /api/customer/product-view-log-list?limit=1 HTTP/1.1
Host: 
Authorization: text
Accept: */*
200

Success Response

{
  "status": 1,
  "message": "text"
}

Vendor graph list

get

List of Vendor related graphs.

Query parameters
vendorIdintegerRequired
durationintegerRequired
Header parameters
AuthorizationstringRequired
Responses
200
Success Response
*/*
400
Error Response
*/*
get
GET /api/customer/vendor-graph-list?vendorId=1&duration=1 HTTP/1.1
Host: 
Authorization: text
Accept: */*
{
  "status": 1,
  "message": "text"
}

Customer visit list

get

List of Customer visits to the eCommerce portal.

Query parameters
monthintegerRequired
yearintegerRequired
Header parameters
AuthorizationstringRequired
Responses
200
Success Response
*/*
get
GET /api/customer/customer-visit-list?month=1&year=1 HTTP/1.1
Host: 
Authorization: text
Accept: */*
200

Success Response

{
  "status": 1,
  "message": "text"
}

Customer list

get

List of Customers in the eCommerce Portal.

Query parameters
limitintegerRequired
offsetintegerOptional
namestringOptional
emailstringOptional
statusintegerOptional
customerGroupstringOptional
datestringOptional
countintegerOptional
Header parameters
AuthorizationstringRequired
Responses
200
Success Response
*/*
get
GET /api/customer?limit=1 HTTP/1.1
Host: 
Authorization: text
Accept: */*
200

Success Response

{
  "status": 1,
  "message": "text"
}

Add Customer

post

Add a Customer to the eCommerce Portal.

Header parameters
AuthorizationstringRequired
Body
customerGroupIdinteger · int32Required
usernamestringRequired
emailstringRequired
mobileNumberinteger · int32Required
passwordstringRequired
confirmPasswordstringRequired
newsletterinteger · int32Optional
mailStatusinteger · int32Required
statusinteger · int32Required
Responses
200
Success Response
application/json
400
Error Response
application/json
post
POST /api/customer HTTP/1.1
Host: 
Authorization: text
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 155

"customerGroupId=1&username='text'&email='text'&mobileNumber=1&password='text'&confirmPassword='text'&newsletter=1&mailStatus=1&status=1"
{
  "customerGroupId": "text",
  "firstName": "text",
  "username": "text",
  "email": "text",
  "mobileNumber": "text",
  "password": "text",
  "mailStatus": "text",
  "deleteFlag": 1,
  "isActive": "text",
  "createdDate": "text",
  "id": 1
}

Update Customer

put

Update any details of the Customer.

Path parameters
idintegerRequired
Header parameters
AuthorizationstringRequired
Body
customerGroupIdinteger · int32Required
usernamestringRequired
emailstringOptional
mobileNumberinteger · int32Required
passwordstringOptional
confirmPasswordstringOptional
avatarstringOptional
newsletterinteger · int32Optional
realNamestringOptional
customerNostringOptional
mailStatusinteger · int32Required
statusinteger · int32Required
Responses
200
Success Response
application/json
400
Error Response
application/json
422
Error Response
application/json
put
PUT /api/customer/{id} HTTP/1.1
Host: 
Authorization: text
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 209

"customerGroupId=1&username='text'&email='text'&mobileNumber=1&password='text'&confirmPassword='text'&avatar='text'&newsletter=1&realName='text'&customerNo='text'&mailStatus=1&status=1"
{
  "createdBy": 1,
  "createdDate": "text",
  "modifiedBy": 1,
  "modifiedDate": "text",
  "id": 1,
  "firstName": "text",
  "lastName": "text",
  "username": "text",
  "password": "text",
  "email": "text",
  "mobileNumber": "text",
  "address": "text",
  "countryId": 1,
  "zoneId": "text",
  "city": "text",
  "local": "text",
  "oauthData": "text",
  "avatar": "text",
  "newsletter": 1,
  "avatarPath": "text",
  "customerGroupId": "text",
  "lastLogin": "text",
  "safe": 1,
  "ip": "text",
  "mailStatus": "text",
  "pincode": "text",
  "deleteFlag": 1,
  "isActive": "text",
  "forgetPasswordKey": "text",
  "linkExpires": "text",
  "lockedOn": "text"
}

Delete Customer

post

Delete a Customer, if you no longer need them.

Header parameters
AuthorizationstringRequired
Body
customerIdinteger[]Optional
Responses
200
Success Response
application/json
400
Error Response
application/json
post
POST /api/customer/delete-customer HTTP/1.1
Host: 
Authorization: text
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 18

"customerId=[1]"
{
  "status": 1,
  "message": "text"
}
  • Customer
  • POSTAdd Customer
  • GETCustomer list
  • GETCustomer Details
  • PUTUpdate Customer
  • DELETEDelete Customer
  • GETRecent Customerlist
  • GETToday's Customer Count
  • POSTDelete Customer
  • GETCustomer List in Excel
  • GETAll Customer excel list
  • GETCustomer Count
  • GETOrder Product List
  • GETProduct View log list
  • GETVendor graph list
  • GETCustomer visit list
  • Customer Group
  • POSTCreate customer group
  • GETCustomer group list
  • PUTUpdate Customer group
  • DELETEDelete customer group

Customer group list

get

List of Customer groups.

Query parameters
limitintegerOptional
offsetintegerOptional
keywordstringOptional
statusstringOptional
countstringOptional
Header parameters
AuthorizationstringRequired
Responses
200
Success Response
*/*
get
200

Success Response

Create customer group

post

Creation of a Customer group in the eCommerce portal.

Header parameters
AuthorizationstringRequired
Body
namestringRequired
descriptionstringOptional
colorcodestringRequired
statusinteger · int32Required
Responses
200
Success Response
application/json
400
Error Response
application/json
post
POST /api/customer-group HTTP/1.1
Host: 
Authorization: text
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 66

"name='text'&description='text'&colorcode='text'&status=1"
{
  "name": "text",
  "colorCode": "text",
  "isActive": "text",
  "createdDate": "2025-05-09T06:30:22.329Z",
  "groupId": 1
}
GET /api/customer-group HTTP/1.1
Host: 
Authorization: text
Accept: */*
{
  "status": 1,
  "message": "text"
}

Update Customer group

put

Updating or editing Customer group.

Path parameters
idintegerRequired
Header parameters
AuthorizationstringRequired
Body
namestringRequired
descriptionstringOptional
colorcodestringRequired
statusinteger · int32Required
Responses
200
Success Response
application/json
400
Error Response
application/json
put
PUT /api/customer-group/{id} HTTP/1.1
Host: 
Authorization: text
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 66

"name='text'&description='text'&colorcode='text'&status=1"
{
  "name": "text",
  "colorCode": "text",
  "isActive": "text",
  "modifiedDate": "2025-05-09T06:30:22.329Z",
  "groupId": 1
}

Delete customer group

delete

For deleting a customer group, if no longer required.

Path parameters
idintegerRequired
Header parameters
AuthorizationstringRequired
Body
groupIdinteger · int32Optional
Responses
200
Success Response
application/json
400
Error Response
application/json
delete
DELETE /api/customer-group/{id} HTTP/1.1
Host: 
Authorization: text
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 13

"groupId=1"
{
  "status": 1,
  "message": "text"
}