POST//
Use this endpoint to create an address resource.
When creating the address, you must pass the token of either an existing user in the user_token field or an existing business in the business_token field. Do not pass both.
Request body
| Fields | Description |
|---|---|
| active boolean Optional | Specifies whether the address is active. Allowable Values: true, falseDefault value: true |
| address_1 string Required | Street name and number of the address. Allowable Values: 255 char max |
| address_2 string Optional | Additional address information. Allowable Values: 255 char max |
| business_token string Optional | Unique identifier of the business account holder. This token is required if a user_token is not specified.Allowable Values: 1–36 chars |
| city string Required | City of the address. Allowable Values: 40 char max |
| country string Required | Country of the address. Allowable Values: 1–40 chars |
| first_name string Required | First name or given name of the account holder. Allowable Values: 40 char max |
| is_default_address boolean Optional | A value of true specifies that this address is the default address used by the account holder’s funding source. If this is the account holder’s only address, it is used as the default regardless of this field’s setting.Allowable Values: true, falseDefault value: false |
| last_name string Required | Last name or family name of the account holder. Allowable Values: 40 char max |
| phone string Optional | Telephone number of the account holder. Allowable Values: 255 char max |
| postal_code string Optional | Postal code of the address. Allowable Values: 10 char max |
| state string Required | Two-character state, provincial, or territorial abbreviation. For the complete list, see Valid state, provincial, territorial, and federal abbreviations. Allowable Values: 2 char max |
| token string Optional | Unique identifier of the address. If you do not include a token, the system will generate one automatically. This token is necessary for use in other API calls, so we recommend that rather than let the system generate one, you use a simple string that is easy to remember. This value cannot be updated. Allowable Values: 1–36 chars |
| user_token string Optional | Unique identifier of the user account holder. This token is required if a business_token is not specified.Allowable Values: 1–36 chars |
| zip string Optional | United States ZIP code. This field is required if postal_code is not specified.Allowable Values: 10 char max |
Sample request body
JSON
{
"token": "my_funding_source_address_biz_01",
"city": "Berkeley",
"state": "CA",
"postal_code": "94705",
"zip": "94705",
"country": "USA",
"phone": "5104444444",
"business_token": "my_business_01",
"first_name": "Jane",
"last_name": "Doe",
"address_1": "1234 Grove Street"
}
Response body
| Fields | Description |
|---|---|
| active boolean Conditionally returned | Specifies whether the address is active. This field is returned if it exists in the resource. Allowable Values: true, false |
| address_1 string Returned | Street name and number of the address. Allowable Values: 255 char max |
| address_2 string Conditionally returned | Additional address information. This field is returned if it exists in the resource. Allowable Values: 255 char max |
| business_token string Conditionally returned | Unique identifier of the business account holder. This token is returned if a user_token is not specified.Allowable Values: 1–36 chars |
| city string Returned | City of the address. Allowable Values: 40 char max |
| country string Returned | Country of the address. Allowable Values: 1–40 chars |
| created_time datetime Returned | Date and time when the resource was created, in UTC. Allowable Values: datetime Format: yyyy-MM-ddThh:mm:ssZ |
| first_name string Returned | First or given name of the cardholder. Allowable Values: 40 char max |
| is_default_address boolean Conditionally returned | A value of true specifies that this address is the default address used by the account holder’s funding source. If this is the account holder’s only address, it is used as the default regardless of this field’s setting.This field is returned if it exists in the resource. Allowable Values: true, false |
| last_modified_time datetime Returned | Date and time when the resource was last modified, in UTC. Allowable Values: datetime Format: yyyy-MM-ddThh:mm:ssZ |
| last_name string Returned | Last name or family name of the cardholder. Allowable Values: 40 char max |
| phone string Conditionally returned | Telephone number of the cardholder. This field is returned if it exists in the resource. Allowable Values: 255 char max |
| postal_code string Returned | Postal code of the address. Allowable Values: 10 char max |
| state string Returned | Two-character state, provincial, or territorial abbreviation. For the complete list, see Valid state, provincial, territorial, and federal abbreviations. Allowable Values: 2 char max |
| token string Returned | Unique identifier of the address object. Allowable Values: 1–36 chars |
| user_token string Conditionally returned | Unique identifier of the user account holder. This token is returned if a business_token is not specified.Allowable Values: 1–36 chars |
| zip string Returned | United States ZIP code of the address. This field is returned if postal_code is not specified.Allowable Values: 10 char max |
Sample response body
JSON
{
"business_token": "my_business_01",
"token": "my_funding_source_address_biz_01",
"first_name": "Jane",
"last_name": "Doe",
"address_1": "1234 Grove Street",
"city": "Berkeley",
"state": "CA",
"postal_code": "94705",
"zip": "94705",
"country": "USA",
"phone": "5104444444",
"is_default_address": true,
"active": true,
"created_time": "2023-02-20T20:04:13Z",
"last_modified_time": "2023-02-20T20:04:13Z"
}