Hello,
Each customer profile that is created is automatically assigned a Customer Profile ID, along with a Payment Profile ID for each payment method, and if applicable, a Shipping Profile ID for any shipping addresses. If they have entered incomplete information, they can update the profile at any time.
To create a customer shipping address, you would use a createCustomerShippingAddressRequest API call with the customerProfileId:
{
"createCustomerShippingAddressRequest": {
"merchantAuthentication": {
"name": "xxxxxxx",
"transactionKey": "xxxxxxxxx"
},
"customerProfileId": "10000",
"address": {
"firstName": "Mary",
"lastName": "Smith",
"company": "",
"address": "123 Main St.",
"city": "Bellevue",
"state": "WA",
"zip": "98004",
"country": "USA",
"phoneNumber": "000-000-0000",
"faxNumber": ""
},
"defaultShippingAddress": true
}
}
Updating a customer's shipping address is done with an updateCustomerShippingAddressRequest API call. The relevant JSON is below:
{
"updateCustomerShippingAddressRequest": {
"merchantAuthentication": {
"name": "XXXXXXX",
"transactionKey": "XXXXXXX"
},
"customerProfileId": "10000",
"address": {
"firstName": "Mary",
"lastName": "Smith",
"company": "",
"address": "123 Main St.",
"city": "Bellevue",
"state": "WA",
"zip": "98004",
"country": "USA",
"phoneNumber": "000-000-0000",
"faxNumber": "",
"customerAddressId": "30000"
},
"defaultShippingAddress": true
}
}