SendInvoiceComment (Push Method)
SendInvoiceComment
Creates a new comment on an invoice.
This method is used to programmatically add internal notes or explanations to an invoice record.
Important: Vendor Users are not allowed to enter comments against an invoice.
Vendor Admin permissions are required for this method.
Request
| Parameter | Type | Description |
|---|---|---|
| Company | String | Required. Company identifier from GetCompanies. |
| InvoiceNumber | String | Required. Invoice number to attach the comment to. |
| Comments | String | Required. The comment text to be added. |
Response
| Parameter | Type | Description |
|---|---|---|
| Success Message | String | Returned when the comment is saved successfully. |
| Errors | Array | Contains error message(s) should an error occur. |
Example (C#)
// setup request parameters
ParametersForSendInvoiceComments objSendInvoiceCommentParams = new ParametersForSendInvoiceComments
{
Company = "ABC",
InvoiceNumber = "1761",
Comments = "This is a sample comment"
};
dynamic SendInvoiceComment = apiClient.SendInvoiceComment(objSendInvoiceCommentParams);