Conversation
Forty-nine operation responses the API sends but the spec did not list, found by checking real responses against the generated client: - 423 ACCOUNT_LOCKED on every SCA route and the beneficiary trust routes - 501 on the operations a payment provider or environment may not support: KYB (beneficial owners, documents, verifications, KYC link), bulk customer upload, async transaction approval/rejection/cancel, pull funding, quote execution from an external source - 403 for view-only tokens (cards, config), unverified customers (transfers), platforms without stablecoin operations, and a customer not yet able to send (receiver lookup) - 503 where a dependency can be unavailable (credential verification, quotes, quote execution, stablecoin provider calls) - 404, 409 and 429 on the handful of routes that raise them Bundle rebuilt with make build-openapi; the Error423 component moved in the bundle because it is now referenced earlier. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
|
The latest updates on your projects. Learn more about Vercel for GitHub. 3 Skipped Deployments
|
|
✱ Stainless preview builds for gridThis PR will update the cli go kotlin openapi php python ruby typescript Edit this comment to update them. They will appear in their respective SDK's changelogs. ✅ grid-typescript studio · code · diff
✅ grid-openapi studio · code · diff
✅ grid-kotlin studio · code · diff
✅ grid-ruby studio · code · diff
✅ grid-go studio · code · diff
✅ grid-python studio · code · diff
✅ grid-php studio · code · diff
✅ grid-cli studio · code · diff
This comment is auto-generated by GitHub Actions and is automatically kept up to date as you push. |
Reason
Checking real API responses against the generated client found 49 (operation, status) pairs the API sends that the spec does not list. A generated SDK treats each as an unexpected status even though the behaviour is deliberate. This documents them; nothing about the API's behaviour changes.
Overview
One
$refto the existingErrorNNNschema added per operation, in status order, with a description of when it occurs:/sca/*route (9),/customers/external-accounts/{id}/trust,/trust/confirm,/untrustACCOUNT_LOCKEDafter too many failed attempts/beneficial-owners(POST, PATCH),/documents(POST, PUT, DELETE),/verifications,/customers/{id}/kyc-link,/customers/bulk/csv,/customers/bulk/jobs/{id},/transactions/{id}/approve,/reject,/cancel,/transfer-in,/quotes/{id}/executePOST /cards,PATCH /cards/{id},PATCH /config,POST /transfer-in,/transfer-out,POST /customers,POST /customers/external-accounts,GET /receiver/external-account/{id}, the six/stablecoins*and/stablecoin-provider-accounts*routesCUSTOMER_NOT_VERIFIED, feature not enabled for the platform,USER_NOT_READYPOST /auth/credentials/{id}/verify,POST /quotes,POST /quotes/{id}/execute,POST /stablecoins,POST /stablecoin-provider-accountsSERVICE_UNAVAILABLEwhen a dependency is downGET /customers/internal-accounts,POST /quotesPOST /auth/credentials,POST /documentsWALLET_NOT_PROVISIONED,DOCUMENT_ALREADY_EXISTSGET /customersRATE_LIMITEDEvery code named in a description is already in that status's enum.
openapi.yamlandmintlify/openapi.yamlrebuilt withmake build-openapi; theError423component moves within the bundle because it is now referenced earlier, which is the only non-additive hunk.Draft so the descriptions can be checked by whoever owns each surface; the wording is the part worth reviewing, the refs are mechanical.
Test Plan
npx @redocly/cli lint openapi.yaml: valid, 3 warnings (unchanged from main).spectral lint openapi.yaml --fail-severity=error: 0 errors, 177 warnings, 691 infos (unchanged from main).🤖 Generated with Claude Code
Generated by Claude Code