Skip to content

docs(transactions): document the 501 response on the cancel endpoint - #774

Draft
ls-bolt[bot] wants to merge 1 commit into
mainfrom
07-30-grid-cancel-transaction-501-response
Draft

docs(transactions): document the 501 response on the cancel endpoint#774
ls-bolt[bot] wants to merge 1 commit into
mainfrom
07-30-grid-cancel-transaction-501-response

Conversation

@ls-bolt

@ls-bolt ls-bolt Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Summary

  • POST /transactions/{transactionId}/cancel returns 501 NOT_IMPLEMENTED for any payment rail whose banking partner exposes no cancellation facility, but the spec never documented a 501 response. Integrators hit an undocumented status on the endpoint's primary path.
  • Adds the 501 response (Error501, already used by /cards, /customers, and /platform/config).
  • Rewrites the 200 description: a success means the banking partner accepted the cancellation request, not that the transfer is already cancelled. The partner confirms asynchronously, so the transaction body returned may still report its pre-cancellation status.

Changes: 3 files

  • openapi/paths/transactions/transactions_{transactionId}_cancel.yaml — add 501, clarify 200
  • openapi.yaml, mintlify/openapi.yaml — regenerated bundles (npm run build:openapi)

Net diff is confined to the cancel path. npm run lint passes.

Requested by @AaryamanBhute

@ls-bolt ls-bolt Bot added the bolt label Jul 30, 2026
@vercel

vercel Bot commented Jul 30, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
grid-wallet-demo Building Building Preview Jul 30, 2026 7:26pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
grid-flow-builder Ignored Ignored Preview Jul 30, 2026 7:26pm

Request Review

akanter commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions github-actions Bot added the breaking-change Introduces a breaking change to the OpenAPI spec label Jul 30, 2026
@github-actions

github-actions Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

✱ Stainless preview builds for grid

This PR will update the grid SDKs with the following commit messages.

cli

chore(internal): regenerate SDK with no functional changes

go

chore(internal): regenerate SDK with no functional changes

kotlin

chore(internal): regenerate SDK with no functional changes

openapi

feat(api): add 501 error response to transactions cancel method

php

chore(internal): regenerate SDK with no functional changes

python

chore(internal): regenerate SDK with no functional changes

ruby

chore(internal): regenerate SDK with no functional changes

typescript

chore(internal): regenerate SDK with no functional changes

Edit this comment to update them. They will appear in their respective SDK's changelogs.

grid-typescript studio · code · diff

Your SDK build had at least one "note" diagnostic, but this did not represent a regression.
generate ✅build ⏭️ (prev: build ✅) → lint ⏭️ (prev: lint ❗) → test ✅

grid-openapi studio · code · diff

Your SDK build had at least one "warning" diagnostic, but this did not represent a regression.
generate ⚠️

grid-ruby studio · code · diff

Your SDK build had at least one "note" diagnostic, but this did not represent a regression.
generate ✅build ⏭️ (prev: build ✅) → lint ✅test ✅

grid-go studio · code · diff

Your SDK build had at least one "note" diagnostic, but this did not represent a regression.
generate ✅build ⏭️ (prev: build ✅) → lint ❗test ❗

go get github.com/stainless-sdks/grid-go@c5a50a32c4b28cc2d462ae933bd98b9e141dd2f0
grid-kotlin studio · code · diff

Your SDK build had at least one "warning" diagnostic, but this did not represent a regression.
generate ⚠️build ⏭️ (prev: build ✅) → lint ⏭️ (prev: lint ✅) → test ❗

grid-python studio · code · diff

Your SDK build had at least one "note" diagnostic, but this did not represent a regression.
generate ✅build ⏭️ (prev: build ✅) → lint ⏭️ (prev: lint ❗) → test ❗

grid-php studio · code · diff

Your SDK build had at least one "note" diagnostic, but this did not represent a regression.
generate ✅lint ✅test ✅

grid-cli studio · code · diff

Your SDK build had at least one "warning" diagnostic, but this did not represent a regression.
generate ⚠️build ❗lint ❗test ❗


This comment is auto-generated by GitHub Actions and is automatically kept up to date as you push.
If you push custom code to the preview branch, re-run this workflow to update the comment.
Last updated: 2026-07-30 19:30:36 UTC

@mintlify

mintlify Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
Grid 🟢 Ready View Preview Jul 30, 2026, 7:23 PM

@ls-bolt
ls-bolt Bot force-pushed the 07-30-grid-cancel-transaction-501-response branch from 2c2bffb to 18ef7cc Compare July 30, 2026 19:26
@github-actions github-actions Bot removed the breaking-change Introduces a breaking change to the OpenAPI spec label Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants