docs(restapi): batch/detail pagination — rename rrn to retrievalReferenceNumber (API-107) - #220
Merged
Merged
Conversation
…/detail POST /batch/detail is paginated — max 5 transactions per page, descending. Pass the retrievalReferenceNumber of the oldest item to fetch the next page; stop when details is empty. Field was previously documented as rrn (broken). Fixes API-107. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…/detail - Batch Summary: correct netAmount to minor units, add closedAt field, use real response from API-107 cert test - Batch Detail: replace placeholder with real paginated responses — page 1 (5 items), last page (2 items), add key field descriptions Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Rename rrn → retrievalReferenceNumber in Batch Detail (API-107) - Add pagination explanation and next-page curl example - Replace placeholder responses with exact real API output: Batch Summary: OPEN batch, customFields has salesCount/refundsCount only Batch Detail p1: correct field order, customFields.entry as single object Batch Detail p2: includes REFUND transaction type example - Note that closedAt is absent on OPEN batches; netAmount in minor units Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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
rrn→retrievalReferenceNumberin the Batch Detail section — this matches the correct field name the API expects (the oldrrnname was silently ignored by Viscus, so pagination never worked)retrievalReferenceNumberfrom the current page as cursor, stop on emptydetailsrrnTested in cert (API-107):
retrievalReferenceNumbercorrectly pages through all 17 transactions in batch 132 across 4 calls.🤖 Generated with Claude Code