POST api/AutoShip/PaymentOptions?localeID={localeID}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
localeID | integer |
Required |
Body Parameters
Collection of AddressViewModelAddressName | Description | Type | Additional information |
---|---|---|---|
ID | integer |
None. |
|
Description | string |
None. |
|
Street1 | string |
None. |
|
Street2 | string |
None. |
|
City | string |
None. |
|
Company | string |
None. |
|
State | string |
None. |
|
PostalCode | string |
None. |
|
County | string |
None. |
|
Country | string |
None. |
|
Phone | string |
None. |
|
string |
None. |
||
FirstName | string |
None. |
|
LastName | string |
None. |
|
SpecialInstructions | string |
None. |
|
SuggestedAddress | boolean |
None. |
|
IsHiddenOnCart | boolean |
None. |
|
IsOverrideAddress | boolean |
None. |
|
IsDefaultProfile | byte |
None. |
Request Formats
application/xml, text/xml
Sample:
<Array1OfAddressViewModelAddress> <AddressViewModelAddress> <ID>1</ID> <Description>sample string 2</Description> <Street1>sample string 3</Street1> <Street2>sample string 4</Street2> <City>sample string 5</City> <Company>sample string 6</Company> <State>sample string 7</State> <PostalCode>sample string 8</PostalCode> <County>sample string 9</County> <Country>sample string 10</Country> <Phone>sample string 11</Phone> <Email>sample string 12</Email> <FirstName>sample string 13</FirstName> <LastName>sample string 14</LastName> <SpecialInstructions>sample string 15</SpecialInstructions> <SuggestedAddress>True</SuggestedAddress> <IsHiddenOnCart>True</IsHiddenOnCart> <IsOverrideAddress>True</IsOverrideAddress> <IsDefaultProfile>64</IsDefaultProfile> </AddressViewModelAddress> <AddressViewModelAddress> <ID>1</ID> <Description>sample string 2</Description> <Street1>sample string 3</Street1> <Street2>sample string 4</Street2> <City>sample string 5</City> <Company>sample string 6</Company> <State>sample string 7</State> <PostalCode>sample string 8</PostalCode> <County>sample string 9</County> <Country>sample string 10</Country> <Phone>sample string 11</Phone> <Email>sample string 12</Email> <FirstName>sample string 13</FirstName> <LastName>sample string 14</LastName> <SpecialInstructions>sample string 15</SpecialInstructions> <SuggestedAddress>True</SuggestedAddress> <IsHiddenOnCart>True</IsHiddenOnCart> <IsOverrideAddress>True</IsOverrideAddress> <IsDefaultProfile>64</IsDefaultProfile> </AddressViewModelAddress> </Array1OfAddressViewModelAddress>
application/json, text/json
Sample:
[ { "ID": 1, "Description": "sample string 2", "Street1": "sample string 3", "Street2": "sample string 4", "City": "sample string 5", "Company": "sample string 6", "State": "sample string 7", "PostalCode": "sample string 8", "County": "sample string 9", "Country": "sample string 10", "Phone": "sample string 11", "Email": "sample string 12", "FirstName": "sample string 13", "LastName": "sample string 14", "SpecialInstructions": "sample string 15", "SuggestedAddress": true, "IsHiddenOnCart": true, "IsOverrideAddress": true, "IsDefaultProfile": 64 }, { "ID": 1, "Description": "sample string 2", "Street1": "sample string 3", "Street2": "sample string 4", "City": "sample string 5", "Company": "sample string 6", "State": "sample string 7", "PostalCode": "sample string 8", "County": "sample string 9", "Country": "sample string 10", "Phone": "sample string 11", "Email": "sample string 12", "FirstName": "sample string 13", "LastName": "sample string 14", "SpecialInstructions": "sample string 15", "SuggestedAddress": true, "IsHiddenOnCart": true, "IsOverrideAddress": true, "IsDefaultProfile": 64 } ]
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Collection of PaymentOptionViewModelName | Description | Type | Additional information |
---|---|---|---|
PaymentTypeID | integer |
None. |
|
CCAccountID | integer |
None. |
|
Description | string |
None. |
|
ImagePath | string |
None. |
Response Formats
application/xml, text/xml
Sample:
<ListOfPaymentOptionViewModel> <PaymentOptionViewModel> <PaymentTypeID>1</PaymentTypeID> <CCAccountID>1</CCAccountID> <Description>sample string 2</Description> <ImagePath>sample string 3</ImagePath> </PaymentOptionViewModel> <PaymentOptionViewModel> <PaymentTypeID>1</PaymentTypeID> <CCAccountID>1</CCAccountID> <Description>sample string 2</Description> <ImagePath>sample string 3</ImagePath> </PaymentOptionViewModel> </ListOfPaymentOptionViewModel>
application/json, text/json
Sample:
[ { "PaymentTypeID": 1, "CCAccountID": 1, "Description": "sample string 2", "ImagePath": "sample string 3" }, { "PaymentTypeID": 1, "CCAccountID": 1, "Description": "sample string 2", "ImagePath": "sample string 3" } ]