POST api/Account/Create
Create new shipping account
Request Information
URI Parameters
None.
Body Parameters
CreateAccountRequestV4Name | Type | Description | Additional information |
---|---|---|---|
EmailAddress | string |
|
|
FirstName | string |
|
|
LastName | string |
|
|
UserName | string |
|
|
Password | string |
|
|
CompanyName | string |
|
|
AutoRenewEnabled | boolean |
|
|
AutoRenewAmount | decimal number |
|
|
AutoRenewThreshold | decimal number |
|
|
CreditCardPayment | CreditCardPayment |
|
|
ACHPayment | ACHPayment |
|
|
Token | string |
|
|
ApproveTermsAndConditions | boolean |
|
|
Options | Dictionary of string [key] and string [value] |
|
Request Formats
application/json, text/json
Sample:
{ "EmailAddress": "sample string 1", "FirstName": "sample string 2", "LastName": "sample string 3", "UserName": "sample string 4", "Password": "sample string 5", "CompanyName": "sample string 6", "AutoRenewEnabled": true, "AutoRenewAmount": 8.0, "AutoRenewThreshold": 9.0, "CreditCardPayment": { "CardNumber": "sample string 1", "CardHolderName": "sample string 2", "ExpirationMonth": "sample string 3", "ExpirationYear": "sample string 4", "SecurityCode": "sample string 5", "Country": "sample string 6", "Address1": "sample string 7", "Address2": "sample string 8", "City": "sample string 9", "State": "sample string 10", "PostalCode": "sample string 11", "PhoneNumber": "sample string 12", "Active": true, "Default": true }, "ACHPayment": { "RoutingNumber": "sample string 1", "AccountHolderName": "sample string 2", "AccountNumber": "sample string 3", "Country": "sample string 4", "Address1": "sample string 5", "Address2": "sample string 6", "City": "sample string 7", "State": "sample string 8", "PostalCode": "sample string 9", "PhoneNumber": "sample string 10", "Active": true, "Default": true }, "Token": "sample string 10", "ApproveTermsAndConditions": true, "Options": { "sample string 1": "sample string 2", "sample string 3": "sample string 4" } }
application/x-www-form-urlencoded
Sample:
Sample not available.
application/xml, text/xml
Sample:
<CreateAccountRequestV4 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/InvectioApi.Models.PackageHub.v4"> <ACHPayment> <AccountHolderName>sample string 2</AccountHolderName> <AccountNumber>sample string 3</AccountNumber> <Active>true</Active> <Address1>sample string 5</Address1> <Address2>sample string 6</Address2> <City>sample string 7</City> <Country>sample string 4</Country> <Default>true</Default> <PhoneNumber>sample string 10</PhoneNumber> <PostalCode>sample string 9</PostalCode> <RoutingNumber>sample string 1</RoutingNumber> <State>sample string 8</State> </ACHPayment> <ApproveTermsAndConditions>true</ApproveTermsAndConditions> <AutoRenewAmount>8</AutoRenewAmount> <AutoRenewEnabled>true</AutoRenewEnabled> <AutoRenewThreshold>9</AutoRenewThreshold> <CompanyName>sample string 6</CompanyName> <CreditCardPayment> <Active>true</Active> <Address1>sample string 7</Address1> <Address2>sample string 8</Address2> <CardHolderName>sample string 2</CardHolderName> <CardNumber>sample string 1</CardNumber> <City>sample string 9</City> <Country>sample string 6</Country> <Default>true</Default> <ExpirationMonth>sample string 3</ExpirationMonth> <ExpirationYear>sample string 4</ExpirationYear> <PhoneNumber>sample string 12</PhoneNumber> <PostalCode>sample string 11</PostalCode> <SecurityCode>sample string 5</SecurityCode> <State>sample string 10</State> </CreditCardPayment> <EmailAddress>sample string 1</EmailAddress> <FirstName>sample string 2</FirstName> <LastName>sample string 3</LastName> <Options xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:KeyValueOfstringstring> <d2p1:Key>sample string 1</d2p1:Key> <d2p1:Value>sample string 2</d2p1:Value> </d2p1:KeyValueOfstringstring> <d2p1:KeyValueOfstringstring> <d2p1:Key>sample string 3</d2p1:Key> <d2p1:Value>sample string 4</d2p1:Value> </d2p1:KeyValueOfstringstring> </Options> <Password>sample string 5</Password> <Token>sample string 10</Token> <UserName>sample string 4</UserName> </CreateAccountRequestV4>
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.