@@ -122,7 +122,8 @@ <h5><a name="sales_order_invoice.create-RequestExampleSOAPV1"></a>Request Exampl
122
122
$result = $client->call(
123
123
$session,
124
124
'sales_order_invoice.create',
125
- array('orderIncrementId' => '200000008', array('order_item_id' => '15', 'qty' => '1'))
125
+ array('orderIncrementId' => '200000008', array('15' => '1', '16' => '1'))
126
+ // orderItemIdQty Array is Keyed with Order Item ID, with Value of qty to invoice
126
127
);
127
128
var_dump ($result);
128
129
@@ -139,9 +140,10 @@ <h5><a name="sales_order_invoice.create-RequestExampleSOAPV2"></a>Request Exampl
139
140
$sessionId = $proxy->login('apiUser', 'apiKey'); // TODO : change login and pwd if necessary
140
141
141
142
//Create invoice for order
142
- $qty = array(
143
- array('order_item_id' => '15', 'qty' => '1')
144
- );
143
+
144
+ // orderItemIdQty Array is Keyed with Order Item ID, with Value of qty to invoice
145
+ $qty = array('15' => '1', '16' => '1');
146
+
145
147
$invoiceIncrementId = $proxy->salesOrderInvoiceCreate(
146
148
$sessionID,
147
149
'200000008',
@@ -162,7 +164,7 @@ <h5><a name="sales_order_invoice.create-RequestExampleSOAPV2%28WSIComplianceMode
162
164
163
165
$sessionId = $proxy->login((object)array('username' => 'apiUser', 'apiKey' => 'apiKey'));
164
166
165
- $result = $proxy->salesOrderInvoiceCreate((object)array('sessionId' => $sessionId->result, 'orderIncrementId' => '200000008', 'itemsQty' => array('order_item_id ' => 15, 'qty ' => '1'), 'comment' => null,
167
+ $result = $proxy->salesOrderInvoiceCreate((object)array('sessionId' => $sessionId->result, 'orderIncrementId' => '200000008', 'itemsQty' => array('15 ' => '1', '16 ' => '1'), 'comment' => null,
166
168
'email' => null,
167
169
'includeComment' => null
168
170
));
0 commit comments