Repository navigation
Conversation
Onboarding moves to /v1/terminals/{serialNumber}/onboard, makes the
terminal ACTIVE and returns its API key and terminalId. The ONBOARDED
status is removed. The FSP receives merchantId when it is asked for the
fields.
authorize gains 403 for a terminal that is not ACTIVE and 404 for a
terminalId that is not the terminal of the API key. The admin API gains
POST /v1/terminals/{terminalId}/reset.
golobitch
marked this pull request as ready for review
November 23, 2026 14:35
The token only carries data the server recomputes at submit time, so signing it protects nothing. Drop the signature, serial number, expiry and credential wording; a token that no longer matches the form is 409.
# Conflicts: # merchant-api.yaml
koekiebox
approved these changes
Nov 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A Terminal gets its API Key from Onboarding, and becomes
ACTIVEat the same time.ONBOARDEDis gone.stateDiagram-v2 [*] --> PROVISIONED: operator creates the terminal PROVISIONED --> ACTIVE: onboarding (issues the API key) ACTIVE --> SUSPENDED: PATCH SUSPENDED --> ACTIVE: PATCH ACTIVE --> PROVISIONED: reset (revokes the key) SUSPENDED --> PROVISIONED: reset (revokes the key) PROVISIONED --> REVOKED: PATCH ACTIVE --> REVOKED: PATCH (revokes the key) SUSPENDED --> REVOKED: PATCH (revokes the key)definitionTokenis no longer described as signed: it carries nothing the server can't recompute at submit time, so it is an opaque form identifier, not a credential. A token that no longer matches the form is a 409./finalize./finalizereturns404whenterminalIdis not the terminal of the key.Evidence
redocly lint --extends=specpasses on the three files.After: it passes on the three files.
go generate ./internal/api/openapi/...(oapi-codegen) accepts all three. merchant-api does not compile against the result yet: its onboarding handler uses the removeddata.terminalSerialNumber, and the newresetTerminalandfinalizeTransactionoperations have no handlers.Merge Danger
Door: two-way until a terminal or FSP implements it
Blast Radius: consumers
Breaking for anything that calls
/v1/terminals/onboard. The implementation is in review in interledger/merchant-api#231 and needs this change. The cards-devenv portal andvalidate.shuse the old path. The testnet wallet needs no change, because it may ignoremerchantId.🤖 Generated with Claude Code