# Get Pickup Locations

Easily retrieve pickup locations using this endpoint . This page explains how to use the API to get the pickup ID, which can then be used for creating orders. This straightforward process ensures that you can efficiently manage pickups and streamline order creation without any hassle.

## Get Pickup Locations

<mark style="color:green;">`GET`</mark> `/merchant/locations`

This endpoint allows you to retrieve an merchant pickup locations.

<details>

<summary>Base URL</summary>

[https://api.fincart.io](https://api.fincart.io/)

</details>

**Headers**

| Name          | Value                                                                             |
| ------------- | --------------------------------------------------------------------------------- |
| Content-Type  | `application/json`                                                                |
| Authorization | [<mark style="color:blue;">`<token>`</mark>](/fincart-api/access/access-token.md) |

**Response**

{% tabs %}
{% tab title="200 (Pending)" %}

```json
{
    "status": "success",
    "msg": "Get merchant pickup locations",
    "body": [
        {
            "country": "EG",
            "_id": "671f5a8c167f3e3eaecXXXXX",
            "name": "Default Location",
            "city": "Default Location City",
            "area": "Default Location Area",
            "address_line": "Default Location Address",
            "landmark": "",
            "is_default": true,
            "contacts": [
                {
                    "name": "Contact Person Name",
                    "phone": "0112XXXXXXX",
                    "is_default": true
                }
            ]
        }
    ]
} 

```

{% endtab %}

{% tab title="401" %}

```json
{
    "message": "Unauthorized"
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://fincart.gitbook.io/fincart-api/apis/get-pickup-locations.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
