POST api/LocationMaster
Request Information
URI Parameters
None.
Body Parameters
LocationMaster| Name | Description | Type | Additional information |
|---|---|---|---|
| MID | integer |
Required |
|
| LOCATION_CODE | string |
Required Max length: 6 |
|
| DESCRIPTION | string |
Required Max length: 40 |
|
| DIVISION_CODE | string |
Required Max length: 1 |
|
| LOCTYPE_CODE | string |
Required Max length: 6 |
|
| PIECES | decimal number |
None. |
|
| ALWAYS_FULL | boolean |
Required |
|
| SYSTEM_DATE | date |
None. |
|
| INTRANSIT_LOC | boolean |
Required |
|
| AVOIDFORSALES | boolean |
Required |
|
| PROFIT1_PER | decimal number |
Required |
|
| PROFIT2_PER | decimal number |
Required |
|
| PROFIT3_PER | decimal number |
Required |
|
| PROFIT_ACCODE1 | string |
Required Max length: 6 |
|
| PROFIT_ACCODE2 | string |
Required Max length: 6 |
|
| PROFIT_ACCODE3 | string |
Required Max length: 6 |
|
| PROFIT_CREDITACCODE | string |
Required Max length: 6 |
Request Formats
application/json, text/json
Sample:
{
"MID": 1,
"LOCATION_CODE": "sample string 2",
"DESCRIPTION": "sample string 3",
"DIVISION_CODE": "sample string 4",
"LOCTYPE_CODE": "sample string 5",
"PIECES": 6.1,
"ALWAYS_FULL": true,
"SYSTEM_DATE": "2025-12-16T07:34:10.4558778+04:00",
"INTRANSIT_LOC": true,
"AVOIDFORSALES": true,
"PROFIT1_PER": 11.1,
"PROFIT2_PER": 12.1,
"PROFIT3_PER": 13.1,
"PROFIT_ACCODE1": "sample string 14",
"PROFIT_ACCODE2": "sample string 15",
"PROFIT_ACCODE3": "sample string 16",
"PROFIT_CREDITACCODE": "sample string 17"
}
text/html
Sample:
{"MID":1,"LOCATION_CODE":"sample string 2","DESCRIPTION":"sample string 3","DIVISION_CODE":"sample string 4","LOCTYPE_CODE":"sample string 5","PIECES":6.1,"ALWAYS_FULL":true,"SYSTEM_DATE":"2025-12-16T07:34:10.4558778+04:00","INTRANSIT_LOC":true,"AVOIDFORSALES":true,"PROFIT1_PER":11.1,"PROFIT2_PER":12.1,"PROFIT3_PER":13.1,"PROFIT_ACCODE1":"sample string 14","PROFIT_ACCODE2":"sample string 15","PROFIT_ACCODE3":"sample string 16","PROFIT_CREDITACCODE":"sample string 17"}
application/xml, text/xml
Sample:
<LocationMaster xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/webAppApi.Models.Master"> <ALWAYS_FULL>true</ALWAYS_FULL> <AVOIDFORSALES>true</AVOIDFORSALES> <DESCRIPTION>sample string 3</DESCRIPTION> <DIVISION_CODE>sample string 4</DIVISION_CODE> <INTRANSIT_LOC>true</INTRANSIT_LOC> <LOCATION_CODE>sample string 2</LOCATION_CODE> <LOCTYPE_CODE>sample string 5</LOCTYPE_CODE> <MID>1</MID> <PIECES>6.1</PIECES> <PROFIT1_PER>11.1</PROFIT1_PER> <PROFIT2_PER>12.1</PROFIT2_PER> <PROFIT3_PER>13.1</PROFIT3_PER> <PROFIT_ACCODE1>sample string 14</PROFIT_ACCODE1> <PROFIT_ACCODE2>sample string 15</PROFIT_ACCODE2> <PROFIT_ACCODE3>sample string 16</PROFIT_ACCODE3> <PROFIT_CREDITACCODE>sample string 17</PROFIT_CREDITACCODE> <SYSTEM_DATE>2025-12-16T07:34:10.4558778+04:00</SYSTEM_DATE> </LocationMaster>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ObjectNone.
Response Formats
application/json, text/json, text/html
Sample:
{}
application/xml, text/xml
Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />