APi File Structures
APi File Structures
Introduction .................................................................................................................................................. 6
WEB SERVICE LOGIN MESSAGE STRUCTURE ................................................................................................ 8
Web Service Authentication Request ....................................................................................................... 8
Web Service Authentication Request Response....................................................................................... 8
Additional Details ...................................................................................................................................... 8
Web Service Authentication Error ............................................................................................................ 9
ORDER ENTRY MESSAGE STRUCTURE ......................................................................................................... 10
Web Service Order Entry Request .......................................................................................................... 10
Web Service Order Entry Request Response .......................................................................................... 12
SIP MESSAGE STRUCTURE ........................................................................................................................... 13
Web Service SIP Request ........................................................................................................................ 13
Web Service SIP Request Response ........................................................................................................ 15
XSIP/ISIP REQUEST MESSAGE STRUCTURE ................................................................................................. 16
Web Service XSIP/ISIP Request ............................................................................................................... 16
Web Service XSIP/ISIP Request Response .............................................................................................. 18
SPREAD ORDER REQUEST MESSAGE STRUCTURE (Overnight) ................................................................... 19
Web Service SPREAD Order Request (Overnight) ................................................................................... 19
Web Service SPREAD Order Request Response (Overnight) .................................................................. 21
SWITCH ORDER REQUEST MESSAGE STRUCTURE ...................................................................................... 22
Web Service SWITCH Order Request ...................................................................................................... 22
Web Service SWITCH Order Request Response...................................................................................... 24
MUTUAL FUND ADDITIONAL SERVICES AUTHENTICATION MESSAGE STRUCTURE ................................... 26
MUTUAL FUND Additional Services Login Request ................................................................................ 27
MUTUAL FUND Additional Services Login Request Response ................................................................ 27
Notes ................................................................................................................................................... 27
MUTUAL FUND ADDITIONAL SERVICES MESSAGE STRUCTURE.................................................................. 28
BSE StAR MF Mutual Fund Platform provides Web Services based Order routing services and Additional
Services for all Mutual Fund Intermediaries (MFIs)/Mutual Fund Distributors (MFDs) using third party
vendor solutions and/or in-house developed trading applications over the Internet
The Web Service through which order entry and response can be facilitated is available at.
http://bsestarmfdemo.bseindia.com/MFOrderEntry/MFOrder.svc
1) Login Entry
2) Login Response
3) Normal Order Entry
4) Normal Order Entry Response
5) SIP Order Entry
6) SIP Order Entry Response
7) X-SIP Order Entry
8) X-SIP Order Entry Response
9) Spread Order Entry (Overnight)
10) Spread Order Entry Response (Overnight)
11) Switch Order Entry
12) Switch Order Entry Response
Parameter
Name Type Length Description Sample Values Mandatory
User ID Varchar 5 Login ID for Web Service 0123 mandatory
Password Varchar 20 Password for the Login ID mf@abc mandatory
Random Alphanumeric code
Pass Key Varchar 10 (no special characters abcdef1234 mandatory
Additional Details
1. Member has to be Authenticated before sending any messages
2. Pass Key Validity can be Time based or One Time.
3. Member will have to enter the Web Service ID and password provided to them with a pass key (
Alpha numeric with no special characters ) each time they login.
4. Pass key can be different each time they login
5. Once user provides all the above / required details and submits it the Exchange, a response code
will be sent to the member.
6. If the login is successful then response code “100” will be sent and also an encrypted password will
be sent to the member.
7. If the login is not successful then response code “101” will be sent.
8. This encrypted password will be unique each time the member logins into BSE web service.
9. Member has to use this encrypted password whenever they punches the order.
Unique
reference
Unique Reference number as given
number varchar 19 in the request YYYYMMDD<usercode>000001
BSE order
number will be
Order number bigint 8 given in this field
User ID as given
UserID bigint 5 by BSE
Member code as
MemberId varchar 20 given by BSE
ClientCode varchar 20 Client Code
Bse Response
BSE remarks varchar 1000 Return remarks
Order success
Success flag varchar 1 flag
Parameter
Name Type Length Description Sample values
Transaction Transaction Code as
code varchar 3 given in the request NEW/CXL
Unique reference
Unique reference number as given in the
number varchar 19 request YYYYMMDD<usercode>000001
MemberId varchar 20 BSE member code
ClientCode varchar 20 BSE client code
UserId bigint 5 user id
in case new XSIP, BSE
XSIP registration will
XSIP REG_ID bigint 10 be populated.
IPAdd varchar 20
Bse Response Return
BSE remarks varchar 1000 remarks
Parameter
Name Type Length Description Sample values Mandatory
New Spread Order or
Transaction Cancellation of
code varchar 3 Spread Order NEW mandatory
Unique reference
number from the
member. Number
can be incremental
for each
order(000001,
Unique 000002,….). The
referance number will be reset
number varchar 19 the next day. YYYYMMDD<usercode>000001 mandatory
BSE unique order
number, for a new
order this field will be
blank and incase of
modification and
cancellation the order
number has to be
OrderId bigint 8 given
user ID which will be
UserId bigint 5 given by BSE mandatory
member code given
MemberId varchar 20 by BSE mandatory
ClientCode varchar 20 client code mandatory
SchemeCd varchar 20 BSE scheme code mandatory
type of transaction
i.e. purchase or
BuySell varchar 1 redemption P/R mandatory
type of buy/sell type
BuySellType varchar 10 i.e. fresh or additional FRESH/ADDITIONAL mandatory
DPTxn varchar 10 CDSL/NSDL/PHYSICAL C/N/P mandatory
Purchase
amount money 14 purchase amount
Redemption
amount money 14 redemtion amount
Param2 varchar 10
Param3 varchar 10
Unique
referance
number as
Unique referance given in the
number varchar 19 request YYYYMMDD<usercode>000001
BSE order
number will
be given in
OrderId bigint 8 this field
user ID which
will be given
UserId bigint 5 by BSE
member
code given
MemberId varchar 20 by BSE
ClientCode varchar 20 client code
BSE return
success flag varchar 1 remarks
order success
BSE remarks varchar 1000 flag
Parameter
Name Type LengthDescription Sample values Mandatory
New Switch Order
Transaction or Cancellation of
code varchar 3 Switch Order NEW mandatory
Unique reference
number from the
member. Number
can be incremental
for each
order(000001,
Unique 000002,….). The
referance number will be YYYYMMDD<usercode>0000
number varchar 19 reset the next day. 01 mandatory
OrderID bigint 8
user ID which will
UserID bigint 5 be given by BSE mandatory
member code
MemberId varchar 20 given by BSE mandatory
ClientCode varchar 20 client code mandatory
from
scheme
code varchar 20 BSE scheme code mandatory
to scheme
code varchar 21 BSE scheme code mandatory
BuySell varchar 2 switchout/switchin SO/SI mandatory
type of buy/sell
BuySellTyp type i.e. fresh or
e varchar 10 additional FRESH/ADDITIONAL mandatory
CDSL/NSDL/PHYSIC
DPTxn varchar 10 AL C/N/P mandatory
switch
amount money 14 switch amount
switch units money 8 switch units
all units flag varchar 1 all units flag Y/N mandatory
Unique referance
Unique referance number as given
number varchar 19 in the request YYYYMMDD<usercode>000001
OrderID bigint 8
User ID which will
UserID bigint 5 be given by BSE
member code
MemberId varchar 20 given by BSE
ClientCode varchar 20 Client code
BSE return
Success flag varchar 1 remarks
Bse remarks varchar 1000 order success flag
In Addition to the Existing Order Routing Services additional Services are available through Web Services
for the BSE StAR MF system for the Mutual Fund Platform
The Web Service through which Additional services request and response can be facilitated is available
at.
URL: http://bsestarmfdemo.bseindia.com/MFUploadService/MFUploadService.svc
Request parameters
Notes
Notes
FATCA UPLOAD
Pipe Separated Values as per Section: CLIENT FATCA REPORT UPLOAD of the BSE StAR MF File Structure
Document/ Web File Structure Document
MANDATE REGISTRATION
XSIP/ISIP Mandate: Member Type: MFI/MFD
Mandatory/Non
Mandatory Fields
Parameters TYPE Length Sample
MFD MFI
STP
Parameters Type Length Sample
Client Code Varchar 10
From Bse Scheme
Code Varchar 20
To Bse Scheme Code Varchar 20
SWP
Parameters Type Length Sample
Client Code Varchar 10
Bse Scheme Code Varchar 20
Transaction Mode Varchar 1 D- Demat, P- Physical
Folio Number Varchar 15
Internal Ref Number Varchar 10
Start Date Date 10
Number Of
Withdrawls Int 8
Frequency Type Varchar 20 Weekly / Monthly / Quarterly
Installment Amount Numeric 25,3
Installment Units Numeric 25,3
First Order Today Varchar 1 Y/N
Sub Broker Code Varchar 15
EUIN Decleration Varchar 1 Y/N
EUIN Number Varchar 7
Remarks Varchar 100
Sub Broker - Arn Varchar 20
MANDATE STATUS
Parameters Type Length Sample
Member code varchar 10
Client code varchar 10
Mandate ID varchar 15
The Mutual Fund Image Upload Web Service is available to upload the Image as per format which has
been provided in the Exchange Notice for the Members.
The Web Service through which Image Upload Web services request and response can be facilitated is
available at.
URL: http://bsestarmfdemo.bseindia.com/StarMFFileUploadService/StarMFFileUploadService.svc
Request parameters
GetPassword
A. Rest
a. Request parameter In Rest
: {"UserId":"9999901","MemberId":"99999","Password":"@1234
5"}
b. Response :
: {"Filler":null,"ResponseString":"wDNn3SYDFo5xVDKIMeBhZxpiFr
n++A8JbTarS\/5e3ogmBX7vJPGDtA==","Status":"100"}
B. SOAP
a. Request Parameter In SOAP “ : PasswordRequest(dataContart)
b. Response : Response (dataContart)
Notes
A. Rest
a. Request parameter In Rest : {“Flag”:”UCC”, “UserId” : “123”,
“EncryptedPassword”= “sfgdfdfgsdfsd”, “MemberCode”= “123”,
“ClientCode”:”ABC”,”“FileName”:”abc.tiff”, “DocumentType”=””,
“pFileBytes”:””, “Filler1”:”Null”, “Filler2”:,”NULL”}
b. Response : : {"Filler":null,"ResponseString":"File Uploaded
Sucessfully","Status":"100"}
B. SOAP
a. Request Parameter In SOAP “ : FileData(dataContart)
b. Response : Response (dataContart)
The Image should contain the Account Opening Details, Further details are provided in the
Notice.
URL:http://www.bseindia.com/markets/MarketInfo/DispNewNoticesCirculars.aspx?page=20160
606-8
Notice Details
In order to provide ease to MFIs/MFDs, the Exchange is pleased to provide the following
facilities:
MFIs/MFDs are given the provision to download Auto Filled Account Opening Form (AOF) in
pdf. The details shall be taken from the Client Master and shall be prepopulated in the AOF
Form.
The provision to download Auto Filled Account Opening Form (AOF) in pdf format is available
on BSE StAR MF Platform in the following link :
The provision to image upload is available on BSE StAR MF Platform in the following link :
The Client Code to be entered and the other details such as Client Name and Pan Number shall
be auto populated.
Eg. Member code is 10000, Client code is 123456 and Date 3rd June 2016
The Report for all the images uploaded is available in the following link :
In Addition to the Existing Payment Gateway Services the exchange provides the facility in which the
member/ vendor allow his Clients to directly select the orders and Bank Details and access the Bank
Payment Gateway from their application itself.
The Web Service through which Direct Bank Payment Gateway request and response can be facilitated is
available at.
URL: http://bsestarmfdemo.bseindia.com/StarMFPaymentGatewayService/StarMFPaymentGatewaySer
vice.svc
Description:
- Login details:
Login id
Member id
Password
Passkey
- Order\payment details
Member code
Client code
Mode of payment
Bank ID
Account number
IFSC
Order number(s)
Total amount
Logout url
Plain Text:
Member code| client code| mode of payment|Bank ID| account number| IFSC| order number1, order
number 2, order number 3|logout URL
JSON:
Mode of payment = “”
Bank id = “”
Account number = “”
IFSC = “”
Logout URL = “”
Request parameters
Notes
ERROR CODES
PARAMETERS DESCRIPTION
when user passes values other than "DIRECT/NODAL" in
INVALID PAYMENT MODE mode column
when user passes wrong encrypted password or when user
passes the encrypted password which was generated for last
PASSWORD EXPIRED session
INVALID MEMBER CODE when user passes wrong member code
INVALID CLIENT CODE when user passes wrong client code
when user passes wrong account number i.e. the same is not
INVALID CLIENT ACCOUNT NUMBER match with client master
SELECT AT LEAST ONE ORDER when user doesn't select any order number for payment
when user passes the wrong order number or that order
number that is not associated to client for which the payment
INVALID ORDER NUMBER has to be initiated
The Mutual Fund Child Order Web Service is available to fetch the orders details generated as
installments for the SIP/XSIP/ISIP/STP/SWP order types using the Child Order Service for the Members.
The Web Service through which Child Order Web services request and response can be facilitated is
available at.
URL: http://bsestarmfdemo.bseindia.com/StarMFWebService/StarMFWebService.svc
Request parameters
GetPassword
Notes
http://bsestarmfdemo.bseindia.com/
You can create your clients after logging in to the StAR MF Website.
https://www.bsestarmf.in/BSE%20StARMF%20File%20Structures.pdf
If requested UAT Environment credentials can be created and provided for IML /Web Service
GET PASSWORD
ERROR MESSAGES DESCRIPTION
USER ID SHOULD NOT BE BLANK Blank value in user Id field
MEMBER ID SHOULD NOT BE BLANK Blank value in member Id field
PASSWORD SHOULD NOT BE BLANK Blank value in password field
PASSKEY SHOULD NOT BE BLANK Blank value in passkey field
USER IS DISABLED. CONTACT ADMIN User is blocked or disabled
YOU HAVE EXCEEDED MAXIMUM LOGIN
ATTEMPTS. CONTACT ADMIN User has entered wrong password more than 5 times
INVALID ACCOUNT INFORMATION Incorrect Login details
INVALID USER ID Incorrect Login ID
THE MEMBER IS SUSPENDED. CONTACT
ADMIN when the given member is blocked or inactive
THE BRANCH IS SUSPENDED. CONTACT
ADMIN when the given member branch is blocked or inactive]
ACCESS TEMPORARILY SUSPENDED. KINDLY
BEAR WITH US when forced login is "YES"
PASSWORD EXPIRED when the user password has expired
USER NOT EXISTS when user doesn't pass proper login details
Revision 1.8
Revision 1.7
Revision 1.6
3. Mandate (Single Mandate Registration Upload for MFI & MFD and XSIP/ISIP)
Revision 1.5
4. CKYC UPLOAD
Revision 1.4
Revision 1.3
Revision 1.2
1. MANDATE ID CREATION
2. STP REGISTRATION
3. SWP REGISTRATION
4. UCC – MFI
5. ISIP
ISIP MANDATE ID Added in Filler 2, Field Size changed from 10 to 15, Either XSIP mandate ID or
ISIP Mandate ID is required
Method Name remains as Param2. This is Mandatory only if XSIP Mandate ID is not Provided.
Revision 1.1