Accounting

Updates a specific sales invoices or purchase bills

Changed on
post/Invoices/{InvoiceID}

Request

  • Base URL
    https://api.xero.com/api.xro/2.0
  • URL
    https://api.xero.com/api.xro/2.0/Invoices/{InvoiceID}
  • Auth
    OAuth 2
    Authorization code: https://login.xero.com/identity/connect/authorize
    Token URL: https://identity.xero.com/connect/token scopes: accounting.transactions

Path parameters

InvoiceIDstring uuid required

Unique identifier for an Invoice

Query parameters

unitdpinteger

e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts

allowBackordersboolean

Allows an invoice to be created even when one or more line items contain tracked inventory where the invoice quantity would cause the available quantity to go negative

Headers

Idempotency-Keystring

This allows you to safely retry requests without the risk of duplicate processing. 128 character max.

Request body

Response

Success - return response of type Invoices array with updated Invoice

Changes

    • info

      the request optional property //// became not read-only

    • info

      the request optional property /////// became not read-only

    • info

      the response optional property //// became not read-only for the status

    • info

      the response optional property /////// became not read-only for the status

    • info

      added the new optional request property //

    • info

      added the new optional request property //

    • info

      the request optional property // became not read-only

    • info

      the request optional property // became not read-only

    • info

      the request optional property // became not read-only

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      the response optional property // became not read-only for the status

    • info

      the response optional property // became not read-only for the status

    • info

      the response optional property // became not read-only for the status