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. Catalogue

Related Products

PreviousProduct VariantsNextCRM

Last updated 3 months ago

Get vendor related product list

get

Retrieves a list of vendor-related products for the vendor, based on specified query parameters.

Query parameters
limitintegerOptional

The number of products to return per page.

offsetintegerOptional

The offset (starting point) to fetch products from.

countintegerOptional

Filter to get the total count of related products.

Header parameters
AuthorizationstringRequired
Responses
200
Successfully got your product list.
401
Unauthorized access. Authentication required.
500
Internal server error. An error occurred on the server.
get
GET /backend/api/vendor-related-product/vendor-related-product-list HTTP/1.1
Host: 139.59.67.17
Authorization: text
Accept: */*
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Successfully got your product list.</message>
</object>

Get vendor related product details

get

Retrieves detailed information of a specific vendor-related product.

Path parameters
idintegerRequired

The ID of the vendor-related product to fetch details for.

Header parameters
AuthorizationstringRequired
Responses
200
Successfully got the data.
401
Unauthorized access. Authentication required.
500
Internal server error. An error occurred on the server.
get
GET /backend/api/vendor-related-product/vendor-related-product-details/{id} HTTP/1.1
Host: 139.59.67.17
Authorization: text
Accept: */*
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Successfully got the data</message>
</object>
  • GETGet vendor related product list
  • GETGet vendor related product details
  • POSTUpdate vendor related products

Update vendor related products

post

Updates the related products for a specific product.

Header parameters
AuthorizationstringRequired
Body
relatedProductId[]integer[]Required

List of related product IDs to be updated.

productIdinteger ยท int32Required

ID of the main product.

Responses
200
Successfully updated the vendor related products.
400
Bad Request - Invalid data provided.
401
Unauthorized - Authentication required.
500
Internal Server Error.
post
POST /backend/api/vendor-related-product/update-vendor-related-product HTTP/1.1
Host: 139.59.67.17
Authorization: text
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 40

"relatedProductId[]=[1]&productId=1"
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Successfully updated the vendor related products.</message>
</object>