Ok, so when I add a customer there are fields for setting which address is shipping and which is for billing (BillingAddressID, ShippingAddressID)
How do I set these when I dont know what they are yet? The address get added a little later on in the customer structure.
Seems the Address elements should have a <AddressType>Shipping|Billing</AddressType).
Code:
<Customer Action="Add|Update|Delete|Nuke|Lookup" GUID="uniqueidentifier" ID="integer" EMail="string">
<CustomerLevelID>integer, make sure you know what you are doing if you explicitly set this</CustomerLevelID>
<RegisterDate>datetime, make sure you know what you are doing if you explicitly set this</RegisterDate>
<EMail>string</EMail>
<FirstName>string</FirstName>
<LastName>string</LastName>
<Phone>string</Phone>
<OkToEMail>boolean</OkToEMail>
<IsAdmin>integer, 0=normal user, 1=admin user, 3=superadmin user</IsAdmin>
<LocaleSetting>string, must be a valid storefront locale!</LocaleSetting>
<MicroPayBalance>decimal</MicroPayBalance>
<RecurringShippingMethodID>integer</RecurringShippingMethodID>
<BillingAddress ID="integer" GUID="uniqueidentifier"/>
<ShippingAddress ID="integer" GUID="uniqueidentifier"/>
<GiftRegistryGUID>uniqueidentifier, make sure you know what you are doing if you explicitly set this</GiftRegistryGUID>
<GiftRegistryIsAnonymous>boolean</GiftRegistryIsAnonymous>
<GiftRegistryAllowSearchByOthers>boolean</GiftRegistryAllowSearchByOthers>
<GiftRegistryHideShippingAddresses>boolean</GiftRegistryHideShippingAddresses>
<CODCompanyCheckAllowed>boolean</CODCompanyCheckAllowed>
<CODNet30Allowed>boolean</CODNet30Allowed>
<Over13Checked>boolean</Over13Checked>
<StoreCCInDB>boolean</StoreCCInDB>
<AdminCanViewCC>boolean, make sure you know what you are doing if you explicitly set this</AdminCanViewCC>
<IsRegistered>boolean, make sure you know what you are doing if you explicitly set this</IsRegistered>
<LockedUntil>datetime or "null", set this only with extreme care</LockedUntil>
<BadLoginCount>integer, set this only with extreme care</BadLoginCount>
<PwdChangeRequired>boolean, set this only with extreme care</PwdChangeRequired>
<Active>boolean, make sure you know what you are doing if you explicitly set this</Active>
<VATSetting>integer, make sure you know what you are doing if you explicitly set this</VATSetting>
<VATRegistrationID>string</VATRegistrationID>
<Notes>string</Notes>
<ExtensionData>string</ExtensionData>
<Addresses AutoCleanup="true|false, make sure you know what you are doing if you explicitly set this flag, as recurring orders could be adversly affected!!!!">
<Address Action="Add|Update|Delete|Nuke|Lookup" GUID="uniqueidentifier" ID="integer">
<NickName>string</NickName>
<FirstName>string</FirstName>
<LastName>string</LastName>
<Company>string</Company>
<Address1>string</Address1>
<Address2>string</Address2>
<Suite>string</Suite>
<City>string</City>
<State>string</State>
<Zip>string</Zip>
<Country>string</Country>
<ResidenceType>integer</ResidenceType>
<Phone>string</Phone>
<Email>string</Email>
<ExtensionData>string</ExtensionData>
</Address>
<Address Action="Add|Update|Delete|Nuke|Lookup" GUID="uniqueidentifier" ID="integer">
<NickName>string</NickName>
<FirstName>string</FirstName>
<LastName>string</LastName>
<Company>string</Company>
<Address1>string</Address1>
<Address2>string</Address2>
<Suite>string</Suite>
<City>string</City>
<State>string</State>
<Zip>string</Zip>
<Country>string</Country>
<ResidenceType>integer</ResidenceType>
<Phone>string</Phone>
<Email>string</Email>
<ExtensionData>string</ExtensionData>
</Address>
<Address Action="Add|Update|Delete|Nuke|Lookup" GUID="uniqueidentifier" ID="integer">
<NickName>string</NickName>
<FirstName>string</FirstName>
<LastName>string</LastName>
<Company>string</Company>
<Address1>string</Address1>
<Address2>string</Address2>
<Suite>string</Suite>
<City>string</City>
<State>string</State>
<Zip>string</Zip>
<Country>string</Country>
<ResidenceType>integer</ResidenceType>
<Phone>string</Phone>
<Email>string</Email>
<ExtensionData>string</ExtensionData>
</Address>
</Addresses>
</Customer>