---
title: "Retrieve address format pattern per list of country ISO codes or per list of address types Ids"
method: GET
path: "/locations/addressformats"
tags: ["Locations"]
---

# Retrieve address format pattern per list of country ISO codes or per list of address types Ids

`GET /locations/addressformats`

## Request

- Base URL: `https://sb2api.servicechannel.com/v3`
- URL: `https://sb2api.servicechannel.com/v3/locations/addressformats`
- Auth: OAuth 2
  - Authorization code: `https://sb2login.servicechannel.com/oauth/authorize`
  - Token URL: `https://sb2login.servicechannel.com/oauth/token`
- TypeScript: <https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/docs/locations/addressformats/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns a list of address types (Id, Pattern).

## Query parameters

- `c` string[], required
- `id` integer[], required

## Response `200`

The requested address types with patterns are in the response.

- ServiceChannelServicesMessagingLocationAddressType[]
  - `Id` integer: db Id value
  - `Pattern` string: Address format pattern

---

[API](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3.md) - [All operations](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/llms.txt) - [OpenAPI document](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/revisions/d490d6596809?raw)
