We have a pretty complex setup that looks like this:
- Ecommerce store 1
- Ecommerce store 2
- Ecommerce store 3
which all have their own order number series.
These needs to be consolidated into e-conomic into one ordernumber. So the support told me to use a reference field for the original order number.
This ends up with problem nr 2.
When we use the payment gateways (credit card, invoice etc.) we send them the ORIGINAL order number (not the e-conomic number) and that order number is found on the payment settlement reports from those specific gateways.
With this information I need a solution to:
1. Be able to automatically feed the API with these specific ORIGINAL order numbers to upgrade the e-conomic order to an invoice and mark it as paid
2. Create a verification for "customer payment" (unsure about the english term) that this order has been paid
So, what is the best way to solve this? Can you access the reference fields using the API? Can you automatically create a verification saying order X has been paid and upgrade from order to invoice?
Thanks.

