POST api/RecoOrder/createReqItem

Request Information

URI Parameters

None.

Body Parameters

RecoOrderProductReceivedDataModels
NameDescriptionTypeAdditional information
id

integer

None.

location_id

integer

None.

vendor_id

string

None.

handphone

string

None.

mobile_token

string

None.

reco_order_detail_id

integer

None.

maintain_material_package_id

integer

None.

Total_Hectare

decimal number

None.

Total_Order_Price

decimal number

None.

Description

string

None.

MapId

Collection of integer

None.

data

Collection of RecoOrderProductModel

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "location_id": 2,
  "vendor_id": "sample string 3",
  "handphone": "sample string 4",
  "mobile_token": "sample string 5",
  "reco_order_detail_id": 6,
  "maintain_material_package_id": 7,
  "Total_Hectare": 8.0,
  "Total_Order_Price": 9.0,
  "Description": "sample string 10",
  "MapId": [
    1,
    2
  ],
  "data": [
    {
      "Id": 1,
      "Reco_Order_Detail_Id": 2,
      "Product_Type_Id": 3,
      "Product_Material_Id": 4,
      "UOM": "sample string 5",
      "Qty_Request": 6.0,
      "Qty_Outbound": 7.0,
      "Qty_Remaining": 8.0,
      "Is_Custom": "sample string 9",
      "Is_Delete": true,
      "mode": "sample string 11",
      "product_name": "sample string 12",
      "product_type_code": "sample string 13",
      "product_price": 1.0,
      "Qty_Return": 14.0,
      "Qty_Loan": 1.0
    },
    {
      "Id": 1,
      "Reco_Order_Detail_Id": 2,
      "Product_Type_Id": 3,
      "Product_Material_Id": 4,
      "UOM": "sample string 5",
      "Qty_Request": 6.0,
      "Qty_Outbound": 7.0,
      "Qty_Remaining": 8.0,
      "Is_Custom": "sample string 9",
      "Is_Delete": true,
      "mode": "sample string 11",
      "product_name": "sample string 12",
      "product_type_code": "sample string 13",
      "product_price": 1.0,
      "Qty_Return": 14.0,
      "Qty_Loan": 1.0
    }
  ]
}

application/xml, text/xml

Sample:
<RecoOrderProductReceivedDataModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FarmerPublicAPI.Models.RecoOrderProductIntegrator.ReceivedDataModels">
  <Description>sample string 10</Description>
  <MapId xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:long>1</d2p1:long>
    <d2p1:long>2</d2p1:long>
  </MapId>
  <Total_Hectare>8</Total_Hectare>
  <Total_Order_Price>9</Total_Order_Price>
  <data xmlns:d2p1="http://schemas.datacontract.org/2004/07/FarmerPublicAPI.Models.RecoOrderIntegrator.BaseTreeModels">
    <d2p1:RecoOrderProductModel>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Is_Custom>sample string 9</d2p1:Is_Custom>
      <d2p1:Is_Delete>true</d2p1:Is_Delete>
      <d2p1:Product_Material_Id>4</d2p1:Product_Material_Id>
      <d2p1:Product_Type_Id>3</d2p1:Product_Type_Id>
      <d2p1:Qty_Loan>1</d2p1:Qty_Loan>
      <d2p1:Qty_Outbound>7</d2p1:Qty_Outbound>
      <d2p1:Qty_Remaining>8</d2p1:Qty_Remaining>
      <d2p1:Qty_Request>6</d2p1:Qty_Request>
      <d2p1:Qty_Return>14</d2p1:Qty_Return>
      <d2p1:Reco_Order_Detail_Id>2</d2p1:Reco_Order_Detail_Id>
      <d2p1:UOM>sample string 5</d2p1:UOM>
      <d2p1:mode>sample string 11</d2p1:mode>
      <d2p1:product_name>sample string 12</d2p1:product_name>
      <d2p1:product_price>1</d2p1:product_price>
      <d2p1:product_type_code>sample string 13</d2p1:product_type_code>
    </d2p1:RecoOrderProductModel>
    <d2p1:RecoOrderProductModel>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Is_Custom>sample string 9</d2p1:Is_Custom>
      <d2p1:Is_Delete>true</d2p1:Is_Delete>
      <d2p1:Product_Material_Id>4</d2p1:Product_Material_Id>
      <d2p1:Product_Type_Id>3</d2p1:Product_Type_Id>
      <d2p1:Qty_Loan>1</d2p1:Qty_Loan>
      <d2p1:Qty_Outbound>7</d2p1:Qty_Outbound>
      <d2p1:Qty_Remaining>8</d2p1:Qty_Remaining>
      <d2p1:Qty_Request>6</d2p1:Qty_Request>
      <d2p1:Qty_Return>14</d2p1:Qty_Return>
      <d2p1:Reco_Order_Detail_Id>2</d2p1:Reco_Order_Detail_Id>
      <d2p1:UOM>sample string 5</d2p1:UOM>
      <d2p1:mode>sample string 11</d2p1:mode>
      <d2p1:product_name>sample string 12</d2p1:product_name>
      <d2p1:product_price>1</d2p1:product_price>
      <d2p1:product_type_code>sample string 13</d2p1:product_type_code>
    </d2p1:RecoOrderProductModel>
  </data>
  <handphone>sample string 4</handphone>
  <id>1</id>
  <location_id>2</location_id>
  <maintain_material_package_id>7</maintain_material_package_id>
  <mobile_token>sample string 5</mobile_token>
  <reco_order_detail_id>6</reco_order_detail_id>
  <vendor_id>sample string 3</vendor_id>
</RecoOrderProductReceivedDataModels>

multipart/form-data

Sample:
<RecoOrderProductReceivedDataModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FarmerPublicAPI.Models.RecoOrderProductIntegrator.ReceivedDataModels"><Description>sample string 10</Description><MapId xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><d2p1:long>1</d2p1:long><d2p1:long>2</d2p1:long></MapId><Total_Hectare>8</Total_Hectare><Total_Order_Price>9</Total_Order_Price><data xmlns:d2p1="http://schemas.datacontract.org/2004/07/FarmerPublicAPI.Models.RecoOrderIntegrator.BaseTreeModels"><d2p1:RecoOrderProductModel><d2p1:Id>1</d2p1:Id><d2p1:Is_Custom>sample string 9</d2p1:Is_Custom><d2p1:Is_Delete>true</d2p1:Is_Delete><d2p1:Product_Material_Id>4</d2p1:Product_Material_Id><d2p1:Product_Type_Id>3</d2p1:Product_Type_Id><d2p1:Qty_Loan>1</d2p1:Qty_Loan><d2p1:Qty_Outbound>7</d2p1:Qty_Outbound><d2p1:Qty_Remaining>8</d2p1:Qty_Remaining><d2p1:Qty_Request>6</d2p1:Qty_Request><d2p1:Qty_Return>14</d2p1:Qty_Return><d2p1:Reco_Order_Detail_Id>2</d2p1:Reco_Order_Detail_Id><d2p1:UOM>sample string 5</d2p1:UOM><d2p1:mode>sample string 11</d2p1:mode><d2p1:product_name>sample string 12</d2p1:product_name><d2p1:product_price>1</d2p1:product_price><d2p1:product_type_code>sample string 13</d2p1:product_type_code></d2p1:RecoOrderProductModel><d2p1:RecoOrderProductModel><d2p1:Id>1</d2p1:Id><d2p1:Is_Custom>sample string 9</d2p1:Is_Custom><d2p1:Is_Delete>true</d2p1:Is_Delete><d2p1:Product_Material_Id>4</d2p1:Product_Material_Id><d2p1:Product_Type_Id>3</d2p1:Product_Type_Id><d2p1:Qty_Loan>1</d2p1:Qty_Loan><d2p1:Qty_Outbound>7</d2p1:Qty_Outbound><d2p1:Qty_Remaining>8</d2p1:Qty_Remaining><d2p1:Qty_Request>6</d2p1:Qty_Request><d2p1:Qty_Return>14</d2p1:Qty_Return><d2p1:Reco_Order_Detail_Id>2</d2p1:Reco_Order_Detail_Id><d2p1:UOM>sample string 5</d2p1:UOM><d2p1:mode>sample string 11</d2p1:mode><d2p1:product_name>sample string 12</d2p1:product_name><d2p1:product_price>1</d2p1:product_price><d2p1:product_type_code>sample string 13</d2p1:product_type_code></d2p1:RecoOrderProductModel></data><handphone>sample string 4</handphone><id>1</id><location_id>2</location_id><maintain_material_package_id>7</maintain_material_package_id><mobile_token>sample string 5</mobile_token><reco_order_detail_id>6</reco_order_detail_id><vendor_id>sample string 3</vendor_id></RecoOrderProductReceivedDataModels>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

RecoOrderProductBaseTreeModels
NameDescriptionTypeAdditional information
message

string

None.

success

boolean

None.

data

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "message": "sample string 1",
  "success": true,
  "data": {}
}

application/xml, text/xml

Sample:
<RecoOrderProductBaseTreeModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FarmerPublicAPI.Models.RecoOrderProductIntegrator.BaseTreeModels">
  <data />
  <message>sample string 1</message>
  <success>true</success>
</RecoOrderProductBaseTreeModels>

multipart/form-data

Sample:
<RecoOrderProductBaseTreeModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FarmerPublicAPI.Models.RecoOrderProductIntegrator.BaseTreeModels"><data /><message>sample string 1</message><success>true</success></RecoOrderProductBaseTreeModels>