Contents
Retrieving preparation methods
Preparation methods can be retrieved through the preparationMethodList of an article. This might look like this:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
[product] => { [productNumber] => 204, [articleList] => [ [article] => { [articleNumber] => 240, [description] => "PATAT", [priceIncl] => 250, [preparationMethodList] => [ [preparationMethod] => { [articleNumber] => 298, [description] => "MAYO", [priceIncl] => 60, [groupNumber] => 1, [groupName] => "SAUS KEUZE" }, [preparationMethod] => { [articleNumber] => 299, [description] => "SPECIAAL", [priceIncl] => 100, [groupNumber] => 1, [groupName] => "SAUS KEUZE" } ] } ] } |
Using preparation methods
To add preparation methods to a line, simply add the desired items to the preparationList of a line. This might look like this:
1 2 3 4 5 6 7 8 9 10 11 12 |
[order] => { [lineList] => [ [line] => { [articleNumber] => 240, [preparationMethodList] => [ [preparationMethod] => { [articleNumber] => 298, } ] } ] } |
Add a Text only preparation method
Its not required to use an article as a preparation method. If you just need a simple text line you only need to send te field text in de preparationMethod.
1 2 3 4 5 6 7 8 9 10 11 12 |
[order] => { [lineList] => [ [line] => { [articleNumber] => 240, [preparationMethodList] => [ [preparationMethod] => { [description] => "Speciaal" } ] } ] } |