Get Branch Info
Returns the details of one or more of your branches (stores, warehouses, offices) by branch code: name, short name, address, contact details, GST details and branch groups. Use it to set up or refresh the branch list in your system, or to print a branch's address and GSTIN on your own documents.
Endpoint
Address
https://your-server/api/GetBranchInfo
Method
POST
Authorization
Basic Auth
The response and the common request fields are explained in How Every API Call Works.
This endpoint does not use the change log: GlobalModifyCode, DateFrom, DateTo, Doc_Codes, Branch_Codes_From and Doc_Num_Like are not read. Every call returns the branches you ask for as they are now, and LastGlobalModifyCode is always 0.
Request fields
BranchCode
text
Yes
—
Logic ERP branch codes, separated by commas, for example "2" or "2,5,7". Numbers only — there is no "all branches" value. Code 0 returns Logic ERP's placeholder branch named (NIL); do not ask for it.
Rules Logic ERP applies
Only active branches are returned. A branch marked inactive in Logic ERP is left out, even if you ask for it by code. A branch that is only blocked for login is still returned.
If some of the codes you send are found and others are not, you get the ones that were found and
Status: true. Compare the codes inGetDatawith what you asked for.If none of the codes is found (or all are inactive), the call fails with
Status: false.The order of the branches in
GetDatais not guaranteed. Match them onBranch_Code.Branch_Creation_DateandBranch_GST_Datecome as text in the short date format of the Logic ERP server, for example31/01/2026or31/01/26, so read both a four-digit and a two-digit year. A time is added if one was stored with the date. They are empty when no date is entered.A branch group level that is not used is shown as
(NIL).On success
Messageis"Success".
Known issue – branch with incomplete group setup. A branch that is linked to a branch group which no longer exists in Logic ERP is left out of
GetData, although it is active. If a code you asked for is missing from the answer (or you get Unable to found Branch Code : … for a branch you know is active), ask your Logic ERP team to re-save the branch's groups.
Example request
Test it
Send a request to the Logic ERP sandbox (a test company) from this page: open the block below, enter the sandbox user name and password (ask your Logic ERP support team), change BranchCode if you like, and press Test it. The answer shows exactly what your own API site returns, with the sandbox's data.
Returns the details of one or more of your branches (stores, warehouses, offices) by branch code: name, short name, address, contact details, GST details and branch groups. Use it to set up or refresh the branch list in your system, or to print a branch's address and GSTIN on your own documents.
The user name and password of your API site.
Logic ERP branch codes, separated by commas, for example "2" or "2,5,7". Numbers only — there is no "all branches" value. Code 0 returns Logic ERP's placeholder branch named (NIL); do not ask for it.
Always HTTP 200. Check Status, Message and GetData.
See the Status rules on this page and on How Every API Call Works.
Why the call failed, or a note. The reason may be followed by technical detail - read the first line.
The change-log bookmark (see How Every API Call Works).
Size of the answer, for example "2 KB".
No login was sent.
POST /api/GetBranchInfo HTTP/1.1
Host: demo.logicerp.com
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 20
{
"BranchCode": "2,3"
}{
"GetData": [
{
"Branch_Code": 1,
"Branch_Name": "text",
"Branch_Short_Name": "text",
"Address_1": "text",
"Address_2": "text",
"Address_3": "text",
"Branch_City_Name": "text",
"Branch_PIN_Code": "text",
"Branch_Creation_Date": "text",
"Branch_EMail": "text",
"Branch_GST_No": "text",
"Branch_GST_Date": "text",
"Branch_GST_State_Code": "text",
"Branch_Extra_1": "text",
"Branch_Extra_2": "text",
"Branch_Contact_Person": "text",
"Branch_State_Name": "text",
"Branch_Telephone_Off": "text",
"Branch_Telephone_Res": "text",
"Branch_Group_Name_1": "text",
"Branch_Group_Name_2": "text",
"Branch_Group_Name_3": "text",
"Branch_Group_Name_4": "text",
"Branch_Group_Name_5": "text",
"Branch_Group_Name_6": "text",
"Branch_Group_Name_7": "text",
"Branch_Group_Name_8": "text",
"Branch_Group_Name_9": "text",
"Branch_Group_Name_10": "text",
"Branch_Group_Name_11": "text",
"Branch_Group_Name_12": "text",
"Branch_Group_Name_13": "text",
"Branch_Group_Name_14": "text",
"Branch_Group_Name_15": "text",
"Area_SqFT": "text"
}
],
"Status": true,
"Message": "text",
"LastGlobalModifyCode": 1,
"resultSize": "text"
}Response fields
Each item in GetData:
Branch_Code
number
Logic ERP's branch code.
Branch_Name
text
Branch name.
Branch_Short_Name
text
Short name of the branch, used by many Push endpoints to name the branch.
Address_1, Address_2, Address_3
text
Address lines.
Branch_City_Name
text
City.
Branch_PIN_Code
text
PIN code.
Branch_Creation_Date
text
When the branch was opened in Logic ERP (see the date rule above); empty if not entered.
Branch_EMail
text
Branch e-mail address.
Branch_GST_No
text
GSTIN of the branch.
Branch_GST_Date
text
GST registration date (see the date rule above); empty if not entered.
Branch_GST_State_Code
text
GST state code of the branch.
Branch_Extra_1, Branch_Extra_2
text
Two free fields your company can use for its own branch information.
Branch_Contact_Person
text
Contact person at the branch.
Branch_State_Name
text
State.
Branch_Telephone_Off, Branch_Telephone_Res
text
Office and residence telephone numbers.
Branch_Group_Name_1 … Branch_Group_Name_15
text
The branch groups (for example zone, region, format) the branch belongs to, at levels 1 to 15; (NIL) when a level is not used.
Area_SqFT
text
Floor area of the branch in square feet, as a number in text (for example "2400"); "0" when not entered.
Example response
Messages you may see
Invalid Branch Code.. (with Status: false)
BranchCode was missing or empty.
Send at least one branch code.
Unable to found Branch Code : … (the codes you sent in place of …, with Status: false)
None of the codes you sent is an active branch.
Check the codes with your Logic ERP team; the branch may be inactive.
A database error (with Status: false), for example Invalid column name 'abc'.
BranchCode contained something other than numbers and commas. The reason may be followed by technical detail – read the first line.
Send numbers separated by commas only.