Create Store Product
Developing
Request
Provide your bearer token in the Authorization
header when making requests to protected resources. Example:Authorization: Bearer ********************
Body Params application/json
{
"shopify_store_id": 4621,
"client_product": {
"title": "test",
"source_image": "https://ns-stage.oss-cn-hongkong.aliyuncs.com/202407/26bc41baaab9f2ff3b26ebbc92758935.jpg",
"body_html": "<p>123</p>",
"note": "111",
"product_variants_attributes": [
{
"title": "1",
"image": "https://ns-stage.oss-cn-hongkong.aliyuncs.com/202407/26bc41baaab9f2ff3b26ebbc92758935.jpg",
"option1": "1",
"option2": "2",
"option3": "3",
"note": "5"
},
{
"title": "2",
"image": "https://ns-stage.oss-cn-hongkong.aliyuncs.com/202407/26bc41baaab9f2ff3b26ebbc92758935.jpg",
"option1": "3",
"option2": "6",
"option3": "8",
"note": "20"
}
]
}
}
Request Code Samples
curl --location --request POST 'http://stage-client.dropshippinglite.com/api/products' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"shopify_store_id": 4621,
"client_product": {
"title": "test",
"source_image": "https://ns-stage.oss-cn-hongkong.aliyuncs.com/202407/26bc41baaab9f2ff3b26ebbc92758935.jpg",
"body_html": "<p>123</p>",
"note": "111",
"product_variants_attributes": [
{
"title": "1",
"image": "https://ns-stage.oss-cn-hongkong.aliyuncs.com/202407/26bc41baaab9f2ff3b26ebbc92758935.jpg",
"option1": "1",
"option2": "2",
"option3": "3",
"note": "5"
},
{
"title": "2",
"image": "https://ns-stage.oss-cn-hongkong.aliyuncs.com/202407/26bc41baaab9f2ff3b26ebbc92758935.jpg",
"option1": "3",
"option2": "6",
"option3": "8",
"note": "20"
}
]
}
}'
Responses
application/json {
"id": 208028,
"title": "test",
"note": "111",
"shopify_store_id": 4621,
"source_image": "https://ns-stage.oss-cn-hongkong.aliyuncs.com/202407/26bc41baaab9f2ff3b26ebbc92758935.jpg",
"body_html": "<p>123</p>",
"product_variants_count": 2,
"product_variants": [
{
"id": 3497915,
"title": "1",
"image": "https://ns-stage.oss-cn-hongkong.aliyuncs.com/202407/26bc41baaab9f2ff3b26ebbc92758935.jpg",
"option1": "1",
"option2": "2",
"option3": "3",
"note": "5"
},
{
"id": 3497916,
"title": "2",
"image": "https://ns-stage.oss-cn-hongkong.aliyuncs.com/202407/26bc41baaab9f2ff3b26ebbc92758935.jpg",
"option1": "3",
"option2": "6",
"option3": "8",
"note": "20"
}
]
}
Modified at 2024-07-18 08:27:01