POST api/Products

Create Send a product information to PNPLINE

Request Information

URI Parameters

None.

Body Parameters

ProductInfo
NameDescriptionTypeAdditional information
upc

string

String length: inclusive between 3 and 50

sku

string

String length: inclusive between 3 and 50

Idx

integer

None.

category

integer

None.

name

string

None.

price

decimal number

None.

weight

decimal number

None.

width

decimal number

None.

height

decimal number

None.

multiplier

decimal number

None.

length

decimal number

None.

countryCode

string

String length: inclusive between 2 and 2

isCarton

boolean

None.

isOversize

boolean

None.

isManagedInventory

boolean

None.

createdOn

date

None.

updatedOn

date

None.

createFromIdx

integer

None.

createFromIdx2

integer

None.

masterKeyType

MASTERKEYTYPE

None.

Request Formats

application/json, text/json

Sample:
{
  "upc": "sample string 1",
  "sku": "sample string 2",
  "Idx": 3,
  "category": 4,
  "name": "sample string 5",
  "price": 6.0,
  "weight": 7.0,
  "width": 8.0,
  "height": 9.0,
  "multiplier": 10.0,
  "length": 11.0,
  "countryCode": "sample string 12",
  "isCarton": true,
  "isOversize": true,
  "isManagedInventory": true,
  "createdOn": "2019-11-12T00:09:43.4611293-05:00",
  "updatedOn": "2019-11-12T00:09:43.4611293-05:00",
  "createFromIdx": 1,
  "createFromIdx2": 1,
  "masterKeyType": "SKU"
}

application/xml, text/xml

Sample:
<ProductInfo xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <upc>sample string 1</upc>
  <sku>sample string 2</sku>
  <Idx>3</Idx>
  <category>4</category>
  <name>sample string 5</name>
  <price>6</price>
  <weight>7</weight>
  <width>8</width>
  <height>9</height>
  <multiplier>10</multiplier>
  <length>11</length>
  <countryCode>sample string 12</countryCode>
  <isCarton>true</isCarton>
  <isOversize>true</isOversize>
  <isManagedInventory>true</isManagedInventory>
  <createdOn>2019-11-12T00:09:43.4611293-05:00</createdOn>
  <updatedOn>2019-11-12T00:09:43.4611293-05:00</updatedOn>
  <createFrom>sample string 18</createFrom>
  <createFromIdx>1</createFromIdx>
  <createFromIdx2>1</createFromIdx2>
  <masterKeyType>SKU</masterKeyType>
</ProductInfo>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseApiInfoOfProductInfo
NameDescriptionTypeAdditional information
data

ProductInfo

None.

UpdateResult

UPDATECODE

None.

isErrorOnRequest

boolean

None.

errorMessage

string

None.

errorMessages

Collection of ErrorInfo

None.

warningMessages

Collection of ErrorInfo

None.

isSuccess

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "isSuccess": true,
  "data": {
    "$id": "1",
    "upc": "sample string 1",
    "sku": "sample string 2",
    "Idx": 3,
    "category": 4,
    "name": "sample string 5",
    "price": 6.0,
    "weight": 7.0,
    "width": 8.0,
    "height": 9.0,
    "multiplier": 10.0,
    "length": 11.0,
    "countryCode": "sample string 12",
    "isCarton": true,
    "isOversize": true,
    "isManagedInventory": true,
    "createdOn": "2019-11-12T00:09:43.4650287-05:00",
    "updatedOn": "2019-11-12T00:09:43.4650287-05:00",
    "createFromIdx": 1,
    "createFromIdx2": 1,
    "masterKeyType": "SKU"
  },
  "UpdateResult": "CREATE",
  "isErrorOnRequest": true,
  "errorMessage": null,
  "errorMessages": [],
  "warningMessages": []
}

application/xml, text/xml

Sample:
<xml xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <isSuccess>true</isSuccess>
  <UpdateResult>CREATE</UpdateResult>
  <isErrorOnRequest>true</isErrorOnRequest>
  <errorMessages />
  <warningMessages />
  <data>
    <upc>sample string 1</upc>
    <sku>sample string 2</sku>
    <Idx>3</Idx>
    <category>4</category>
    <name>sample string 5</name>
    <price>6</price>
    <weight>7</weight>
    <width>8</width>
    <height>9</height>
    <multiplier>10</multiplier>
    <length>11</length>
    <countryCode>sample string 12</countryCode>
    <isCarton>true</isCarton>
    <isOversize>true</isOversize>
    <isManagedInventory>true</isManagedInventory>
    <createdOn>2019-11-12T00:09:43.4650287-05:00</createdOn>
    <updatedOn>2019-11-12T00:09:43.4650287-05:00</updatedOn>
    <createFrom>sample string 18</createFrom>
    <createFromIdx>1</createFromIdx>
    <createFromIdx2>1</createFromIdx2>
    <masterKeyType>SKU</masterKeyType>
  </data>
</xml>