POST AdminApi/GS1/NewGS1Product

Request Information

URI Parameters

None.

Body Parameters

GS1CreateProductView
NameDescriptionTypeAdditional information
Result

Collection of GS1ProductResult

None.

DestImages

Collection of GS1ProductImageCondition

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected for property 'Merchant' with type 'BDMall.Model.MerchantMNG.Merchant'. Path 'Result[0].Merchant.ECShipInfo'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected for property 'Merchant' with type 'BDMall.Model.MerchantMNG.Merchant'. Path 'Result[0].Merchant.ECShipInfo'.

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 'GS1CreateProductView'.

Response Information

Resource Description

Collection of GS1ProductImageCondition
NameDescriptionTypeAdditional information
Gtin

string

None.

MerchantId

globally unique identifier

None.

SourceImage

string

None.

ProdId

globally unique identifier

None.

AttrValue1

globally unique identifier

None.

AttrValue2

globally unique identifier

None.

AttrValue3

globally unique identifier

None.

ImageType

ImageType

None.

ImagePaths

Collection of KeyValue

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Gtin": "sample string 1",
    "MerchantId": "d59b49b3-4986-4638-8844-b8f22ba5c1ab",
    "SourceImage": "sample string 3",
    "ProdId": "e9cb8a2c-c195-41d4-a9eb-33084a672513",
    "AttrValue1": "e51c6924-2f82-4d71-a306-9e0a80773af9",
    "AttrValue2": "21e9c6cd-1a20-475f-a4a9-13896fcab0ef",
    "AttrValue3": "ac81cfe5-339d-40a6-85aa-ed77dc5792ba",
    "ImageType": 0,
    "ImagePaths": [
      {
        "Id": "sample string 1",
        "Text": "sample string 2"
      },
      {
        "Id": "sample string 1",
        "Text": "sample string 2"
      }
    ]
  },
  {
    "Gtin": "sample string 1",
    "MerchantId": "d59b49b3-4986-4638-8844-b8f22ba5c1ab",
    "SourceImage": "sample string 3",
    "ProdId": "e9cb8a2c-c195-41d4-a9eb-33084a672513",
    "AttrValue1": "e51c6924-2f82-4d71-a306-9e0a80773af9",
    "AttrValue2": "21e9c6cd-1a20-475f-a4a9-13896fcab0ef",
    "AttrValue3": "ac81cfe5-339d-40a6-85aa-ed77dc5792ba",
    "ImageType": 0,
    "ImagePaths": [
      {
        "Id": "sample string 1",
        "Text": "sample string 2"
      },
      {
        "Id": "sample string 1",
        "Text": "sample string 2"
      }
    ]
  }
]