Skip to content

docs bug: #create_invoices, #update_invoice require a hash of invoices, not array #375

Description

@SteveRawlinson

The documentation here:

https://xeroapi.github.io/xero-ruby/accounting/index.html#api-Accounting-updateInvoice

Says the invoices argument to update_invoice should be an array. In fact, providing an array fails. It needs to be a hash, eg.

response = xero_client.accounting_api.update_invoice(xero_tenant_id, invoice_id, {invoices: [invoice]}, unitdp, idempotency_key)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions