Skip to content

Guaranteed same order between CreateInvoicesAsync request and response? #586

@Garand-Gary

Description

@Garand-Gary

I have a whole load of chargeable objects related to each of my customers. On a daily basis I batch-create invoices for each of my customers and I want to record the Xero InvoiceID against each of the chargeable objects placed onto each invoice, to mark them as invoiced and for traceability.

The only way that I can see of relating my objects to the Xero invoices would be if I knew for certain that the order the invoices are returned from the CreateInvoicesAsync function are the exact same order I provide them, but I can't see this fact documented anywhere so I'm reluctant to rely on that assumption.

This must be such a vanilla use case that I am sure I'm doing something stupid so any help would be greatly appreciated. I can't use e.g. Reference because I need to put PO numbers in there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions