Skip to content

[routes-b] PATCH /api/routes-b/invoices/[id]/amount - update invoice amount #687

Description

@davedumto

Summary

Rebuild the removed invoices/[id]/amount endpoint under /api/routes-b. update invoice amount.

Requirements

  • Restore handler at app/api/routes-b/invoices/[id]/amount/route.ts
  • Implement methods: PATCH
  • Add request validation, auth and ownership checks, and structured error handling
  • Add unit tests for the happy path and key failure modes

Acceptance criteria

  • Handler restored for each listed method at the documented path
  • Validation and error envelopes match existing routes conventions
  • Unit tests pass in CI

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions