Add Address
Add an address to a shopper’s account address book.
Authorizations
Bolt utilizes the OAuth flow that developers can use to attain access to Bolt Account data via APIs.
For all APIs that require authorization, please provide your access_token returned from /v1/oauth/token via the basic auth bearer header Authorization: bearer ${TOKEN}.
Read more about the OAuth token endpoint.
Admins and Developers can obtain their Bolt API key from the Bolt Merchant Dashboard.
Headers
The publicly viewable identifier used to identify a merchant division. This key is found in the Developer > API section of the Bolt Merchant Dashboard [RECOMMENDED].
A key created by merchants that ensures POST and PATCH requests are only performed once. Read more about Idempotent Requests here.
Body
The Address object is used for billing, shipping, and physical store address use cases.
The ISO 3166-1 alpha-2 country code associated with this address.
2"US"
The email address associated with this address.
255"alan.watts@example.com"
The given name of the person associated with this address.
1024"Alan"
The surname of the person associated with this address.
1024"Watts"
The city name details associated with this address.
1024"Brooklyn"
The the postal or zip code associated with this address.
32"10044"
Not Required for NON US addresses. The region details such as state or province associated with this address.
1024"NY"
The street number and street name of the address.
1024"888 main street"
The company name associated with this address.
1024"Bolt"
The name of the country associated with this address.
1024"United States"
Set this to true to make this the default shipping address. There can be only one address with default set to true.
true
The building door code or community gate code.
1024"123456"
The given and surname of the person associated with this address.
1024"Alan Watts"
The phone number associated with this address.
16"+12125550199"
The ISO 3166-2 region code associated with this address.
-
- If specified, value must be valid for the
country.
- If specified, value must be valid for the
-
- If null, value is inferred from the
region.
- If null, value is inferred from the
1024"NY"
Any apartment, floor, or unit details.
1024"apt 3021"
Any additional street address details.
1024"c/o Alicia Watts"
Any additional street address details.
1024"Bridge Street Apartment Building B"
A key-value pair object that allows users to store arbitrary information associated with an object. For any individual account object, we allow up to 50 keys. Keys can be up to 40 characters long and values can be up to 500 characters long. Metadata should not contain any sensitive customer information, like PII (Personally Identifiable Information). For more information about metadata, see our documentation.
{ "customer_id": 234 }Response
Address Added Successfully
The address object returned in the response.
The company name associated with this address.
"Bolt"
The name of the country associated with this address.
"United States"
The ISO 3166-1 alpha-2 country code associated with this address.
"US"
The building door code or community gate code.
1024"123456"
The email address associated with this address.
255"alan.watts@example.com"
The given name of the person associated with this address.
"Alan"
The unique Bolt ID associated with this address.
The surname of the person associated with this address.
"Watts"
The city name details associated with this address.
"Brooklyn"
The given and surname of the person associated with this address.
"Alan Watts"
The phone number associated with this address.
16"+12125550199"
The postal or zip code associated with this address.
32"10044"
The shopper-indicated priority of this address compared to other addresses on their account.
primary, listed "primary"
The region details such as state or province associated with this address.
"NY"
The the ISO 3166-2 region code associated with this address.
"NY"
The street number and street name of the address.
"888 main street"
Any apartment, floor, or unit details.
"apt 3021"
Any additional street address details.
"c/o Alicia Watts"
Any additional street address details.
"Bridge Street Apartment Building B"
A key-value pair object that allows users to store arbitrary information associated with an object. For any individual account object, we allow up to 50 keys. Keys can be up to 40 characters long and values can be up to 500 characters long. Metadata should not contain any sensitive customer information, like PII (Personally Identifiable Information). For more information about metadata, see our documentation.
{ "customer_id": 234 }