Object Models Reference

Order Model

{ billingName:string,
shippingName: string,
msrp:number,
subtotal :number,
Discount: number,
coupon: number,
cod= number,
total:number,
shippingAddress:string (fullName,address1,address2,city,state,country,postal),
shippingPhone:string,
billingAddress:string (fullName,address1,address2,city,state,country,postal),
billingPhone: string,
State: string ( order.billing.address.state),
city:string (order.billing.address.city),
Country: string order.billing.address.country;
paymentMethod:string ( order.billing.paymentMethod.type),
couponCode :string,
tags: string';
Source:string,
Items:[
{
'id': string(x.product.customInfo.erpSku || x.product.sku),
'price': number(x.product.storePrice),
'quantity':number( x.quantity),
'waybill': string(x.waybill || ‘’),
'isConfirmed':boolean,
'isDelivered': boolean,
'isCancelled': boolean
}
]
id:string (order.numId)
}

Product Model :

{
"sku": "102",
"name": "Product Api 2 - New",
"type": "config-item",
"storePrice": 200,
"originalPrice": 200,
"active": true,
"quantity": 100,
"categories": [
{
"name": "Fashion & Accessories"
},
{
"name": "Analog"
},
{
"name": "Designer"
}
],
"thumbImg": "Screenshot from 2018-05-11 00-53-34.png",
"otherMedia": [
{
"url": "Screenshot from 2018-05-11 00-53-34.png"
},
{
"url": "Screenshot from 2018-05-11 00-53-34.png"
}
]
},