Skip to main content
POST
/
customers
/
{uuid}
/
addresses
Add address to customer
curl --request POST \
  --url https://{subdomain}.truust.io/2.0/customers/{uuid}/addresses \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "my_address",
  "line1": "Main street 123",
  "city": "Barcelona",
  "state": "Catalonia",
  "zip_code": "08001",
  "country": "ES"
}
'
{
  "id": 123,
  "self": "<string>",
  "uuid": "<string>",
  "name": "<string>",
  "email": "<string>",
  "prefix": "<string>",
  "phone": "<string>",
  "line1": "<string>",
  "line2": "<string>",
  "city": "<string>",
  "state": "<string>",
  "country": "<string>",
  "zip_code": "<string>",
  "tag": "<string>",
  "metadata": {},
  "created_at": "2023-11-07T05:31:56Z",
  "connections": {}
}

Documentation Index

Fetch the complete documentation index at: https://docs.truust.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Use your account's Secret Key as the Bearer token.

Path Parameters

uuid
string
required

Customer UUID.

Body

application/json
name
string
required

Address label or recipient name.

Maximum string length: 255
Example:

"my_address"

line1
string
required

Address line 1 (street and number).

Maximum string length: 255
Example:

"Main street 123"

city
string
required
Maximum string length: 255
Example:

"Barcelona"

state
string
required
Maximum string length: 255
Example:

"Catalonia"

zip_code
string
required

ZIP or postal code.

Example:

"08001"

country
string
required

ISO 3166-1 alpha-2 country code.

Maximum string length: 2
Example:

"ES"

line2
string

Address line 2 (apartment, suite, etc.).

Maximum string length: 255
email
string<email>
Maximum string length: 255
prefix
string

Phone country prefix (e.g. +34). Required with phone.

Example:

"+34"

phone
string

Phone number. Required with prefix.

Example:

"612345678"

tag
string
Maximum string length: 100
metadata
object

Response

Address created

id
integer
self
string | null
uuid
string
name
string | null
email
string | null
prefix
string | null
phone
string | null
line1
string | null
line2
string | null
city
string | null
state
string | null
country
string | null
zip_code
string | null
tag
string | null
metadata
object
created_at
string<date-time> | null
connections
object

Hypermedia links to related resources.