POST api/ERPDataUpdate/AddAgent
Request Information
URI Parameters
None.
Body Parameters
AgentName | Description | Type | Additional information |
---|---|---|---|
BusinessCode | string |
None. |
|
BusinessType | string |
None. |
|
Name | string |
None. |
|
DesignationCode | string |
None. |
|
Phone | string |
None. |
|
string |
None. |
||
CountryName | string |
None. |
|
Zone | string |
None. |
|
Branch | string |
None. |
|
State | string |
None. |
|
City | string |
None. |
|
LGA | string |
None. |
|
Market | string |
None. |
|
Address | string |
None. |
|
ReportingEmpCode | string |
None. |
|
DateOfJoin | date |
None. |
|
EmployeeCode | string |
None. |
|
Source | string |
None. |
|
StatusID | integer |
None. |
|
IsEditEnable | integer |
None. |
|
IsInvalid | boolean |
None. |
|
AgentBrandMapping | Collection of AgentBrand |
None. |
Request Formats
application/json, text/json
Sample:
{ "BusinessCode": "sample string 1", "BusinessType": "sample string 2", "Name": "sample string 3", "DesignationCode": "sample string 4", "Phone": "sample string 5", "Email": "sample string 6", "CountryName": "sample string 7", "Zone": "sample string 8", "Branch": "sample string 9", "State": "sample string 10", "City": "sample string 11", "LGA": "sample string 12", "Market": "sample string 13", "Address": "sample string 14", "ReportingEmpCode": "sample string 15", "DateOfJoin": "2025-04-04T03:42:01.1125603+00:00", "EmployeeCode": "sample string 16", "Source": "sample string 17", "StatusID": 18, "IsEditEnable": 19, "IsInvalid": false, "AgentBrandMapping": [ { "BrandName": "sample string 1", "IsActive": 2 }, { "BrandName": "sample string 1", "IsActive": 2 } ] }
application/xml, text/xml
Sample:
<Agent xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BOPWAAPI.Model.Orion"> <Address>sample string 14</Address> <AgentBrandMapping> <AgentBrand> <BrandName>sample string 1</BrandName> <IsActive>2</IsActive> </AgentBrand> <AgentBrand> <BrandName>sample string 1</BrandName> <IsActive>2</IsActive> </AgentBrand> </AgentBrandMapping> <Branch>sample string 9</Branch> <BusinessCode>sample string 1</BusinessCode> <BusinessType>sample string 2</BusinessType> <City>sample string 11</City> <CountryName>sample string 7</CountryName> <DateOfJoin>2025-04-04T03:42:01.1125603+00:00</DateOfJoin> <DesignationCode>sample string 4</DesignationCode> <Email>sample string 6</Email> <EmployeeCode>sample string 16</EmployeeCode> <IsEditEnable>19</IsEditEnable> <LGA>sample string 12</LGA> <Market>sample string 13</Market> <Name>sample string 3</Name> <Phone>sample string 5</Phone> <ReportingEmpCode>sample string 15</ReportingEmpCode> <Source>sample string 17</Source> <State>sample string 10</State> <StatusID>18</StatusID> <Zone>sample string 8</Zone> </Agent>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
VCAPIResponseName | Description | Type | Additional information |
---|---|---|---|
Version | string |
None. |
|
dateTime | string |
None. |
|
StatusCode | integer |
None. |
|
ErrorMessage | string |
None. |
|
Result | Object |
None. |
Response Formats
application/json, text/json
Sample:
{ "Version": "1.0.0", "dateTime": "2025/04/04 03:42:01", "StatusCode": 1, "ErrorMessage": "sample string 2", "Result": {} }
application/xml, text/xml
Sample:
<VCAPIResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BOPWAAPI.Model"> <ErrorMessage>sample string 2</ErrorMessage> <Result /> <StatusCode>1</StatusCode> </VCAPIResponse>