Your API errors are a promise to your customers. Does yours hold?

Fintech signing API: none of three written error guarantees was met on 11 endpoints, and 4 of 13 findings reopened at retest. Check fixes by running the API.
Case study

Your API errors are a promise to your customers. Does yours hold?

A code read accepted one fix. Calling the running API showed the gap was still open.

For CTOs and API owners at fintech infrastructure companies whose customers build on their error responses.

If customers build screens on your error responses, a field that drifts breaks their product. A fintech infrastructure company had written down how its API errors must look. We called the running API and compared every error response, field by field, with that standard.

  • Fintech infrastructure
  • Transaction signing API
  • Clients
  • Reputation
  • Money
A BetterQA engineer in glasses and a teal sweater checking a screen at her desk in the Cluj-Napoca office
The numbers
0 of 3error guarantees met by the running API
0 of 3envelope guarantees the running API met
11signing endpoints in scope, with 121 validation requirements
1fix a code read had accepted, caught by our runtime pass
13findings retested: 8 confirmed fixed in code, 4 reopened, 1 partial
At stake

What was at risk

Clients

Customers' front ends cannot render the errors

The company's provisional standard called for a trace id, a structured list of field errors and a vocabulary of codes a front end can show. The running API met none of the three on any of 11 signing endpoints, so a customer's screen cannot show a trace id or a field error.

Reputation

Messages that send users the wrong way

Key generation answered with an internal key-generation error when the real cause was authentication, and a rejected name returned one word, Invalid. A user who reads either is sent the wrong way.

Money

A fix closed that had not held

One fix was accepted from a code read because a shared guard looked right. Our runtime pass found the vault-by-id route bypassing that guard. Closed on the read alone, the gap would have stayed open while the team believed it shut.

Rules

Standards and rules in play

  • The company's own error standardA written design record set out three guarantees for every error. It was still marked provisional, so the report treats the result as conformance drift to confirm.
  • Environment-variable validationA separate check ran 32 cases against the product's configuration rules and found no enforcement defects, so the report also says where the product was sound.

Context: financial firms in the EU answer to DORA for managing ICT incidents, and a trace id on every error is what makes an incident traceable.

Method

How we tested it

Test level
System testing at API level, against the running service, followed by a retest.
Test types
Functional conformance testing against a written specification (black-box), then a retest of the 13 findings.
Test basis
The company's provisional design record for error responses, with 121 validation requirements across 11 signing endpoints.
  • TechniqueEquivalence partitioningFour error classes were probed, one from each partition: authentication, validation, not-found and malformed input. All four were non-conforming.
  • How we workedConformance check against the written standardEvery error response compared field by field with the three guarantees of the provisional design record.
  • How we workedCode read, then runtime passAt retest, 8 findings were confirmed fixed in code, 4 reopened and 1 was partial. Our runtime pass overturned one fix the code read had accepted, so the report recommends a runtime retest for the rest.

Terms as in the ISTQB CTFL 4.0.1 syllabus and glossary.

Findings

What we found, and what it costs

Conformance

The running API met none of the three envelope guarantees on any of 11 signing endpoints

What it costs youFront ends cannot show customers a trace id, a field-level list or a stable code. The report points to one shared serialisation layer as the place to start.

Message

Key generation reported an internal key-generation error when the real cause was authentication

What it costs youThe user is sent in the wrong direction and support gets the ticket.

Message

A rejected name returned the single word Invalid

What it costs youA dead end: nothing says what to change.

Reopened

A fix a code read had accepted did not hold when we ran it, because the vault-by-id route bypassed the shared guard

What it costs youOur runtime pass caught what the read had accepted. Closed on the read, the gap would have stayed open and unreported.

A separate check of environment-variable validation ran 32 cases and found no enforcement defects.

Outcome

What changed

At retest, 8 of the 13 findings were confirmed fixed in code, 4 reopened and 1 was partial. Our runtime pass overturned one fix the code read had accepted, so the report recommends a runtime retest to make the other verdicts definitive, and names the one shared layer behind the drift.

What this means for you: Check fixes by running the API: our runtime pass caught a fix that a code read had accepted. And if customers build on your errors, ask whether anyone has compared the running responses with your written standard.
Check

What to check in your own product

  1. Compare every error response from the running API with your written error standard, field by field.The running API met none of the three on any of 11 signing endpoints, so a customer's screen cannot show a trace id or a field error.
  2. Read the error messages as a user would.A user who reads either is sent the wrong way.
  3. Check a fix by running the API, not only by reading the code.Closed on the read alone, the gap would have stayed open while the team believed it shut.

Want your API tested against its own documentation?

We run the endpoint and compare every field with your standard. The first month is a trial.

Talk to our team
Share the Post: