fix the issue that external_reference can't be added in merchant api