POST api/WSAccount
Request Information
URI Parameters
None.
Body Parameters
WSAccount| Name | Description | Type | Additional information |
|---|---|---|---|
| AccountId |
Autonumber from WS_Account table |
integer |
None. |
| CustomerId |
Foreign key from AR_Customer table |
integer |
None. |
| CustomerNumber |
Customer Number from AR_Customer table |
string |
Required |
| CustomerStatus | string |
None. |
|
| AccountName |
username for account (email address) |
string |
None. |
| Branch | string |
None. |
|
| FirstName | string |
Required |
|
| LastName | string |
Required |
|
| CustomerName | string |
None. |
|
| Address | string |
None. |
|
| BillingZipCode | string |
Required Data type: PostalCode |
|
| string |
Required |
||
| ConfirmEmail | string |
Required |
|
| Password | string |
Required Data type: Password |
|
| ConfirmPassword | string |
Required Data type: Password |
|
| PhoneNumber | string |
Data type: PhoneNumber |
|
| PhoneExtension | string |
None. |
|
| MobileNumber | string |
Data type: PhoneNumber |
|
| FaxNumber | string |
Data type: PhoneNumber |
|
| CustomerContactId |
Foreign key from AR_Customer_Contact table |
integer |
None. |
| Inactive |
Y/N to indicate Inactive |
string |
None. |
| FieldComments | string |
None. |
|
| LastLogin |
last date the user logged in |
string |
None. |
| InactiveSince |
Inactive date |
string |
None. |
| InactivatedByAccountId | integer |
None. |
|
| MasterAccountID | integer |
None. |
Request Formats
application/json, text/json
{
"AccountId": 1,
"CustomerId": 2,
"CustomerNumber": "sample string 3",
"CustomerStatus": "sample string 4",
"AccountName": "sample string 5",
"Branch": "sample string 6",
"FirstName": "sample string 7",
"LastName": "sample string 8",
"CustomerName": "sample string 9",
"Address": "sample string 10",
"BillingZipCode": "sample string 11",
"Email": "sample string 12",
"ConfirmEmail": "sample string 13",
"Password": "sample string 14",
"ConfirmPassword": "sample string 15",
"PhoneNumber": "sample string 16",
"PhoneExtension": "sample string 17",
"MobileNumber": "sample string 18",
"FaxNumber": "sample string 19",
"CustomerContactId": 20,
"Inactive": "sample string 21",
"FieldComments": "sample string 22",
"LastLogin": "sample string 23",
"InactiveSince": "sample string 24",
"InactivatedByAccountId": 1,
"MasterAccountID": 25
}
application/xml, text/xml
<WSAccount xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SedonaServices.Models"> <AccountId>1</AccountId> <AccountName>sample string 5</AccountName> <Address>sample string 10</Address> <BillingZipCode>sample string 11</BillingZipCode> <Branch>sample string 6</Branch> <ConfirmEmail>sample string 13</ConfirmEmail> <ConfirmPassword>sample string 15</ConfirmPassword> <CustomerContactId>20</CustomerContactId> <CustomerId>2</CustomerId> <CustomerName>sample string 9</CustomerName> <CustomerNumber>sample string 3</CustomerNumber> <CustomerStatus>sample string 4</CustomerStatus> <Email>sample string 12</Email> <FaxNumber>sample string 19</FaxNumber> <FieldComments>sample string 22</FieldComments> <FirstName>sample string 7</FirstName> <InactivatedByAccountId>1</InactivatedByAccountId> <Inactive>sample string 21</Inactive> <InactiveSince>sample string 24</InactiveSince> <LastLogin>sample string 23</LastLogin> <LastName>sample string 8</LastName> <MasterAccountID>25</MasterAccountID> <MobileNumber>sample string 18</MobileNumber> <Password>sample string 14</Password> <PhoneExtension>sample string 17</PhoneExtension> <PhoneNumber>sample string 16</PhoneNumber> </WSAccount>
application/x-www-form-urlencoded
Response Information
Resource Description
WSAccount| Name | Description | Type | Additional information |
|---|---|---|---|
| AccountId |
Autonumber from WS_Account table |
integer |
None. |
| CustomerId |
Foreign key from AR_Customer table |
integer |
None. |
| CustomerNumber |
Customer Number from AR_Customer table |
string |
Required |
| CustomerStatus | string |
None. |
|
| AccountName |
username for account (email address) |
string |
None. |
| Branch | string |
None. |
|
| FirstName | string |
Required |
|
| LastName | string |
Required |
|
| CustomerName | string |
None. |
|
| Address | string |
None. |
|
| BillingZipCode | string |
Required Data type: PostalCode |
|
| string |
Required |
||
| ConfirmEmail | string |
Required |
|
| Password | string |
Required Data type: Password |
|
| ConfirmPassword | string |
Required Data type: Password |
|
| PhoneNumber | string |
Data type: PhoneNumber |
|
| PhoneExtension | string |
None. |
|
| MobileNumber | string |
Data type: PhoneNumber |
|
| FaxNumber | string |
Data type: PhoneNumber |
|
| CustomerContactId |
Foreign key from AR_Customer_Contact table |
integer |
None. |
| Inactive |
Y/N to indicate Inactive |
string |
None. |
| FieldComments | string |
None. |
|
| LastLogin |
last date the user logged in |
string |
None. |
| InactiveSince |
Inactive date |
string |
None. |
| InactivatedByAccountId | integer |
None. |
|
| MasterAccountID | integer |
None. |
Response Formats
application/json, text/json
{
"AccountId": 1,
"CustomerId": 2,
"CustomerNumber": "sample string 3",
"CustomerStatus": "sample string 4",
"AccountName": "sample string 5",
"Branch": "sample string 6",
"FirstName": "sample string 7",
"LastName": "sample string 8",
"CustomerName": "sample string 9",
"Address": "sample string 10",
"BillingZipCode": "sample string 11",
"Email": "sample string 12",
"ConfirmEmail": "sample string 13",
"Password": "sample string 14",
"ConfirmPassword": "sample string 15",
"PhoneNumber": "sample string 16",
"PhoneExtension": "sample string 17",
"MobileNumber": "sample string 18",
"FaxNumber": "sample string 19",
"CustomerContactId": 20,
"Inactive": "sample string 21",
"FieldComments": "sample string 22",
"LastLogin": "sample string 23",
"InactiveSince": "sample string 24",
"InactivatedByAccountId": 1,
"MasterAccountID": 25
}
application/xml, text/xml
<WSAccount xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SedonaServices.Models"> <AccountId>1</AccountId> <AccountName>sample string 5</AccountName> <Address>sample string 10</Address> <BillingZipCode>sample string 11</BillingZipCode> <Branch>sample string 6</Branch> <ConfirmEmail>sample string 13</ConfirmEmail> <ConfirmPassword>sample string 15</ConfirmPassword> <CustomerContactId>20</CustomerContactId> <CustomerId>2</CustomerId> <CustomerName>sample string 9</CustomerName> <CustomerNumber>sample string 3</CustomerNumber> <CustomerStatus>sample string 4</CustomerStatus> <Email>sample string 12</Email> <FaxNumber>sample string 19</FaxNumber> <FieldComments>sample string 22</FieldComments> <FirstName>sample string 7</FirstName> <InactivatedByAccountId>1</InactivatedByAccountId> <Inactive>sample string 21</Inactive> <InactiveSince>sample string 24</InactiveSince> <LastLogin>sample string 23</LastLogin> <LastName>sample string 8</LastName> <MasterAccountID>25</MasterAccountID> <MobileNumber>sample string 18</MobileNumber> <Password>sample string 14</Password> <PhoneExtension>sample string 17</PhoneExtension> <PhoneNumber>sample string 16</PhoneNumber> </WSAccount>