Skip to main content

Delete Supplier Payment (v1)

Method & Path

DELETE /api/v1/workspace/:workspaceId/supplier-payments/:paymentId

Actual backend path: DELETE /v1/workspace/:workspaceId/supplier-payments/:paymentId

Description

Delete a supplier payment. If the payment was linked to an invoice, the backend will update the invoice’s paid/remaining amounts accordingly.

Authentication

Required: Workspace JWT.

Headers

HeaderRequiredDescription
AuthorizationYesBearer <workspace_token>

Path Parameters

ParameterTypeRequiredDescription
workspaceIdstringYesWorkspace identifier
paymentIdstringYesSupplier payment identifier

Response 204 No Content

No body.

Common Errors

  • 401 Unauthorized: Missing or invalid token
  • 403 Forbidden: Workspace access denied
  • 404 Not Found: Workspace or payment not found
  • 500 Internal Server Error: Server error