# US 2025/0165314 A1 · System And Method For Determining Application Programming Interface (API) Version Compatibility And Related API Upgrade Process

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0165314 A1
- Document ID: US20250165314A1
- Status: Published application
- Kind: A1
- Application number: 18/513,881
- Filed: 2023-11-20
- Published: 2025-05-22
- Earliest claimed: 2023-11-20
- Assignees: Shopify Inc.
- Applicants: Shopify Inc.
- Inventors: Andrew HASSAN; Jimmy BOURASSA
- Web page: https://patentgrep.com/patent/US20250165314A1

## CPC

- G06F 9/541: {via adapters, e.g. between incompatible applications}
- G06F 8/656: while running
- G06F 8/71: Version control (security arrangements therefor G06F21/57); Configuration management
- G06F 9/5005: {to service a request}
- G06F 11/0793: {Remedial or corrective actions (recovery from an exception in an instruction pipeline G06F9/3861; by retry G06F11/1402; for recovering from a failure of a protocol instance or entity H04L69/40)}
- G06F 11/1433: {during software upgrading}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A system and method are provided for determining API version compatibility. The method includes executing a first query associated with at least one operation of a computer function that utilizes an application programming interface (API), to determine whether the first query validates to a schema for the at least one operation of the computer function, for a version of the API that is higher than a version of the API that the computer function currently calls. The method also includes, responsive to the first query validating to the schema, updating metadata for the computer function to subsequently have the computer function call the higher version of the API.

## Claims

### Claim 1

A computer-implemented method comprising:
executing a first query associated with at least one operation of a computer function that utilizes an application programming interface (API), to determine whether the first query validates to a schema for the at least one operation of the computer function, for a version of the API that is higher than a version of the API that the computer function currently calls; and
responsive to the first query validating to the schema, updating metadata for the computer function to subsequently have the computer function call the higher version of the API.

### Claim 2 (depends on 1)

The method of claim 1, wherein the higher version of the API is a next version compared to the version of the API that the computer function currently calls.

### Claim 3 (depends on 1)

The method of claim 1, wherein the higher version of the API is a latest version.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
executing a second query associated with the at least one operation of the computer function that utilizes the API, to determine whether the second query validates to the schema; and
responsive to the second query not validating to the schema, executing a remediation action.

### Claim 5 (depends on 4)

The method of claim 4, wherein the remediation action comprises providing an indication that the computer function cannot be run at runtime.

### Claim 6 (depends on 5)

The method of claim 5, wherein flagging the computer function for deprecation comprises one or more of sending a notification to a developer or owner of the computer function, or disabling the computer function.

### Claim 7 (depends on 4)

The method of claim 4, wherein the remediation action comprises executing the second query for a version of the API that is between the version currently called and the latest version.

### Claim 8 (depends on 1)

The method of claim 1, wherein the metadata comprises a runtime table storing API versions for at least one computer function.

### Claim 9 (depends on 1)

The method of claim 1, wherein the computer function operates within the same computing environment as a process executing the first query.

### Claim 10 (depends on 9)

The method of claim 9, wherein the process executing the first query is triggered by an event.

### Claim 11 (depends on 10)

The method of claim 10, wherein the event is associated with a deprecation of the API.

### Claim 12 (depends on 11)

The method of claim 11, wherein the event corresponds to a period of time following the deprecation of the API.

### Claim 13 (depends on 10)

The method of claim 10, wherein the event comprises failure of one of a plurality of computer functions that utilize the API to trigger a batch execution of a process comprising the first query.

### Claim 14 (depends on 1)

The method of claim 1, wherein the first query performs a static validation without running the computer function in its environment.

### Claim 15 (depends on 14)

The method of claim 14, wherein the first query comprises executing a GraphQL routine.

### Claim 16 (depends on 1)

The method of claim 1, wherein the first query comprises operating the computer function within a test environment.

### Claim 17

A system comprising:
at least one processor; and
at least one memory, the at least one memory comprising processor executable instructions that, when executed by the at least one processor, cause the system to:
execute a query associated with at least one operation of a computer function that utilizes an application programming interface (API), to determine whether the query validates to a schema for the at least one operation of the computer function, for a version of the API that is higher than a version of the API that the computer function currently calls;
responsive to the query validating to the schema, update metadata for the computer function to subsequently have the computer function call the higher version of the API; and
responsive to the query not validating to the schema, execute a remediation action.

### Claim 18 (depends on 17)

The system of claim 17, wherein the remediation action comprises providing an indication that the computer function cannot be run at runtime.

### Claim 19 (depends on 17)

The system of claim 17, wherein the remediation action comprises executing a second query for a version of the API that is between the version currently called and the latest version.

### Claim 20

A computer-readable medium comprising processor executable instructions that, when executed by a processor of a computer system, cause the computer system to:
execute a query associated with at least one operation of a computer function that utilizes an application programming interface (API), to determine whether the query validates to a schema for the at least one operation of the computer function, for a version of the API that is higher than a version of the API that the computer function currently calls;
responsive to the query validating to the schema, update metadata for the computer function to subsequently have the computer function call the higher version of the API; and
responsive to the query not validating to the schema, execute a remediation action.
