POST api/Customer/CreateUpdateAddress?country={country}&cardCode={cardCode}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
country | Countries |
Required |
|
cardCode | string |
Required |
Body Parameters
ManageAddressName | Description | Type | Additional information |
---|---|---|---|
IsShipDefault | boolean |
None. |
|
IsCPShipDefault | boolean |
None. |
|
Address | Address |
None. |
Request Formats
application/json, text/json
Sample:
{ "<IsShipDefault>k__BackingField": true, "<IsCPShipDefault>k__BackingField": true, "<Address>k__BackingField": { "<MagentoAddressId>k__BackingField": "sample string 1", "<ShipToDef>k__BackingField": "sample string 2", "<AddressName>k__BackingField": "sample string 3", "<IsAddressSync>k__BackingField": "sample string 4", "<U_MAddressID>k__BackingField": "sample string 5", "<U_AddressSource>k__BackingField": "sample string 6", "<AddresseeFirstName>k__BackingField": "sample", "<AddresseeLastName>k__BackingField": " string 10", "<RowNum>k__BackingField": 9, "<AddressLine1>k__BackingField": "sample string 11", "<AddressLine2>k__BackingField": "sample string 12", "<City>k__BackingField": "sample string 13", "<State>k__BackingField": "sample string 14", "<PostalCode>k__BackingField": "sample string 15", "<Country>k__BackingField": "sample string 16", "<AddressType>k__BackingField": 0, "<Active>k__BackingField": false, "<IsCreatedInUS>k__BackingField": 20, "<IsCreatedInCA>k__BackingField": 21, "<IsUpdatedInUS>k__BackingField": 22, "<IsUpdatedInCA>k__BackingField": 23 } }
application/xml, text/xml
Sample:
<ManageAddress xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UniveraMiddleware.Models"> <_x003C_Address_x003E_k__BackingField xmlns:d2p1="http://schemas.datacontract.org/2004/07/Univera.Data"> <d2p1:_x003C_Active_x003E_k__BackingField>false</d2p1:_x003C_Active_x003E_k__BackingField> <d2p1:_x003C_AddressLine1_x003E_k__BackingField>sample string 11</d2p1:_x003C_AddressLine1_x003E_k__BackingField> <d2p1:_x003C_AddressLine2_x003E_k__BackingField>sample string 12</d2p1:_x003C_AddressLine2_x003E_k__BackingField> <d2p1:_x003C_AddressName_x003E_k__BackingField>sample string 3</d2p1:_x003C_AddressName_x003E_k__BackingField> <d2p1:_x003C_AddressType_x003E_k__BackingField>Shipping</d2p1:_x003C_AddressType_x003E_k__BackingField> <d2p1:_x003C_AddresseeFirstName_x003E_k__BackingField>sample</d2p1:_x003C_AddresseeFirstName_x003E_k__BackingField> <d2p1:_x003C_AddresseeLastName_x003E_k__BackingField> string 10</d2p1:_x003C_AddresseeLastName_x003E_k__BackingField> <d2p1:_x003C_City_x003E_k__BackingField>sample string 13</d2p1:_x003C_City_x003E_k__BackingField> <d2p1:_x003C_Country_x003E_k__BackingField>sample string 16</d2p1:_x003C_Country_x003E_k__BackingField> <d2p1:_x003C_IsAddressSync_x003E_k__BackingField>sample string 4</d2p1:_x003C_IsAddressSync_x003E_k__BackingField> <d2p1:_x003C_IsCreatedInCA_x003E_k__BackingField>21</d2p1:_x003C_IsCreatedInCA_x003E_k__BackingField> <d2p1:_x003C_IsCreatedInUS_x003E_k__BackingField>20</d2p1:_x003C_IsCreatedInUS_x003E_k__BackingField> <d2p1:_x003C_IsUpdatedInCA_x003E_k__BackingField>23</d2p1:_x003C_IsUpdatedInCA_x003E_k__BackingField> <d2p1:_x003C_IsUpdatedInUS_x003E_k__BackingField>22</d2p1:_x003C_IsUpdatedInUS_x003E_k__BackingField> <d2p1:_x003C_MagentoAddressId_x003E_k__BackingField>sample string 1</d2p1:_x003C_MagentoAddressId_x003E_k__BackingField> <d2p1:_x003C_PostalCode_x003E_k__BackingField>sample string 15</d2p1:_x003C_PostalCode_x003E_k__BackingField> <d2p1:_x003C_RowNum_x003E_k__BackingField>9</d2p1:_x003C_RowNum_x003E_k__BackingField> <d2p1:_x003C_ShipToDef_x003E_k__BackingField>sample string 2</d2p1:_x003C_ShipToDef_x003E_k__BackingField> <d2p1:_x003C_State_x003E_k__BackingField>sample string 14</d2p1:_x003C_State_x003E_k__BackingField> <d2p1:_x003C_U_AddressSource_x003E_k__BackingField>sample string 6</d2p1:_x003C_U_AddressSource_x003E_k__BackingField> <d2p1:_x003C_U_MAddressID_x003E_k__BackingField>sample string 5</d2p1:_x003C_U_MAddressID_x003E_k__BackingField> </_x003C_Address_x003E_k__BackingField> <_x003C_IsCPShipDefault_x003E_k__BackingField>true</_x003C_IsCPShipDefault_x003E_k__BackingField> <_x003C_IsShipDefault_x003E_k__BackingField>true</_x003C_IsShipDefault_x003E_k__BackingField> </ManageAddress>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IPostXMLResultName | Description | Type | Additional information |
---|---|---|---|
PostResult | RequestResult |
None. |
|
Message | string |
None. |
|
Status | string |
None. |
|
Identifier | string |
None. |
|
Timestamp | date |
None. |
|
EntityObject | Object |
None. |
|
DocNum | integer |
None. |
|
CardCode | string |
None. |
|
IsCreatedInUS | integer |
None. |
|
IsCreatedInCA | integer |
None. |
|
IsUpdatedInUS | integer |
None. |
|
IsUpdatedInCA | integer |
None. |
|
AddressName | string |
None. |
|
USAccountToken | string |
None. |
|
CAAccountToken | string |
None. |
|
AcountPaymentToken | string |
None. |
|
CPTotal | decimal number |
None. |
|
ShippingCharge | decimal number |
None. |
|
ShippingTax | decimal number |
None. |
|
Tax | decimal number |
None. |
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.