Method allows to add products order to specific sale.
Usage URL: https://magboss.pl/api/addProductsToSale.json?key=YOURAPIKEY
Method allows to add products order to specific sale.
Usage URL: https://magboss.pl/api/addProductsToSale.json?key=YOURAPIKEY
(put those in your URL, e.g. ?id=123)
lang
string
Language of result. ISO 2 Letter Language Codes
Example: en, pl, cs
test
boolean (1 = true, 0 = false)
Enables a sandbox mode - no data will be written on the server.
(if any - change request to POST, put those in as form-data)
id | required
integer
Sale ID
products | required
object[]
Array with products IDs and quantities
id | required
integer
Product ID
qty | required
float
Quantity
messages
object
Generic success or failure message.
Click here for more information
success
string[]
List of success messages
danger
string[]
List of errors, blocks the operation
warning
string[]
List of warnings, does not block the operation
id=112087&
products[0][id]=45356&
products[0][qty]=1&
products[1][id]=47990&
products[1][qty]=1
Example URL: https://magboss.pl/api/addProductsToSale.json?key=YOURAPIKEY&lang=en
{
"messages": {
"success": [
"Products have been successfully merged with selected sale."
]
}
}
Example URL: https://magboss.pl/api/addProductsToSale.xml?key=YOURAPIKEY&lang=en
<?xml version="1.0" encoding="utf-8"?>
<root>
<messages>
<success>
<item>Products have been successfully merged with selected sale.</item>
</success>
</messages>
</root>