POST Api/invoice
Request Information
URI Parameters
None.
Body Parameters
ESPL_MODEL_ORDERS| Name | Description | Type | Additional information |
|---|---|---|---|
| sales_order_code | string |
None. |
|
| customer_uid | string |
None. |
|
| products | Collection of ESPL_MODEL_PRODUCTS |
None. |
Request Formats
application/json, text/json
Sample:
{
"sales_order_code": "sample string 1",
"customer_uid": "sample string 2",
"products": [
{
"product_sku": "sample string 1",
"qty": 2.1,
"batches": [
{
"batch": "sample string 1",
"qty": 2.1
},
{
"batch": "sample string 1",
"qty": 2.1
}
],
"packages": [
{
"qty": 1.1,
"count": 2,
"description": "sample string 3",
"batches": [
"sample string 1",
"sample string 2"
]
},
{
"qty": 1.1,
"count": 2,
"description": "sample string 3",
"batches": [
"sample string 1",
"sample string 2"
]
}
]
},
{
"product_sku": "sample string 1",
"qty": 2.1,
"batches": [
{
"batch": "sample string 1",
"qty": 2.1
},
{
"batch": "sample string 1",
"qty": 2.1
}
],
"packages": [
{
"qty": 1.1,
"count": 2,
"description": "sample string 3",
"batches": [
"sample string 1",
"sample string 2"
]
},
{
"qty": 1.1,
"count": 2,
"description": "sample string 3",
"batches": [
"sample string 1",
"sample string 2"
]
}
]
}
]
}
application/xml, text/xml
Sample:
<ESPL_MODEL_ORDERS xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ESPL_EPSPL_SAP_TELLY_INTEGRATION_API">
<customer_uid>sample string 2</customer_uid>
<products>
<ESPL_MODEL_PRODUCTS>
<batches>
<ESPL_MODEL_ORDERS_BATCHES>
<batch>sample string 1</batch>
<qty>2.1</qty>
</ESPL_MODEL_ORDERS_BATCHES>
<ESPL_MODEL_ORDERS_BATCHES>
<batch>sample string 1</batch>
<qty>2.1</qty>
</ESPL_MODEL_ORDERS_BATCHES>
</batches>
<packages>
<ESPL_MODEL_ORDERS_PACKAGES>
<batches xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:string>sample string 1</d6p1:string>
<d6p1:string>sample string 2</d6p1:string>
</batches>
<count>2</count>
<description>sample string 3</description>
<qty>1.1</qty>
</ESPL_MODEL_ORDERS_PACKAGES>
<ESPL_MODEL_ORDERS_PACKAGES>
<batches xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:string>sample string 1</d6p1:string>
<d6p1:string>sample string 2</d6p1:string>
</batches>
<count>2</count>
<description>sample string 3</description>
<qty>1.1</qty>
</ESPL_MODEL_ORDERS_PACKAGES>
</packages>
<product_sku>sample string 1</product_sku>
<qty>2.1</qty>
</ESPL_MODEL_PRODUCTS>
<ESPL_MODEL_PRODUCTS>
<batches>
<ESPL_MODEL_ORDERS_BATCHES>
<batch>sample string 1</batch>
<qty>2.1</qty>
</ESPL_MODEL_ORDERS_BATCHES>
<ESPL_MODEL_ORDERS_BATCHES>
<batch>sample string 1</batch>
<qty>2.1</qty>
</ESPL_MODEL_ORDERS_BATCHES>
</batches>
<packages>
<ESPL_MODEL_ORDERS_PACKAGES>
<batches xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:string>sample string 1</d6p1:string>
<d6p1:string>sample string 2</d6p1:string>
</batches>
<count>2</count>
<description>sample string 3</description>
<qty>1.1</qty>
</ESPL_MODEL_ORDERS_PACKAGES>
<ESPL_MODEL_ORDERS_PACKAGES>
<batches xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:string>sample string 1</d6p1:string>
<d6p1:string>sample string 2</d6p1:string>
</batches>
<count>2</count>
<description>sample string 3</description>
<qty>1.1</qty>
</ESPL_MODEL_ORDERS_PACKAGES>
</packages>
<product_sku>sample string 1</product_sku>
<qty>2.1</qty>
</ESPL_MODEL_PRODUCTS>
</products>
<sales_order_code>sample string 1</sales_order_code>
</ESPL_MODEL_ORDERS>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |