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. Marketing
  4. Manage Cross Selling

Related Products

PreviousManage Cross SellingNextManage Promotions

Last updated 4 months ago

Get product list

get

Retrieves a list of products with optional limit and offset parameters.

Query parameters
limitintegerOptional

The number of products to retrieve

offsetintegerOptional

The number of products to skip before starting to collect results

countintegerOptional

If set to 1, returns the total count of products

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Responses
200
Successfully retrieved the product list
400
Invalid query parameters
get
GET /backend/api/product-list HTTP/1.1
Host: 139.59.67.17
Authorization: text
Accept: */*
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>Successfully got the complete product list</message>
</object>

Get details of a product

get

Retrieves the details of a specific product by its ID.

Path parameters
productIdintegerRequired

ID of the product to retrieve details for

Query parameters
productIdintegerOptional

Product ID in query parameter

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Responses
200
Successfully retrieved the product details
400
Invalid product ID
404
Product not found
get
GET /backend/api/product-related-detail/{productId} HTTP/1.1
Host: 139.59.67.17
Authorization: text
Accept: */*
<?xml version="1.0"?>
<object>
	<status>1</status>
	<message>successfully got the details of given product id</message>
</object>
  • GETGet product list
  • GETGet details of a product
  • POSTUpdate related products

Update related products

post

Updates the related products for a given product.

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Body
productIdintegerRequired

ID of the product to update related products for

relatedProductIdinteger[]Required

Array of related product IDs to associate with the given product

Responses
200
Successfully updated the related products
400
Invalid request body
404
Product not found
post
POST /backend/api/update-product-related HTTP/1.1
Host: 139.59.67.17
Authorization: text
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 38

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