POST api/Order/SaveOrder

Api to save update Order

Request Information

URI Parameters

None.

Body Parameters

WayBillInsertUpdateModel
NameDescriptionTypeAdditional information
objRequestModel

WayBillInsertUpdateRequestModel

None.

APIKey

string

None.

Request Formats

application/json, text/json, text/plain, text/html

Sample:
{
  "objRequestModel": {
    "orderID": 1,
    "orderCode": "sample string 2",
    "shippingGuide": "sample string 3",
    "orderDateTime": "2025-07-17T04:23:27.3229672+00:00",
    "exprityData": "2025-07-17T04:23:27.3229672+00:00",
    "companyID": 6,
    "customerID": 7,
    "delivertFirstName": "sample string 8",
    "delivertLastName": "sample string 9",
    "deliveryPhone": "sample string 10",
    "deliveryMail": "sample string 11",
    "deliveryProvince": "sample string 12",
    "deliveryCanton": "sample string 13",
    "deliveryDistrict": "sample string 14",
    "deliveryAddress1": "sample string 15",
    "deliveryAddress2": "sample string 16",
    "deliveryZipcode": "sample string 17",
    "deliveryCountry": 18,
    "deliveryState": 19,
    "deliveryCity": 20,
    "deliveryLatitude": "sample string 21",
    "deliveryLongitude": "sample string 22",
    "deliveryIdentification": "sample string 23",
    "paymentMethod": "sample string 24",
    "currencyID": 25,
    "pickupFirstName": "sample string 26",
    "pickupLastName": "sample string 27",
    "pickupPhone": "sample string 28",
    "pickupProvince": "sample string 29",
    "pickupCanton": "sample string 30",
    "pickupDistrict": "sample string 31",
    "pickupAddress1": "sample string 32",
    "pickupAddress2": "sample string 33",
    "pickupZipcode": "sample string 34",
    "pickupCountry": 35,
    "pickupState": 36,
    "pickupCity": 37,
    "pickupLatitude": "sample string 38",
    "pickupLongitude": "sample string 39",
    "orderTotalAmount": "sample string 40",
    "status": 41,
    "parts": [
      {
        "shippingID": 1,
        "orderID": 2,
        "shippingClassID": 3,
        "lengthCM": 4,
        "widthCM": 5,
        "heightCM": 6,
        "weightKG": 7,
        "chargeAmount": 8.0,
        "fragile": 9,
        "productType": "sample string 10",
        "taxId": 11,
        "finalAmount": 12.0,
        "taxRate": 13.0
      },
      {
        "shippingID": 1,
        "orderID": 2,
        "shippingClassID": 3,
        "lengthCM": 4,
        "widthCM": 5,
        "heightCM": 6,
        "weightKG": 7,
        "chargeAmount": 8.0,
        "fragile": 9,
        "productType": "sample string 10",
        "taxId": 11,
        "finalAmount": 12.0,
        "taxRate": 13.0
      }
    ],
    "files": [
      {
        "orderFileID": 1,
        "orderID": 2,
        "userID": 3,
        "actualFileName": "sample string 4",
        "renamedFileName": "sample string 5",
        "addedDate": "2025-07-17T04:23:27.3229672+00:00",
        "addedByName": "sample string 6",
        "fileType": "sample string 7",
        "fullFilePath": "sample string 8"
      },
      {
        "orderFileID": 1,
        "orderID": 2,
        "userID": 3,
        "actualFileName": "sample string 4",
        "renamedFileName": "sample string 5",
        "addedDate": "2025-07-17T04:23:27.3229672+00:00",
        "addedByName": "sample string 6",
        "fileType": "sample string 7",
        "fullFilePath": "sample string 8"
      }
    ],
    "note": "sample string 42",
    "mailTocustomer": true,
    "mailToAdmin": true,
    "showInCustomerPanel": true,
    "isActive": true,
    "isDeleted": true,
    "addedBy": 48,
    "modifiedBy": 49,
    "billToAddress1": "sample string 50",
    "billToAddress2": "sample string 51",
    "billToZipcode": "sample string 52",
    "billToCountryID": "sample string 53",
    "billToStateID": "sample string 54",
    "billToCityID": "sample string 55",
    "billToDistrict": "sample string 56",
    "sendMailToCustomer": true,
    "sendMailToAdmin": true,
    "isShowInCustomerPanel": true,
    "partsJson": "sample string 60",
    "fileJson": "sample string 61",
    "conversionFactor": 62.0,
    "comment": "sample string 63",
    "deliveryRechnungAddress": "sample string 64",
    "pickupRechnungAddress": "sample string 65"
  },
  "apiKey": "sample string 1"
}

application/xml, text/xml

Sample:
<WayBillInsertUpdateModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.RequestModel">
  <APIKey>sample string 1</APIKey>
  <objRequestModel>
    <AddedBy>48</AddedBy>
    <BillToAddress1>sample string 50</BillToAddress1>
    <BillToAddress2>sample string 51</BillToAddress2>
    <BillToCityID>sample string 55</BillToCityID>
    <BillToCountryID>sample string 53</BillToCountryID>
    <BillToDistrict>sample string 56</BillToDistrict>
    <BillToStateID>sample string 54</BillToStateID>
    <BillToZipcode>sample string 52</BillToZipcode>
    <Comment>sample string 63</Comment>
    <CompanyID>6</CompanyID>
    <ConversionFactor>62</ConversionFactor>
    <CurrencyID>25</CurrencyID>
    <CustomerID>7</CustomerID>
    <DelivertFirstName>sample string 8</DelivertFirstName>
    <DelivertLastName>sample string 9</DelivertLastName>
    <DeliveryAddress1>sample string 15</DeliveryAddress1>
    <DeliveryAddress2>sample string 16</DeliveryAddress2>
    <DeliveryCanton>sample string 13</DeliveryCanton>
    <DeliveryCity>20</DeliveryCity>
    <DeliveryCountry>18</DeliveryCountry>
    <DeliveryDistrict>sample string 14</DeliveryDistrict>
    <DeliveryIdentification>sample string 23</DeliveryIdentification>
    <DeliveryLatitude>sample string 21</DeliveryLatitude>
    <DeliveryLongitude>sample string 22</DeliveryLongitude>
    <DeliveryMail>sample string 11</DeliveryMail>
    <DeliveryPhone>sample string 10</DeliveryPhone>
    <DeliveryProvince>sample string 12</DeliveryProvince>
    <DeliveryRechnungAddress>sample string 64</DeliveryRechnungAddress>
    <DeliveryState>19</DeliveryState>
    <DeliveryZipcode>sample string 17</DeliveryZipcode>
    <ExprityData>2025-07-17T04:23:27.3229672+00:00</ExprityData>
    <FileJson>sample string 61</FileJson>
    <Files>
      <WayBillFileInsertUpdateRequestModel>
        <ActualFileName>sample string 4</ActualFileName>
        <AddedByName>sample string 6</AddedByName>
        <AddedDate>2025-07-17T04:23:27.3229672+00:00</AddedDate>
        <FileType>sample string 7</FileType>
        <FullFilePath>sample string 8</FullFilePath>
        <OrderFileID>1</OrderFileID>
        <OrderID>2</OrderID>
        <RenamedFileName>sample string 5</RenamedFileName>
        <UserID>3</UserID>
      </WayBillFileInsertUpdateRequestModel>
      <WayBillFileInsertUpdateRequestModel>
        <ActualFileName>sample string 4</ActualFileName>
        <AddedByName>sample string 6</AddedByName>
        <AddedDate>2025-07-17T04:23:27.3229672+00:00</AddedDate>
        <FileType>sample string 7</FileType>
        <FullFilePath>sample string 8</FullFilePath>
        <OrderFileID>1</OrderFileID>
        <OrderID>2</OrderID>
        <RenamedFileName>sample string 5</RenamedFileName>
        <UserID>3</UserID>
      </WayBillFileInsertUpdateRequestModel>
    </Files>
    <IsActive>true</IsActive>
    <IsDeleted>true</IsDeleted>
    <IsShowInCustomerPanel>true</IsShowInCustomerPanel>
    <MailToAdmin>true</MailToAdmin>
    <MailTocustomer>true</MailTocustomer>
    <ModifiedBy>49</ModifiedBy>
    <Note>sample string 42</Note>
    <OrderCode>sample string 2</OrderCode>
    <OrderDateTime>2025-07-17T04:23:27.3229672+00:00</OrderDateTime>
    <OrderID>1</OrderID>
    <OrderTotalAmount>sample string 40</OrderTotalAmount>
    <Parts>
      <WayBillPartInsertUpdateRequestModel>
        <ChargeAmount>8</ChargeAmount>
        <FinalAmount>12</FinalAmount>
        <Fragile>9</Fragile>
        <HeightCM>6</HeightCM>
        <LengthCM>4</LengthCM>
        <OrderID>2</OrderID>
        <ProductType>sample string 10</ProductType>
        <ShippingClassID>3</ShippingClassID>
        <ShippingID>1</ShippingID>
        <TaxId>11</TaxId>
        <TaxRate>13</TaxRate>
        <WeightKG>7</WeightKG>
        <WidthCM>5</WidthCM>
      </WayBillPartInsertUpdateRequestModel>
      <WayBillPartInsertUpdateRequestModel>
        <ChargeAmount>8</ChargeAmount>
        <FinalAmount>12</FinalAmount>
        <Fragile>9</Fragile>
        <HeightCM>6</HeightCM>
        <LengthCM>4</LengthCM>
        <OrderID>2</OrderID>
        <ProductType>sample string 10</ProductType>
        <ShippingClassID>3</ShippingClassID>
        <ShippingID>1</ShippingID>
        <TaxId>11</TaxId>
        <TaxRate>13</TaxRate>
        <WeightKG>7</WeightKG>
        <WidthCM>5</WidthCM>
      </WayBillPartInsertUpdateRequestModel>
    </Parts>
    <PartsJson>sample string 60</PartsJson>
    <PaymentMethod>sample string 24</PaymentMethod>
    <PickupAddress1>sample string 32</PickupAddress1>
    <PickupAddress2>sample string 33</PickupAddress2>
    <PickupCanton>sample string 30</PickupCanton>
    <PickupCity>37</PickupCity>
    <PickupCountry>35</PickupCountry>
    <PickupDistrict>sample string 31</PickupDistrict>
    <PickupFirstName>sample string 26</PickupFirstName>
    <PickupLastName>sample string 27</PickupLastName>
    <PickupLatitude>sample string 38</PickupLatitude>
    <PickupLongitude>sample string 39</PickupLongitude>
    <PickupPhone>sample string 28</PickupPhone>
    <PickupProvince>sample string 29</PickupProvince>
    <PickupState>36</PickupState>
    <PickupZipcode>sample string 34</PickupZipcode>
    <SendMailToAdmin>true</SendMailToAdmin>
    <SendMailToCustomer>true</SendMailToCustomer>
    <ShippingGuide>sample string 3</ShippingGuide>
    <ShowInCustomerPanel>true</ShowInCustomerPanel>
    <Status>41</Status>
    <pickupRechnungAddress>sample string 65</pickupRechnungAddress>
  </objRequestModel>
</WayBillInsertUpdateModel>

multipart/form-data

Sample:
<WayBillInsertUpdateModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.RequestModel"><APIKey>sample string 1</APIKey><objRequestModel><AddedBy>48</AddedBy><BillToAddress1>sample string 50</BillToAddress1><BillToAddress2>sample string 51</BillToAddress2><BillToCityID>sample string 55</BillToCityID><BillToCountryID>sample string 53</BillToCountryID><BillToDistrict>sample string 56</BillToDistrict><BillToStateID>sample string 54</BillToStateID><BillToZipcode>sample string 52</BillToZipcode><Comment>sample string 63</Comment><CompanyID>6</CompanyID><ConversionFactor>62</ConversionFactor><CurrencyID>25</CurrencyID><CustomerID>7</CustomerID><DelivertFirstName>sample string 8</DelivertFirstName><DelivertLastName>sample string 9</DelivertLastName><DeliveryAddress1>sample string 15</DeliveryAddress1><DeliveryAddress2>sample string 16</DeliveryAddress2><DeliveryCanton>sample string 13</DeliveryCanton><DeliveryCity>20</DeliveryCity><DeliveryCountry>18</DeliveryCountry><DeliveryDistrict>sample string 14</DeliveryDistrict><DeliveryIdentification>sample string 23</DeliveryIdentification><DeliveryLatitude>sample string 21</DeliveryLatitude><DeliveryLongitude>sample string 22</DeliveryLongitude><DeliveryMail>sample string 11</DeliveryMail><DeliveryPhone>sample string 10</DeliveryPhone><DeliveryProvince>sample string 12</DeliveryProvince><DeliveryRechnungAddress>sample string 64</DeliveryRechnungAddress><DeliveryState>19</DeliveryState><DeliveryZipcode>sample string 17</DeliveryZipcode><ExprityData>2025-07-17T04:23:27.3229672+00:00</ExprityData><FileJson>sample string 61</FileJson><Files><WayBillFileInsertUpdateRequestModel><ActualFileName>sample string 4</ActualFileName><AddedByName>sample string 6</AddedByName><AddedDate>2025-07-17T04:23:27.3229672+00:00</AddedDate><FileType>sample string 7</FileType><FullFilePath>sample string 8</FullFilePath><OrderFileID>1</OrderFileID><OrderID>2</OrderID><RenamedFileName>sample string 5</RenamedFileName><UserID>3</UserID></WayBillFileInsertUpdateRequestModel><WayBillFileInsertUpdateRequestModel><ActualFileName>sample string 4</ActualFileName><AddedByName>sample string 6</AddedByName><AddedDate>2025-07-17T04:23:27.3229672+00:00</AddedDate><FileType>sample string 7</FileType><FullFilePath>sample string 8</FullFilePath><OrderFileID>1</OrderFileID><OrderID>2</OrderID><RenamedFileName>sample string 5</RenamedFileName><UserID>3</UserID></WayBillFileInsertUpdateRequestModel></Files><IsActive>true</IsActive><IsDeleted>true</IsDeleted><IsShowInCustomerPanel>true</IsShowInCustomerPanel><MailToAdmin>true</MailToAdmin><MailTocustomer>true</MailTocustomer><ModifiedBy>49</ModifiedBy><Note>sample string 42</Note><OrderCode>sample string 2</OrderCode><OrderDateTime>2025-07-17T04:23:27.3229672+00:00</OrderDateTime><OrderID>1</OrderID><OrderTotalAmount>sample string 40</OrderTotalAmount><Parts><WayBillPartInsertUpdateRequestModel><ChargeAmount>8</ChargeAmount><FinalAmount>12</FinalAmount><Fragile>9</Fragile><HeightCM>6</HeightCM><LengthCM>4</LengthCM><OrderID>2</OrderID><ProductType>sample string 10</ProductType><ShippingClassID>3</ShippingClassID><ShippingID>1</ShippingID><TaxId>11</TaxId><TaxRate>13</TaxRate><WeightKG>7</WeightKG><WidthCM>5</WidthCM></WayBillPartInsertUpdateRequestModel><WayBillPartInsertUpdateRequestModel><ChargeAmount>8</ChargeAmount><FinalAmount>12</FinalAmount><Fragile>9</Fragile><HeightCM>6</HeightCM><LengthCM>4</LengthCM><OrderID>2</OrderID><ProductType>sample string 10</ProductType><ShippingClassID>3</ShippingClassID><ShippingID>1</ShippingID><TaxId>11</TaxId><TaxRate>13</TaxRate><WeightKG>7</WeightKG><WidthCM>5</WidthCM></WayBillPartInsertUpdateRequestModel></Parts><PartsJson>sample string 60</PartsJson><PaymentMethod>sample string 24</PaymentMethod><PickupAddress1>sample string 32</PickupAddress1><PickupAddress2>sample string 33</PickupAddress2><PickupCanton>sample string 30</PickupCanton><PickupCity>37</PickupCity><PickupCountry>35</PickupCountry><PickupDistrict>sample string 31</PickupDistrict><PickupFirstName>sample string 26</PickupFirstName><PickupLastName>sample string 27</PickupLastName><PickupLatitude>sample string 38</PickupLatitude><PickupLongitude>sample string 39</PickupLongitude><PickupPhone>sample string 28</PickupPhone><PickupProvince>sample string 29</PickupProvince><PickupState>36</PickupState><PickupZipcode>sample string 34</PickupZipcode><SendMailToAdmin>true</SendMailToAdmin><SendMailToCustomer>true</SendMailToCustomer><ShippingGuide>sample string 3</ShippingGuide><ShowInCustomerPanel>true</ShowInCustomerPanel><Status>41</Status><pickupRechnungAddress>sample string 65</pickupRechnungAddress></objRequestModel></WayBillInsertUpdateModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

WayBillInsertUpdateResPonseModel
NameDescriptionTypeAdditional information
OrderID

integer

None.

ReturnID

integer

Required

Message

string

Required

Successful

boolean

Required

Code

integer

None.

TotalRecord

integer

None.

Response Formats

application/json, text/json, text/plain, text/html

Sample:
{
  "orderID": 1,
  "returnID": 2,
  "message": "sample string 3",
  "successful": true,
  "code": 5,
  "totalRecord": 6
}

application/xml, text/xml

Sample:
<WayBillInsertUpdateResPonseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">
  <Code>5</Code>
  <Message>sample string 3</Message>
  <ReturnID>2</ReturnID>
  <Successful>true</Successful>
  <TotalRecord>6</TotalRecord>
  <OrderID>1</OrderID>
</WayBillInsertUpdateResPonseModel>

multipart/form-data

Sample:
<WayBillInsertUpdateResPonseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel"><Code>5</Code><Message>sample string 3</Message><ReturnID>2</ReturnID><Successful>true</Successful><TotalRecord>6</TotalRecord><OrderID>1</OrderID></WayBillInsertUpdateResPonseModel>