Use Cases for Updating an Invoice

Use the PATCH command to add a line item to an invoice:

          PATCH {{REST_SERVICES}}/record/v1/invoice/<id>/
{
    "item": {
        "items": [
            {
                "item": {
                    "id": "13"
                },
                "quantity": 50,
                "amount": 100
            }
        ]
    }
} 

        

To update a line item in an invoice, add the line item ID in the request.

          PATCH {{REST_SERVICES}}/record/v1/invoice/<id>/
{
    "item": {
        "items": [
            {
                "line": 5,
                "item": {
                    "id": "10"
                },
                "quantity": 75,
                "amount": 90
            }
        ]
    }
} 

        

Related Topics

Invoice Use Cases
Use Case for Creating an Invoice
Use Case or Retrieving an Invoice
Use Case for Fetching Invoices from a Lead Source
Use Case for Deleting an Invoice

General Notices