Add products to order - celdotro/marketplace GitHub Wiki
- Add new products to an existing order
celmarket\Orders\OrdersUpdate
addProductsToOrder
- method: orders
- action: addProductsToOrder
- order = order's ID
- arrProducts = array containg the model of products to be added -> array
- (element din array) = the model a of product to be added
An object with the following attributes
- success = the operation was successful
- 1 produs a fost adaugat = successfully added one product
- X produse au fost adaugate = successfully added X products
https://github.com/celdotro/marketplace_examples/blob/master/Orders/7.addProductsToOrder.php
{
"request": {
"order": 1,
"arrProducts": [
"X"
]
},
"response": {
"success": 1
}
}