---
updatedAt: 2025-08-27T16:18:19.000Z
agentTools:
  projectIndex: https://docs.moneyhubenterprise.com/v2.5/llms.txt
---

# Retrieve the counterparties for an account

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

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "description": "Documentation for the Moneyhub data API. <br/>Authentication is via bearer token. <br/>",
    "title": "Moneyhub Data API",
    "version": "2.0.0"
  },
  "security": [
    {
      "Bearer": []
    }
  ],
  "paths": {
    "/accounts/{accountId}/counterparties": {
      "get": {
        "summary": "Retrieve the counterparties for an account",
        "description": "**THIS ENDPOINT IS DEPRECATED.** Requires **accounts:read** and **transactions:read:all** scope.",
        "parameters": [
          {
            "description": "The Account Id",
            "in": "path",
            "name": "accountId",
            "required": true,
            "example": "0b4e6488-6de0-420c-8f56-fee665707d57",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "description": "Counterparties version",
            "in": "query",
            "name": "counterpartiesVersion",
            "schema": {
              "type": "string",
              "enum": [
                "v2",
                "v3"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Counterparties Response",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "data": {
                      "items": {
                        "$ref": "#/components/schemas/Counterparty"
                      },
                      "type": "array"
                    },
                    "links": {
                      "$ref": "#/components/schemas/Links"
                    },
                    "meta": {
                      "type": "object"
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unsuccessful Response - Not authorised - Missing authorization header - Invalid access Token",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Unsuccessful Response - Forbidden - Invalid scopes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Unsuccessful Response - Resource Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "tags": [
          "counterparties"
        ]
      }
    }
  },
  "servers": [
    {
      "url": "https://api.moneyhub.co.uk/v2.0"
    }
  ],
  "components": {
    "securitySchemes": {
      "Bearer": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header"
      }
    },
    "schemas": {
      "Counterparty": {
        "additionalProperties": false,
        "type": "object",
        "properties": {
          "id": {
            "description": "The unique identifier for the counterparty.",
            "example": "4bac27393bdd9777ce02453256c5577cd02275510b2227f473d03f533924f877",
            "type": "string"
          },
          "label": {
            "description": "A label describing the counterparty",
            "example": "British Gas",
            "type": "string"
          },
          "type": {
            "description": "The type of counterparty (specific to an account, or globally recognised across all users)",
            "example": "local",
            "type": "string",
            "enum": [
              "global",
              "local"
            ]
          },
          "companyName": {
            "description": "The full name of the company (only for global counterparties)",
            "example": "Itsu Limited",
            "type": "string"
          },
          "logo": {
            "description": "The url to the company logo (only for global counterparties)",
            "example": "https://s3-eu-west-1.amazonaws.com/itsu-production/wp-content/uploads/2018/07/19152431/GUIDE_LOGO_itsu.png",
            "type": "string"
          },
          "website": {
            "description": "The url to the company website (only for global counterparties)",
            "example": "https://www.itsu.com",
            "type": "string"
          },
          "mcc": {
            "type": "object",
            "properties": {
              "code": {
                "description": "The merchant category code (only for global counterparties)",
                "example": "5812",
                "type": "string"
              },
              "name": {
                "description": "The merchant category code name (only for global counterparties)",
                "example": "Eating Places and Restaurants",
                "type": "string"
              }
            }
          }
        },
        "example": {
          "id": "4bac27393bdd9777ce02453256c5577cd02275510b2227f473d03f533924f877",
          "label": "British Gas"
        },
        "required": [
          "id",
          "label",
          "type"
        ]
      },
      "Links": {
        "additionalProperties": false,
        "properties": {
          "next": {
            "description": "The url to retrieve the next page of results from",
            "format": "uri",
            "type": "string"
          },
          "prev": {
            "description": "The url to retrieve the previous page of results from",
            "format": "uri",
            "type": "string"
          },
          "self": {
            "description": "The url of the current resource(s)",
            "format": "uri",
            "type": "string"
          }
        },
        "required": [
          "self"
        ],
        "type": "object"
      },
      "Error": {
        "additionalProperties": false,
        "properties": {
          "code": {
            "description": "The error code",
            "type": "string"
          },
          "message": {
            "description": "The error message",
            "type": "string"
          },
          "correlationId": {
            "description": "Id that identifies the request and can be used to ask for more details related to the error",
            "type": "string"
          },
          "id": {
            "description": "Id of the resource",
            "type": "string"
          },
          "userId": {
            "description": "UserId of the resource",
            "type": "string"
          }
        },
        "required": [
          "code"
        ],
        "type": "object"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```