Delete payment
Delete a payment record from an invoice.
Endpoint
| Property | Value |
|---|---|
| URL | DELETE /invoice/payment/delete-payment/{{invoiceId}}?paymentId={{paymentId}} |
| Method | DELETE |
| Auth | R-Auth: <company-jwt> |
Example Request
curl --location '{{baseUrl}}/invoice/payment/delete-payment/{{invoiceId}}?paymentId={{paymentId}}' \
--header 'R-Auth: {{companyJwt}}' \
--request DELETE
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
invoiceId | UUID | Yes | Invoice ID from Search documents |
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
paymentId | UUID | Yes | Payment ID from List payments |
Response
Returns the updated payment summary after deletion — same shape as Get payment details.