POST api/PriceTables/UpdatePriceTables

Imports price tables.

Request Information

URI Parameters

None.

Body Parameters

The model to import price tables with.

PriceTableImportDto
NameDescriptionTypeAdditional information
PriceTables

Collection of PriceTableDto

None.

DeleteExisting

boolean

None.

TenantId

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "PriceTables": [
    {
      "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": "00277a8f-0f1b-4a5c-b83d-1f733de4554f",
          "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": "00277a8f-0f1b-4a5c-b83d-1f733de4554f",
          "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"
    },
    {
      "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": "00277a8f-0f1b-4a5c-b83d-1f733de4554f",
          "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": "00277a8f-0f1b-4a5c-b83d-1f733de4554f",
          "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"
    }
  ],
  "DeleteExisting": true,
  "TenantId": "02de52f1-f9ff-4f3f-bb9a-f62adbd13550"
}

application/xml, text/xml

Sample:
<PriceTableImportDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Design.Models">
  <DeleteExisting>true</DeleteExisting>
  <PriceTables>
    <PriceTableDto>
      <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:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
              <d7p1:string>sample string 1</d7p1:string>
              <d7p1:string>sample string 2</d7p1:string>
            </EmailAddresses>
            <FtpLocation>sample string 4</FtpLocation>
            <Id>1</Id>
            <Name>sample string 3</Name>
            <TenantId>sample string 2</TenantId>
          </Supplier>
          <SupplierId>00277a8f-0f1b-4a5c-b83d-1f733de4554f</SupplierId>
        </PriceBreakDto>
        <PriceBreakDto>
          <CostPerDepot>4</CostPerDepot>
          <DeliveryUnitCost>3</DeliveryUnitCost>
          <FlatCharge>5</FlatCharge>
          <Id>1</Id>
          <PrintUnitCost>2</PrintUnitCost>
          <Quantity>6</Quantity>
          <Supplier>
            <EmailAddresses xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
              <d7p1:string>sample string 1</d7p1:string>
              <d7p1:string>sample string 2</d7p1:string>
            </EmailAddresses>
            <FtpLocation>sample string 4</FtpLocation>
            <Id>1</Id>
            <Name>sample string 3</Name>
            <TenantId>sample string 2</TenantId>
          </Supplier>
          <SupplierId>00277a8f-0f1b-4a5c-b83d-1f733de4554f</SupplierId>
        </PriceBreakDto>
      </PriceBreaks>
      <PriceTableCode>sample string 4</PriceTableCode>
      <ProductCode>sample string 2</ProductCode>
      <TenantId>sample string 7</TenantId>
      <VersionNumber>sample string 3</VersionNumber>
    </PriceTableDto>
    <PriceTableDto>
      <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:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
              <d7p1:string>sample string 1</d7p1:string>
              <d7p1:string>sample string 2</d7p1:string>
            </EmailAddresses>
            <FtpLocation>sample string 4</FtpLocation>
            <Id>1</Id>
            <Name>sample string 3</Name>
            <TenantId>sample string 2</TenantId>
          </Supplier>
          <SupplierId>00277a8f-0f1b-4a5c-b83d-1f733de4554f</SupplierId>
        </PriceBreakDto>
        <PriceBreakDto>
          <CostPerDepot>4</CostPerDepot>
          <DeliveryUnitCost>3</DeliveryUnitCost>
          <FlatCharge>5</FlatCharge>
          <Id>1</Id>
          <PrintUnitCost>2</PrintUnitCost>
          <Quantity>6</Quantity>
          <Supplier>
            <EmailAddresses xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
              <d7p1:string>sample string 1</d7p1:string>
              <d7p1:string>sample string 2</d7p1:string>
            </EmailAddresses>
            <FtpLocation>sample string 4</FtpLocation>
            <Id>1</Id>
            <Name>sample string 3</Name>
            <TenantId>sample string 2</TenantId>
          </Supplier>
          <SupplierId>00277a8f-0f1b-4a5c-b83d-1f733de4554f</SupplierId>
        </PriceBreakDto>
      </PriceBreaks>
      <PriceTableCode>sample string 4</PriceTableCode>
      <ProductCode>sample string 2</ProductCode>
      <TenantId>sample string 7</TenantId>
      <VersionNumber>sample string 3</VersionNumber>
    </PriceTableDto>
  </PriceTables>
  <TenantId>02de52f1-f9ff-4f3f-bb9a-f62adbd13550</TenantId>
</PriceTableImportDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.