We have a web application that has a Shopping cart and payment processing functionality. We add items to the shopping cart and once the payment is processed successfully, we record the payment transaction in Xero. Following steps are performed to record the transaction in Xero:
- Create and Invoice
- Add all the items from the shopping cart into the Xero invoice
- Invoke the create Xero invoice API
- Xero invoice with all the line items is created successfully
Now, I would like to store the Xero invoice line item ID in Shopping cart line item.
- How do I map the item in shopping cart with the line item in Xero invoice? e.g. the 5th item in shopping corresponds to the 2nd item in Xero invoice.
- Is there a way to set custom fields while creating Xero invoice line items?