> ## Documentation Index
> Fetch the complete documentation index at: https://docs.salesive.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List shipping addresses

> Retrieve all saved shipping addresses for the authenticated shopper.

## Request

```http theme={null}
GET /shipping-address
Authorization: Bearer {{token}}
x-shop-id: {{shopId}}
```

## Headers

| Header          | Type   | Description                                  |
| --------------- | ------ | -------------------------------------------- |
| `Authorization` | string | Include the shopper token as `Bearer <jwt>`. |
| `x-shop-id`     | string | Scope the request to a specific shop.        |

## Successful response

```json theme={null}
{
    "status": 200,
    "success": true,
    "message": "Shipping addresses retrieved",
    "data": [
        {
            "_id": "6938e4f0019a97bc42775b59",
            "user": "69360693a7a8f7dc8ae32d6d",
            "name": "Jane Smith",
            "email": "jane@example.com",
            "phone": "+2348099887766",
            "address": "12 Computation Way, Lagos",
            "city": "Lagos",
            "state": "Lagos",
            "zipCode": "100001",
            "country": "NG",
            "latitude": 6.4541,
            "longitude": 3.3947,
            "validated": {
                "address_code": 572627280,
                "address": "12 Computation Way, Lagos Island, Lagos, Nigeria",
                "name": "Jane Smith",
                "email": "jane@example.com",
                "street_no": "12",
                "street": "Computation Way",
                "phone": "+2348099887766",
                "formatted_address": "12 Computation Way, Lagos Island, Lagos, Nigeria",
                "country": "Nigeria",
                "country_code": "NG",
                "city": "Lagos Island",
                "city_code": "Lagos Island",
                "state": "Lagos",
                "state_code": "LA",
                "postal_code": "100001",
                "latitude": 6.4541,
                "longitude": 3.3947
            },
            "isDefault": true,
            "deleted": false,
            "createdAt": "2025-12-10T03:11:44.136Z",
            "updatedAt": "2025-12-10T03:11:44.136Z",
            "__v": 0
        }
    ]
}
```

## Error response

```json theme={null}
{
    "status": 401,
    "success": false,
    "message": "Unauthorized",
    "data": {}
}
```


## OpenAPI

````yaml GET /shipping-address
openapi: 3.1.0
info:
  title: Salesive Store API
  description: >-
    REST interface for querying products, categories, and merchandising banners
    exposed by Salesive storefronts.
  version: 1.0.0
servers:
  - description: Production
    url: https://store.salesive.com/api/v1
security:
  - BearerAuth: []
    ShopIdHeader: []
paths:
  /shipping-address:
    get:
      summary: List shipping addresses
      description: Retrieve all saved shipping addresses for the authenticated shopper.
      parameters:
        - $ref: '#/components/parameters/XShopIdHeader'
      responses:
        '200':
          description: Shipping addresses retrieved successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListShippingAddressesResponse'
        '401':
          description: Unauthorized.
components:
  parameters:
    XShopIdHeader:
      name: x-shop-id
      in: header
      description: >-
        Optional identifier that scopes responses to a specific storefront when
        the referer cannot be inferred.
      required: false
      schema:
        type: string
  schemas:
    ListShippingAddressesResponse:
      type: object
      required:
        - status
        - success
        - message
        - data
      properties:
        status:
          type: integer
        success:
          type: boolean
        message:
          type: string
        data:
          type: object
          required:
            - shippingAddresses
          properties:
            shippingAddresses:
              type: array
              items:
                $ref: '#/components/schemas/ShippingAddress'
    ShippingAddress:
      type: object
      required:
        - _id
        - fullName
        - street
        - city
        - state
        - zipCode
        - country
        - isDefault
        - createdAt
        - updatedAt
      properties:
        _id:
          type: string
          description: Unique identifier for the shipping address.
        fullName:
          type: string
          description: Recipient name for the delivery.
        phone:
          type: string
          description: Optional phone number for delivery coordination.
        street:
          type: string
          description: Primary street address.
        street2:
          type: string
          description: Additional address details such as apartment or suite.
        city:
          type: string
          description: City component of the address.
        state:
          type: string
          description: State or province component of the address.
        zipCode:
          type: string
          description: Postal or ZIP code.
        country:
          type: string
          description: Country for the address.
        latitude:
          type: number
          description: Latitude coordinate for mapping purposes.
        longitude:
          type: number
          description: Longitude coordinate for mapping purposes.
        landmark:
          type: string
          description: Helpful nearby landmark or delivery instruction.
        isDefault:
          type: boolean
          description: Indicates whether this address is the default for the shopper.
        createdAt:
          type: string
          format: date-time
          description: Timestamp of when the address was created.
        updatedAt:
          type: string
          format: date-time
          description: Timestamp of when the address was last updated.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT issued by the Salesive Store API for authenticated shoppers.
    ShopIdHeader:
      type: apiKey
      in: header
      name: x-shop-id
      description: >-
        Optional storefront identifier sent as a header to scope responses to a
        specific shop. Try It requests remember this value once provided.

````