Address
Address: Delete
Addresses are uniquely identified by a customer id and an address id, so you need both of these fields to delete an address.
- Node
gateway.address.delete("theCustomerId", "theAddressId", (err) => {
});
If the address or customer can't be found, it will return a notFoundError
.
Arguments
addressId
required, StringThe two-letter value for an address associated with a specific customer ID. The maximum number of addresses per customer is 50.
customerId
required, StringA string value representing an existing customer in your Vault.
When true, the address will not be deleted if it is the billing address for a payment instrument.
Additional Parameters
phoneNumber
StringThe phone number that belongs to the address. Phone number must be 10-14 characters and can only contain numbers, hyphens and parentheses.