uuid

When using the old webhooks, you might receive resource IDs as numeric IDs. If you need any of those IDs in one of our new queries or mutations, you can use this query to retrieve the UUID corresponding to that resource or entity's numeric ID.

Arguments

ArgumentTypeRequiredDefaultDescription
legacy_idBigInt!Yes

Filter by numeric legacy ID; use only where legacy IDs are required.

entityEntityType!Yes

Filter by entity. Required.

analyzeBooleanNo

If true, the query will only be analyzed (cost estimated) without executing it.

Return Type

LegacyIdQueryResult

Query

query uuid(
  $legacy_id: BigInt!,
  $entity: EntityType!,
  $analyze: Boolean
) {
  uuid(
    legacy_id: $legacy_id,
    entity: $entity,
    analyze: $analyze
  ) {
    request_id
    complexity
    data {
      ...LegacyIdFragment
    }
  }
}

Variables

{
  "legacy_id": 1234,
  "entity": "order",
  "analyze": true
}

Response

{
  "data": {
    "uuid": {
      "request_id": "UmVjb3JkOjEyMzQ=",
      "complexity": 100,
      "data": {id: "TGVnYWN5SWQ6MTIzNA=="}
    }
  }
}