---
title: "List Address Metafields"
description: "Use GET /users/{user_id}/addresses/{address_id}/metafields to list the metafields attached to a user's address."
canonical: https://docs.ordering.co/api-reference/guides/testinput/
---

# List Address Metafields

> **API operation:** [Open the endpoint in Scalar](https://docs.ordering.co/api-reference/#tag/users/GET/users/{user_id}/addresses/{address_id}/metafields)

Use `GET /users/{user_id}/addresses/{address_id}/metafields` to list the metafields attached to a user's address. The current public operation is `AddressMetafield.findAll`.

This operation requires authentication. A non-administrator can read only when `user_id` identifies the authenticated user, and the controller verifies that `address_id` belongs to that user. Pagination, filters, and response fields depend on the operation.

See [Find an address metafield](https://docs.ordering.co/api-reference/guides/find-address-metafield/) and [Extra attributes (Metafields)](https://docs.ordering.co/api-reference/guides/extra-attributes/).

## OpenAPI reference

**Operation:** `GET /users/{user_id}/addresses/{address_id}/metafields`

**Path parameters**

| Name         | Type    | Required | Description |
| ------------ | ------- | -------- | ----------- |
| `user_id`    | integer | Yes      | —           |
| `address_id` | integer | Yes      | —           |

**Query parameters**

| Name        | Type    | Required | Description                                                                                                                                              |
| ----------- | ------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `params`    | string  | No       | Comma-separated list of fields. It is intersected with the model’s $fillable; an empty or invalid list returns all fields.                               |
| `orderBy`   | string  | No       | Field to sort by, with `-` prefixed for descending order. Multiple fields can be chained with commas.                                                    |
| `where`     | string  | No       | JSON filter over the fields the model declares as filterable. Valid fields for each resource are exposed in its `x-ordering-whereable` schema extension. |
| `page`      | integer | No       | Page number, starting at 1. Applies only to lists that return a pagination block.                                                                        |
| `page_size` | integer | No       | Number of items per page.                                                                                                                                |

**Responses**

| Code | Description                           |
| ---- | ------------------------------------- |
| 200  | OK (Envelope)                         |
| 400  | Bad Request (ErrorResponse)           |
| 401  | Unauthorized                          |
| 404  | Not Found                             |
| 429  | Too Many Requests (ErrorResponse)     |
| 500  | Internal Server Error (ErrorResponse) |
| 503  | Service Unavailable (ErrorResponse)   |

[Open this operation in the API reference](https://docs.ordering.co/api-reference/#tag/users/GET/users/{user_id}/addresses/{address_id}/metafields)
