# Shops

Users can view their authorized store information through this API.

# Description

  • Response Parameter
Name Data Type Description
id string The user's own store id in CJ
name string Shop Name
type string The store type

# View Shop

POST api/shop/queryShop

request parameter You don't have to pass any value to call this API

response parameter HTTP/1.1 200 ok

{
    "code" : true,
    "response" : {
    "total" : 2,
    "data" : [{
    "id" : "ECC4E289-4F29-4FFC-801E-21AA84C4D2B7",
    "name" : "1528249199030",
    "type" : "Shipstation",
    },{
    "id" : "FCA529D2-FEA2-4C9D-BD33-C1640DEBF937",
    "name" : "mirroressentials",
    "type" : "shopify",
    }]
    }
}

# Bulk Order

POST api/shopping/getOrdersCollection

Name Data Type Description
status required , string(40) status:unpaid or paid
page required , string(40) Current page number

request parameter

{
    "status" : "paid",
    "page" : "1"
}

response parameter HTTP/1.1 200 ok

status:unpaid
{
    "result" : true,
    "message" : "success",
    "data" : {
    "countNumber" : 1,
    "orderList" : [{
    "date" : "2019-07-16 17:25:47",
    "MERCHANT_NAME" : "Gao1 sheng1",
    "ORDERMONEY" : 38.81,
    "STATUS" : "CAN_HANDLE_ORDER",
    "ORDERNUMBER" : 1,
    "ORDERMONEYReality" : 38.81,
    "TOTAL_WEIGHT" : "16",
    "ID" : "CJ1907161000165917"
    }]

    }
}
status:paid
{
    "result" : true,
    "message" : "success",
    "data" : {
    "countNumber" : 1,
    "orderList" : [{
    "date" : "2019-07-16 17:22:52",
    "dispatched" : 0,
    "pending" : 1,
    "MERCHANT_NAME" : "Gao1 sheng1",
    "ORDERMONEY" : "13.49",
    "STATUS" : "SUBMITTED_ORDER",
    "ORDERMONEYReality" : 41.49,
    "TOTAL_WEIGHT" : "16",
    "fulfilling" : 0,
    "ID" : "CJ1907161000159975",
    "paymentDate" : "2019-07-16 17:25:20"
     }
    ]
    }
}

# Setting Shipping Method

API Name : API for Setting Shipping Method. Setting Shipping Method

  • request parameter

POST api/shopping/setLogistics

Name Data Type Description
logisic required , string Shipping Method Name
orderNum required , string Order Id,Use ',' for Splitting Multi Orders
{
    "orderNum": "190719100013519139,190719100014883249",
    "logisic": "PostNL"
}
  • response parameter
Name Data Type Description
result boolean true/false
message string Error Found
data string Return Data

HTTP/1.1 200 ok

{
    "result": true,
    "message": "set order shipping method successful.",
    "data": ""
}

# Adding to Cart

API Name : API for Adding to Cart. Add Orders to Cart

  • request parameter

POST api/shopping/addToCart

Name Data Type Description
uid or orderNum required , string uid: The UID of the order. orderNum: Order Id
logistic required , string Shipping Method Name
[
	{
		"uid" : "9876543223",
	    "logistic" : "PostNL"
	},
	{
		"orderNum" : "191127100019621195",
	    "logistic" : "PostNL"
	}
]
  • response parameter
Name Data Type Description
result boolean true/false
message string Error Found
data string Return Data, Orders Have Not Been Added to Cart.["190715006798117","190715006798118","190715006798119"]

HTTP/1.1 200 ok

{
    "result": true,
    "message": "add cart successful.",
    "data": ""
}

{
    "result": false,
    "message": "部分订单不不被允许加⼊入购物⻋车,请确认订单正常后,重试",
    "data": [
    "9876543223",
    "191127100019621195"
    ]
}

# Creating Bulk CJDropshipping Orders

API Name : API for Creating Bulk CJDropshipping. Each Dropshipping Orders Can be Submitted and Processed by Bulk

  • request parameter

POST api/shopping/createOrdersCollection

Name Data Type Description
uid or orderNum required , string uid: The UID of the order. orderNum: Order Id
[
	{
		"uid" : "9876543221"
	},
	{
		"orderNum" : "191127100013010186"
	}
]
  • response parameter
Name Data Type Description
result boolean true/false
message string Error Found
data string Return Bulk CJ Order If Succeed

HTTP/1.1 200 ok

{
    "result": true,
    "message": "create order successful.",
    "data": "CJ1907201000171740"
}

# Search Deduction

API Name : API for Search Deduction. Checking Warehouse ID and Items Quantity That Can be Deducted

  • request parameter

POST api/shopping/checkPay

Name Data Type Description
orderId required , string CJ Bulk Order ID
money required , string Order Amount
{
    "orderId": "CJ1907201000171740",
    "money": "173.97"
}
  • response parameter
Name Data Type Description
result boolean true/false
message string Error Found
data Object Return Data, Products Deduction List

data object

Name Data Type Description
stanproductId string Product Variants ID
productName string Products Name
cjImage string Products Images
SKU string SKU Products SKU
serverPrice string Service Fee
price string Products Price
quantity string Products Quantity

HTTP/1.1 200 ok

{
    "result": true,
    "message": "The service product in the deduction order check pay successfull",
    "data": {
    "orderId": "CJ1907201000171740",
    "money": "173.97",
    "data": null
    }
}

{
    "result": true,
    "message": "The service product in the deduction order check pay successfull",
    "data": {
    "orderId": "CJ1907151000119262",
    "money": "807.88",
    "data": [
        {
            "serverPrice": "0.0",
            "quantity": "2",
            "stanproductId": "23FE4B60-1196-429D-AC0A-8DA69BEE52C1",
            "cjImage": "https://cc-west-usa.oss-us-west-1.aliyuncs.com/20190320/170603826621.png",
            "price": "366.00",
            "SKU": "CJBHNSNS05327-Green4",
            "productName": "shosehfkjdhkfhjfkjdakfjdsjfkldjsakfhasdkhfjksdahfjksdahfjklh"
        },
        {
            "serverPrice": "0.0",
            "quantity": "3",
            "stanproductId": "61B66A52-4007-4434-BAB0-3EC9D9EFFE8C",
            "cjImage": "https://cc-west-usa.oss-us-west-1.aliyuncs.com/20190715/2685966586202.JPG",
            "price": "9.00",
            "SKU": "CJWJNHNT00290-default",
            "productName": "3333"
        },
        {
            "serverPrice": "0.0",
            "quantity": "2",
            "stanproductId": "07AEDC26-8B7C-4236-80E6-7620371EDD59",
            "cjImage": "https://cc-west-usa.oss-us-west-1.aliyuncs.com/20190715/1781822142580.PNG",
            "price": "9.00",
            "SKU": "CJJZGJDD00013-S",
            "productName": "1111"
        }
      ]
    }
}

# Deduction Processing

API Name : API for Deduction Processing . Checking Warehouse ID and Items Quantity That Can be Deducted, and Deduct Inventory from Warehouse and Update the Order Amount.

  • request parameter

POST api/shopping/orderOutGoodsInfoOpt

Name Data Type Description
orderId required , string CJ Bulk Order ID
{
    "orderId": "CJ1907151000119262"
}
  • response parameter
Name Data Type Description
result boolean true/false
message string Error Found
data Object Return Data, Return Bulk CJ Order If Succeed
{
    "result": true,
    "message": "The service product in the deduction order bean fully deducted.",
    "data": "CJ1907151000119262"
}

{
    "result": false,
    "message": "The service product in the deduction order cannot be fully deducted, and this order is unable to be placed.",
    "data": ""
}

# CJ Wallet Payment

API Name : API for CJ Wallet Payment. Pay the Orders by Using CJ Wallet Balance

  • request parameter

POST api/shopping/balancePayment

Name Data Type Description
orderId required , string Bulk Order ID
{
    "orderId": "CJ1907151000119262"
}
  • response parameter
Name Data Type Description
result boolean true/false
message string Error Found
data Object Return Data
{
    "result": true,
    "message": "order pay successful.",
    "data": ""
}

# Searching Bulk Order

API Name : API for Searching Bulk Order. Searching Bulk Order Details

  • request parameter

POST api/shopping/getOrdersCollection

Name Data Type Description
status required , string Bulk Orders Status Code
page required , string Searching Page Code
{
    "status": "1",
    "page": "5"
}
  • response parameter
Name Data Type Description
result boolean true/false
message string Error Found
data string Return Data, Searching Data

data

Name Data Type Description
ID string Bulk Order ID
date string Orders Created Time
STATUS string Orders Status Code
ORDERNUMBER string Sub-order Quantity
ORDERMONEY string Orders Amount after Discount
ORDERMONEYReality string Orders Origin Amount
TOTAL_WEIGHT string Orders Total Weight
inProgress string Dispatched Orders Quantity
resolve string Completed Orders Quantity
closeOrder string Closed Orders Quantity
MERCHANT_NAME string Buyer Name
paymentDate string Payment Time

Orders Status Instruction

Type Value Instruction
3 Pending Payment Orders
2 Pending Shipment Orders
5 Processed Orders
6 Completed Orders
7 Closed Orders