# Set Default Address

## /default/sender

<mark style="color:green;">`POST`</mark> `https://api.terminal.africa/v1/addresses`

This endpoint allows you to set an address as a default sender

#### Headers

| Name                                            | Type   | Description                      |
| ----------------------------------------------- | ------ | -------------------------------- |
| Authorization<mark style="color:red;">\*</mark> | String | Set value to `Bearer SECRET_KEY` |
| Content-Type                                    | String | Set value to `application/json`  |

#### Request Body

| Name                                          | Type   | Description                   |
| --------------------------------------------- | ------ | ----------------------------- |
| address\_id<mark style="color:red;">\*</mark> | String | Unique identifier for address |

{% tabs %}
{% tab title="200: OK " %}

```json
{
    "status": true,
    "message": "Sender default address set successfully",
    "data": {
        "_id": "6396cc6af856e035543f9cd7",
        "user": "USER-123456789",
        "city": "Surulere",
        "coordinates": {
            "lat": 6.504547,
            "lng": 3.3368681,
            "place_id": "ChIJU9f1kJ-OOxAR_nb-KPAraY8",
            "google_postal_code": "101241"
        },
        "country": "NG",
        "email": "danielozeh@terminal.africa",
        "first_name": "Daniel",
        "is_residential": true,
        "last_name": "Ozeh",
        "line1": "Lagos street",
        "line2": "",
        "metadata": {
            "google_postal_code": "101241"
        },
        "phone": "+2348131234567",
        "place_id": "ChIJU9f1kJ-OOxAR_nb-QPAraY8",
        "sender_default": true,
        "state": "Lagos",
        "zip": "",
        "address_id": "AD-123456789",
        "created_at": "2022-12-12T06:38:34.349Z",
        "updated_at": "2022-12-12T06:38:52.172Z",
        "__v": 0,
        "id": "6396cc6af856e035543f9cd7"
    }
}
```

{% endtab %}
{% endtabs %}
