POST api/product/add

Request Information

URI Parameters

None.

Body Parameters

ProductInfoSave
NameDescriptionTypeAdditional information
productid

string

None.

member_id

string

None.

productroot

productroot

None.

Request Formats

application/json, text/json

Sample:
{
  "productid": "sample string 1",
  "member_id": "sample string 2",
  "productroot": {
    "behavior": "sample string 1",
    "productInfo": {
      "b2bShippingChargeTplType": 1,
      "brandId": 2,
      "buyerProtection": [
        1,
        2
      ],
      "canonicalImage": [
        {
          "url": "sample string 1"
        },
        {
          "url": "sample string 1"
        }
      ],
      "canonicalVideo": [
        {
          "url": "sample string 1"
        },
        {
          "url": "sample string 1"
        }
      ],
      "categoryId": "sample string 3",
      "detail": "sample string 4",
      "foundingLocation": {
        "city": "sample string 1",
        "province": "sample string 2"
      },
      "fullname": "sample string 5",
      "meta": [
        {
          "id": 1,
          "name": "sample string 2",
          "value": "sample string 3"
        },
        {
          "id": 1,
          "name": "sample string 2",
          "value": "sample string 3"
        }
      ],
      "productType": "sample string 6",
      "sellingInfo": {
        "minOrderQuantity": 1,
        "priceSpecification": [
          {
            "price": "sample string 1",
            "startQuantity": 2
          },
          {
            "price": "sample string 1",
            "startQuantity": 2
          }
        ],
        "quotationType": 2,
        "sellingLocation": [
          "sample string 1",
          "sample string 2"
        ],
        "unit": "sample string 3"
      },
      "shippingChargeTplId": 7,
      "specDetail": [
        {
          "image": "sample string 1",
          "price": "sample string 2",
          "skuNo": "sample string 3",
          "specifications": [
            {
              "key": "sample string 1",
              "name": "sample string 2",
              "optionValue": "sample string 3"
            },
            {
              "key": "sample string 1",
              "name": "sample string 2",
              "optionValue": "sample string 3"
            }
          ],
          "stock": 4
        },
        {
          "image": "sample string 1",
          "price": "sample string 2",
          "skuNo": "sample string 3",
          "specifications": [
            {
              "key": "sample string 1",
              "name": "sample string 2",
              "optionValue": "sample string 3"
            },
            {
              "key": "sample string 1",
              "name": "sample string 2",
              "optionValue": "sample string 3"
            }
          ],
          "stock": 4
        }
      ],
      "specDigest": {},
      "tag": [
        "sample string 1",
        "sample string 2"
      ],
      "unitWeight": "sample string 9",
      "website": "sample string 10"
    }
  }
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ProductInfoSave'.

Response Information

Resource Description

Result
NameDescriptionTypeAdditional information
success

boolean

None.

data

Object

None.

error

string

None.

Response Formats

application/json, text/json

Sample:
{
  "success": true,
  "data": {},
  "error": "sample string 3"
}