POST api/InternalOrder/Add

Request Information

URI Parameters

None.

Body Parameters

InternalOrderModel
NameDescriptionTypeAdditional information
dTotalSaleValueString

string

None.

ID

integer

None.

OrderDate

date

None.

sRemarks

string

None.

CreatedAt

date

None.

UpdatedAt

date

None.

CreatedByUserID

integer

None.

dtDate

date

None.

IsActive

boolean

None.

CreatedBy

string

None.

Outlet

string

None.

OutletID

integer

None.

InternalOrderDetails

Collection of InternalOrderDetailModel

None.

Request Formats

application/json, text/json

Sample:
{
  "dTotalSaleValueString": "sample string 1",
  "ID": 2,
  "OrderDate": "2025-01-22T21:09:08.0445942-06:00",
  "sRemarks": "sample string 3",
  "CreatedAt": "2025-01-22T21:09:08.0445942-06:00",
  "UpdatedAt": "2025-01-22T21:09:08.0445942-06:00",
  "CreatedByUserID": 1,
  "dtDate": "2025-01-22T21:09:08.0445942-06:00",
  "IsActive": true,
  "CreatedBy": "sample string 4",
  "Outlet": "sample string 5",
  "OutletID": 1,
  "InternalOrderDetails": [
    {
      "ID": 1,
      "InternalOrderID": 1,
      "ProductID": 1,
      "Product": "sample string 2",
      "ProductVariantID": 1,
      "ProductVariant": "sample string 3",
      "Quantity": 1
    },
    {
      "ID": 1,
      "InternalOrderID": 1,
      "ProductID": 1,
      "Product": "sample string 2",
      "ProductVariantID": 1,
      "ProductVariant": "sample string 3",
      "Quantity": 1
    }
  ]
}

application/xml, text/xml

Sample:
<InternalOrderModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel">
  <CreatedAt>2025-01-22T21:09:08.0445942-06:00</CreatedAt>
  <CreatedBy>sample string 4</CreatedBy>
  <CreatedByUserID>1</CreatedByUserID>
  <ID>2</ID>
  <InternalOrderDetails>
    <InternalOrderDetailModel>
      <ID>1</ID>
      <InternalOrderID>1</InternalOrderID>
      <Product>sample string 2</Product>
      <ProductID>1</ProductID>
      <ProductVariant>sample string 3</ProductVariant>
      <ProductVariantID>1</ProductVariantID>
      <Quantity>1</Quantity>
    </InternalOrderDetailModel>
    <InternalOrderDetailModel>
      <ID>1</ID>
      <InternalOrderID>1</InternalOrderID>
      <Product>sample string 2</Product>
      <ProductID>1</ProductID>
      <ProductVariant>sample string 3</ProductVariant>
      <ProductVariantID>1</ProductVariantID>
      <Quantity>1</Quantity>
    </InternalOrderDetailModel>
  </InternalOrderDetails>
  <IsActive>true</IsActive>
  <OrderDate>2025-01-22T21:09:08.0445942-06:00</OrderDate>
  <Outlet>sample string 5</Outlet>
  <OutletID>1</OutletID>
  <UpdatedAt>2025-01-22T21:09:08.0445942-06:00</UpdatedAt>
  <dTotalSaleValueString>sample string 1</dTotalSaleValueString>
  <dtDate>2025-01-22T21:09:08.0445942-06:00</dtDate>
  <sRemarks>sample string 3</sRemarks>
</InternalOrderModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

InternalOrderResponse
NameDescriptionTypeAdditional information
InternalOrder

InternalOrderModel

None.

ResponseCode

integer

None.

ResponseText

string

None.

Response Formats

application/json, text/json

Sample:
{
  "InternalOrder": {
    "dTotalSaleValueString": "sample string 1",
    "ID": 2,
    "OrderDate": "2025-01-22T21:09:08.0445942-06:00",
    "sRemarks": "sample string 3",
    "CreatedAt": "2025-01-22T21:09:08.0445942-06:00",
    "UpdatedAt": "2025-01-22T21:09:08.0445942-06:00",
    "CreatedByUserID": 1,
    "dtDate": "2025-01-22T21:09:08.0445942-06:00",
    "IsActive": true,
    "CreatedBy": "sample string 4",
    "Outlet": "sample string 5",
    "OutletID": 1,
    "InternalOrderDetails": [
      {
        "ID": 1,
        "InternalOrderID": 1,
        "ProductID": 1,
        "Product": "sample string 2",
        "ProductVariantID": 1,
        "ProductVariant": "sample string 3",
        "Quantity": 1
      },
      {
        "ID": 1,
        "InternalOrderID": 1,
        "ProductID": 1,
        "Product": "sample string 2",
        "ProductVariantID": 1,
        "ProductVariant": "sample string 3",
        "Quantity": 1
      }
    ]
  },
  "ResponseCode": 1,
  "ResponseText": "sample string 2"
}

application/xml, text/xml

Sample:
<InternalOrderResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.Response">
  <ResponseCode xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel">1</ResponseCode>
  <ResponseText xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel">sample string 2</ResponseText>
  <InternalOrder xmlns:d2p1="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel">
    <d2p1:CreatedAt>2025-01-22T21:09:08.0445942-06:00</d2p1:CreatedAt>
    <d2p1:CreatedBy>sample string 4</d2p1:CreatedBy>
    <d2p1:CreatedByUserID>1</d2p1:CreatedByUserID>
    <d2p1:ID>2</d2p1:ID>
    <d2p1:InternalOrderDetails>
      <d2p1:InternalOrderDetailModel>
        <d2p1:ID>1</d2p1:ID>
        <d2p1:InternalOrderID>1</d2p1:InternalOrderID>
        <d2p1:Product>sample string 2</d2p1:Product>
        <d2p1:ProductID>1</d2p1:ProductID>
        <d2p1:ProductVariant>sample string 3</d2p1:ProductVariant>
        <d2p1:ProductVariantID>1</d2p1:ProductVariantID>
        <d2p1:Quantity>1</d2p1:Quantity>
      </d2p1:InternalOrderDetailModel>
      <d2p1:InternalOrderDetailModel>
        <d2p1:ID>1</d2p1:ID>
        <d2p1:InternalOrderID>1</d2p1:InternalOrderID>
        <d2p1:Product>sample string 2</d2p1:Product>
        <d2p1:ProductID>1</d2p1:ProductID>
        <d2p1:ProductVariant>sample string 3</d2p1:ProductVariant>
        <d2p1:ProductVariantID>1</d2p1:ProductVariantID>
        <d2p1:Quantity>1</d2p1:Quantity>
      </d2p1:InternalOrderDetailModel>
    </d2p1:InternalOrderDetails>
    <d2p1:IsActive>true</d2p1:IsActive>
    <d2p1:OrderDate>2025-01-22T21:09:08.0445942-06:00</d2p1:OrderDate>
    <d2p1:Outlet>sample string 5</d2p1:Outlet>
    <d2p1:OutletID>1</d2p1:OutletID>
    <d2p1:UpdatedAt>2025-01-22T21:09:08.0445942-06:00</d2p1:UpdatedAt>
    <d2p1:dTotalSaleValueString>sample string 1</d2p1:dTotalSaleValueString>
    <d2p1:dtDate>2025-01-22T21:09:08.0445942-06:00</d2p1:dtDate>
    <d2p1:sRemarks>sample string 3</d2p1:sRemarks>
  </InternalOrder>
</InternalOrderResponse>