---
title: "Retrieve the counterparties for an account"
method: GET
path: "/accounts/{accountId}/counterparties"
tags: ["counterparties"]
---

# Retrieve the counterparties for an account

`GET /accounts/{accountId}/counterparties`

## Request

- Base URL: `https://api.moneyhub.co.uk/v2.0`
- URL: `https://api.moneyhub.co.uk/v2.0/accounts/{accountId}/counterparties`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/moneyhub/apis/moneyhub-data-api/docs/accounts/:accountId/counterparties/get.ts> (a function with typed inputs; its response is checked against the schema)

**THIS ENDPOINT IS DEPRECATED.** Requires **accounts:read** and **transactions:read:all** scope.

## Path parameters

- `accountId` string, uuid, required

## Query parameters

- `counterpartiesVersion` 'v2' | 'v3'

## Response `200`

Successful Counterparties Response

- object
  - `data` Counterparty[]
    - `id` string, required: The unique identifier for the counterparty.
    - `label` string, required: A label describing the counterparty
    - `type` 'global' | 'local', required: The type of counterparty (specific to an account, or globally recognised across all users)
    - `companyName` string: The full name of the company (only for global counterparties)
    - `logo` string: The url to the company logo (only for global counterparties)
    - `website` string: The url to the company website (only for global counterparties)
    - `mcc` object
      - `code` string: The merchant category code (only for global counterparties)
      - `name` string: The merchant category code name (only for global counterparties)
  - `links` Links
    - `next` string, uri: The url to retrieve the next page of results from
    - `prev` string, uri: The url to retrieve the previous page of results from
    - `self` string, uri, required: The url of the current resource(s)
  - `meta` object

## Other responses

- `401`: Unsuccessful Response - Not authorised - Missing authorization header - Invalid access Token
- `403`: Unsuccessful Response - Forbidden - Invalid scopes
- `404`: Unsuccessful Response - Resource Not found

---

[API](https://skmtc.dev/moneyhub/apis/moneyhub-data-api.md) - [All operations](https://skmtc.dev/moneyhub/apis/moneyhub-data-api/llms.txt) - [OpenAPI document](https://skmtc.dev/moneyhub/apis/moneyhub-data-api/revisions/f2eb965eb9af?raw)
