POST Polycab/api/DraftOrder/CreateOrder?AuthTokan={AuthTokan}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
AuthTokan

string

Required

Body Parameters

Order
NameDescriptionTypeAdditional information
ERP_EXTERNAL_ID

string

None.

ORDER_TYPE

string

None.

MANUAL_SPA_ID

string

None.

SHIP_TO_SITE

string

None.

CUSTOMER_PO_DATE

string

None.

CUSTOMER_PO

string

None.

CUSTOMER_CODE

string

None.

BILL_TO_SITE

string

None.

REGISTRY_CODE

string

None.

SHIPPING_INSTRUCTIONS

string

None.

PACKING_INSTRUCTIONS

string

None.

SCHEDULE_SHIP_DATE

string

None.

ORDERLINES

Collection of OrderLine

None.

Request Formats

application/json, text/json

Sample:
{
  "ERP_EXTERNAL_ID": "sample string 1",
  "ORDER_TYPE": "sample string 2",
  "MANUAL_SPA_ID": "sample string 3",
  "SHIP_TO_SITE": "sample string 4",
  "CUSTOMER_PO_DATE": "sample string 5",
  "CUSTOMER_PO": "sample string 6",
  "CUSTOMER_CODE": "sample string 7",
  "BILL_TO_SITE": "sample string 8",
  "REGISTRY_CODE": "sample string 9",
  "SHIPPING_INSTRUCTIONS": "sample string 10",
  "PACKING_INSTRUCTIONS": "sample string 11",
  "SCHEDULE_SHIP_DATE": "sample string 12",
  "ORDERLINES": [
    {
      "QUANTITY": 1,
      "ORDERED_ITEM": "sample string 2",
      "SPA_UNIT_PRICE": 1.0
    },
    {
      "QUANTITY": 1,
      "ORDERED_ITEM": "sample string 2",
      "SPA_UNIT_PRICE": 1.0
    }
  ]
}

application/xml, text/xml

Sample:
<Order xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Polycab.Model">
  <BILL_TO_SITE>sample string 8</BILL_TO_SITE>
  <CUSTOMER_CODE>sample string 7</CUSTOMER_CODE>
  <CUSTOMER_PO>sample string 6</CUSTOMER_PO>
  <CUSTOMER_PO_DATE>sample string 5</CUSTOMER_PO_DATE>
  <ERP_EXTERNAL_ID>sample string 1</ERP_EXTERNAL_ID>
  <MANUAL_SPA_ID>sample string 3</MANUAL_SPA_ID>
  <ORDERLINES>
    <OrderLine>
      <ORDERED_ITEM>sample string 2</ORDERED_ITEM>
      <QUANTITY>1</QUANTITY>
      <SPA_UNIT_PRICE>1</SPA_UNIT_PRICE>
    </OrderLine>
    <OrderLine>
      <ORDERED_ITEM>sample string 2</ORDERED_ITEM>
      <QUANTITY>1</QUANTITY>
      <SPA_UNIT_PRICE>1</SPA_UNIT_PRICE>
    </OrderLine>
  </ORDERLINES>
  <ORDER_TYPE>sample string 2</ORDER_TYPE>
  <PACKING_INSTRUCTIONS>sample string 11</PACKING_INSTRUCTIONS>
  <REGISTRY_CODE>sample string 9</REGISTRY_CODE>
  <SCHEDULE_SHIP_DATE>sample string 12</SCHEDULE_SHIP_DATE>
  <SHIPPING_INSTRUCTIONS>sample string 10</SHIPPING_INSTRUCTIONS>
  <SHIP_TO_SITE>sample string 4</SHIP_TO_SITE>
</Order>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.