HI Guys ,
I am creating line items by using an sandbox endpoint as per the doc with pay load
End Point :- POST :- sandbox/v3/merchants/MID/orders/OID/line_items/LID
payload :-
{
"note": "I want this Item For Free ",
"item": {
"id": "LID"
},
"unitQty": 12 // as per doc "unitQty": "int",
"unitQty": "12" // tried both none working
}
O/P:-
{
"id": "id",
"orderRef": {
"id": "OID"
},
"item": {
"id": "LID"
},
"name": "Gobi Sweet And Spicy",
"alternateName": "",
"price": 799,
"note": "I want this Item For Free ",
"printed": false,
"createdTime": 1481276640000,
"orderClientCreatedTime": 1481276640000,
"exchanged": false,
"refunded": false,
"isRevenue": true
}
But Not the "unitQty": 12 :-(
I cannot Understand what I am exactly Missing ? trying many things stringifying in the code parsing bla bla still not working
Could any help me with a suggestion or your experience on updating this Stuff Please .
Regards , Prasad.