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. Vendor API
  3. CRM

Customer Group

PreviousCustomerNextQuestion and Answer

Last updated 4 months ago

Get customer group details

get

Retrieves the details of a specific customer group by its ID.

Path parameters
idintegerRequired

The ID of the customer group to retrieve.

Header parameters
AuthorizationstringRequired
Responses
200
Successfully retrieved the customer group details.
404
Customer Group Not Found
500
Internal Server Error
get
GET /backend/api/vendor-customer-group/{id} HTTP/1.1
Host: 139.59.67.17
Authorization: text
Accept: */*
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Successfully got customer groups detail</message>
</object>

Delete customer group

delete

Deletes a specific customer group by its ID.

Path parameters
idintegerRequired

The ID of the customer group to delete.

Header parameters
AuthorizationstringRequired
Responses
200
Successfully deleted the customer group.
404
Customer Group Not Found
500
Internal Server Error
delete
DELETE /backend/api/vendor-customer-group/{id} HTTP/1.1
Host: 139.59.67.17
Authorization: text
Accept: */*
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Successfully deleted customer group</message>
</object>
  • GETGet customer list from vendor group
  • POSTCreate a new customer group
  • PUTUpdate customer group status
  • GETGet customer group details
  • PUTUpdate customer group details
  • DELETEDelete customer group

Get customer list from vendor group

get

Retrieves a list of customers from a vendor's customer group, with pagination and filter options.

Query parameters
limitintegerOptional

The number of results to return.

Default: 10
offsetintegerOptional

The starting point for the result set.

Default: 0
countintegerOptional

A parameter to toggle count behavior.

Default: 0
Header parameters
AuthorizationstringRequired
Responses
200
Successfully retrieved the customer list.
400
Bad Request
500
Internal Server Error
get
GET /backend/api/vendor-customer-group HTTP/1.1
Host: 139.59.67.17
Authorization: text
Accept: */*
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Successfully got customer list</message>
</object>

Create a new customer group

post

Creates a new customer group using form data.

Header parameters
AuthorizationstringRequired
Body
namestringRequired

The name of the customer group.

Responses
201
Successfully created the customer group.
400
Bad Request
500
Internal Server Error
post
POST /backend/api/vendor-customer-group HTTP/1.1
Host: 139.59.67.17
Authorization: text
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 15

"name='text'"
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Successfully created customer group</message>
</object>

Update customer group status

put

Updates the status of a specific customer group by its ID.

Path parameters
idintegerRequired

The ID of the customer group to update.

Header parameters
AuthorizationstringRequired
Body
statusintegerRequired

The new status of the customer group (e.g., 0 for inactive, 1 for active).

idintegerRequired

The ID of the customer group being updated.

Responses
200
Successfully updated the customer group status.
400
Bad Request
404
Customer Group Not Found
500
Internal Server Error
put
PUT /backend/api/vendor-customer-group/status/{id} HTTP/1.1
Host: 139.59.67.17
Authorization: text
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 19

"status=1&id=1"
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Successfully update customer group status</message>
</object>

Update customer group details

put

Updates the details of a specific customer group by its ID.

Path parameters
idintegerRequired

The ID of the customer group to update.

Header parameters
AuthorizationstringRequired
Body
idintegerRequired

The ID of the customer group being updated.

namestringRequired

The new name for the customer group.

Responses
200
Successfully updated the customer group.
400
Bad Request
404
Customer Group Not Found
500
Internal Server Error
put
PUT /backend/api/vendor-customer-group/{id} HTTP/1.1
Host: 139.59.67.17
Authorization: text
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 22

"id=1&name='text'"
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Successfully updated customer group</message>
</object>