Skip to content

[API] Add CRUD endpoints for provider accounts and payments #76

Description

@wauputr4

Depends on: API CRUD: Provider Accounts & Payments

Webhook Forwarding Management API

Tujuan: CRUD forwarding target lewat HTTP.

Deliverables

  • GET/POST/PUT/DELETE /api/v1/webhook-forwarding-targets
  • Field filter/header/retry policy/enabled.
  • Endpoint list attempts GET /api/v1/webhook-forwarding-attempts.

Acceptance criteria

  • Forwarding target bisa dibuat/diubah/dinonaktifkan tanpa CLI.
  • API update retry policy langsung berpengaruh pada retry berikutnya.
  • Attempt log bisa dilihat dan status sukses/gagal/skipped termonitor.

Depends on: Webhook Event API & Diagnostics

Reconciliation & Operations APIs

Tujuan: Beri kontrol operasi untuk recovery dan status.

Deliverables

  • POST /api/v1/reconcile/{provider|reference} untuk paksa cek status provider.
  • Endpoint audit ringkas: /api/v1/stats, /api/v1/healthz, optional /api/v1/readiness.

Acceptance criteria

  • Endpoint reconcile mengupdate status local jika provider final state berubah.
  • Monitoring endpoint memberi ringkas health webhook service + queue.

Depends on: API CRUD: Provider Accounts & Payments

Test & MCP Readiness

Tujuan: Pastikan API mode bisa dipakai MCP-safe.

Deliverables**

  • Integration test untuk mode webhook, api, dan all.
  • Contract test terhadap OpenAPI (minimal smoke).
  • Contoh tool mapping MCP: create/get/payment-status/reconcile/replay/webhook-target CRUD.
  • Update docs README + docs untuk cara running API mode + contoh cURL.

Acceptance criteria

  • CI mengeksekusi minimal 1 suite API sanity.
  • README/API docs jelas dipakai untuk agent/client.
  • Semua issue sebelumnya berpindah status selesai.

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiHTTP API mode and endpointsenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions