POST Api/raw-material-entries

Request Information

URI Parameters

None.

Body Parameters

ESPL_MODEL_RAWMATERIALS
NameDescriptionTypeAdditional information
code

string

None.

qty

decimal number

None.

qty_accepted

decimal number

None.

qty_rejected

decimal number

None.

acceptance_reason

string

None.

rejection_reason

string

None.

unit

string

None.

warehouse_uid

string

None.

warehouse_uid_scap

string

None.

approved_batches

Collection of ESPL_MODEL_BATCHES

None.

rejected_batches

Collection of ESPL_MODEL_BATCHES

None.

Request Formats

application/json, text/json

Sample:
{
  "code": "sample string 1",
  "qty": 2.1,
  "qty_accepted": 3.1,
  "qty_rejected": 4.1,
  "acceptance_reason": "sample string 5",
  "rejection_reason": "sample string 6",
  "unit": "sample string 7",
  "warehouse_uid": "sample string 8",
  "warehouse_uid_scap": "sample string 9",
  "approved_batches": [
    {
      "batch_number": "sample string 1",
      "qty": 2.1,
      "reason": "sample string 3"
    },
    {
      "batch_number": "sample string 1",
      "qty": 2.1,
      "reason": "sample string 3"
    }
  ],
  "rejected_batches": [
    {
      "batch_number": "sample string 1",
      "qty": 2.1,
      "reason": "sample string 3"
    },
    {
      "batch_number": "sample string 1",
      "qty": 2.1,
      "reason": "sample string 3"
    }
  ]
}

application/xml, text/xml

Sample:
<ESPL_MODEL_RAWMATERIALS xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ESPL_EPSPL_SAP_TELLY_INTEGRATION_API">
  <acceptance_reason>sample string 5</acceptance_reason>
  <approved_batches>
    <ESPL_MODEL_BATCHES>
      <batch_number>sample string 1</batch_number>
      <qty>2.1</qty>
      <reason>sample string 3</reason>
    </ESPL_MODEL_BATCHES>
    <ESPL_MODEL_BATCHES>
      <batch_number>sample string 1</batch_number>
      <qty>2.1</qty>
      <reason>sample string 3</reason>
    </ESPL_MODEL_BATCHES>
  </approved_batches>
  <code>sample string 1</code>
  <customer_uid>2.1</customer_uid>
  <qty_accepted>3.1</qty_accepted>
  <qty_rejected>4.1</qty_rejected>
  <rejected_batches>
    <ESPL_MODEL_BATCHES>
      <batch_number>sample string 1</batch_number>
      <qty>2.1</qty>
      <reason>sample string 3</reason>
    </ESPL_MODEL_BATCHES>
    <ESPL_MODEL_BATCHES>
      <batch_number>sample string 1</batch_number>
      <qty>2.1</qty>
      <reason>sample string 3</reason>
    </ESPL_MODEL_BATCHES>
  </rejected_batches>
  <rejection_reason>sample string 6</rejection_reason>
  <unit>sample string 7</unit>
  <warehouse_uid>sample string 8</warehouse_uid>
  <warehouse_uid_scap>sample string 9</warehouse_uid_scap>
</ESPL_MODEL_RAWMATERIALS>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.