POST api/GLCode/Add
Add GL Code
Request Information
URI Parameters
None.
Body Parameters
Code| Name | Description | Type | Additional information |
|---|---|---|---|
| GLCodeId |
GL Code Id |
integer |
None. |
| ClientId |
Client Id |
integer |
None. |
| CompanyCode |
Company Code |
string |
None. |
| Segment1 |
Segment 1 |
string |
None. |
| Segment1Description |
Segment 1 Description |
string |
None. |
| Segment2 |
Segment 2 |
string |
None. |
| Segment2Description |
Segment 2 Description |
string |
None. |
| Segment3 |
Segment 3 |
string |
None. |
| Segment3Description |
Segment 3 Description |
string |
None. |
| Segment4 |
Segment 4 |
string |
None. |
| Segment4Description |
Segment 4 Description |
string |
None. |
| Segment5 |
Segment 5 |
string |
None. |
| Segment5Description |
Segment 5 Description |
string |
None. |
| Segment6 |
Segment 6 |
string |
None. |
| Segment6Description |
Segment 6 Description |
string |
None. |
| Segment7 |
Segment 7 |
string |
None. |
| Segment7Description |
Segment 7 Description |
string |
None. |
| Segment8 |
Segment 8 |
string |
None. |
| Segment8Description |
Segment 8 Description |
string |
None. |
| Segment9 |
Segment 9 |
string |
None. |
| Segment9Description |
Segment 9 Description |
string |
None. |
| Segment10 |
Segment 10 |
string |
None. |
| Segment10Description |
Segment 10 Description |
string |
None. |
Request Formats
application/json, text/json
{
"GLCodeId": 1,
"ClientId": 1,
"CompanyCode": "sample string 2",
"Segment1": "sample string 3",
"Segment1Description": "sample string 4",
"Segment2": "sample string 5",
"Segment2Description": "sample string 6",
"Segment3": "sample string 7",
"Segment3Description": "sample string 8",
"Segment4": "sample string 9",
"Segment4Description": "sample string 10",
"Segment5": "sample string 11",
"Segment5Description": "sample string 12",
"Segment6": "sample string 13",
"Segment6Description": "sample string 14",
"Segment7": "sample string 15",
"Segment7Description": "sample string 16",
"Segment8": "sample string 17",
"Segment8Description": "sample string 18",
"Segment9": "sample string 19",
"Segment9Description": "sample string 20",
"Segment10": "sample string 21",
"Segment10Description": "sample string 22"
}
application/xml, text/xml
<GLCodeController.Code xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NextProcess.Web.API.Controllers"> <ClientId>1</ClientId> <CompanyCode>sample string 2</CompanyCode> <GLCodeId>1</GLCodeId> <Segment1>sample string 3</Segment1> <Segment10>sample string 21</Segment10> <Segment10Description>sample string 22</Segment10Description> <Segment1Description>sample string 4</Segment1Description> <Segment2>sample string 5</Segment2> <Segment2Description>sample string 6</Segment2Description> <Segment3>sample string 7</Segment3> <Segment3Description>sample string 8</Segment3Description> <Segment4>sample string 9</Segment4> <Segment4Description>sample string 10</Segment4Description> <Segment5>sample string 11</Segment5> <Segment5Description>sample string 12</Segment5Description> <Segment6>sample string 13</Segment6> <Segment6Description>sample string 14</Segment6Description> <Segment7>sample string 15</Segment7> <Segment7Description>sample string 16</Segment7Description> <Segment8>sample string 17</Segment8> <Segment8Description>sample string 18</Segment8Description> <Segment9>sample string 19</Segment9> <Segment9Description>sample string 20</Segment9Description> </GLCodeController.Code>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
Processing results
APIResult| Name | Description | Type | Additional information |
|---|---|---|---|
| IsValid |
API call result |
boolean |
None. |
| Comments |
Comments about the activities of the API call |
string |
None. |
| Errors |
List of 0 to many errors encountered processing the API call |
Collection of ErrorMessage |
None. |
Response Formats
application/json, text/json
{
"IsValid": true,
"Comments": "sample string 2",
"Errors": [
{
"Message": "sample string 1"
},
{
"Message": "sample string 1"
}
]
}
application/xml, text/xml
<APIResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NextProcess.Web.API.Controllers.Util">
<Comments>sample string 2</Comments>
<Errors>
<APIResult.ErrorMessage>
<Message>sample string 1</Message>
</APIResult.ErrorMessage>
<APIResult.ErrorMessage>
<Message>sample string 1</Message>
</APIResult.ErrorMessage>
</Errors>
<IsValid>true</IsValid>
</APIResult>