Xero: Payments, Items and programatically OrderLines

The idea is:

Allow the Xero node to handle /Payments & /Items. Also allow to programtically add OrderLines on /Invoices (preferably as an array)

My use case:

  1. Take Ecommerce orders and create invoices
  2. Attach Payment to the created invoice
  3. Get items inventory and update the Ecommerce store.

I think it would be beneficial to add this because:

Quite common flow for an Ecommerce store.

Any resources to support this?

Invoices: Accounting API Invoices — Xero Developer
Payments: Accounting API Payments — Xero Developer
Items: Accounting API Items — Xero Developer

OrderLines

"LineItems": [
    {
      "Description": "Consulting services as agreed (20% off standard rate)",
      "Quantity": "10",
      "UnitAmount": "100.00",
      "AccountCode": "200",
      "DiscountRate": "20"
    },
    {
      "Description": "Line 2",
      "Quantity": "10",
      "UnitAmount": "100.00",
      "AccountCode": "200",
      "DiscountRate": "20"
    }
]