POST api/Account?APIKey={APIKey}&ClientId={ClientId}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
APIKey | string |
Required |
|
ClientId | string |
Required |
Body Parameters
AccountRequestName | Description | Type | Additional information |
---|---|---|---|
Account | Account |
None. |
Request Formats
application/json, text/json
Sample:
{ "Account": { "Id": "937a285c-cd34-4780-bef7-aa80192f1396", "Name": "sample string 2", "Acronym": "sample string 3", "Number": "sample string 4", "DefaultPriceLevel": "sample string 5", "Member": true, "AddressName": "sample string 7", "Address1": "sample string 8", "Address2": "sample string 9", "Address3": "sample string 10", "City": "sample string 11", "State": "sample string 12", "PostalCode": "sample string 13", "Country": "sample string 14", "MainPhone": "sample string 15", "Fax": "sample string 16", "Email": "sample string 17", "WebSite": "sample string 18", "Facebook": "sample string 19", "Twitter": "sample string 20", "LinkedIn": "sample string 21", "Instgram": "sample string 22", "FaceBook": "sample string 23", "YouTube": "sample string 24", "PrimaryContact": { "Id": "cdb0b357-4df2-4227-8c9e-106b092d20ab", "Number": "sample string 2", "Name": "sample string 3" }, "Custom": { "Attribute": [ { "Type": 0, "Key": "sample string 1", "Value": "sample string 2", "FormattedValue": "sample string 3" }, { "Type": 0, "Key": "sample string 1", "Value": "sample string 2", "FormattedValue": "sample string 3" } ] } } }
application/xml, text/xml
Sample:
<AccountRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Protech.UX.API.Account"> <Account> <Acronym>sample string 3</Acronym> <Address1>sample string 8</Address1> <Address2>sample string 9</Address2> <Address3>sample string 10</Address3> <AddressName>sample string 7</AddressName> <City>sample string 11</City> <Country>sample string 14</Country> <Custom> <Attribute xmlns:d4p1="http://schemas.datacontract.org/2004/07/Protech.UX.API.CRMEntity"> <d4p1:Attribute> <d4p1:FormattedValue>sample string 3</d4p1:FormattedValue> <d4p1:Key>sample string 1</d4p1:Key> <d4p1:Type>text</d4p1:Type> <d4p1:Value>sample string 2</d4p1:Value> </d4p1:Attribute> <d4p1:Attribute> <d4p1:FormattedValue>sample string 3</d4p1:FormattedValue> <d4p1:Key>sample string 1</d4p1:Key> <d4p1:Type>text</d4p1:Type> <d4p1:Value>sample string 2</d4p1:Value> </d4p1:Attribute> </Attribute> </Custom> <DefaultPriceLevel>sample string 5</DefaultPriceLevel> <Email>sample string 17</Email> <FaceBook>sample string 23</FaceBook> <Facebook>sample string 19</Facebook> <Fax>sample string 16</Fax> <Id>937a285c-cd34-4780-bef7-aa80192f1396</Id> <Instgram>sample string 22</Instgram> <LinkedIn>sample string 21</LinkedIn> <MainPhone>sample string 15</MainPhone> <Member>true</Member> <Name>sample string 2</Name> <Number>sample string 4</Number> <PostalCode>sample string 13</PostalCode> <PrimaryContact> <Id>cdb0b357-4df2-4227-8c9e-106b092d20ab</Id> <Name>sample string 3</Name> <Number>sample string 2</Number> </PrimaryContact> <State>sample string 12</State> <Twitter>sample string 20</Twitter> <WebSite>sample string 18</WebSite> <YouTube>sample string 24</YouTube> </Account> </AccountRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
APIResponseName | Description | Type | Additional information |
---|---|---|---|
Status | Status |
None. |
|
Id | globally unique identifier |
None. |
|
Description | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Status": 0, "Id": "be71288f-4410-4dd3-bcb8-b9f2230f9fce", "Description": "sample string 2" }
application/xml, text/xml
Sample:
<APIResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Protech.UX.API.Response"> <Description>sample string 2</Description> <Id>be71288f-4410-4dd3-bcb8-b9f2230f9fce</Id> <Status>Success</Status> </APIResponse>