Creating Addresses

Addresses stored in the vault need to be associated to a customer. There is a limit of 55 addresses that can be saved per customer. This page describes adding an address to an existing customer. Addresses can also be created with a credit card or created with a customer and a credit card.

Adding an Address to a Customer

The only attribute required to create an address is the CustomerId.

var request = new AddressRequest
{
    FirstName         = "Jenna",
    LastName          = "Smith",
    Company           = "Braintree",
    StreetAddress     = "1 E Main St",
    ExtendedAddress   = "Suite 403",
    Locality          = "Chicago",
    Region            = "Illinois",
    PostalCode        = "60622",
    CountryCodeAlpha2 = "US"
};

Result<Address> result = gateway.Address.Create("TheCustomerId", request);

See Also