POST Api/customer/invoice

Request Information

URI Parameters

None.

Body Parameters

ESPL_MODEL_SALES_INVOICE
NameDescriptionTypeAdditional information
customer_uid

string

None.

sales_orders

Collection of ESPL_MODEL_ORDER_DETAILS

None.

Request Formats

application/json, text/json

Sample:
{
  "customer_uid": "sample string 1",
  "sales_orders": [
    {
      "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"
              ]
            }
          ]
        }
      ]
    },
    {
      "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_SALES_INVOICE 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 1</customer_uid>
  <sales_orders>
    <ESPL_MODEL_ORDER_DETAILS>
      <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:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                <d8p1:string>sample string 1</d8p1:string>
                <d8p1:string>sample string 2</d8p1:string>
              </batches>
              <count>2</count>
              <description>sample string 3</description>
              <qty>1.1</qty>
            </ESPL_MODEL_ORDERS_PACKAGES>
            <ESPL_MODEL_ORDERS_PACKAGES>
              <batches xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                <d8p1:string>sample string 1</d8p1:string>
                <d8p1:string>sample string 2</d8p1: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:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                <d8p1:string>sample string 1</d8p1:string>
                <d8p1:string>sample string 2</d8p1:string>
              </batches>
              <count>2</count>
              <description>sample string 3</description>
              <qty>1.1</qty>
            </ESPL_MODEL_ORDERS_PACKAGES>
            <ESPL_MODEL_ORDERS_PACKAGES>
              <batches xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                <d8p1:string>sample string 1</d8p1:string>
                <d8p1:string>sample string 2</d8p1: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_ORDER_DETAILS>
    <ESPL_MODEL_ORDER_DETAILS>
      <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:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                <d8p1:string>sample string 1</d8p1:string>
                <d8p1:string>sample string 2</d8p1:string>
              </batches>
              <count>2</count>
              <description>sample string 3</description>
              <qty>1.1</qty>
            </ESPL_MODEL_ORDERS_PACKAGES>
            <ESPL_MODEL_ORDERS_PACKAGES>
              <batches xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                <d8p1:string>sample string 1</d8p1:string>
                <d8p1:string>sample string 2</d8p1: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:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                <d8p1:string>sample string 1</d8p1:string>
                <d8p1:string>sample string 2</d8p1:string>
              </batches>
              <count>2</count>
              <description>sample string 3</description>
              <qty>1.1</qty>
            </ESPL_MODEL_ORDERS_PACKAGES>
            <ESPL_MODEL_ORDERS_PACKAGES>
              <batches xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                <d8p1:string>sample string 1</d8p1:string>
                <d8p1:string>sample string 2</d8p1: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_ORDER_DETAILS>
  </sales_orders>
</ESPL_MODEL_SALES_INVOICE>

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.