On this page

Every one of the 63 endpoints takes the same shape. Learn it once and the only thing that changes between calls is the path and the contents of one JSON object.

The shape

POST /NorenWClientAPI/PlaceOrder HTTP/1.1the method is always POST, on every endpointHost: api.infinn.inthe only host; HTTPS onlyContent-Type: text/plainapplication/json also worksAuthorization: Bearer <access_token>required on every endpoint but GenAcsTokjData={"uid":"IN001","exch":"NSE","tsym":"RELIANCE-EQ"}a form field called jData, whose value is a JSON stringblank line — headers end, body begins
Figure 1. Every Infinn request. The method, host and content type never change; the path and the jData contents do.
The template
POST /NorenWClientAPI/<EndpointName> HTTP/1.1
Host: api.infinn.in
Authorization: Bearer <access_token>
Content-Type: text/plain

jData=<a JSON object, as a string>

Four rules that apply to everything

1. The method is always POST

Including for endpoints that only read. Order Book fetches data and is still a POST. A GET returns 405 Method Not Allowed.

This is unusual, and it has a practical consequence: you cannot link to an API call, bookmark one, or test one by pasting a URL into a browser.

2. The content type is text/plain

Not application/json - even though the body contains JSON. Not application/x-www-form-urlencoded - even though the body is a form field.

Many HTTP clients set Content-Type for you when you hand them an object, and will set it to something Infinn rejects. Set it explicitly.

3. The body is one form field called jData

The literal characters jData=, followed by a JSON object serialised to a string. Not a JSON document; not a multi-field form. One field, one value.

4. Every endpoint uses the same path prefix

All 58 endpoints live under /NorenWClientAPI/, including Get Basket Optimal Sequence.

Why the body looks like that

Reading the body

jData={"uid":"IN001"} is two things glued together.

jData= is a label, like writing "Name:" on a form. Everything after the equals sign is the value.

The value happens to be JSON. So you are sending a form with one field, whose contents are a small structured document.

How you authenticate

Every request carries one form field, jData, with a JSON payload, plus the header Authorization: Bearer <token>. Get the token through the OAuth login; it is the only login method.

Building the body correctly

Serialise with your language's JSON library and prepend the prefix. Never build the string by hand - a symbol like M&M or a remark containing a quote will break it.

Python
import json

payload = {
  "uid": "IN001",
  "exch": "NSE",
  "tsym": "RELIANCE-EQ",
}

body = "jData=" + json.dumps(payload)
# jData={"uid": "IN001", "exch": "NSE", "tsym": "RELIANCE-EQ"}

# Pass it as `data=`, NOT as `json=`. Using json= would set the content type
# to application/json and send a bare object with no jData prefix.
# requests.post(url, headers=..., data=body)

Everything is a string

Quantities, prices and trigger levels all go on the wire as JSON strings, not numbers. This is how every example in the API specification sends them.

Request
Values quoted
{
"qty": "1",
"prc": "1402.30",
"trgprc": "0"
}
Error
Values as JSON numbers
{
"qty": 1,
"prc": 1402.30,
"trgprc": 0
}
This bites typed languages hardest

If you model an order as a struct with int qty and decimal prc, your serialiser will emit numbers and the call will be rejected with the unhelpful Error Occurred : 2 "invalid input".

Keep the wire model as strings, and convert at the edges of your own code. The C# sample above uses Dictionary<string, string> for exactly this reason.

Omitting optional fields

An optional field you are not using should be left out entirely, not sent as an empty string.

amo is the clearest example

The API specification states that the message Invalid AMO appears "if the amo field is not sent with a Yes value", and adds: "If amo is not required, do not send this field."

So "amo": "Yes" is valid, omitting amo is valid, and "amo": "" or "amo": "No" risks a rejection.

If you build the payload from a struct, make sure unset fields are dropped rather than serialised as empty.

Python
# Build the payload from only what is actually set.
order = {
  "uid": UID,
  "actid": UID,
  "exch": "NSE",
  "tsym": "RELIANCE-EQ",
  "qty": "1",
  "prc": "1000",
  "prd": "C",
  "trantype": "B",
  "prctyp": "LMT",
  "ret": "DAY",
}

if is_after_market:
  order["amo"] = "Yes"      # only ever added when true

# A general guard, if your payload comes from somewhere less tidy:
order = {k: v for k, v in order.items() if v not in (None, "")}

Symbols with special characters

A symbol that contains &, such as M&M-EQ, must be URL-encoded inside the JSON value before you build the body. In Python use urllib.parse.quote_plus(tsym); in JavaScript use encodeURIComponent(tsym). So M&M becomes M%26M and the body is jData={"uid":"IN001","exch":"NSE","stext":"M%26M"}.

Tested on the live API (16 Oct 2026): a raw & in the body, or URL-encoding the whole jData value, both return HTTP 400. Encode only the field value.

Headers in full

HeaderRequiredValue
Authorizationrequired on 62 of 63Bearer <access_token>. Only GenAcsTok is exempt, since it is what produces a token.
Content-Typerequiredtext/plain or application/json. Both work; the body is always jData=<JSON>.
Hostautomaticapi.infinn.in. Your HTTP client sets this.
Content-LengthautomaticSet by your HTTP client.
Any version headernot usedInfinn has no API version header and no version in the path, unlike some other broker APIs that require a version header.
No API version header

Unlike some other broker APIs, which require a version header, Infinn has no version header and no version in the path. There is one version of the API, and the only published changes are in the endpoints themselves.

A request that is correct in every respect

Copy, replace two values, run
curl --request POST \
--url 'https://api.infinn.in/NorenWClientAPI/SearchScrip' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: text/plain' \
--data 'jData={"uid":"IN001","stext":"RELIANCE","exch":"NSE"}'

Next

Esc
↑↓ navigate↵ openEsc close/ to search