BO/CO ProductType API Error

{
    "symbol": "NSE:PEL-EQ",
    "qty": 5,
    "type": 1,
    "side": -1,
    "productType": "BO",
    "limitPrice": 630.5,
    "stopPrice": 0,
    "validity": "DAY",
    "disclosedQty": 0,
    "offlineOrder": false,
    "stopLoss": 5,
    "takeProfit": 3,
    "orderTag": "tag1"
}

Tried placing BO and CO orders by referring to API documentation. But get the below error. Please advice what is wrong with the order placement.


{
    "code": -50,
    "message": "productType must be one of the following: \"CNC\", \"MARGIN\", \"INTRADAY\"",
    "s": "error"
}

Hey @uYFXqWCr2o

Please do not use the ordertag when placing the CO BO orders there you wont face any issues

Abhishek,
Thanks for the quick response.
Tried the below but still getting the same error.
{
    "symbol": "NSE:PEL-EQ",
    "qty": 10,
    "type": 2,
    "side": -1,
    "productType": "BO",
    "limitPrice": 0,
    "stopPrice": 0,
    "validity": "DAY",
    "disclosedQty": 0,
    "offlineOrder": false,
    "stopLoss": 5,
    "takeProfit": 3,
    "orderTag": ""
}

{
    "code": -50,
    "message": "productType must be one of the following: \"CNC\", \"MARGIN\", \"INTRADAY\"",
    "s": "error"
}