Skip to content

reorganize REST API endpoints and expand code examples#183

Merged
alexdll31 merged 1 commit intodevfrom
reorg-restapi-endpoints
Apr 15, 2026
Merged

reorganize REST API endpoints and expand code examples#183
alexdll31 merged 1 commit intodevfrom
reorg-restapi-endpoints

Conversation

@alexdll31
Copy link
Copy Markdown
Contributor

Moved /transactions/{guid}/tip-adjustment and /transactions/{guid}/token under the Endpoints Not Requiring a Payment Terminal section, which better reflects their nature as terminal-independent operations.

Added response examples for /transactions/{transactionReference}/status/{selector}, with three tabs covering all three selector variants:

selector=all — returns an array of all transactions linked to that reference
selector={index} — returns a single transaction by position
selector=last — returns the most recent transaction
Expanded request examples for the /transactions endpoint with four tabs (previously only Sale was shown):

Sale (no callback) / Sale (with callback) — existing examples, renamed for clarity
Refund — linked refund using originalTransactionId
Unlinked Refund — original refund using transactionReference with no originalTransactionId
Reversal (refundReversal) — with notes on partial vs full reversal behavior per acquirer
Added a note clarifying transactionReference usage: it should only be sent on original operations (Sale, Pre-Auth, MOTO Sale, unlinked Refund). Linked operations inherit the original transaction's reference automatically.

All changes are applied to both the live docs (restapi/) and the versioned snapshot (restapi_versioned_docs/version-REST API 2.27.0/).

moved tip-adjust and get token operations under no-reader Title.
Added refund and reversal request examples under /transactions endpoint with notes of not sending the transactionReference value on those linked operations also added example for unlinked refunds with txnReference value without originalGuid and explanatory note
@alexdll31 alexdll31 merged commit ed01aac into dev Apr 15, 2026
2 checks passed
@alexdll31 alexdll31 deleted the reorg-restapi-endpoints branch April 15, 2026 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants