POST api/erpcloud/documents/erpordertob2b/{codePartner}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
codePartner | string |
Required |
Body Parameters
Collection of ERP_OrderDTOName | Description | Type | Additional information |
---|---|---|---|
partner_cod_nv | string |
None. |
|
delegation_cod_nv | string |
None. |
|
document_id_i | integer |
None. |
|
bigmat_id_i | integer |
None. |
|
orderLines | Collection of ERP_OrderLineDTO |
None. |
Request Formats
application/json, text/json
Sample:
[ { "partner_cod_nv": "sample string 1", "delegation_cod_nv": "sample string 2", "document_id_i": 3, "bigmat_id_i": 1, "orderLines": [ { "bigmat_product_id_i": 1, "bigmat_variant_id_i": 1, "quantity_n": 2.0, "unit_price_n": 3.0, "price_n": 4.0, "iva_n": 5.0 }, { "bigmat_product_id_i": 1, "bigmat_variant_id_i": 1, "quantity_n": 2.0, "unit_price_n": 3.0, "price_n": 4.0, "iva_n": 5.0 } ] }, { "partner_cod_nv": "sample string 1", "delegation_cod_nv": "sample string 2", "document_id_i": 3, "bigmat_id_i": 1, "orderLines": [ { "bigmat_product_id_i": 1, "bigmat_variant_id_i": 1, "quantity_n": 2.0, "unit_price_n": 3.0, "price_n": 4.0, "iva_n": 5.0 }, { "bigmat_product_id_i": 1, "bigmat_variant_id_i": 1, "quantity_n": 2.0, "unit_price_n": 3.0, "price_n": 4.0, "iva_n": 5.0 } ] } ]
application/xml, text/xml
Sample:
<ArrayOfERP_OrderDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DataAccess.Application.DTOS"> <ERP_OrderDTO> <bigmat_id_i>1</bigmat_id_i> <delegation_cod_nv>sample string 2</delegation_cod_nv> <document_id_i>3</document_id_i> <orderLines> <ERP_OrderLineDTO> <bigmat_product_id_i>1</bigmat_product_id_i> <bigmat_variant_id_i>1</bigmat_variant_id_i> <iva_n>5</iva_n> <price_n>4</price_n> <quantity_n>2</quantity_n> <unit_price_n>3</unit_price_n> </ERP_OrderLineDTO> <ERP_OrderLineDTO> <bigmat_product_id_i>1</bigmat_product_id_i> <bigmat_variant_id_i>1</bigmat_variant_id_i> <iva_n>5</iva_n> <price_n>4</price_n> <quantity_n>2</quantity_n> <unit_price_n>3</unit_price_n> </ERP_OrderLineDTO> </orderLines> <partner_cod_nv>sample string 1</partner_cod_nv> </ERP_OrderDTO> <ERP_OrderDTO> <bigmat_id_i>1</bigmat_id_i> <delegation_cod_nv>sample string 2</delegation_cod_nv> <document_id_i>3</document_id_i> <orderLines> <ERP_OrderLineDTO> <bigmat_product_id_i>1</bigmat_product_id_i> <bigmat_variant_id_i>1</bigmat_variant_id_i> <iva_n>5</iva_n> <price_n>4</price_n> <quantity_n>2</quantity_n> <unit_price_n>3</unit_price_n> </ERP_OrderLineDTO> <ERP_OrderLineDTO> <bigmat_product_id_i>1</bigmat_product_id_i> <bigmat_variant_id_i>1</bigmat_variant_id_i> <iva_n>5</iva_n> <price_n>4</price_n> <quantity_n>2</quantity_n> <unit_price_n>3</unit_price_n> </ERP_OrderLineDTO> </orderLines> <partner_cod_nv>sample string 1</partner_cod_nv> </ERP_OrderDTO> </ArrayOfERP_OrderDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.