I have created order using clover sdk and I have applied the order level discount to the order using orderConnector. While setting the discount I set the discounts.discount reference the the Discount object . While getting the order from clover SDK I am getting discount.discount object.
"discounts": {
"elements": [
{
"amount": -500,
"id": "WY9DXWPB46VNM",
"name": "test Order Discount",
"discount": {
"id": "com.test.discount"
}
}
]
}
But when I try to get the same order from the REST client I am not getting that Discount.discount object.
"discounts": {
"elements": [ {
"id": "WY9DXWPB46VNM",
"orderRef": {
"id": "6FRX6WHY9QZV6"
},
"name": "test Order Discount",
"amount": -500
}
]
},
I have tried using expanders to the REST request like discounts, discounts.discount.