PUT api/MarketingData/UpdateSaleOrder?KeyCode={KeyCode}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
KeyCode

string

Required

Body Parameters

Marketing
NameDescriptionTypeAdditional information
HeaderListIn

Collection of HeaderInvoiceDetail

None.

Request Formats

application/json, text/json

Sample:
{
  "HeaderListIn": [
    {
      "DocEntry": 1,
      "EDocEntry": "sample string 2",
      "CustomerCode": "sample string 3",
      "CustomerName": "sample string 4",
      "PostingDate": "2026-07-14T19:00:00.5013108+07:00",
      "DeliveryDate": "2026-07-14T19:00:00.5013108+07:00",
      "Currency": "sample string 7",
      "MarketSec": "sample string 8",
      "CustomerType": "sample string 9",
      "SubTotal": 10.0,
      "DiscountAmt": 11.0,
      "DiscountPercent": 12.0,
      "VATAmount": 13.0,
      "DPMAmount": 14.0,
      "DocTotal": 15.0,
      "ATSTransportFee": 16.0,
      "CustomerTransportFee": 17.0,
      "DeliveryMethod": "sample string 18",
      "Remarks": "sample string 19",
      "APIStatus": "sample string 20",
      "APIErrorMessage": "sample string 21",
      "SAPStatus": "sample string 22",
      "Address": "sample string 23",
      "BillAddress": "sample string 24",
      "RowListIn": [
        {
          "DocEntry": 1,
          "LineNum": 2,
          "ItemCode": "sample string 3",
          "ItemDescription": "sample string 4",
          "UOM": "sample string 5",
          "UPrice": 6.0,
          "Quantity": 7.0,
          "DiscountPercent": 8.0,
          "DiscountAmt": 9.0,
          "TaxCode": "sample string 10",
          "LineAmount": 11.0,
          "StoreCode": "sample string 12",
          "OwnerStoreCode": "sample string 13",
          "OcrCode": "sample string 14",
          "OcrCode2": "sample string 15",
          "OcrCode3": "sample string 16",
          "OcrCode4": "sample string 17",
          "ProjectCode": "sample string 18",
          "LineStatus": "sample string 19",
          "DiscountType": "sample string 20",
          "CouponCode": "sample string 21"
        },
        {
          "DocEntry": 1,
          "LineNum": 2,
          "ItemCode": "sample string 3",
          "ItemDescription": "sample string 4",
          "UOM": "sample string 5",
          "UPrice": 6.0,
          "Quantity": 7.0,
          "DiscountPercent": 8.0,
          "DiscountAmt": 9.0,
          "TaxCode": "sample string 10",
          "LineAmount": 11.0,
          "StoreCode": "sample string 12",
          "OwnerStoreCode": "sample string 13",
          "OcrCode": "sample string 14",
          "OcrCode2": "sample string 15",
          "OcrCode3": "sample string 16",
          "OcrCode4": "sample string 17",
          "ProjectCode": "sample string 18",
          "LineStatus": "sample string 19",
          "DiscountType": "sample string 20",
          "CouponCode": "sample string 21"
        }
      ]
    },
    {
      "DocEntry": 1,
      "EDocEntry": "sample string 2",
      "CustomerCode": "sample string 3",
      "CustomerName": "sample string 4",
      "PostingDate": "2026-07-14T19:00:00.5013108+07:00",
      "DeliveryDate": "2026-07-14T19:00:00.5013108+07:00",
      "Currency": "sample string 7",
      "MarketSec": "sample string 8",
      "CustomerType": "sample string 9",
      "SubTotal": 10.0,
      "DiscountAmt": 11.0,
      "DiscountPercent": 12.0,
      "VATAmount": 13.0,
      "DPMAmount": 14.0,
      "DocTotal": 15.0,
      "ATSTransportFee": 16.0,
      "CustomerTransportFee": 17.0,
      "DeliveryMethod": "sample string 18",
      "Remarks": "sample string 19",
      "APIStatus": "sample string 20",
      "APIErrorMessage": "sample string 21",
      "SAPStatus": "sample string 22",
      "Address": "sample string 23",
      "BillAddress": "sample string 24",
      "RowListIn": [
        {
          "DocEntry": 1,
          "LineNum": 2,
          "ItemCode": "sample string 3",
          "ItemDescription": "sample string 4",
          "UOM": "sample string 5",
          "UPrice": 6.0,
          "Quantity": 7.0,
          "DiscountPercent": 8.0,
          "DiscountAmt": 9.0,
          "TaxCode": "sample string 10",
          "LineAmount": 11.0,
          "StoreCode": "sample string 12",
          "OwnerStoreCode": "sample string 13",
          "OcrCode": "sample string 14",
          "OcrCode2": "sample string 15",
          "OcrCode3": "sample string 16",
          "OcrCode4": "sample string 17",
          "ProjectCode": "sample string 18",
          "LineStatus": "sample string 19",
          "DiscountType": "sample string 20",
          "CouponCode": "sample string 21"
        },
        {
          "DocEntry": 1,
          "LineNum": 2,
          "ItemCode": "sample string 3",
          "ItemDescription": "sample string 4",
          "UOM": "sample string 5",
          "UPrice": 6.0,
          "Quantity": 7.0,
          "DiscountPercent": 8.0,
          "DiscountAmt": 9.0,
          "TaxCode": "sample string 10",
          "LineAmount": 11.0,
          "StoreCode": "sample string 12",
          "OwnerStoreCode": "sample string 13",
          "OcrCode": "sample string 14",
          "OcrCode2": "sample string 15",
          "OcrCode3": "sample string 16",
          "OcrCode4": "sample string 17",
          "ProjectCode": "sample string 18",
          "LineStatus": "sample string 19",
          "DiscountType": "sample string 20",
          "CouponCode": "sample string 21"
        }
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<Marketing xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API_Live.Models">
  <HeaderListIn>
    <HeaderInvoiceDetail>
      <APIErrorMessage>sample string 21</APIErrorMessage>
      <APIStatus>sample string 20</APIStatus>
      <ATSTransportFee>16</ATSTransportFee>
      <Address>sample string 23</Address>
      <BillAddress>sample string 24</BillAddress>
      <Currency>sample string 7</Currency>
      <CustomerCode>sample string 3</CustomerCode>
      <CustomerName>sample string 4</CustomerName>
      <CustomerTransportFee>17</CustomerTransportFee>
      <CustomerType>sample string 9</CustomerType>
      <DPMAmount>14</DPMAmount>
      <DeliveryDate>2026-07-14T19:00:00.5013108+07:00</DeliveryDate>
      <DeliveryMethod>sample string 18</DeliveryMethod>
      <DiscountAmt>11</DiscountAmt>
      <DiscountPercent>12</DiscountPercent>
      <DocEntry>1</DocEntry>
      <DocTotal>15</DocTotal>
      <EDocEntry>sample string 2</EDocEntry>
      <MarketSec>sample string 8</MarketSec>
      <PostingDate>2026-07-14T19:00:00.5013108+07:00</PostingDate>
      <Remarks>sample string 19</Remarks>
      <RowListIn>
        <RowInvoiceDetail>
          <CouponCode>sample string 21</CouponCode>
          <DiscountAmt>9</DiscountAmt>
          <DiscountPercent>8</DiscountPercent>
          <DiscountType>sample string 20</DiscountType>
          <DocEntry>1</DocEntry>
          <ItemCode>sample string 3</ItemCode>
          <ItemDescription>sample string 4</ItemDescription>
          <LineAmount>11</LineAmount>
          <LineNum>2</LineNum>
          <LineStatus>sample string 19</LineStatus>
          <OcrCode>sample string 14</OcrCode>
          <OcrCode2>sample string 15</OcrCode2>
          <OcrCode3>sample string 16</OcrCode3>
          <OcrCode4>sample string 17</OcrCode4>
          <OwnerStoreCode>sample string 13</OwnerStoreCode>
          <ProjectCode>sample string 18</ProjectCode>
          <Quantity>7</Quantity>
          <StoreCode>sample string 12</StoreCode>
          <TaxCode>sample string 10</TaxCode>
          <UOM>sample string 5</UOM>
          <UPrice>6</UPrice>
        </RowInvoiceDetail>
        <RowInvoiceDetail>
          <CouponCode>sample string 21</CouponCode>
          <DiscountAmt>9</DiscountAmt>
          <DiscountPercent>8</DiscountPercent>
          <DiscountType>sample string 20</DiscountType>
          <DocEntry>1</DocEntry>
          <ItemCode>sample string 3</ItemCode>
          <ItemDescription>sample string 4</ItemDescription>
          <LineAmount>11</LineAmount>
          <LineNum>2</LineNum>
          <LineStatus>sample string 19</LineStatus>
          <OcrCode>sample string 14</OcrCode>
          <OcrCode2>sample string 15</OcrCode2>
          <OcrCode3>sample string 16</OcrCode3>
          <OcrCode4>sample string 17</OcrCode4>
          <OwnerStoreCode>sample string 13</OwnerStoreCode>
          <ProjectCode>sample string 18</ProjectCode>
          <Quantity>7</Quantity>
          <StoreCode>sample string 12</StoreCode>
          <TaxCode>sample string 10</TaxCode>
          <UOM>sample string 5</UOM>
          <UPrice>6</UPrice>
        </RowInvoiceDetail>
      </RowListIn>
      <SAPStatus>sample string 22</SAPStatus>
      <SubTotal>10</SubTotal>
      <VATAmount>13</VATAmount>
    </HeaderInvoiceDetail>
    <HeaderInvoiceDetail>
      <APIErrorMessage>sample string 21</APIErrorMessage>
      <APIStatus>sample string 20</APIStatus>
      <ATSTransportFee>16</ATSTransportFee>
      <Address>sample string 23</Address>
      <BillAddress>sample string 24</BillAddress>
      <Currency>sample string 7</Currency>
      <CustomerCode>sample string 3</CustomerCode>
      <CustomerName>sample string 4</CustomerName>
      <CustomerTransportFee>17</CustomerTransportFee>
      <CustomerType>sample string 9</CustomerType>
      <DPMAmount>14</DPMAmount>
      <DeliveryDate>2026-07-14T19:00:00.5013108+07:00</DeliveryDate>
      <DeliveryMethod>sample string 18</DeliveryMethod>
      <DiscountAmt>11</DiscountAmt>
      <DiscountPercent>12</DiscountPercent>
      <DocEntry>1</DocEntry>
      <DocTotal>15</DocTotal>
      <EDocEntry>sample string 2</EDocEntry>
      <MarketSec>sample string 8</MarketSec>
      <PostingDate>2026-07-14T19:00:00.5013108+07:00</PostingDate>
      <Remarks>sample string 19</Remarks>
      <RowListIn>
        <RowInvoiceDetail>
          <CouponCode>sample string 21</CouponCode>
          <DiscountAmt>9</DiscountAmt>
          <DiscountPercent>8</DiscountPercent>
          <DiscountType>sample string 20</DiscountType>
          <DocEntry>1</DocEntry>
          <ItemCode>sample string 3</ItemCode>
          <ItemDescription>sample string 4</ItemDescription>
          <LineAmount>11</LineAmount>
          <LineNum>2</LineNum>
          <LineStatus>sample string 19</LineStatus>
          <OcrCode>sample string 14</OcrCode>
          <OcrCode2>sample string 15</OcrCode2>
          <OcrCode3>sample string 16</OcrCode3>
          <OcrCode4>sample string 17</OcrCode4>
          <OwnerStoreCode>sample string 13</OwnerStoreCode>
          <ProjectCode>sample string 18</ProjectCode>
          <Quantity>7</Quantity>
          <StoreCode>sample string 12</StoreCode>
          <TaxCode>sample string 10</TaxCode>
          <UOM>sample string 5</UOM>
          <UPrice>6</UPrice>
        </RowInvoiceDetail>
        <RowInvoiceDetail>
          <CouponCode>sample string 21</CouponCode>
          <DiscountAmt>9</DiscountAmt>
          <DiscountPercent>8</DiscountPercent>
          <DiscountType>sample string 20</DiscountType>
          <DocEntry>1</DocEntry>
          <ItemCode>sample string 3</ItemCode>
          <ItemDescription>sample string 4</ItemDescription>
          <LineAmount>11</LineAmount>
          <LineNum>2</LineNum>
          <LineStatus>sample string 19</LineStatus>
          <OcrCode>sample string 14</OcrCode>
          <OcrCode2>sample string 15</OcrCode2>
          <OcrCode3>sample string 16</OcrCode3>
          <OcrCode4>sample string 17</OcrCode4>
          <OwnerStoreCode>sample string 13</OwnerStoreCode>
          <ProjectCode>sample string 18</ProjectCode>
          <Quantity>7</Quantity>
          <StoreCode>sample string 12</StoreCode>
          <TaxCode>sample string 10</TaxCode>
          <UOM>sample string 5</UOM>
          <UPrice>6</UPrice>
        </RowInvoiceDetail>
      </RowListIn>
      <SAPStatus>sample string 22</SAPStatus>
      <SubTotal>10</SubTotal>
      <VATAmount>13</VATAmount>
    </HeaderInvoiceDetail>
  </HeaderListIn>
</Marketing>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.