POST api/RFQ

Request Information

URI Parameters

None.

Body Parameters

Purchase_Header
NameDescriptionTypeAdditional information
RFQNo

string

String length: inclusive between 0 and 20

RFQ_Date

date

None.

Indent_No

string

String length: inclusive between 0 and 20

Indent_Date

date

None.

LocationCode

string

String length: inclusive between 0 and 30

DepartmentCode

string

String length: inclusive between 0 and 30

Vendor_No

string

String length: inclusive between 0 and 20

Vendor_Name

string

String length: inclusive between 0 and 100

Vendor_Address

string

String length: inclusive between 0 and 200

Vendor_City

string

String length: inclusive between 0 and 30

Vendor_Contact

string

String length: inclusive between 0 and 30

Vendor_Email_Id

string

String length: inclusive between 0 and 100

CompanyId

string

String length: inclusive between 0 and 50

currency_Code

string

String length: inclusive between 0 and 10

Purchase_Lines

Collection of Purchase_Line

None.

Request Formats

application/json, text/json

Sample:
{
  "RFQNo": "sample string 1",
  "RFQ_Date": "2024-09-29T11:01:21.8904338+05:30",
  "Indent_No": "sample string 3",
  "Indent_Date": "2024-09-29T11:01:21.8904338+05:30",
  "LocationCode": "sample string 5",
  "DepartmentCode": "sample string 6",
  "Vendor_No": "sample string 7",
  "Vendor_Name": "sample string 8",
  "Vendor_Address": "sample string 9",
  "Vendor_City": "sample string 10",
  "Vendor_Contact": "sample string 11",
  "Vendor_Email_Id": "sample string 12",
  "CompanyId": "sample string 13",
  "currency_Code": "sample string 14",
  "Purchase_Lines": [
    {
      "Serial_No": "sample string 1",
      "Item_Code": "sample string 2",
      "ItemDescription": "sample string 3",
      "UOM": "sample string 4",
      "Quantity": 5.0,
      "Basic_Unit_Rate": 6.0,
      "Discount": 7.0,
      "HSN_SAC": "sample string 8",
      "GST": 9.0,
      "Taxable_Amount": 10.0,
      "Price_Basis": "sample string 11",
      "Freight": "sample string 12",
      "Delivery": "sample string 13",
      "Payment_Terms": "sample string 14",
      "Tolerance": "sample string 15",
      "Packing_Forwarding": "sample string 16",
      "LoadingCharges": "sample string 17",
      "TestCertificate": "sample string 18",
      "Warranty": "sample string 19",
      "OfferValidity": "sample string 20",
      "Specifications": "sample string 21",
      "Size": "sample string 22",
      "Origin": "sample string 23",
      "RFQNo": "sample string 24",
      "IncoTerms": "sample string 25",
      "negotiation_Price": 26.0
    },
    {
      "Serial_No": "sample string 1",
      "Item_Code": "sample string 2",
      "ItemDescription": "sample string 3",
      "UOM": "sample string 4",
      "Quantity": 5.0,
      "Basic_Unit_Rate": 6.0,
      "Discount": 7.0,
      "HSN_SAC": "sample string 8",
      "GST": 9.0,
      "Taxable_Amount": 10.0,
      "Price_Basis": "sample string 11",
      "Freight": "sample string 12",
      "Delivery": "sample string 13",
      "Payment_Terms": "sample string 14",
      "Tolerance": "sample string 15",
      "Packing_Forwarding": "sample string 16",
      "LoadingCharges": "sample string 17",
      "TestCertificate": "sample string 18",
      "Warranty": "sample string 19",
      "OfferValidity": "sample string 20",
      "Specifications": "sample string 21",
      "Size": "sample string 22",
      "Origin": "sample string 23",
      "RFQNo": "sample string 24",
      "IncoTerms": "sample string 25",
      "negotiation_Price": 26.0
    }
  ]
}

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'Api.Models.Purchase_Line' contains cycles and cannot be serialized if reference tracking is disabled.

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 'Purchase_Header'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/xml

Sample:

Sample not available.