POST api/Shipment/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

ShipmentResponse
NameDescriptionTypeAdditional information
ShipmentModel

ShipmentModel

None.

ResponseCode

integer

None.

ResponseText

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ShipmentModel": {
    "ID": 1,
    "TrackingCode": "sample string 2",
    "TrackingWebsite": "sample string 3",
    "sRemarks": "sample string 4",
    "CreatedAt": "2025-01-22T20:59:23.6435704-06:00",
    "UpdatedAt": "2025-01-22T20:59:23.6435704-06:00",
    "CreatedByUserID": 1,
    "dtDate": "2025-01-22T20:59:23.6435704-06:00",
    "dtDateString": "sample string 5",
    "OutletID": 1,
    "ShippingMethodID": 1,
    "IsActive": true,
    "IsReceived": true,
    "ToOutletID": 1,
    "ReceivedDate": "2025-01-22T20:59:23.6435704-06:00",
    "Outlet": "sample string 6",
    "Outlet1": "sample string 7",
    "ShippingMethod": "sample string 8",
    "ShipmentDetails": [
      {
        "ID": 1,
        "ShipmentID": 1,
        "ProductID": 1,
        "ProductVariantID": 1,
        "Quantity": 1,
        "ReceivedQuantity": 1,
        "ProductModel": "sample string 2",
        "ArticalNo": "sample string 3",
        "BLabel": "sample string 4",
        "IsTrackable": true,
        "CurrencyID": 1,
        "Price": 1.0,
        "Product": "sample string 5",
        "ProductVariant": "sample string 6"
      },
      {
        "ID": 1,
        "ShipmentID": 1,
        "ProductID": 1,
        "ProductVariantID": 1,
        "Quantity": 1,
        "ReceivedQuantity": 1,
        "ProductModel": "sample string 2",
        "ArticalNo": "sample string 3",
        "BLabel": "sample string 4",
        "IsTrackable": true,
        "CurrencyID": 1,
        "Price": 1.0,
        "Product": "sample string 5",
        "ProductVariant": "sample string 6"
      }
    ],
    "ShipmentDocuments": [
      {
        "ID": 1,
        "sDocument": "sample string 2",
        "ShipmentID": 1,
        "IsActive": true,
        "CreatedAt": "2025-01-22T20:59:23.6435704-06:00"
      },
      {
        "ID": 1,
        "sDocument": "sample string 2",
        "ShipmentID": 1,
        "IsActive": true,
        "CreatedAt": "2025-01-22T20:59:23.6435704-06:00"
      }
    ],
    "Attachments": [
      {
        "Base64String": "sample string 1",
        "Extention": "sample string 2"
      },
      {
        "Base64String": "sample string 1",
        "Extention": "sample string 2"
      }
    ]
  },
  "ResponseCode": 1,
  "ResponseText": "sample string 2"
}

application/xml, text/xml

Sample:
<ShipmentResponse 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>
  <ShipmentModel xmlns:d2p1="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel">
    <d2p1:Attachments>
      <d2p1:ImageModel>
        <d2p1:Base64String>sample string 1</d2p1:Base64String>
        <d2p1:Extention>sample string 2</d2p1:Extention>
      </d2p1:ImageModel>
      <d2p1:ImageModel>
        <d2p1:Base64String>sample string 1</d2p1:Base64String>
        <d2p1:Extention>sample string 2</d2p1:Extention>
      </d2p1:ImageModel>
    </d2p1:Attachments>
    <d2p1:CreatedAt>2025-01-22T20:59:23.6435704-06:00</d2p1:CreatedAt>
    <d2p1:CreatedByUserID>1</d2p1:CreatedByUserID>
    <d2p1:ID>1</d2p1:ID>
    <d2p1:IsActive>true</d2p1:IsActive>
    <d2p1:IsReceived>true</d2p1:IsReceived>
    <d2p1:Outlet>sample string 6</d2p1:Outlet>
    <d2p1:Outlet1>sample string 7</d2p1:Outlet1>
    <d2p1:OutletID>1</d2p1:OutletID>
    <d2p1:ReceivedDate>2025-01-22T20:59:23.6435704-06:00</d2p1:ReceivedDate>
    <d2p1:ShipmentDetails>
      <d2p1:ShipmentDetailModel>
        <d2p1:ArticalNo>sample string 3</d2p1:ArticalNo>
        <d2p1:BLabel>sample string 4</d2p1:BLabel>
        <d2p1:CurrencyID>1</d2p1:CurrencyID>
        <d2p1:ID>1</d2p1:ID>
        <d2p1:IsTrackable>true</d2p1:IsTrackable>
        <d2p1:Price>1</d2p1:Price>
        <d2p1:Product>sample string 5</d2p1:Product>
        <d2p1:ProductID>1</d2p1:ProductID>
        <d2p1:ProductModel>sample string 2</d2p1:ProductModel>
        <d2p1:ProductVariant>sample string 6</d2p1:ProductVariant>
        <d2p1:ProductVariantID>1</d2p1:ProductVariantID>
        <d2p1:Quantity>1</d2p1:Quantity>
        <d2p1:ReceivedQuantity>1</d2p1:ReceivedQuantity>
        <d2p1:ShipmentID>1</d2p1:ShipmentID>
      </d2p1:ShipmentDetailModel>
      <d2p1:ShipmentDetailModel>
        <d2p1:ArticalNo>sample string 3</d2p1:ArticalNo>
        <d2p1:BLabel>sample string 4</d2p1:BLabel>
        <d2p1:CurrencyID>1</d2p1:CurrencyID>
        <d2p1:ID>1</d2p1:ID>
        <d2p1:IsTrackable>true</d2p1:IsTrackable>
        <d2p1:Price>1</d2p1:Price>
        <d2p1:Product>sample string 5</d2p1:Product>
        <d2p1:ProductID>1</d2p1:ProductID>
        <d2p1:ProductModel>sample string 2</d2p1:ProductModel>
        <d2p1:ProductVariant>sample string 6</d2p1:ProductVariant>
        <d2p1:ProductVariantID>1</d2p1:ProductVariantID>
        <d2p1:Quantity>1</d2p1:Quantity>
        <d2p1:ReceivedQuantity>1</d2p1:ReceivedQuantity>
        <d2p1:ShipmentID>1</d2p1:ShipmentID>
      </d2p1:ShipmentDetailModel>
    </d2p1:ShipmentDetails>
    <d2p1:ShipmentDocuments>
      <d2p1:ShipmentDocumentModel>
        <d2p1:CreatedAt>2025-01-22T20:59:23.6435704-06:00</d2p1:CreatedAt>
        <d2p1:ID>1</d2p1:ID>
        <d2p1:IsActive>true</d2p1:IsActive>
        <d2p1:ShipmentID>1</d2p1:ShipmentID>
        <d2p1:sDocument>sample string 2</d2p1:sDocument>
      </d2p1:ShipmentDocumentModel>
      <d2p1:ShipmentDocumentModel>
        <d2p1:CreatedAt>2025-01-22T20:59:23.6435704-06:00</d2p1:CreatedAt>
        <d2p1:ID>1</d2p1:ID>
        <d2p1:IsActive>true</d2p1:IsActive>
        <d2p1:ShipmentID>1</d2p1:ShipmentID>
        <d2p1:sDocument>sample string 2</d2p1:sDocument>
      </d2p1:ShipmentDocumentModel>
    </d2p1:ShipmentDocuments>
    <d2p1:ShippingMethod>sample string 8</d2p1:ShippingMethod>
    <d2p1:ShippingMethodID>1</d2p1:ShippingMethodID>
    <d2p1:ToOutletID>1</d2p1:ToOutletID>
    <d2p1:TrackingCode>sample string 2</d2p1:TrackingCode>
    <d2p1:TrackingWebsite>sample string 3</d2p1:TrackingWebsite>
    <d2p1:UpdatedAt>2025-01-22T20:59:23.6435704-06:00</d2p1:UpdatedAt>
    <d2p1:dtDate>2025-01-22T20:59:23.6435704-06:00</d2p1:dtDate>
    <d2p1:dtDateString>sample string 5</d2p1:dtDateString>
    <d2p1:sRemarks>sample string 4</d2p1:sRemarks>
  </ShipmentModel>
</ShipmentResponse>