Skip to main content

CREATE ORDERCART API

This API allows you to create a new order cart containing multiple scrip orders.

Endpoint: POST /transactional/v1/ordercart

🔑 Header Parameters

HeaderTypeDescriptionExample
Content-TypestringSpecifies the media type of the requestapplication/json
AuthorizationstringBearer token for authenticated requests{{access_token}}

📑 Request Body Parameters

FieldTypeRequiredDescriptionExample / Enum
ordercartNamestringYesName identifier for the order cart"CART02"
ordersstringYesJSON-stringified array of order objectsRefer below
versionstringYesVersion of the ordercart schema"1"
createdBystringYesUser ID of the creator"DEMO100"
modifiedBystringYesUser ID of the last modifier"DEMO100"
executedNoTimeintegerYesCount of how many times the cart has been executed0

📘 Orders Array — Order Object Fields

Each entry in the orders array contains a scripDetail object and order parameters.

FieldTypeRequiredDescriptionExample / Enum
scripDetailobjectYesInstrument details for the orderRefer below
TransactionTypestringYesOrder side"BUY", "SELL"
OrderTypestringYesType of order"RL-MKT"
QuantityintegerYesNumber of units to transact1
PricestringYesPrice per unit"0.00"
ProductTypestringYesProduct type of the order"DELIVERY"
TriggerPricenumberNoTrigger price for SL orders0
is_amobooleanNoAMO (After Market Order) flagfalse
disclosed_quantityintegerNoQuantity disclosed to the market0
validitystringNoOrder validity"DAY", "EOSESS"

📘 scripDetail Object Fields

FieldTypeRequiredDescriptionExample
symbolstringYesInstrument trading symbol"ACC"
_SeriesstringYesSeries of the instrument"EQ", "A"
_InstrumentNamestringYesInstrument category name"EQUITIES"
_ExchangeNamestringYesExchange where the instrument is listed"NSE", "BSE"
_ExpiryDatestringNoExpiry date for F&O instruments"NA"
_OptionTypestringNoOption type for derivatives"NA", "CE", "PE"
_StrikePricestringNoStrike price for options"NA"
MarketLotintegerYesMarket lot size1
PriceTicknumberYesMinimum price movement10
SecurityDescstringYesFull security description"ACC LIMITED"
DecimalLocatorintegerYesDecimal precision indicator100
ISINstringYesISIN code of the instrument"INE012A01025"
scripDetobjectYesToken and segment detailsRefer below

📘 scripDet Object Fields

FieldTypeRequiredDescriptionExample
tokenintegerYesExchange token of the instrument22
_MktSegIdintegerYesMarket segment ID1
_MapMktSegIdintegerYesMapped market segment ID1

🟢 Success Response - 200 OK

Content-Type: application/json

FieldTypeDescriptionExample
statusstringStatus of API call"success"
codestringResponse code to user request"s-101"
messagestringSuccess message"Order cart created successfully"
dataarrayArray of created cart entriesRefer to Data Object Fields

📦 Data Object Fields

FieldTypeDescriptionExample
codeintegerHTTP status code for this cart entry200
ordercartIdstringSystem-generated order cart identifier"2663 1D"
errorstringError message if any; empty on success""