ImportProduct
Used when importing orders.
Fields
Field | Description |
---|---|
bundletickets | List of tickets that belong to this bundle. Example value:[ { "id": 1234, "tickettypeid": 23 }, { "id": 1235, "tickettypeid": 23 } ] |
overrideprice bool | If boolean is set to true, the price field is used (even if set to 0) to determine the price for this product Example value:true |
price decimal | Product price, will always be used if larger than 0. Example value:24.990000 |
productholderid int | Indicate which contact is the holder of this product. Currently only used with bundles. Example value:22 |
productid int (required) | The id for the product you want to add. Example value:1 |
properties map<string, string> | The property values for the product. Example value:{ "colour": "green", "size": "M" } |
voucheramount decimal | If this product references a voucher, set the amount to reserve for this voucher. Example value:20.000000 |
vouchercode string | If this product references a voucher, set the code for the voucher that will be created. If not set, the code will be generated. Example value:"1234567890" |
voucherexpiryts timestamp | If this product references a voucher, set the expiry timestamp for the vouchercode that will be created. If not set, the default timestamp configured in the voucher will be set. Example value:"2014-09-26 15:24:36" |
Example
1{
2 "bundletickets": [
3 {
4 "id": 1234,
5 "tickettypeid": 23
6 },
7 {
8 "id": 1235,
9 "tickettypeid": 23
10 }
11 ],
12 "overrideprice": true,
13 "price": 24.990000,
14 "productholderid": 22,
15 "productid": 1,
16 "properties": {
17 "colour": "green",
18 "size": "M"
19 },
20 "voucheramount": 20.000000,
21 "vouchercode": "1234567890",
22 "voucherexpiryts": "2014-09-26 15:24:36"
23}