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

Update Store Product

Developing
PUT
/api/products/{id}

Request

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

Body Params application/json

Example
{
  "shopify_store_id": 4621,
  "client_product": {
    "title": "Updated Test",
    "source_image": "https://ns-stage.oss-cn-hongkong.aliyuncs.com/202407/26bc41baaab9f2ff3b26ebbc92758935.jpg",
    "body_html": "<p>Updated 123</p>",
    "note": "Updated 111",
    "product_variants_attributes": [
      {
        "id": 3497917,
        "title": "Updated title",
        "image": "https://ns-stage.oss-cn-hongkong.aliyuncs.com/202407/26bc41baaab9f2ff3b26ebbc92758935.jpg",
        "option1": "1",
        "option2": "2",
        "option3": "3",
        "discount_rate": "4",
        "note": "5"
      },
      {
        "id": 3497918,
        "_destroy": 1
      }
    ]
  }
}

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 PUT '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": "Updated Test",
    "source_image": "https://ns-stage.oss-cn-hongkong.aliyuncs.com/202407/26bc41baaab9f2ff3b26ebbc92758935.jpg",
    "body_html": "<p>Updated 123</p>",
    "note": "Updated 111",
    "product_variants_attributes": [
      {
        "id": 3497917,
        "title": "Updated title",
        "image": "https://ns-stage.oss-cn-hongkong.aliyuncs.com/202407/26bc41baaab9f2ff3b26ebbc92758935.jpg",
        "option1": "1",
        "option2": "2",
        "option3": "3",
        "discount_rate": "4",
        "note": "5"
      },
      {
        "id": 3497918,
        "_destroy": 1
      }
    ]
  }
}'

Responses

🟢200Success
application/json
Body

Example
{
    "id": 208029,
    "title": "Updated Test",
    "note": "Updated 111",
    "shopify_store_id": 4621,
    "source_image": "https://ns-stage.oss-cn-hongkong.aliyuncs.com/202407/26bc41baaab9f2ff3b26ebbc92758935.jpg",
    "body_html": "<p>Updated 123</p>",
    "product_variants_count": 1,
    "product_variants": [
        {
            "id": 3497917,
            "title": "Updated title",
            "image": "https://ns-stage.oss-cn-hongkong.aliyuncs.com/202407/26bc41baaab9f2ff3b26ebbc92758935.jpg",
            "option1": "1",
            "option2": "2",
            "option3": "3",
            "note": "5"
        }
    ]
}
Modified at 2024-07-18 08:36:38
Previous
Store Product Details
Next
Create Order
Built with