I am always getting 400 Bad request error on the endpoint:
https://developer.paytmmoney.com/orders/v1/cancel/regular
with valid token and content type headers and following request body:
{
“source”: “N”,
“txnType”: “S”,
“exchange”: “NSE”,
“segment”: “D”,
“product”: “M”,
“securityId”: “valid secId that was passed in original SELL order”,
“quantity”: 150,
“validity”: “DAY”,
“orderType”: “LMT”,
“price”: 39.9,
“offMktFlag”: false,
“mktType”: “NL”,
“orderNo”: “<PML Order No. - verified>”,
“serialNo”: 1,
“groupId”: “1”
}
Did it work for anybody? Can someone please validate if I am doing it correctly?