POST product/pricing?customerNumber={customerNumber}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
customerNumber

string

None.

Body Parameters

PricingRequest
NameDescriptionTypeAdditional information
CustomerNumber

string

None.

Warehouse

string

None.

BusinessUnit

string

None.

DealID1

string

None.

Lines

Collection of PricingRequestLine

Required

Request Formats

application/json, text/json

Sample:
{
  "CustomerNumber": "sample string 1",
  "Warehouse": "sample string 2",
  "BusinessUnit": "sample string 3",
  "DealID1": "sample string 4",
  "Lines": [
    {
      "ItemNumber": "sample string 1",
      "PartNumberType": 0,
      "Quantity": 2,
      "DealIDs": [
        "sample string 1",
        "sample string 2"
      ]
    },
    {
      "ItemNumber": "sample string 1",
      "PartNumberType": 0,
      "Quantity": 2,
      "DealIDs": [
        "sample string 1",
        "sample string 2"
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<PricingRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <CustomerNumber>sample string 1</CustomerNumber>
  <Warehouse>sample string 2</Warehouse>
  <BusinessUnit>sample string 3</BusinessUnit>
  <DealID1>sample string 4</DealID1>
  <Lines>
    <PricingRequestLine>
      <ItemNumber>sample string 1</ItemNumber>
      <PartNumberType>Unknown</PartNumberType>
      <Quantity>2</Quantity>
      <DealIDs>
        <string>sample string 1</string>
        <string>sample string 2</string>
      </DealIDs>
    </PricingRequestLine>
    <PricingRequestLine>
      <ItemNumber>sample string 1</ItemNumber>
      <PartNumberType>Unknown</PartNumberType>
      <Quantity>2</Quantity>
      <DealIDs>
        <string>sample string 1</string>
        <string>sample string 2</string>
      </DealIDs>
    </PricingRequestLine>
  </Lines>
</PricingRequest>

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

Response Information

Resource Description

Collection of Product
NameDescriptionTypeAdditional information
ItemNumber

string

None.

Cost

decimal number

None.

UnitPrice

decimal number

None.

UnitPriceCurrencyCode

string

None.

ExtendedTotal

decimal number

None.

ExtendedTotalCurrency

string

None.

MSRP

decimal number

None.

MSRPCurrencyCode

string

None.

DealerAuthorized

boolean

None.

SPA

boolean

None.

SPADescription

string

None.

SPARestriction

boolean

None.

SPARestrictionDescription

string

None.

QuantityAvailable

integer

None.

TotalInventory

integer

None.

QuantityOnOrder

integer

None.

PricingError

boolean

None.

PricingErrorDesc

string

None.

InventoryDisplay

string

None.

DealInfos

Collection of DealResponse

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ItemNumber": "sample string 1",
    "Cost": 1.0,
    "UnitPrice": 2.0,
    "UnitPriceCurrencyCode": "sample string 3",
    "ExtendedTotal": 4.0,
    "ExtendedTotalCurrency": "sample string 5",
    "MSRP": 6.0,
    "MSRPCurrencyCode": "sample string 7",
    "DealerAuthorized": true,
    "SPA": true,
    "SPADescription": "sample string 10",
    "SPARestriction": true,
    "SPARestrictionDescription": "sample string 12",
    "QuantityAvailable": 13,
    "TotalInventory": 14,
    "QuantityOnOrder": 15,
    "PricingError": true,
    "PricingErrorDesc": "sample string 17",
    "InventoryDisplay": "sample string 18",
    "DealInfos": [
      {
        "DealID": "sample string 1",
        "DealDescription": "sample string 2",
        "DealExpirationDate": "sample string 3",
        "DealError": true,
        "DealErrorDesc": "sample string 5"
      },
      {
        "DealID": "sample string 1",
        "DealDescription": "sample string 2",
        "DealExpirationDate": "sample string 3",
        "DealError": true,
        "DealErrorDesc": "sample string 5"
      }
    ]
  },
  {
    "ItemNumber": "sample string 1",
    "Cost": 1.0,
    "UnitPrice": 2.0,
    "UnitPriceCurrencyCode": "sample string 3",
    "ExtendedTotal": 4.0,
    "ExtendedTotalCurrency": "sample string 5",
    "MSRP": 6.0,
    "MSRPCurrencyCode": "sample string 7",
    "DealerAuthorized": true,
    "SPA": true,
    "SPADescription": "sample string 10",
    "SPARestriction": true,
    "SPARestrictionDescription": "sample string 12",
    "QuantityAvailable": 13,
    "TotalInventory": 14,
    "QuantityOnOrder": 15,
    "PricingError": true,
    "PricingErrorDesc": "sample string 17",
    "InventoryDisplay": "sample string 18",
    "DealInfos": [
      {
        "DealID": "sample string 1",
        "DealDescription": "sample string 2",
        "DealExpirationDate": "sample string 3",
        "DealError": true,
        "DealErrorDesc": "sample string 5"
      },
      {
        "DealID": "sample string 1",
        "DealDescription": "sample string 2",
        "DealExpirationDate": "sample string 3",
        "DealError": true,
        "DealErrorDesc": "sample string 5"
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfProduct xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Product>
    <ItemNumber>sample string 1</ItemNumber>
    <Cost>1</Cost>
    <UnitPrice>2</UnitPrice>
    <UnitPriceCurrencyCode>sample string 3</UnitPriceCurrencyCode>
    <ExtendedTotal>4</ExtendedTotal>
    <ExtendedTotalCurrency>sample string 5</ExtendedTotalCurrency>
    <MSRP>6</MSRP>
    <MSRPCurrencyCode>sample string 7</MSRPCurrencyCode>
    <DealerAuthorized>true</DealerAuthorized>
    <SPA>true</SPA>
    <SPADescription>sample string 10</SPADescription>
    <SPARestriction>true</SPARestriction>
    <SPARestrictionDescription>sample string 12</SPARestrictionDescription>
    <QuantityAvailable>13</QuantityAvailable>
    <TotalInventory>14</TotalInventory>
    <QuantityOnOrder>15</QuantityOnOrder>
    <PricingError>true</PricingError>
    <PricingErrorDesc>sample string 17</PricingErrorDesc>
    <InventoryDisplay>sample string 18</InventoryDisplay>
    <DealInfos>
      <DealResponse>
        <DealID>sample string 1</DealID>
        <DealDescription>sample string 2</DealDescription>
        <DealExpirationDate>sample string 3</DealExpirationDate>
        <DealError>true</DealError>
        <DealErrorDesc>sample string 5</DealErrorDesc>
      </DealResponse>
      <DealResponse>
        <DealID>sample string 1</DealID>
        <DealDescription>sample string 2</DealDescription>
        <DealExpirationDate>sample string 3</DealExpirationDate>
        <DealError>true</DealError>
        <DealErrorDesc>sample string 5</DealErrorDesc>
      </DealResponse>
    </DealInfos>
  </Product>
  <Product>
    <ItemNumber>sample string 1</ItemNumber>
    <Cost>1</Cost>
    <UnitPrice>2</UnitPrice>
    <UnitPriceCurrencyCode>sample string 3</UnitPriceCurrencyCode>
    <ExtendedTotal>4</ExtendedTotal>
    <ExtendedTotalCurrency>sample string 5</ExtendedTotalCurrency>
    <MSRP>6</MSRP>
    <MSRPCurrencyCode>sample string 7</MSRPCurrencyCode>
    <DealerAuthorized>true</DealerAuthorized>
    <SPA>true</SPA>
    <SPADescription>sample string 10</SPADescription>
    <SPARestriction>true</SPARestriction>
    <SPARestrictionDescription>sample string 12</SPARestrictionDescription>
    <QuantityAvailable>13</QuantityAvailable>
    <TotalInventory>14</TotalInventory>
    <QuantityOnOrder>15</QuantityOnOrder>
    <PricingError>true</PricingError>
    <PricingErrorDesc>sample string 17</PricingErrorDesc>
    <InventoryDisplay>sample string 18</InventoryDisplay>
    <DealInfos>
      <DealResponse>
        <DealID>sample string 1</DealID>
        <DealDescription>sample string 2</DealDescription>
        <DealExpirationDate>sample string 3</DealExpirationDate>
        <DealError>true</DealError>
        <DealErrorDesc>sample string 5</DealErrorDesc>
      </DealResponse>
      <DealResponse>
        <DealID>sample string 1</DealID>
        <DealDescription>sample string 2</DealDescription>
        <DealExpirationDate>sample string 3</DealExpirationDate>
        <DealError>true</DealError>
        <DealErrorDesc>sample string 5</DealErrorDesc>
      </DealResponse>
    </DealInfos>
  </Product>
</ArrayOfProduct>