Developer API UDAPI100500 - Error New User

Hi Team,

I’m a new user and this is my first order placement with Upstox.

Getting below error kindly please help on this. I believe something is not enable for my ID.

Reason: Server Error
HTTP response headers: HTTPHeaderDict({‘Date’: ‘Mon, 18 Nov 2024 03:56:38 GMT’, ‘Content-Type’: ‘application/json’, ‘Transfer-Encoding’: ‘chunked’, ‘Connection’: ‘keep-alive’, ‘Vary’: ‘Origin, Access-Control-Request-Method, Access-Control-Request-Headers’, ‘message’: ‘request failed’, ‘requestId’: ‘d285c9df-3bc6-4c14-af7f-6e668133aced’, ‘X-Content-Type-Options’: ‘nosniff’, ‘X-XSS-Protection’: ‘1; mode=block’, ‘Cache-Control’: ‘no-cache, no-store, max-age=0, must-revalidate’, ‘Pragma’: ‘no-cache’, ‘Expires’: ‘0’, ‘Strict-Transport-Security’: ‘max-age=31536000 ; includeSubDomains’, ‘X-Frame-Options’: ‘DENY’})
HTTP response body: b’{“status”:“error”,“errors”:[{“errorCode”:“UDAPI100500”,“message”:“Something went wrong… please contact us”,“propertyPath”:null,“invalidValue”:null,“error_code”:“UDAPI100500”,“property_path”:null,“invalid_value”:null}]}’

Hi Team, Kindly please help on this.

@Sathish.sr Thanks for reaching out!

Could you please share your client ID along with the cURL request for the order you are attempting to execute? This will help us identify the issue more effectively.

You can also refer to the example code for placing an order here:

Hi Pradeep,

Please find the details below.

Im using Python SDK.

Client ID - 29CHRU

Im trying to sell Nifty Weekly Option.

Im trying to sell Options wiith proper hedging and required margin is in account.

CURL Equivalent to my Python request is given below.

#------------------------------
curl --location ‘https://api-hft.upstox.com/v2/order/place
–header ‘Content-Type: application/json’
–header ‘Accept: application/json’
–header ‘Authorization: Bearer {your_access_token}’
–data ‘{
“quantity”: 1,
“product”: “D”,
“validity”: “DAY”,
“price”: 0,
“tag”: “string”,
“instrument_token”: “NSE_FO|43314”,
“order_type”: “MARKET”,
“transaction_type”: “SELL”,
“disclosed_quantity”: 0,
“trigger_price”: 0,
“is_amo”: false
}’
#------------------------------

Thanks,
Sathish Kumar

Hi @Sathish.sr,

Your cURL request looks correct to me. Could you please try placing the order again?

Additionally, may I request you to share the exact time when you encountered the above error?

Thank you.