POST api/PerformaInvoice/CreateModelPI/{ord_id}

Create Model PI

Request Information

URI Parameters

NameDescriptionTypeAdditional information
ord_id

integer

Required

Body Parameters

m_Create_Model
NameDescriptionTypeAdditional information
remark

string

None.

model

Collection of m_PI_Model

None.

Request Formats

application/json, text/json

Sample:
{
  "remark": "sample string 1",
  "model": [
    {
      "sm_id": 1,
      "model": "sample string 2",
      "packing_type": "sample string 3",
      "packing_id": 4,
      "amount": 5,
      "promotion_id": 1,
      "bom": [
        {
          "bom_id": 1,
          "size": [
            {
              "size": 1,
              "amount": 2,
              "price": 3.0
            },
            {
              "size": 1,
              "amount": 2,
              "price": 3.0
            }
          ]
        },
        {
          "bom_id": 1,
          "size": [
            {
              "size": 1,
              "amount": 2,
              "price": 3.0
            },
            {
              "size": 1,
              "amount": 2,
              "price": 3.0
            }
          ]
        }
      ]
    },
    {
      "sm_id": 1,
      "model": "sample string 2",
      "packing_type": "sample string 3",
      "packing_id": 4,
      "amount": 5,
      "promotion_id": 1,
      "bom": [
        {
          "bom_id": 1,
          "size": [
            {
              "size": 1,
              "amount": 2,
              "price": 3.0
            },
            {
              "size": 1,
              "amount": 2,
              "price": 3.0
            }
          ]
        },
        {
          "bom_id": 1,
          "size": [
            {
              "size": 1,
              "amount": 2,
              "price": 3.0
            },
            {
              "size": 1,
              "amount": 2,
              "price": 3.0
            }
          ]
        }
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<m_Create_Model xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MRP.Domain.Models.ProductionLine.Planning_Department.Proforma_Invoce">
  <model>
    <m_PI_Model>
      <amount>5</amount>
      <bom>
        <m_color>
          <bom_id>1</bom_id>
          <size>
            <m_PI_Sizes>
              <amount>2</amount>
              <price>3</price>
              <size>1</size>
            </m_PI_Sizes>
            <m_PI_Sizes>
              <amount>2</amount>
              <price>3</price>
              <size>1</size>
            </m_PI_Sizes>
          </size>
        </m_color>
        <m_color>
          <bom_id>1</bom_id>
          <size>
            <m_PI_Sizes>
              <amount>2</amount>
              <price>3</price>
              <size>1</size>
            </m_PI_Sizes>
            <m_PI_Sizes>
              <amount>2</amount>
              <price>3</price>
              <size>1</size>
            </m_PI_Sizes>
          </size>
        </m_color>
      </bom>
      <model>sample string 2</model>
      <packing_id>4</packing_id>
      <packing_type>sample string 3</packing_type>
      <promotion_id>1</promotion_id>
      <sm_id>1</sm_id>
    </m_PI_Model>
    <m_PI_Model>
      <amount>5</amount>
      <bom>
        <m_color>
          <bom_id>1</bom_id>
          <size>
            <m_PI_Sizes>
              <amount>2</amount>
              <price>3</price>
              <size>1</size>
            </m_PI_Sizes>
            <m_PI_Sizes>
              <amount>2</amount>
              <price>3</price>
              <size>1</size>
            </m_PI_Sizes>
          </size>
        </m_color>
        <m_color>
          <bom_id>1</bom_id>
          <size>
            <m_PI_Sizes>
              <amount>2</amount>
              <price>3</price>
              <size>1</size>
            </m_PI_Sizes>
            <m_PI_Sizes>
              <amount>2</amount>
              <price>3</price>
              <size>1</size>
            </m_PI_Sizes>
          </size>
        </m_color>
      </bom>
      <model>sample string 2</model>
      <packing_id>4</packing_id>
      <packing_type>sample string 3</packing_type>
      <promotion_id>1</promotion_id>
      <sm_id>1</sm_id>
    </m_PI_Model>
  </model>
  <remark>sample string 1</remark>
</m_Create_Model>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.