Update payment
Update an existing payment record for an invoice.
Endpoint
| Property | Value |
|---|---|
| URL | POST /invoice/payment/update-payment/{{invoiceId}}?paidAmount={{amount}}&paymentDate={{paymentDate}}&paymentId={{paymentId}} |
| Method | POST |
| Auth | R-Auth: <company-jwt> |
Example Request
curl --location '{{baseUrl}}/invoice/payment/update-payment/{{invoiceId}}?paidAmount={{amount}}&paymentDate={{paymentDate}}&paymentId={{paymentId}}' \
--header 'R-Auth: {{companyJwt}}' \
--request POST
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 |
paidAmount | number | Yes | Updated payment amount |
paymentDate | string | Yes | Updated date in yyyy-MM-ddTHH:mm:ss format |
description | string | No | Optional description |