Skip to content

feat(invoices): add invoice analytics endpoint and integration test for seller authorization - #247

Open
Tekh134 wants to merge 1 commit into
StellarState:devfrom
Tekh134:feature/issue-186-invoice-analytics
Open

feat(invoices): add invoice analytics endpoint and integration test for seller authorization#247
Tekh134 wants to merge 1 commit into
StellarState:devfrom
Tekh134:feature/issue-186-invoice-analytics

Conversation

@Tekh134

@Tekh134 Tekh134 commented Aug 25, 2026

Copy link
Copy Markdown

Adds invoice analytics endpoint and integration test verifying seller authorization scoping.

  • Adds GET /api/v1/invoices/:id/analytics endpoint
  • Returns views, clickThroughs, and investorInterest metrics
  • Enforces seller ownership: 403 forbidden for non-owners
  • Adds integration test covering 403, 200, and 401 scenarios

Closes #186

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.

Add integration test for a seller being unable to view analytics for an invoice they do not own

2 participants