Address
Address: Update
See also the Address response object.
- C#
var updateRequest = new AddressRequest
{
FirstName = "Jenna",
LastName = "Smith",
Company = "Braintree",
StreetAddress = "1 E Main St",
ExtendedAddress = "Suite 403",
Locality = "Chicago",
Region = "Illinois",
PostalCode = "60622",
CountryCodeAlpha2 = "US"
};
gateway.Address.Update("TheCustomerId", "TheAddressId", updateRequest);
If the address or customer can't be found, it will throw a NotFoundException
.
Arguments
AddressId
required, stringcustomer_id
, then address_id
in order to successfully update this value.CustomerId
required, stringAdditional Parameters
Company
stringCountryCodeAlpha2
stringThe ISO 3166-1 alpha-2 country code specified in an address. The gateway only accepts specific alpha-2 values.
CountryCodeAlpha3
stringThe ISO 3166-1 alpha-3 country code specified in an address. The gateway only accepts specific alpha-3 values.
CountryCodeNumeric
stringThe ISO 3166-1 numeric country code specified in an address. The gateway only accepts specific numeric values.
CountryName
stringThe country name specified in an address. We only accept specific country names.
ExtendedAddress
stringFirstName
stringCountryCode
stringNationalNumber
stringLastName
stringLocality
stringPhoneNumber
stringDeprecated.
We recommend using international_phone
. This functionality still exists in the gateway but is no longer documented. This parameter will be removed in the future.
PostalCode
stringRegion
stringStreetAddress
string