Log In

Create an Invoice Comment

post/public/v1/invoices/{invoice}/comments

content takes basic rich-text HTML, such as paragraphs, links, lists and emphasis. Scripts and any other markup are removed. When the account syncs invoice comments to Xero, the comment is sent there as plain text.

  • Authorizationstringrequired

    Bearer authentication header of the form Bearer <token>, where <token> is your API key. See How to set up an API key.

  • invoicestringrequired

    The invoice UUID

Body

application/json
  • contentstringrequiredmax length 65535

    Limited to 65535 bytes.

Response

201application/json

InvoiceCommentResource

  • dataobjectrequired
    ▶Show 5 child attributes
    • idstringrequired
      Example:c1o2m3m4-e5n6-47t8-9a0b-1c2d3e4f5a6b
    • contentstringrequired
      Example:<p>Called the plan manager about this one.</p>
    • authorobjectrequired
      ▶Show 2 child attributes
      • idstringrequired
        Example:u1s2e3r4-b5c6-47d8-9e0f-1a2b3c4d5e6f
      • namestringrequired
        Example:Jane Smith
    • created_atstring | nullrequired
      Example:2024-01-15T10:30:00+00:00
    • updated_atstring | nullrequired
      Example:2024-01-15T10:30:00+00:00
  • 401Unauthenticated
  • 403Authorization error
  • 404Not found
  • 422Validation error