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
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer <workspace_token> |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
workspaceId | string | Yes | Workspace identifier |
paymentId | string | Yes | Supplier 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