POST api/InternalOrder/GetByID

Request Information

URI Parameters

None.

Body Parameters

RequestIDModel
NameDescriptionTypeAdditional information
ID

integer

Required

RequestedUserID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "RequestedUserID": 1
}

application/xml, text/xml

Sample:
<RequestIDModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.Request">
  <RequestedUserID>1</RequestedUserID>
  <ID>1</ID>
</RequestIDModel>

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:04:36.0913112-06:00",
    "sRemarks": "sample string 3",
    "CreatedAt": "2025-01-22T21:04:36.0913112-06:00",
    "UpdatedAt": "2025-01-22T21:04:36.0913112-06:00",
    "CreatedByUserID": 1,
    "dtDate": "2025-01-22T21:04:36.0913112-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:04:36.0913112-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:04:36.0913112-06:00</d2p1:OrderDate>
    <d2p1:Outlet>sample string 5</d2p1:Outlet>
    <d2p1:OutletID>1</d2p1:OutletID>
    <d2p1:UpdatedAt>2025-01-22T21:04:36.0913112-06:00</d2p1:UpdatedAt>
    <d2p1:dTotalSaleValueString>sample string 1</d2p1:dTotalSaleValueString>
    <d2p1:dtDate>2025-01-22T21:04:36.0913112-06:00</d2p1:dtDate>
    <d2p1:sRemarks>sample string 3</d2p1:sRemarks>
  </InternalOrder>
</InternalOrderResponse>