v1

latestOpenAPI 3.1.0Proprietary2026-07-24710198.3 KB
User Management

Create Address

Creates and saves a new address entry in the user's address book. Saved addresses can be quickly reused when creating shipments, eliminating the need to re-enter full address details each time.

When to use: Call this endpoint when a user wants to store a frequently used origin or destination address for future shipments, or when onboarding a new customer whose address should be saved for repeat orders.

Prerequisites:

  • Valid JWT token in the Authorization header
  • A user_id identifying the address owner
  • A complete address object with required fields: name, street, city, state, zipcode, and country

Key behaviors:

  • Returns the newly created address_id which can be referenced in future shipment creation calls
  • The country field must be a valid two-letter ISO country code (e.g., MX, US, CO)
  • Optional fields include company, street2, and phone
  • Duplicate addresses are not automatically detected; the same address can be saved multiple times
  • Saved addresses can be retrieved with GET /all-addresses and managed with PUT /user-address/{address_id} or DELETE /user-address/{address_id}
post/user-address

Request body

user_idinteger required

User ID

Example request

{
  "user_id": 1024,
  "address": {
    "name": "Juan Pérez",
    "company": "Warehouse Operations",
    "street": "Av. Industrial 500",
    "street2": "Int. 4B",
    "city": "Monterrey",
    "state": "NL",
    "zipcode": "64000",
    "country": "MX",
    "phone": "8180000000"
  }
}

Response

Successful response

successboolean

Indicates if the request was successful