wm.tn.profile:addAddresses
Adds one or more new addresses to a partner's profile.
The service validates the addresses before saving them. If errors are found, the service does not save the addresses and returns the errors.
Input Parameters
partnerID | String The internal identifier for the trading partner. |
addresses | Object List The addresses to add to the partner's (specified by partnerID) profile. The variable addresses must be an array of com.wm.app.tn.profile.Address instances. |
Output Parameters
ids | String List The unique identifier that Trading Networks created for each address that the service added to the partner's profile. |
errors | String List (optional) A string array that contains the errors found in the addresses, if any. |
Usage Notes
![*](bullet.gif)
The
wm.tn.profile:addAddresses service can either add the address as the partner's corporate address or as the address for one of the partner's contacts. To associate the address with the partner's organization, leave the
ContactID field of the
com.wm.app.tn.profile.Address instance empty. To associate the address with a contact, set the
ContactID field of the Address object to the internal identifier of the contact.
![*](bullet.gif)
A partner's organization can have multiple addresses. A contact can have either no addresses or one address.