Address
Address: Update
See also the Address response object.
- Python
gateway.address.update("the_customer_id", 'the_address_id', {
"first_name": "Jenna",
"last_name": "Smith",
"company": "Braintree",
"street_address": "1 E Main St",
"extended_address": "Suite 403",
"locality": "Chicago",
"region": "Illinois",
"postal_code": "60622",
"country_code_alpha2": "US"
})
If the address or customer can't be found, it will throw a NotFoundError
exception.
Arguments
address_id
required, strcustomer_id
, then address_id
in order to successfully update this value.customer_id
required, strAdditional Parameters
'company'
strThe ISO 3166-1 alpha-2 country code specified in an address. The gateway only accepts specific alpha-2 values.
The ISO 3166-1 alpha-3 country code specified in an address. The gateway only accepts specific alpha-3 values.
The ISO 3166-1 numeric country code specified in an address. The gateway only accepts specific numeric values.
The country name specified in an address. We only accept specific country names.
'first_name'
str'last_name'
str'locality'
strDeprecated.
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.
'region'
str