Backend
  1. Client API Document
Backend
  • CLIENT
    • Client API Document
      • Get Token
        POST
      • Create Store
        POST
      • Stores List
        GET
      • Store Details
        GET
      • Delete Store
        DELETE
      • Upload Image (via File)
        POST
      • Upload Image (via URL)
        POST
      • Create Store Product
        POST
      • Store Product Details
        GET
      • Update Store Product
        PUT
      • Create Order
        POST
      • Search Invoices
        GET
      • Invoice Details
        GET
  1. Client API Document

Create Store Product

Developing
POST
/api/products

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json

Example
{
  "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

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
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

🟢200Success
application/json
Body

Example
{
    "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
Previous
Upload Image (via URL)
Next
Store Product Details
Built with