fix: add total_available to GET /v1/customers response#421
Open
R44VC0RP wants to merge 1 commit intouseautumn:stagingfrom
Open
fix: add total_available to GET /v1/customers response#421R44VC0RP wants to merge 1 commit intouseautumn:stagingfrom
R44VC0RP wants to merge 1 commit intouseautumn:stagingfrom
Conversation
|
@R44VC0RP is attempting to deploy a commit to the Autumn Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
Author
|
OpenCode chat summary for additional context: |
TheUntraceable
approved these changes
Jan 6, 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
The GET /v1/customers endpoint was returning total as the number of customers in the current page, but the schema documented it as "Total number of customers available". This PR fixes the documentation to reflect actual behavior and adds a new total_available field that returns the true total count of customers in the database, enabling proper pagination.
Related Issues
N/A
Type of Change
Checklist
Screenshots (if applicable)
N/A - API only change
Additional Context
Response now looks like:
{
list: [...],
total: 10, // customers returned in this page
total_available: 250, // total customers in the database
limit: 10,
offset: 0
}