Global Payments ×APIMatic
Agent readiness study · GP API · October 2026

Can an AI agent integrate GP API today?

More and more payment integrations are written by AI coding agents. We measured what those agents actually get from Global Payments' developer site, where they get stuck, and what changes when the portal, SDKs and agent tools are generated from GP's own OpenAPI spec.

Operations with their own reference page
0→73/ 73
Operations an agent can read fully in one fetch
38→69/ 72
Published spec files that fail OpenAPI validation
12→0/ 17
Operations a GP SDK can call
52→73/ 73
GP todayGenerated from GP's spec with APIMatic
In one minute

The short version

The problem

GP's API reference renders only in a browser, and its Markdown packs each API group into one huge file. Agents get almost no text from the pages and have to page through files up to 1.46 MB long to find a single operation's fields.

Why it matters

Everything else is downstream of the spec: SDKs, agent skills, MCP servers. GP's published spec fails validation, its SDKs cover 52 of 73 operations, and its docs MCP server returns 0 of 19 documentation categories.

The fix

Fix the spec once, then generate everything from it: a portal with one page per operation, SDKs covering every operation, a Context Plugin for coding agents and an MCP server. One API change reaches every output in 204 seconds with no hand edits.

Background

How an AI agent reads your documentation

An agent reads docs the way a script does. It requests a URL, does not run JavaScript, and reads about the first 100,000 characters of what comes back. If the fields it needs are further down, it has to ask again, and again.

Today, on developer.globalpayments.com
  1. Developer asks an agent to integrate GP API
  2. Agent opens a GP API pageit needs JavaScript, so the agent sees about 48 characters of text
  3. Agent finds the Markdown fileone file per API group, up to 1.46 MB
  4. The fields are far down the file“Refund a Sale” starts at character 422,588
  5. Agent pages through itup to 8 fetches for a single operation
  6. Resultmore turns and cost, or it falls back to guides and memory
With APIMatic, from GP's own spec
  1. GP's 17 OpenAPI filesvalidated and fixed, 508 changes logged
  2. One clean spec73 operations
  3. Portal: one page per operationreadable without JavaScript, with llms.txt and a sitemap that link every operation
  4. SDKsC#, Python and TypeScript, every operation
  5. Context Pluginskills and an SDK map for Claude Code, Cursor and Codex
  6. Resultthe agent reads every field in one fetch for 69 of 72 operations
Gap 1

Agents that search land on pages they can't read

We gave agents a GP coding task and a matching PayPal task, with web search and fetch, and told them to use the official docs. 30 runs each. GP's agents mostly opened GP's HTML pages, which return almost nothing without JavaScript.

Official pages that came back nearly empty lower is better
GP79% 61 of 77
PayPal28% 19 of 69
Runs that reached the provider's Markdown docs higher is better
GP4 of 30
PayPal16 of 30
Median turns to finish the task lower is better
GP12
PayPal7.5

GP runs took more turns than the matching PayPal run in 24 of 30 pairs (sign test p = 0.001). Markdown reached: Fisher exact p = 0.002.

Gap 2

GP's reference makes agents dig for the fields

We measured the same 73 operations on GP's developer site and on a portal APIMatic generated from GP's own spec, using the same field lists for both.

Where does an agent find the fields for Refund a Sale?
GP: transactions.md
1st fetchfields start at char 422,5881.46 M chars
APIMatic: the refund page
1st fetch47 K chars

Both rows use the same scale. The shaded area is what one fetch reads: the first 100,000 characters. On GP's site the agent reaches the refund fields on its 5th fetch. On the APIMatic page they're in the first.

All 73 GP API operations: how many fetches until an agent has read every field?
GP today
APIMatic portal
1 fetch2 to 4 fetches5 to 8 fetchesno body fields

Hover or tap a square to see the operation. Each operation's Markdown is read from the start, 100,000 characters at a time, until its last field is defined.

GP todayAPIMatic portal
Operations with their own page0 of 7373 of 73
Page text without JavaScript (median)48 chars3,991 chars
Pages that show the fields without JavaScript0 of 7268 of 72
Markdown an agent must fetch (median)260 K chars29 K chars
Fields found in the first fetch61%98%
A request example (curl) on the page0 of 7373 of 73
llms.txt links straight to the operation0 of 7373 of 73
sitemap.xml lists operation pages17 group pages73 operation pages

Collected 15 October 2026. Where the APIMatic portal also falls short: Create a Sale or Refund (73% of fields readable; GP 71%), Create a Link (90%) and 3-D Secure Initiate (92%), because their request schemas are very large. Neither site puts code samples in its Markdown.

Gap 3

The specification underneath has defects

Every SDK, MCP server and agent tool is generated from the OpenAPI spec. GP publishes it as separate files embedded in its reference pages, and as published they fail validation, so nothing reliable can be generated from them. APIMatic validated and fixed them, logging every change (508 in total).

Spec files that are invalid OpenAPI
12→0
of 17 files
API groups with no authentication declared
6→0
including Transactions
Issues that block code generation
15→0
blockers
OpenAPI conformance errors
615→0
errors
Eight issues that change real behaviour, for GP to confirm
AuthenticationsrequestBody on a GET operation
AuthenticationsCallback points at notifications.challenge_return_url, which isn't in the request
DisputesField name with a stray space: ' global_transaction_reference' (2 places)
FundsCallback points at notifications.status_url, which isn't in the request
LinksField name with a stray space: 'images '
VerificationsField name with a stray space: 'landline_phone ' (2 places)

A generated client would send field names with stray spaces to the API exactly as written. Two webhook callbacks (3-D Secure initiate and funds settlement) reference fields that their request doesn't have.

Test

Same tasks, each site: what agents actually did

Each agent got one starting point (the site's llms.txt), a fetch tool and no web search, and was told to take every endpoint, field and value from the docs. Four tasks on GP API operations that have no step-by-step guide. Two models, three runs each: 24 runs per site.

23/24 → 24/24
runs with correct code
both sites work
−17%
fewer turns in total
215 → 179 turns (p = 0.27)
−14%
lower cost in total
$3.43 → $2.94 at API list price (p = 0.30)
Split USD 2.50 of a transaction to a partner account
GP: 7 fetches to reach the fields · correct 5/6 vs 6/6 · turns p = 0.01
Median turns
GP12
APIMatic8
Median cost per run
GP$0.21
APIMatic$0.14
Get the full card number of a stored card
GP: 2 fetches · correct 6/6 vs 6/6 · turns p = 0.06
Median turns
GP8
APIMatic6
Median cost per run
GP$0.13
APIMatic$0.10
Hold a suspected-fraud transaction, then release it
GP: 8 fetches (a fraud guide also covers it) · correct 6/6 vs 6/6 · turns p = 0.37
Median turns
GP7
APIMatic9
Median cost per run
GP$0.13
APIMatic$0.14
Transfer USD 100.00 between merchant accounts
GP: 1 fetch (control task) · correct 6/6 vs 6/6 · turns p = 0.05
Median turns
GP6
APIMatic6.5
Median cost per run
GP$0.10
APIMatic$0.11
What we learned. Agents on GP's site still reached correct code. They got there by paging: the fetch tool reports where it cut off, and the agent asks for the next 100,000 characters. On the hold and split tasks, GP agents fetched transactions.md up to 9 times in one run, which matches the 7 to 8 fetches our measurement predicts. They also leaned on GP's guides and on related files that reuse the same field names. Where paging was needed most (split), the APIMatic portal was clearly faster. On hold and release it was slower. Across all four tasks the total saving is real, but at this sample size it isn't statistically significant.

Checks use facts from GP's spec: the endpoint, documented field names and enum values, amounts in the smallest currency unit, the X-GP-Version header and the token endpoint. The code was checked, not run. p-values: Mann-Whitney on turns per run (6 vs 6 per task, 24 vs 24 overall).

Part 2

Beyond the docs: SDKs, agent skills, MCP, and keeping them current

Agents rarely call a payments API from scratch. They reach for an SDK, a plugin of skills or an MCP server. This part looks at what GP offers in each, measured the same way.

Gap 4

GP's SDKs can call 52 of 73 operations

GP publishes 7 hand-written SDKs (C#, Go, Swift, Java, TypeScript, PHP and Python). We read the GP API request code of the Node and Python SDKs and matched it against every operation in GP's spec. Both implement the same 52 of 73. The SDKs APIMatic generates from the same spec implement all 73, in C#, Python and TypeScript.

52of 73
GP Node & Python SDKs
73of 73
APIMatic SDKs
5 whole API groups missing from GP's SDKsFunds, Installments, Orders, Payers, Reports
6 of 12 Python answers used a class GP's SDK doesn't haveagents writing GP Python code from memory used ServicesConfig
Operations implemented, by API group
GP SDKsAPIMatic SDKs
How they are madeHand-written; one package per language covering several GP gateways (GP API, Portico, Realex)Generated from GP's OpenAPI spec and regenerated when it changes
GP API operations52 of 73 (Node, Python)73 of 73 (C#, Python, TypeScript)
LicenceGPL-2.0, GPL-3.0MIT
Reference built for agentsNone in the SDKSDK map: route, signature, return type and every error for each operation
Open issues and pull requestsdotnet 71, ios 3, java 24, node 64, php 48, python 9n/a (generated)
Everything in GP's spec reaches the SDKs. We checked all 3 generated SDKs against the spec, file by file. All 73 operations, all 314 path, query and header parameters, all 673 field names (as sent on the wire) and all 1,160 enum values are there. Hand-written SDKs drift from the spec; generated ones carry all of it.

Also missing in both GP SDKs: funds settlement and lookups, GET /addresses, split, hold and release, both cryptogram operations, and detokenize. Where the APIMatic SDKs fall short: some model names are generic (Request, Response) because GP's spec titles them that way, and fixing those titles once fixes every language. GP's SDKs cover more languages (Go, Java, PHP, iOS, Android).

Gap 5

GP's agent skills are hand-written and cover the common flows only

GP already ships an agent plugin, globalpayments/agent-skills (created 28 August 2026, last updated 2 September 2026), with one hand-written skill per SDK: 8 in all. APIMatic's Context Plugin is generated with the SDKs from GP's spec. This section describes both; we did not benchmark them against each other.

GP agent-skillsAPIMatic Context Plugin
How it's madeWritten by hand from SDK sourceGenerated from the spec, with the SDKs
Skills8 (one per SDK)30 (auth, calling endpoints, errors, models, testing, integration workflow and more, for C#, Python, TypeScript)
GP API operations coveredCommon flowsAll 73, through the bundled SDK map
Stays currentUpdated by hand; last change 2 Sep 2026Regenerated whenever the spec changes
Installs inClaude Code, CodexClaude Code, Codex, Cursor
What GP's Node skill covers
✓ refund✓ capture✓ reversal✓ 3-D Secure✗ payment links✗ transfers✗ split✗ installments

The Python skill shows the same result. It also mentions GP's older Portico gateway more often than GP API (21 vs 13 mentions of their config classes), which matches the Portico/GP API mix-ups agents made.

Wrong guidance found. GP's Node skill tells agents to call detokenize() to reveal a stored card's number. In GP's Node SDK, the GP API request builder handles Auth, Capture, Confirm, DisputeAcceptance, DisputeChallenge, Edit, Reauth, Refund, Reversal, TokenDelete and TokenUpdate. Detokenize isn't one of them, so on GP API the call the skill recommends isn't implemented.
Gap 6

GP's docs MCP server can't return any documentation

GP's developer site promotes a local MCP server (globalpayments/mcp-server, last release 18 December 2025) with three tools: create a payment link, list payment links, and get_documentation, which “searches and retrieves API documentation for 19+ categories”. We sent exactly the requests the documentation tool sends.

0/19
documentation categories that load
every spec URL the tool uses returns 404
Required
GP app credentials, even to read docs
the server won't start without an App ID and secret
491
open pull requests on the repo
almost all automated dependency fixes; none merged
What happens when an agent asks for documentation
Agent calls
get_documentation
→
Tool requests a spec file on
developer.globalpay.com (old site)
301 →
developer.globalpayments.com
/sites/default/files/apidoc_specs/…
→
404 Not Found
→
Agent gets: “Failed to fetch documentation: HTTP 404”

GP moved its developer site to a new domain, and the spec files the tool depends on weren't carried over. Checked for all 19 categories on 15 October 2026, and confirmed on 16 October by running GP's server (v1.0.9, unmodified): 0 of 19 return documentation. The setup guide also points to folders and an entry file the repository doesn't have.

Built since the study

A working Global Payments MCP server

Generated on the same typed SDK: nine tools for sales, transactions, disputes, deposits and reconciliation, fees and pay-by-link. No credentials are needed to explore it in the Sandbox.

Gap 7

Nine hand-maintained artifacts, each released on its own schedule

GP told us governance adds at least a month to every launch. Today GP API is described by 9 separate hand-maintained artifacts: 7 SDKs, the agent skills and the docs MCP server. Every API change has to be made in each one and released through that process. Public history shows the cost: 153 commits across them in the last 12 months, and they still disagree with the spec and with each other.

One API change, two ways of shipping it
GP today: 9 hand-maintained artifacts
API change
7 SDKseach edited and released
Agent skillsedited by hand
Docs MCPhard-coded endpoint list
A governance review for every release
With APIMatic: 1 spec
API change in the spec
One governance review of the spec
One build · 204 s
SDKsC#, Python, TypeScript
Context Pluginskills + SDK map
Portal+ llms.txt
How long API groups have been public with no SDK support
Reports 1 op1,363 days
Funds 3 ops1,363 days
Payers 5 ops780 days
Installments 1 op780 days

Days since the group's reference page was first captured by the Internet Archive, to 16 October 2026. That's a lower bound: the pages may be older. In the last 12 months alone GP shipped 16 Node SDK releases, and none added these groups.

Measured: adding GP's Orders API (4 operations) to the spec
204 sone build
0hand edits
57new SDK source filesTS 15 · Python 19 · C# 23
4new reference pages
3SDK map entries
82pages with updated navigation

Two builds from the same source, one without the Orders operations, compared file by file.

GP artifactLast updatedOut of step today
Node and Python SDKsnpm: 16 releases, PyPI: 3 in 12 months52 of 73 operations
Agent skills2 Sep 2026 (43 days before the study)Since then: npm 3.12.0, 3.13.0, 3.14.0; PyPI 2.0.8; 18 commits across 5 SDKs
Docs MCP server18 Dec 20250 of 19 categories load

Generation doesn't remove governance: the spec still needs review. What changes is the number of things to review and release, from 9 hand-maintained artifacts to one spec.

Gap 8

Search engines can't index GP's API reference properly

Before an agent or a developer reaches a page, a search engine has to find and describe it. We read every page in both sites' sitemaps (plus GP's 17 API reference pages) the way a crawler that doesn't run JavaScript sees them.

1/17
GP API reference pages in GP's sitemap
APIMatic portal: all 73 operation pages
173/173
GP sitemap URLs on the old domain
all redirect; robots.txt doesn't name a sitemap
0/190
GP pages with a meta description
APIMatic portal: 79 of 79
GP developer siteAPIMatic portal
Meta description0 of 190 pages79 of 79, each unique
Link-preview tags (Open Graph, Twitter)0 of 19079 of 79
Canonical URL160 of 190; API reference 1 of 1779 of 79
API reference text without JavaScript (median)20 chars3,943 chars
robots.txt names the sitemapNoYes
Lighthouse SEO score (out of 100)
GP
9275929292
home, transactions, payment methods, getting started, card payments
APIMatic
100100100100100
home, refund, detokenize, TypeScript SDK, Context Plugin

Google Lighthouse 12.6.1, SEO category. GP's pages fail meta-description, crawlable-anchors and image-alt. Lighthouse runs JavaScript, so it flatters GP's site.

Precedent

PayPal already works this way

PayPal's server SDKs are generated by APIMatic. Here is what public data confirms.

6.7 M+
public SDK downloads
npm alone 4.5 M; PayPal reports 4 M installs
6
SDK languages
generated from one spec
✓
agent toolkit and MCP server built on the SDK
@paypal/agent-toolkit depends on @paypal/paypal-server-sdk

Claude Code's official plugin marketplace listed 315 plugins at the time of the study, including PayPal's, and none for any Global Payments brand. PayPal and APIMatic report time to first transaction falling from 4 hours to under 25 minutes; that figure is theirs and couldn't be checked publicly.

What this study does not show

  • Only Claude was tested (Claude Code with Sonnet and Opus). ChatGPT, Cursor and Copilot weren't measured.
  • On these tasks GP's site didn't cause wrong code: agents paged through its long files and used its guides. The measured cost of GP's layout is extra fetches, turns and spend, not failure. Agents whose fetch tool doesn't page may do worse; that wasn't tested.
  • Agent answers were checked against GP's documented facts; the code wasn't run against GP's sandbox.
  • GP's step-by-step guides are good: on the tasks they cover (refund, capture, void) agents did well from GP's site in an earlier test. The gaps here are in the API reference and the spec.
  • The APIMatic portal is a proof of concept built from GP's public spec, not a GP-approved source. Eight spec changes need GP's confirmation.
  • SDK coverage was measured for GP's Node and Python SDKs by reading their source; the other GP SDKs weren't measured. The agent-skills and Context Plugin comparison is descriptive, not a benchmark.
  • “Public since” dates are the Internet Archive's first capture of each page, so the real gaps may be longer.
  • GP's MCP server was run unmodified to confirm the 0 of 19 result. Only GP's official release was assessed.
Method and sources
  • Search test: 5 tasks × 2 models × 3 repeats per provider, every fetch logged.
  • Spec: GP's 17 OpenAPI 3.0.3 documents extracted from developer.globalpayments.com, validated with an OpenAPI validator and APIMatic's validator, and fixed with every change logged.
  • Crawlability: each of the 73 operations fetched from both sites without JavaScript; fields located in the Markdown each site serves. GP positions use the first match after the operation, which can only favour GP.
  • Agent test: start at llms.txt, fetch only, 4 reference tasks × 2 models × 3 repeats per site.
  • SDKs: the GP API request builders of GP's Node and Python SDKs, read from GitHub and matched to the 73 operations. SDK completeness: every operation, parameter, field name and enum value looked up in the generated SDK source.
  • Agent skills and MCP: the GitHub repositories globalpayments/agent-skills and globalpayments/mcp-server; the documentation tool's requests replayed, and GP's released server run unmodified.
  • Governance: commit history of GP's 9 public SDK, skills and MCP repositories, release dates from npm and PyPI, and first captures from the Internet Archive. Propagation: two builds of the same source with and without the Orders operations, compared file by file.
  • Search engines: robots.txt, sitemap.xml and the raw HTML head of every sitemap page on both sites, fetched without JavaScript; Lighthouse 12.6.1 SEO category on five pages per site.