POST api/Product?APIKey={APIKey}&ClientId={ClientId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
APIKey

string

Required

ClientId

string

Required

Body Parameters

ProductRequest
NameDescriptionTypeAdditional information
Product

Product

None.

Request Formats

application/json, text/json

Sample:
{
  "Product": {
    "Id": "76d93f93-7add-4792-aa39-1bd58e88f02d",
    "Code": "sample string 2",
    "Name": "sample string 3",
    "Company": "sample string 4",
    "Description": "sample string 5",
    "Taxable": true,
    "ApplyFreight": true,
    "MemberPrice": 8.0,
    "NonMemberPrice": 9.0,
    "ProductType": 1,
    "WebCategory": "sample string 10",
    "Custom": {
      "Attribute": [
        {
          "Type": 0,
          "Key": "sample string 1",
          "Value": "sample string 2",
          "FormattedValue": "sample string 3"
        },
        {
          "Type": 0,
          "Key": "sample string 1",
          "Value": "sample string 2",
          "FormattedValue": "sample string 3"
        }
      ]
    },
    "Prices": {
      "Price": [
        {
          "Name": "sample string 1",
          "Valueminimum": 2.0,
          "Valuemaximum": 3.0,
          "Startdate": "2024-05-02T22:52:16.8160121+00:00",
          "Enddate": "2024-05-02T22:52:16.8160121+00:00",
          "Pricepercent": 6.0
        },
        {
          "Name": "sample string 1",
          "Valueminimum": 2.0,
          "Valuemaximum": 3.0,
          "Startdate": "2024-05-02T22:52:16.8160121+00:00",
          "Enddate": "2024-05-02T22:52:16.8160121+00:00",
          "Pricepercent": 6.0
        }
      ]
    }
  }
}

application/xml, text/xml

Sample:
<ProductRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Protech.UX.API.Product">
  <Product>
    <ApplyFreight>true</ApplyFreight>
    <Code>sample string 2</Code>
    <Company>sample string 4</Company>
    <Custom>
      <Attribute xmlns:d4p1="http://schemas.datacontract.org/2004/07/Protech.UX.API.CRMEntity">
        <d4p1:Attribute>
          <d4p1:FormattedValue>sample string 3</d4p1:FormattedValue>
          <d4p1:Key>sample string 1</d4p1:Key>
          <d4p1:Type>text</d4p1:Type>
          <d4p1:Value>sample string 2</d4p1:Value>
        </d4p1:Attribute>
        <d4p1:Attribute>
          <d4p1:FormattedValue>sample string 3</d4p1:FormattedValue>
          <d4p1:Key>sample string 1</d4p1:Key>
          <d4p1:Type>text</d4p1:Type>
          <d4p1:Value>sample string 2</d4p1:Value>
        </d4p1:Attribute>
      </Attribute>
    </Custom>
    <Description>sample string 5</Description>
    <Id>76d93f93-7add-4792-aa39-1bd58e88f02d</Id>
    <MemberPrice>8</MemberPrice>
    <Name>sample string 3</Name>
    <NonMemberPrice>9</NonMemberPrice>
    <Prices xmlns:d3p1="http://schemas.datacontract.org/2004/07/Protech.UX.API.Event">
      <d3p1:Price>
        <d3p1:Price>
          <d3p1:Enddate>2024-05-02T22:52:16.8160121+00:00</d3p1:Enddate>
          <d3p1:Name>sample string 1</d3p1:Name>
          <d3p1:Pricepercent>6</d3p1:Pricepercent>
          <d3p1:Startdate>2024-05-02T22:52:16.8160121+00:00</d3p1:Startdate>
          <d3p1:Valuemaximum>3</d3p1:Valuemaximum>
          <d3p1:Valueminimum>2</d3p1:Valueminimum>
        </d3p1:Price>
        <d3p1:Price>
          <d3p1:Enddate>2024-05-02T22:52:16.8160121+00:00</d3p1:Enddate>
          <d3p1:Name>sample string 1</d3p1:Name>
          <d3p1:Pricepercent>6</d3p1:Pricepercent>
          <d3p1:Startdate>2024-05-02T22:52:16.8160121+00:00</d3p1:Startdate>
          <d3p1:Valuemaximum>3</d3p1:Valuemaximum>
          <d3p1:Valueminimum>2</d3p1:Valueminimum>
        </d3p1:Price>
      </d3p1:Price>
    </Prices>
    <ProductType>SalesInventory</ProductType>
    <Taxable>true</Taxable>
    <WebCategory>sample string 10</WebCategory>
  </Product>
</ProductRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

APIResponse
NameDescriptionTypeAdditional information
Status

Status

None.

Id

globally unique identifier

None.

Description

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": 0,
  "Id": "bb6a3093-171c-4e82-8f84-f0cea06e953e",
  "Description": "sample string 2"
}

application/xml, text/xml

Sample:
<APIResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Protech.UX.API.Response">
  <Description>sample string 2</Description>
  <Id>bb6a3093-171c-4e82-8f84-f0cea06e953e</Id>
  <Status>Success</Status>
</APIResponse>