diff --git a/guides/m1x/api/soap/sales/salesOrderInvoice/sales_order_invoice.create.html b/guides/m1x/api/soap/sales/salesOrderInvoice/sales_order_invoice.create.html index c05af0ce787..fc187586573 100644 --- a/guides/m1x/api/soap/sales/salesOrderInvoice/sales_order_invoice.create.html +++ b/guides/m1x/api/soap/sales/salesOrderInvoice/sales_order_invoice.create.html @@ -122,7 +122,8 @@
Request Exampl $result = $client->call( $session, 'sales_order_invoice.create', - array('orderIncrementId' => '200000008', array('order_item_id' => '15', 'qty' => '1')) + array('orderIncrementId' => '200000008', array('15' => '1', '16' => '1')) + // orderItemIdQty Array is Keyed with Order Item ID, with Value of qty to invoice ); var_dump ($result); @@ -139,9 +140,10 @@
Request Exampl $sessionId = $proxy->login('apiUser', 'apiKey'); // TODO : change login and pwd if necessary //Create invoice for order -$qty = array( -    array('order_item_id' => '15', 'qty' => '1') -); + +// orderItemIdQty Array is Keyed with Order Item ID, with Value of qty to invoice +$qty = array('15' => '1', '16' => '1'); + $invoiceIncrementId = $proxy->salesOrderInvoiceCreate( $sessionID, '200000008', @@ -162,7 +164,7 @@