# idsFromLegacyIds

Query · GraphQL API

Get GraphQL IDs from a list of legacy IDs and their types. Does not verify existence except for payment methods; if a payment method cannot be resolved, `null` is returned at that position in the list. Already-global IDs are returned as-is. Min: 1 Max: 50 IDs.
When calling this query with an OAuth access token, include a find scope (an `OAuthScope` ending in `_FIND`). Converting `PAYMENT_METHOD` IDs requires `MULTI_USE_PAYMENT_METHOD_FIND`; use this scope if your integration supports every `LegacyIdType`.

## Authentication

- SERVER

## Input

- `input` (`IdsFromLegacyIdsInput!`) — required

## Returns [[ID]!](/braintree/graphql/reference/types/id)

A non-blank unique identifier.

## Examples

### Ids from legacy ids

Input for the idsFromLegacyIds query.

```graphql
query idsFromLegacyIds($input: IdsFromLegacyIdsInput!) {
  idsFromLegacyIds(input: $input)
}
```

---

[View the complete GraphQL schema on GitHub](https://raw.githubusercontent.com/braintree/graphql-api/refs/heads/master/schema.graphql)