"archivalNumber"
has been added to API call getPayments."save_home_store_when_invoice_confirmed"
. When the parameter is set to 1, API saveSalesDocument will automatically save customer's Home Store (will set it equal to the location of the current transaction, if customer does not have a home store yet).