Repository navigation
feat: add transaction notes endpoints - #105
Merged
Merged
Conversation
Adds AllNotes, GetNote, CreateNote, UpdateNote and DeleteNote to Transactions, with TransactionNote and TransactionNoteBody types.
wberry22
reviewed
Oct 20, 2026
wberry22
approved these changes
Oct 20, 2026
|
🎉 This PR is included in version 35.5.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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.
Type
Feature
Description
Adds notes on order transactions (
orders/:id/transactions/:id/notes) toTransactions:AllNotes({ order, transaction, limit, offset }): newest first.limitis at most 100. Also reads chainedLimit()/Offset().GetNote,CreateNote,UpdateNote. Create and update addtype: 'note'to the body.TransactionNoteandTransactionNoteBodytypes. Text is 1–250 characters, and a transaction can have at most 50 notes. Shopper tokens are rejected.There is no
DeleteNoteon purpose. Commerce Manager does not let users delete notes, and orders.svc returns 403 to every Commerce Manager role for delete.Seven nock tests added: one for each method, plus tests for paging arguments, chained paging, and paging not carrying over to the next request.
Dependencies
Needed by MT-23896 (refund notes in Commerce Manager).
Written with Claude Code (Claude) for Ella Nan.