Skip to content

Comments

fix: add total_available to GET /v1/customers response#421

Open
R44VC0RP wants to merge 1 commit intouseautumn:stagingfrom
R44VC0RP:fix/customers-list-total-available
Open

fix: add total_available to GET /v1/customers response#421
R44VC0RP wants to merge 1 commit intouseautumn:stagingfrom
R44VC0RP:fix/customers-list-total-available

Conversation

@R44VC0RP
Copy link
Contributor

@R44VC0RP R44VC0RP commented Dec 8, 2025

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

  • Bug fix
  • New feature
  • Breaking change
  • Refactor
  • Other (please describe):

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
}

@vercel
Copy link

vercel bot commented Dec 8, 2025

@R44VC0RP is attempting to deploy a commit to the Autumn Team on Vercel.

A member of the Team first needs to authorize it.

@R44VC0RP
Copy link
Contributor Author

R44VC0RP commented Dec 8, 2025

OpenCode chat summary for additional context:

https://opencode.ai/s/tjxSS59w

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