POST api/PriceTables

Creates a price table.

Request Information

URI Parameters

None.

Body Parameters

The price table model to create with.

PriceTableDto
NameDescriptionTypeAdditional information
Id

integer

None.

ProductCode

string

Required

VersionNumber

string

None.

PriceTableCode

string

None.

IsDeleted

boolean

None.

Name

string

Required

PriceBreaks

Collection of PriceBreakDto

None.

TenantId

string

Required

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "ProductCode": "sample string 2",
  "VersionNumber": "sample string 3",
  "PriceTableCode": "sample string 4",
  "IsDeleted": true,
  "Name": "sample string 6",
  "PriceBreaks": [
    {
      "Id": 1,
      "PrintUnitCost": 2.0,
      "DeliveryUnitCost": 3.0,
      "CostPerDepot": 4.0,
      "FlatCharge": 5.0,
      "Quantity": 6,
      "SupplierId": "9d514573-1f5a-4dec-997a-7f5ce605e891",
      "Supplier": {
        "Id": 1,
        "TenantId": "sample string 2",
        "Name": "sample string 3",
        "EmailAddresses": [
          "sample string 1",
          "sample string 2"
        ],
        "FtpLocation": "sample string 4"
      }
    },
    {
      "Id": 1,
      "PrintUnitCost": 2.0,
      "DeliveryUnitCost": 3.0,
      "CostPerDepot": 4.0,
      "FlatCharge": 5.0,
      "Quantity": 6,
      "SupplierId": "9d514573-1f5a-4dec-997a-7f5ce605e891",
      "Supplier": {
        "Id": 1,
        "TenantId": "sample string 2",
        "Name": "sample string 3",
        "EmailAddresses": [
          "sample string 1",
          "sample string 2"
        ],
        "FtpLocation": "sample string 4"
      }
    }
  ],
  "TenantId": "sample string 7"
}

application/xml, text/xml

Sample:
<PriceTableDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Design.Models">
  <Id>1</Id>
  <IsDeleted>true</IsDeleted>
  <Name>sample string 6</Name>
  <PriceBreaks>
    <PriceBreakDto>
      <CostPerDepot>4</CostPerDepot>
      <DeliveryUnitCost>3</DeliveryUnitCost>
      <FlatCharge>5</FlatCharge>
      <Id>1</Id>
      <PrintUnitCost>2</PrintUnitCost>
      <Quantity>6</Quantity>
      <Supplier>
        <EmailAddresses xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:string>sample string 1</d5p1:string>
          <d5p1:string>sample string 2</d5p1:string>
        </EmailAddresses>
        <FtpLocation>sample string 4</FtpLocation>
        <Id>1</Id>
        <Name>sample string 3</Name>
        <TenantId>sample string 2</TenantId>
      </Supplier>
      <SupplierId>9d514573-1f5a-4dec-997a-7f5ce605e891</SupplierId>
    </PriceBreakDto>
    <PriceBreakDto>
      <CostPerDepot>4</CostPerDepot>
      <DeliveryUnitCost>3</DeliveryUnitCost>
      <FlatCharge>5</FlatCharge>
      <Id>1</Id>
      <PrintUnitCost>2</PrintUnitCost>
      <Quantity>6</Quantity>
      <Supplier>
        <EmailAddresses xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:string>sample string 1</d5p1:string>
          <d5p1:string>sample string 2</d5p1:string>
        </EmailAddresses>
        <FtpLocation>sample string 4</FtpLocation>
        <Id>1</Id>
        <Name>sample string 3</Name>
        <TenantId>sample string 2</TenantId>
      </Supplier>
      <SupplierId>9d514573-1f5a-4dec-997a-7f5ce605e891</SupplierId>
    </PriceBreakDto>
  </PriceBreaks>
  <PriceTableCode>sample string 4</PriceTableCode>
  <ProductCode>sample string 2</ProductCode>
  <TenantId>sample string 7</TenantId>
  <VersionNumber>sample string 3</VersionNumber>
</PriceTableDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.