> The index of all pages is at [llms.txt](https://developers.qliro.com/llms.txt). Add `.md` to any page URL for its Markdown.

# Get customer address (/api-reference/admin/merchant-payment/get-customer-address)

`GET https://payments.qliro.com/checkout/adminapi/v2/merchantpayment/getCustomerAddress`

Production: `https://payments.qliro.com/checkout/adminapi`. Staging: `https://pago.qit.nu/checkout/adminapi`

Returns the customer's addresses: one for a physical customer, or every known address for a company customer. Swedish addresses only.

## Query parameters

- `JuridicalType` (string | null): 'Physical' or 'Company'. If 'Company', the PersonalNumber parameter will be interpreted as an organization number
- `PersonalNumber` (string | null): A national identification number to identify the customer. Length: `0 <= x <= 50`
- `CountryCode` (string | null): 'SE' or 'NO'. If country code not provided parameter will be interpreted as 'SE'

## Responses

### 200 (application/json)

The customer's addresses.

- `Addresses` (object[] | null)
  - `FirstName` (string | null)
  - `LastName` (string | null)
  - `CompanyName` (string | null)
  - `Street` (string | null)
  - `Street2` (string | null)
  - `PostalCode` (string | null)
  - `City` (string | null)
  - `CareOf` (string | null)

Example:

```json
{
  "Addresses": [
    {
      "FirstName": "string",
      "LastName": "string",
      "CompanyName": "string",
      "Street": "string",
      "Street2": "string",
      "PostalCode": "string",
      "City": "string",
      "CareOf": "string"
    }
  ]
}
```

### 400 (application/json)

- `ErrorCode` (string | null): Unique error code
- `ErrorMessage` (string | null): Detailed error message
- `ErrorReference` (string): A tracking ID from Qliro Checkout. Format: `guid`

Example:

```json
{
  "ErrorCode": "string",
  "ErrorMessage": "string",
  "ErrorReference": "string"
}
```

### 500 (application/json)

- `ErrorCode` (string | null): Unique error code
- `ErrorMessage` (string | null): Detailed error message
- `ErrorReference` (string): A tracking ID from Qliro Checkout. Format: `guid`

Example:

```json
{
  "ErrorCode": "string",
  "ErrorMessage": "string",
  "ErrorReference": "string"
}
```

## Example request

```bash
curl -X GET "https://payments.qliro.com/checkout/adminapi/v2/merchantpayment/getCustomerAddress"
```
