SL Order through Java SDK fails , but same request params through sandbox url is successful

Hi,

User id : 4DCL6A

Im placing a SL order after market Buy , but SL order fails with 400 error , i tried same request parameters on the sandbox URLs thru postman and it worked in sandbox but not in live.

Timezone is GMT+4 , 1.5 hours behind IST

2026-02-06 12:01:43.822 [virtual-149] DEBUG c.a.b.service.OrderPlacementService - Placing order class PlaceOrderV3Request {
quantity: 30
product: I
validity: DAY
price: 0.0
tag: AUTO_TRADE
slice: false
instrumentToken: NSE_FO|60242
orderType: SL-M
transactionType: SELL
disclosedQuantity: 0
triggerPrice: 505.65
isAmo: false
}
2026-02-06 12:01:43.893 [virtual-149] ERROR c.a.b.service.OrderPlacementService - Failed to place stop-loss order for user 1: Bad Request
com.upstox.ApiException: Bad Request
at com.upstox.ApiClient.handleResponse(ApiClient.java:971)
at com.upstox.ApiClient.execute(ApiClient.java:887)
at io.swagger.client.api.OrderApiV3.placeOrderWithHttpInfo(OrderApiV3.java:1011)
at io.swagger.client.api.OrderApiV3.placeOrder(OrderApiV3.java:997)
at com.avengers.bankniftyalgotrading.service.OrderPlacementService.placeStopLossOrder(OrderPlacementService.java:174)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:360)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:196)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:380)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:119)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:184)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:728)
at com.avengers.bankniftyalgotrading.service.OrderPlacementService$$SpringCGLIB$$0.placeStopLossOrder()
at com.avengers.bankniftyalgotrading.service.ExecutionService.executeForUser(ExecutionService.java:184)
at com.avengers.bankniftyalgotrading.service.ExecutionService.lambda$executeSignal$1(ExecutionService.java:85)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1814)
at java.base/java.util.concurrent.ThreadPerTaskExecutor$TaskRunner.run(ThreadPerTaskExecutor.java:291)
at java.base/java.lang.VirtualThread.run(VirtualThread.java:466)

hi @Mukesh_upstox / @Jyoti_Upstox /@Upstox / @shubham_upstox ,

Can someone please check this and respond.