POST api/Order/SaveDetail

Request Information

URI Parameters

None.

Body Parameters

OrderDetail
NameDescriptionTypeAdditional information
Discount

decimal number

None.

OrderId

globally unique identifier

None.

ConfirmedQuantity

integer

None.

InvoicedQuantity

integer

None.

ConfirmedNetWeight

decimal number

None.

ConfirmedNetWeightUnit

string

None.

InvoicedNetWeight

decimal number

None.

InvoicedNetWeightUnit

string

None.

TotalConfirmedNetWeight

decimal number

None.

TotalConfirmedNetWeightUnit

string

None.

TotalInvoicedNetWeight

decimal number

None.

TotalInvoicedNetWeightUnit

string

None.

Price

decimal number

None.

Per

string

None.

Charges

Collection of OrderCharges

None.

Discounts

Collection of OrderCharges

None.

TotalPrice

decimal number

None.

Id

globally unique identifier

None.

UnitPrice

string

None.

Quantity

integer

None.

MaterialID

string

None.

Material

Material

None.

DateAdded

date

None.

Request Formats

application/json, text/json

Sample:
{
  "Discount": 1.0,
  "OrderId": "2314d49a-bfff-4636-bb89-65bd522f44a8",
  "ConfirmedQuantity": 3,
  "InvoicedQuantity": 4,
  "ConfirmedNetWeight": 5.0,
  "ConfirmedNetWeightUnit": "sample string 6",
  "InvoicedNetWeight": 7.0,
  "InvoicedNetWeightUnit": "sample string 8",
  "TotalConfirmedNetWeight": 9.0,
  "TotalConfirmedNetWeightUnit": "sample string 10",
  "TotalInvoicedNetWeight": 11.0,
  "TotalInvoicedNetWeightUnit": "sample string 12",
  "Price": 13.0,
  "Per": "sample string 14",
  "Charges": [
    {
      "Type": "sample string 2",
      "Amount": 3.0,
      "InvoiceAmount": 4.0,
      "Description": "sample string 5"
    },
    {
      "Type": "sample string 2",
      "Amount": 3.0,
      "InvoiceAmount": 4.0,
      "Description": "sample string 5"
    }
  ],
  "Discounts": [
    {
      "Type": "sample string 2",
      "Amount": 3.0,
      "InvoiceAmount": 4.0,
      "Description": "sample string 5"
    },
    {
      "Type": "sample string 2",
      "Amount": 3.0,
      "InvoiceAmount": 4.0,
      "Description": "sample string 5"
    }
  ],
  "TotalPrice": 15.0,
  "Id": "64c1562c-6630-41a9-a88d-babae3cac4a9",
  "UnitPrice": "sample string 17",
  "Quantity": 18,
  "MaterialID": "sample string 19",
  "Material": {
    "MaterialID": "sample string 1",
    "Description": "sample string 2",
    "Family": "sample string 3",
    "SubFamily": "sample string 4",
    "Brand": "sample string 5",
    "DisplayUPC": "sample string 6",
    "GTIN": "sample string 7",
    "ShelfLife": "sample string 8",
    "CodeDating": "sample string 9",
    "RefrigerationText": "sample string 10",
    "Establishment": "sample string 11",
    "Characteristics": "sample string 12",
    "Allergens": "sample string 13",
    "UMConversions": "sample string 14",
    "Package": "sample string 15",
    "Case": "sample string 16",
    "CaseWeightType": "sample string 17",
    "CaseWt": "sample string 18",
    "ShippingWt": "sample string 19",
    "Pallet": "sample string 20",
    "SellingRestriction": "sample string 21",
    "CaseUPC": "sample string 22",
    "ImageUrl": "sample string 23",
    "NutritionFactsUrl": "sample string 24",
    "SellingUnit": "sample string 25",
    "ConversionFactor": "sample string 26"
  },
  "DateAdded": "2024-11-21T10:09:29.6279953+00:00"
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'OrderDetail'.

Response Information

Resource Description

DataResultOfOrderDetail
NameDescriptionTypeAdditional information
Value

RetVal

None.

Message

string

None.

Data

OrderDetail

None.

Response Formats

application/json, text/json

Sample:
{
  "Value": 0,
  "Message": "sample string 1",
  "Data": {
    "Discount": 1.0,
    "OrderId": "90537606-818c-4e4a-803c-14910b8b5348",
    "ConfirmedQuantity": 3,
    "InvoicedQuantity": 4,
    "ConfirmedNetWeight": 5.0,
    "ConfirmedNetWeightUnit": "sample string 6",
    "InvoicedNetWeight": 7.0,
    "InvoicedNetWeightUnit": "sample string 8",
    "TotalConfirmedNetWeight": 9.0,
    "TotalConfirmedNetWeightUnit": "sample string 10",
    "TotalInvoicedNetWeight": 11.0,
    "TotalInvoicedNetWeightUnit": "sample string 12",
    "Price": 13.0,
    "Per": "sample string 14",
    "Charges": [
      {
        "Type": "sample string 2",
        "Amount": 3.0,
        "InvoiceAmount": 4.0,
        "Description": "sample string 5"
      },
      {
        "Type": "sample string 2",
        "Amount": 3.0,
        "InvoiceAmount": 4.0,
        "Description": "sample string 5"
      }
    ],
    "Discounts": [
      {
        "Type": "sample string 2",
        "Amount": 3.0,
        "InvoiceAmount": 4.0,
        "Description": "sample string 5"
      },
      {
        "Type": "sample string 2",
        "Amount": 3.0,
        "InvoiceAmount": 4.0,
        "Description": "sample string 5"
      }
    ],
    "TotalPrice": 15.0,
    "Id": "6d346c8d-456b-4521-9ad6-ec4fd6e6bfdc",
    "UnitPrice": "sample string 17",
    "Quantity": 18,
    "MaterialID": "sample string 19",
    "Material": {
      "MaterialID": "sample string 1",
      "Description": "sample string 2",
      "Family": "sample string 3",
      "SubFamily": "sample string 4",
      "Brand": "sample string 5",
      "DisplayUPC": "sample string 6",
      "GTIN": "sample string 7",
      "ShelfLife": "sample string 8",
      "CodeDating": "sample string 9",
      "RefrigerationText": "sample string 10",
      "Establishment": "sample string 11",
      "Characteristics": "sample string 12",
      "Allergens": "sample string 13",
      "UMConversions": "sample string 14",
      "Package": "sample string 15",
      "Case": "sample string 16",
      "CaseWeightType": "sample string 17",
      "CaseWt": "sample string 18",
      "ShippingWt": "sample string 19",
      "Pallet": "sample string 20",
      "SellingRestriction": "sample string 21",
      "CaseUPC": "sample string 22",
      "ImageUrl": "sample string 23",
      "NutritionFactsUrl": "sample string 24",
      "SellingUnit": "sample string 25",
      "ConversionFactor": "sample string 26"
    },
    "DateAdded": "2024-11-21T10:09:29.6279953+00:00"
  }
}