# CJ Source Products

CJ API can add Source Products

# Search Product Image

POST api/product/queryProductsByImage

  • imageUrl or file (pick one of two)
  • Request method is application/x-www-form-urlencoded or multipart/form-data

request parameter

Name Data Type Description
imageUrl optional , String Image URL(pick one of two)
file optional , MultipartFile Image File(pick one of two)

response parameter HTTP/1.1 200 ok

{
    "result": true,
    "message": "You still have 49 times to call the interface\n",
    "data": [
        {
            "isPersonalized": 0,
            "num": 10,
            "isCollect": 0,
            "sellPrice": "2.00",
            "isHaveVideo": "NO_VIDEO",
            "nameEn": "LED Magic Flying Ball",
            "saleStatus": "3",
            "categoryName": "Toys, Kids & Baby / Toys & Hobbies / Action & Toy Figures",
            "bigImg": "https://cc-west-usa.oss-us-west-1.aliyuncs.com/15139872/2211284839785.jpg",
            "isSource": "0",
            "id": "8DAB249C-AF59-4058-92C4-F22DF4DF5E75",
            "categoryId": "F18491A9-2F33-4D85-A154-78EE4CD2AD33",
            "productType": "0"
        },
        {
            "isPersonalized": 0,
            "num": 0,
            "isCollect": 0,
            "sellPrice": "2.00",
            "isHaveVideo": "NO_VIDEO",
            "nameEn": "Induction aircraft",
            "saleStatus": "3",
            "categoryName": "Toys, Kids & Baby / Toys & Hobbies / Action & Toy Figures",
            "bigImg": "https://cc-west-usa.oss-us-west-1.aliyuncs.com/15639840/766526982534.jpg",
            "isSource": "0",
            "id": "E1CC23DE-BF1E-46D6-B66A-38B0F995AA37",
            "categoryId": "F18491A9-2F33-4D85-A154-78EE4CD2AD33",
            "productType": "0"
        },
        {
            "isPersonalized": 0,
            "num": 2,
            "isCollect": 0,
            "sellPrice": "6.00",
            "isHaveVideo": "NO_VIDEO",
            "nameEn": "Vintage industrial wall lamp American loft aisle staircase wall lamp personality restaurant cafe glass wall lamp",
            "saleStatus": "3",
            "categoryName": "Home Improvement / Indoor Lighting / Wall Lamps",
            "bigImg": "https://cc-west-usa.oss-us-west-1.aliyuncs.com/15301152/4026284399589.jpg",
            "isSource": "0",
            "id": "BB069ECB-CE4A-49FB-AAD2-2311B37927CA",
            "categoryId": "AC4A8F93-27FF-4531-8394-53E97F02159D",
            "productType": "0"
        },
        {
            "isPersonalized": 0,
            "num": 1,
            "isCollect": 0,
            "sellPrice": "8.00",
            "isHaveVideo": "NO_VIDEO",
            "nameEn": "Abdominal muscle training with the horizontal cantilever belt abdominal leg muscle sling sling hanging up",
            "saleStatus": "3",
            "categoryName": "Home & Garden, Furniture / Home Storage / Home Office Storage",
            "bigImg": "https://cc-west-usa.oss-us-west-1.aliyuncs.com/15135264/3099169415_718484502.jpg",
            "isSource": "0",
            "id": "7568F977-4C86-477D-B082-152BB0E29B2E",
            "categoryId": "87CF251F-8D11-4DE0-A154-9694D9858EB3",
            "productType": "0"
        },
        {
            "isPersonalized": 0,
            "num": 10,
            "isCollect": 0,
            "sellPrice": "33.00",
            "isHaveVideo": "NO_VIDEO",
            "nameEn": "GT-T906W mini aerial camera UFO remote control aircraft air pressure fixed high speed mobile phone wifi real-time transmission drone",
            "saleStatus": "3",
            "categoryName": "Consumer Electronics / Camera & Photo / Camera Drones",
            "bigImg": "https://cc-west-usa.oss-us-west-1.aliyuncs.com/15318432/3200096688348.png",
            "isSource": "0",
            "id": "66BFB596-9DA9-4FFF-8278-C7DCD4A2BA71",
            "categoryId": "907BBB40-C131-4D3C-BA05-794D47EEBC90",
            "productType": "0"
        },
        {
            "isPersonalized": 0,
            "num": 0,
            "isCollect": 0,
            "sellPrice": "14.00",
            "isHaveVideo": "NO_VIDEO",
            "nameEn": "Original Syma S107G S107 3.5CH RC Helicopter with Gyro Radio Control Metal Alloy Fuselage R/C Helicopter Toys",
            "saleStatus": "3",
            "categoryName": "Toys, Kids & Baby / Toys & Hobbies / Action & Toy Figures",
            "bigImg": "https://cc-west-usa.oss-us-west-1.aliyuncs.com/15422976/255477041001.jpg",
            "isSource": "0",
            "id": "59E44615-6B2C-4342-B34E-716C217117FB",
            "categoryId": "F18491A9-2F33-4D85-A154-78EE4CD2AD33",
            "productType": "0"
        },
        {
            "isPersonalized": 0,
            "num": 0,
            "isCollect": 0,
            "sellPrice": "2.00",
            "isHaveVideo": "NO_VIDEO",
            "nameEn": "Sanitation garbage clip stainless steel garbage clip pliers picker long garbage hygienic clip picker",
            "saleStatus": "3",
            "categoryName": "Home Improvement / Tools / Hand Tools",
            "bigImg": "https://cc-west-usa.oss-us-west-1.aliyuncs.com/20190615/162178595632.jpg",
            "isSource": "0",
            "id": "8BB6666D-DE4B-4AB8-A39E-B832C28317FA",
            "categoryId": "55795653-09E8-4EE6-B477-1E30E7A601B2",
            "productType": "0"
        },
        {
            "isPersonalized": 0,
            "num": 1,
            "isCollect": 0,
            "sellPrice": "24.00",
            "isHaveVideo": "NO_VIDEO",
            "nameEn": "JJRC A20 remote control quadcopter drone remote control aircraft WiFi aerial map pass high long life",
            "saleStatus": "3",
            "categoryName": "Toys, Kids & Baby / Toys & Hobbies / RC Helicopters",
            "bigImg": "https://cc-west-usa.oss-us-west-1.aliyuncs.com/20190103/1134870749409.png",
            "isSource": "0",
            "id": "E0567F52-9666-4211-8D0E-C8FF343EC93F",
            "categoryId": "AEABDF3C-35E9-4BDA-8F5B-DA602BC5B9C8",
            "productType": "0"
        }
    ]
}

# Add Source Product

POST api/product/addSource

request parameter

Name Data Type Description
productName required , String Product Name
price required , String Product Price
sourceUrl required , String Sourcing URL
imageUrl required , String Image URL
sourcetype required , String Source Type. Currently set to "1"
country required , String Country
purchasingType required , String Purchasing Type. "1" is Wholesale. "2" is Dropshipping
estimatedQuntity required , String Estimated Quntity. purchasingType is Wholesale required. purchasingType is Dropshipping Do not pass this parameter
description optional , String product description
[
	{
	"productName": "test",
	"price": "12",
	"sourceUrl": "https://test.com",
	"imageUrl": "https://cc-west-usa.oss-us-west-1.aliyuncs.com/15143328/3103943057700.jpg",
	"description": "",
	"sourcetype": 1,
	"country": "Brazil",
	"purchasingType": "1",
	"estimatedQuntity": "10"
    },
    {
	"productName": "test",
	"price": "12",
	"sourceUrl": "https://test.com",
	"imageUrl": "https://cc-west-usa.oss-us-west-1.aliyuncs.com/15143328/3103943057700.jpg",
	"description": "",
	"sourcetype": 1,
	"country": "Brazil",
	"purchasingType": "2"
    }
]

  • return ID Array

response parameter HTTP/1.1 200 ok

{
    "result": true,
    "message": "success",
    "data": [
        "f53c8e8aa2e54cb789cba733f4ab525c",
        "3f54fb9d71684d7dbfceb351a0113f4d"
    ]
}

# Query Source Product

POST api/product/querySource

  • parameter is ID Array request parameter
[
  "3f54fb9d71684d7dbfceb351a0113f4d",
  "f53c8e8aa2e54cb789cba733f4ab525c"
]

response parameter HTTP/1.1 200 ok

{
    "result": true,
    "message": "success",
    "data": [
        {
            "sourceUrl": "https://test.com",
            "country": "Brazil",
            "price": "12",
            "imageUrl": "https://cc-west-usa.oss-us-west-1.aliyuncs.com/15143328/3103943057700.jpg",
            "sourcetype": "1",
            "id": "3f54fb9d71684d7dbfceb351a0113f4d",
            "productName": "test",
            "status": "Pending"
        },
        {
            "sourceUrl": "https://test.com",
            "country": "Brazil",
            "price": "12",
            "imageUrl": "https://cc-west-usa.oss-us-west-1.aliyuncs.com/15143328/3103943057700.jpg",
            "sourcetype": "1",
            "id": "f53c8e8aa2e54cb789cba733f4ab525c",
            "productName": "test",
            "estimatedQuntity": 10,
            "status": "Pending"
        }
    ]
}