### Get All Label Templates Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Connection.html Retrieves all available label templates. Use to get a list of all possible label templates. ```csharp public List GetLabelTemplates() ``` -------------------------------- ### Get All Sell Products Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Connection.html Returns a list of all available sell products in the system. This method fetches all SellProduct objects. ```csharp public List GetSellProducts() ``` -------------------------------- ### ProductName Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Product.html Gets the name of the product. This property is read-only. ```csharp public string ProductName { get; } ``` -------------------------------- ### Get Display Options Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Connection.html Returns the display options configured on the JobTracker instance. ```csharp public DisplayOptions GetDisplayOptions() ``` -------------------------------- ### Get Page Views for Multiple Pages Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Connection.html Retrieves page views belonging to a collection of specified pages. Use to get views associated with several pages at once. ```csharp public List GetPageViewsOfPages(IEnumerable pages_) ``` -------------------------------- ### Account Constructor (string) Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Account.html Use this constructor to create an Account object for a new account. It requires the name for the new account. ```csharp public Account(string accountName_) ``` -------------------------------- ### Create Account with Contacts Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Connection.html Creates a new account, optionally associating it with a list of contacts. Duplicates can be allowed by setting `allowDuplicates_` to true. ```csharp public int CreateAccount(Account account_, IEnumerable contacts_ = null, bool allowDuplicates_ = false) ``` -------------------------------- ### Get Custom Supplier Field Types Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Connection.html Retrieves a list of custom supplier field types. Set includeInactive_ to true to also get inactive fields. ```csharp public List GetCustomSupplierFieldTypes(bool includeInactive_) ``` -------------------------------- ### Get Account File Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Connection.html Retrieves a specific account file by its ID. ```csharp public AccountFile GetAccountFile(int fileId_) ``` -------------------------------- ### TraceOption Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.DevelopmentAssistance.SimpleConsoleCommandTracer.html Gets or sets the trace option using the JTTraceOptions_Enum, which determines the level of detail for console output. This property allows configuration of what gets traced. ```csharp public SimpleConsoleCommandTracer.JTTraceOptions_Enum TraceOption { get; set; } ``` -------------------------------- ### AccountFile Constructor (int, string) Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.AccountFile.html Creates a new AccountFile object for uploading a new file. Requires the account ID and the desired name for the file. ```csharp public AccountFile(int accountId_, string name_) ``` -------------------------------- ### Get Custom Serial Number Field Types Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Connection.html Retrieves a list of custom serial number field types. Set includeInactive_ to true to also get inactive fields. ```csharp public List GetCustomSerialNumberFieldTypes(bool includeInactive_) ``` -------------------------------- ### PurchaseOrderFile Constructor (int, string) Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.PurchaseOrderFile.html Creates a PurchaseOrderFile object for uploading a new file. Requires the associated purchase order ID and the desired file name. ```csharp public PurchaseOrderFile(int purchaseOrderId_, string name_) ``` -------------------------------- ### SupplierFile Constructor (Upload) Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.SupplierFile.html Creates a new SupplierFile object for uploading a new file. Requires the supplier ID and the desired file name. ```csharp public SupplierFile(int supplierId_, string name_) ``` -------------------------------- ### Get Custom Purchase Order Field Types Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Connection.html Retrieves a list of custom purchase order field types. Set includeInactive_ to true to also get inactive fields. ```csharp public List GetCustomPurchaseOrderFieldTypes(bool includeInactive_) ``` -------------------------------- ### ProductAttributeValue Constructors Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.ProductAttributeValue.html Demonstrates the different ways to create a ProductAttributeValue object. ```APIDOC ## ProductAttributeValue(Int32) ### Description Create a reference to an existing ProductAttributeValue using its id. ### Parameters - **productAttributeValueId_** (System.Int32) - Identifies an existing product attribute value ## ProductAttributeValue(Int32, String) ### Description Create a reference to an existing ProductAttributeValue using the type and a value string. ### Parameters - **productAttributeTypeId_** (System.Int32) - Identifies a ProductAttributeType by id. - **value_** (System.String) - The string value of the ProductAttributeValue. ## ProductAttributeValue(String, String) ### Description Create a reference to an existing ProductAttributeValue using the name of its corresponding ProductAttributeType and its value string. ### Parameters - **productAttributeTypeName_** (System.String) - Identifies a ProductAttributeType by name. - **value_** (System.String) - The string value of the ProductAttributeValue. ``` -------------------------------- ### Get Custom Job Activity Field Types Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Connection.html Retrieves a list of custom job activity field types. Set includeInactive_ to true to also get inactive fields. ```csharp public List GetCustomJobActivityFieldTypes(bool includeInactive_) ``` -------------------------------- ### GetSellProducts (all) Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Connection.html Returns a list of all sell products available in the system. ```APIDOC ## GetSellProducts (all) ### Description Returns a list of all sell products available in the system. ### Method GET ### Endpoint /api/SellProducts ### Response #### Success Response (200) - **value** (List) - The list of sell products. #### Response Example ```json { "value": [ { "SellProductId": 1, "Name": "Standard Widget", "Description": "A basic widget." } ] } ``` ``` -------------------------------- ### Get All Page Views Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Connection.html Retrieves all page views visible to the authenticated user, including public, private, and external views. Use to get a comprehensive list of accessible page views. ```csharp public List GetPageViews() ``` -------------------------------- ### SupplierFile Constructors Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.SupplierFile.html Demonstrates the usage of the two constructors for the SupplierFile class. ```APIDOC ## SupplierFile(Int32) ### Description Creates a new SupplierFile object to be used when updating a file. ### Method Constructor ### Parameters #### Path Parameters - **id_** (System.Int32) - Required - Identifies the file. ## SupplierFile(Int32, String) ### Description Creates a new SupplierFile object to be used when uploading a file. ### Method Constructor ### Parameters #### Path Parameters - **supplierId_** (System.Int32) - Required - Supplier to which the file belongs. - **name_** (System.String) - Required - Name to used for the uploaded file. ``` -------------------------------- ### Get Custom Job Field Types (All Processes) Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Connection.html Retrieves a list of all custom job field types, regardless of their associated processes. Set includeInactive_ to true to also get inactive fields. ```csharp public List GetCustomJobFieldTypes(bool includeInactive_) ``` -------------------------------- ### PurchaseOrderFilter Constructor Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.PurchaseOrderFilter.html Initializes an empty purchase order filter. No setup is required before use. ```csharp public PurchaseOrderFilter() ``` -------------------------------- ### PriceList Constructor Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.PriceList.html Initializes a new instance of the PriceList class with specified parameters. ```csharp public PriceList(int id_, string name_, decimal? defaultTaxPercent_, bool isInactive_) ``` -------------------------------- ### Get Custom Job Field Types (Specific Process) Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Connection.html Retrieves a list of custom job field types belonging to a specific process. Set includeInactive_ to true to also get inactive fields. ```csharp public List GetCustomJobFieldTypes(bool includeInactive_, int processId_) ``` -------------------------------- ### Count Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.JobFormFieldValueContainer.html Gets the number of items in the container. ```APIDOC ## Count() ### Description Returns the number of items in the collection. ### Method `public int Count()` ### Returns #### Success Response - **Return Value** (System.Int32) - Number of item's in the collection. ``` -------------------------------- ### AccountPriceList Constructor Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.AccountPriceList.html Creates an instance of the AccountPriceList class. Use this when updating or creating an account price list. Note that PriceList and AccountName properties will not be set. ```csharp public AccountPriceList(int accountId_, int priceListId_) ``` -------------------------------- ### Add Account Price List Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Connection.html Adds a price list to an existing account. The `accountPriceList_` object should be pre-configured with the necessary details. ```csharp public void CreateAccountPriceList(AccountPriceList accountPriceList_) ``` -------------------------------- ### JobActivityStatusName Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.JobActivityStatus.html Gets the name of the JobActivityStatus. ```csharp public string JobActivityStatusName { get; } ``` -------------------------------- ### Count Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.AssigneeContainer.html Gets the number of items in the AssigneeContainer. ```APIDOC ## Count() ### Description Returns the number of items in the collection. ### Method public int Count() ### Returns #### Success Response - **System.Int32** - Number of item's in the collection. ``` -------------------------------- ### Get Sell Products by IDs Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Connection.html Returns a list of specified sell products based on a collection of their IDs. If a null collection is passed, all sell products will be returned. ```csharp public List GetSellProducts(IEnumerable sellProductIds_) ``` -------------------------------- ### PurchaseOrderFile Constructor (int, string) Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.PurchaseOrderFile.html Creates a new PurchaseOrderFile object for uploading a new file. Requires the purchase order ID and the desired file name. ```APIDOC ## PurchaseOrderFile(int purchaseOrderId_, string name_) ### Description Creates a new PurchaseOrderFile object to be used when uploading a file. ### Parameters - **purchaseOrderId_** (System.Int32) - Required - Purchase order to which this file belongs. - **name_** (System.String) - Required - Name to used for the uploaded file. ``` -------------------------------- ### SerialNumberName Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.SerialNumberAllocation.html Gets the name of the serial number. ```csharp public string SerialNumberName { get; } ``` -------------------------------- ### AccountContact Constructors Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.AccountContact.html Demonstrates the different ways to instantiate an AccountContact object. ```APIDOC ## AccountContact() ### Description This constructor is intended for use when creating a new account. ### Method AccountContact() ### Parameters None ``` ```APIDOC ## AccountContact(Int32) ### Description This constructor is intended for use when creating a new AccountContact for an existing Account. ### Method AccountContact(int accountId_) ### Parameters #### Path Parameters - **accountId_** (System.Int32) - Required - Specifies the account id to which the contact will be added. ``` ```APIDOC ## AccountContact(Int32, Int32) ### Description This constructor is intended for use when updating an existing AccountContact. ### Method AccountContact(int contactId_, int accountId_) ### Parameters #### Path Parameters - **contactId_** (System.Int32) - Required - Contact to be updated. - **accountId_** (System.Int32) - Required - The account to which the contact belongs. ``` -------------------------------- ### Salesperson.SalespersonId Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Salesperson.html Gets the unique identifier for the salesperson. ```csharp public int SalespersonId { get; } ``` -------------------------------- ### PurchaseOrder.ShipToLocationName Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.PurchaseOrder.html Gets the name of the associated ShipToLocation. ```csharp public string ShipToLocationName { get; } ``` -------------------------------- ### PurchaseOrderFile Constructor (int) Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.PurchaseOrderFile.html Creates a PurchaseOrderFile object for updating an existing file. Requires the file's ID. ```csharp public PurchaseOrderFile(int id_) ``` -------------------------------- ### PurchaseOrderProductLine Constructor (Create) Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.PurchaseOrderProductLine.html Use this constructor to create an object for a new purchase order line. It requires the purchase order ID and the associated product variant. ```csharp public PurchaseOrderProductLine(int poId_, PurchaseProductVariant purchaseProductVariant_) ``` -------------------------------- ### PurchaseOrder.CostListName Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.PurchaseOrder.html Gets the name of the associated CostList. ```csharp public string CostListName { get; } ``` -------------------------------- ### Get Account Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Connection.html Retrieves an account by its ID. Returns 'Nothing' if no account with the specified ID exists. ```csharp public Account GetAccount(int accountId_) ``` -------------------------------- ### Connection Constructor Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Connection.html Initializes a new instance of the Connection class, establishing a connection to the specified JobTracker instance. ```APIDOC ## Connection(String, String, String, ICommandTracer, Boolean, Boolean, String) ### Description Initializes a new instance of the Connection class. ### Method Constructor ### Parameters #### Path Parameters - **url_** (System.String) - Required - URL at which the JobTracker instance may be found. - **userName_** (System.String) - Required - Username to be used when establishing a connection to the service. - **password_** (System.String) - Required - Password to be used when establishing a connection to the service. - **commandTracer_** (ICommandTracer) - Optional - If included, this object will be used to trace the commands and responses issued and received through this connection. - **compressRequests_** (System.Boolean) - Optional - Will compress requests sent to the server if the server permits request compression. Defaults to true. - **compressResponses_** (System.Boolean) - Optional - Will request that the server compress its responses. Defaults to true. - **applicationName_** (System.String) - Optional - This string is included in the USER-AGENT HTTP Header sent to the JobTracker instance. ``` -------------------------------- ### PriceList PriceListName Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.PriceList.html Gets the PriceList name. ```csharp public string PriceListName { get; } ``` -------------------------------- ### PriceList PriceListId Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.PriceList.html Gets the PriceList ID. ```csharp public int PriceListId { get; } ``` -------------------------------- ### Account Constructor (int) Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Account.html Use this constructor to create an Account object for updating an existing account. It requires the account's ID. ```csharp public Account(int accountId_) ``` -------------------------------- ### Measurement.Value Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Measurement.html Gets or sets the measurement value. ```APIDOC ## Value Property ### Description The measurement. ### Property Value - **System.Decimal** ``` -------------------------------- ### PurchaseOrder Constructor for Creation Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.PurchaseOrder.html Use this constructor to create a PurchaseOrder object for a new purchase order. You must provide the IDs for the supplier and the cost list. ```csharp public PurchaseOrder(int supplierId_, int costListId_) ``` -------------------------------- ### JobTemplateId Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.JobTemplate.html Gets the ID of the job template. ```csharp public int JobTemplateId { get; } ``` -------------------------------- ### Connection Constructor Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Connection.html Initializes a new instance of the Connection class with specified parameters for establishing a connection to a JobTracker instance. ```csharp public Connection(string url_ = "", string userName_ = "", string password_ = "", ICommandTracer commandTracer_ = null, bool compressRequests_ = true, bool compressResponses_ = true, string applicationName_ = "") ``` -------------------------------- ### Job.JobName Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Job.html Gets or sets the name of the job. ```csharp public string JobName { get; set; } ``` -------------------------------- ### PurchaseOrder Constructors Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.PurchaseOrder.html Provides information on how to instantiate a PurchaseOrder object, either for updating an existing order or creating a new one. ```APIDOC ## PurchaseOrder(Int32) ### Description Creates an object intended to be used to update a purchase order. ### Parameters - **purchaseOrderId_** (System.Int32) - Required - Identifies an existing purchase order. ``` ```APIDOC ## PurchaseOrder(Int32, Int32) ### Description Creates an object intended to be used to create a new purchase order. ### Parameters - **supplierId_** (System.Int32) - Required - Id of the supplier associated with the purchase order. - **costListId_** (System.Int32) - Required - Id of the cost list associated with the purchase order. ``` -------------------------------- ### Property: Location Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.InventoryCountDetail.html Gets or sets the location of the inventory. ```APIDOC ## Property: Location ### Description Location of the inventory. ### Property Value - **Location** (System.String) - Description: ``` -------------------------------- ### ShipToLocation Constructor (Create) Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.ShipToLocation.html Creates a ShipToLocation object intended for creating a new ship-to location. Requires a name for the new location. ```csharp public ShipToLocation(string shipToLocationName_) ``` -------------------------------- ### SeqNum Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Assignee.html Gets the sequence number of the assignee. ```csharp public int SeqNum { get; } ``` -------------------------------- ### PurchaseOrderReceipt Constructor (PurchaseOrderLineId) Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.PurchaseOrderReceipt.html Creates a PurchaseOrderReceipt object specifically for receiving a PurchaseOrderLine with a specified quantity. ```csharp public PurchaseOrderReceipt(int purchaseOrderLineId_, decimal quantity_) ``` -------------------------------- ### AccountFile Constructor (int) Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.AccountFile.html Creates a new AccountFile object for updating an existing file. Requires the ID of the file. ```csharp public AccountFile(int id_) ``` -------------------------------- ### Description Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Assignee.html Gets or sets the description for the assignee. ```csharp public string Description { get; set; } ``` -------------------------------- ### AssigneeName Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Assignee.html Gets or sets the name of the assignee. ```csharp public string AssigneeName { get; set; } ``` -------------------------------- ### InventoryCountDetail Constructor (int, string, decimal, string) Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.InventoryCountDetail.html Initializes a new instance of the InventoryCountDetail class with specified inventory count ID, serial number name, quantity, and count type. ```APIDOC ## InventoryCountDetail(int inventoryCountId_, string serialNumberName_, decimal quantity_, string countType_) ### Description Used to create a new inventory count detail. ### Parameters - **inventoryCountId_** (System.Int32) - Required - The inventory count to which this detail belongs. - **serialNumberName_** (System.String) - Required - Identifies the serial number (by name). - **quantity_** (System.Decimal) - Required - Quantity of the purchase product. - **countType_** (System.String) - Required - Indicates the type of count detail (e.g. "Manual", "Scanned") ``` -------------------------------- ### SellProductVariant Constructor (SellProduct ID and Attributes) Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.SellProductVariant.html Initializes a SellProductVariant with a specific sell product ID and a collection of product attribute values. This constructor is used to define a unique variant based on its associated product and its defining attributes. ```csharp public SellProductVariant(int sellProductId_, IEnumerable productAttributeValues_) ``` -------------------------------- ### AssigneeId Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Assignee.html Gets the unique identifier for the assignee. ```csharp public int AssigneeId { get; } ``` -------------------------------- ### SerialNumberImport.SerialNumberImportId Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.SerialNumberImport.html Gets the identifier for the Import serial number. ```csharp public int SerialNumberImportId { get; } ``` -------------------------------- ### CreateCommandDocument Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Connection.html Creates the stub of a command document with version strings and session information. ```APIDOC ## CreateCommandDocument(String, String) ### Description Creates the stub of a command document, adorning it with the version strings and the current SessionId (unless it's a 'sessionCreate' command, in which case the UserName and Password are set). ### Method POST (Assumed, as it creates a document) ### Endpoint /api/Commands ### Parameters #### Request Body - **commandName_** (String) - Required - The name of the command. - **apiVersion_** (String) - Optional - The API version. Defaults to "5". ``` -------------------------------- ### Salesperson.AccountingId Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Salesperson.html Gets or sets the accounting ID for the salesperson. ```csharp public string AccountingId { get; set; } ``` -------------------------------- ### AccountContact Constructor (New Contact for Existing Account) Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.AccountContact.html Use this constructor to create a new AccountContact for an existing Account. It requires the account ID to associate the contact with. ```csharp public AccountContact(int accountId_) ``` -------------------------------- ### PurchaseOrderFile Constructor (int) Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.PurchaseOrderFile.html Creates a new PurchaseOrderFile object for updating an existing file. Requires the ID of the file. ```APIDOC ## PurchaseOrderFile(int id_) ### Description Creates a new PurchaseOrderFile object to be used when updating a file. ### Parameters - **id_** (System.Int32) - Required - Identifies the file. ``` -------------------------------- ### PurchaseOrder.StatusName Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.PurchaseOrder.html Gets the name of the status of the purchase order. ```csharp public string StatusName { get; } ``` -------------------------------- ### PurchaseOrder.PurchaseOrderNumber Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.PurchaseOrder.html Gets or sets the purchase order number. ```csharp public string PurchaseOrderNumber { get; set; } ``` -------------------------------- ### PurchaseOrderSplitLine Constructor (Multiple Splits) Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.PurchaseOrderSplitLine.html Initializes a new instance of the PurchaseOrderSplitLine class to split off multiple new lines from an existing purchase order line. ```APIDOC ## PurchaseOrderSplitLine(Int32, IEnumerable) ### Description Splits off a set of new lines from an existing line. ### Method Signature ```csharp public PurchaseOrderSplitLine(int purchaseOrderLineId_, IEnumerable splitMeasurements_) ``` ### Parameters #### Path Parameters - **purchaseOrderLineId_** (System.Int32) - Required - The original purchase order line from which the new lines will be split. - **splitMeasurements_** (System.Collections.Generic.IEnumerable) - Required - Defines each of the newly split lines. ``` -------------------------------- ### CreateCommandDocument Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Connection.html Creates a stub of a command document, adorning it with version strings and the current SessionId. For 'sessionCreate' commands, it sets the UserName and Password instead. ```APIDOC ## CreateCommandDocument(String, String, Nullable) ### Description Creates the stub of a command document, adorning it with the version strings and the current SessionId (unless it's a 'sessionCreate' command, in which case the UserName and Password are set). ### Method ```csharp public XmlElement CreateCommandDocument(string commandName_, string apiVersion_, int? prereleaseVersion_) ``` ### Parameters #### Path Parameters - **commandName_** (System.String) - Required - Command document to create. - **apiVersion_** (System.String) - Required - Version of document to generate. - **prereleaseVersion_** (System.Nullable) - Optional - Indicates the prerelease version (if any) of the document to generate. ### Returns #### Success Response - **XmlElement** - A command document built using the given command name and versions along with the current session id. ``` -------------------------------- ### InventoryCount Constructor (string) Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.InventoryCount.html Initializes a new instance of the InventoryCount class to create a new inventory count. Requires a name for the new count. ```csharp public InventoryCount(string inventoryCountName_) ``` -------------------------------- ### JobTemplateName Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.JobTemplate.html Gets or sets the name of the job template. ```csharp public string JobTemplateName { get; set; } ``` -------------------------------- ### JobPhaseName Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.JobPhase.html Gets or sets the name of the job phase. ```csharp public string JobPhaseName { get; set; } ``` -------------------------------- ### SellProductVariant Constructor (ID) Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.SellProductVariant.html Initializes a SellProductVariant by referencing an existing one using its unique ID. This is useful for creating a reference to a sellable product variant without needing all its details. ```csharp public SellProductVariant(int sellProductVariantId_) ``` -------------------------------- ### Job Constructor (Create) Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Job.html Creates a job object for a new job. Requires account ID, job name, and process ID. ```csharp public Job(int accountId_, string jobName_, int processId_) ``` -------------------------------- ### JobPhaseId Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.JobPhase.html Gets the unique identifier for the job phase. ```csharp public int JobPhaseId { get; } ``` -------------------------------- ### ProcessName Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.JTProcess.html Gets the name of the process. This property is read-only. ```csharp public string ProcessName { get; } ``` -------------------------------- ### GetProductLines() - Retrieve All Product Lines Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Connection.html Retrieves the entire set of ProductLines. No parameters are required. ```csharp public List GetProductLines() ``` -------------------------------- ### Job.CreationDate Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Job.html Gets or sets the creation date of the job. ```csharp public DateTime CreationDate { get; set; } ``` -------------------------------- ### InventoryCountName Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.InventoryCount.html Gets or sets the name of the inventory count. ```APIDOC ## InventoryCountName Property ### Description Name of the inventory count. ### Property Value - **InventoryCountName** (System.String) - The name of the inventory count. ``` -------------------------------- ### PurchaseOrderSplitLine Constructor (Single Split) Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.PurchaseOrderSplitLine.html Initializes a new instance of the PurchaseOrderSplitLine class to split off a single new line from an existing purchase order line. ```APIDOC ## PurchaseOrderSplitLine(Int32, PurchaseOrderSplitLine.SplitMeasurement) ### Description Splits off a new line from an existing line. ### Method Signature ```csharp public PurchaseOrderSplitLine(int purchaseOrderLineId_, PurchaseOrderSplitLine.SplitMeasurement splitMeasurements_) ``` ### Parameters #### Path Parameters - **purchaseOrderLineId_** (System.Int32) - Required - The original purchase order line from which the new line will be split. - **splitMeasurements_** (PurchaseOrderSplitLine.SplitMeasurement) - Required - Defines the newly split line. ``` -------------------------------- ### InventoryCountId Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.InventoryCount.html Gets the unique identifier for the inventory count. ```APIDOC ## InventoryCountId Property ### Description Identifies the inventory count. ### Property Value - **InventoryCountId** (System.Int32) - The unique identifier of the inventory count. ``` -------------------------------- ### Supplier Constructor (String) Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Supplier.html Creates an supplier object intended for creating a new supplier. Requires the supplier's name. ```csharp public Supplier(string supplierName_) ``` -------------------------------- ### InventoryCount.InventoryCountName Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.InventoryCount.html Gets or sets the name of the inventory count. ```csharp public string InventoryCountName { get; set; } ``` -------------------------------- ### SimpleConsoleCommandTracer Constructors Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.DevelopmentAssistance.SimpleConsoleCommandTracer.html Constructors for the SimpleConsoleCommandTracer class. ```APIDOC ## SimpleConsoleCommandTracer(SimpleConsoleCommandTracer.JTTraceOptions_Enum) ### Description Initializes a new instance of the SimpleConsoleCommandTracer class with a specified trace option. ### Parameters - **traceOption_** (SimpleConsoleCommandTracer.JTTraceOptions_Enum) - Required - Indicates what will be written to the console. ### Syntax ```csharp public SimpleConsoleCommandTracer(SimpleConsoleCommandTracer.JTTraceOptions_Enum traceOption_ = SimpleConsoleCommandTracer.JTTraceOptions_Enum.CommandAndResponse_TraceOption) ``` ``` ```APIDOC ## SimpleConsoleCommandTracer(Boolean, Boolean) ### Description Initializes a new instance of the SimpleConsoleCommandTracer class, specifying whether to trace commands and responses. ### Parameters - **traceCommand_** (System.Boolean) - Required - Indicates whether commands will be traced. - **traceResponse_** (System.Boolean) - Required - Indicates whether responses will be traced. ### Syntax ```csharp public SimpleConsoleCommandTracer(bool traceCommand_, bool traceResponse_) ``` ``` -------------------------------- ### Salesperson Constructor (string) Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Salesperson.html Creates a salesperson object for creating a new salesperson. Requires the name of the new salesperson. ```csharp public Salesperson(string salespersonName_) ``` -------------------------------- ### Address Constructor Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Address.html Initializes a new instance of the Address class. This is the default constructor. ```csharp public Address() ``` -------------------------------- ### Url Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Connection.html Gets or sets the URL at which the JobTracker instance can be found. ```APIDOC ## Url ### Description URL at which the JobTracker instance may be found. ### Property Value Type: System.String ### Access get; set; ``` -------------------------------- ### PriceList Constructor Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.PriceList.html Initializes a new instance of the PriceList class with the specified ID, name, default tax percentage, and inactive status. ```APIDOC ## PriceList(Int32, String, Nullable, Boolean) ### Description Initializes a new instance of the PriceList class. ### Method Constructor ### Parameters #### Parameters - **id_** (System.Int32) - Required - Price list id. - **name_** (System.String) - Required - Price list name. - **defaultTaxPercent_** (System.Nullable) - Optional - Tax rate to be used for this price list. - **isInactive_** (System.Boolean) - Required - Indicates whether this price list has been marked inactive. ``` -------------------------------- ### UnreceivedSerialNumberId Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.UnreceivedSerialNumber.html Gets the unique identifier for the unreceived serial number. ```csharp public int UnreceivedSerialNumberId { get; } ``` -------------------------------- ### CreateAccountPriceList Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Connection.html Adds a price list to an account. ```APIDOC ## CreateAccountPriceList(AccountPriceList) ### Description Adds a price list to an account. ### Method POST (Assumed, as it adds a resource) ### Endpoint /api/Accounts/{accountId}/PriceLists ### Parameters #### Request Body - **accountPriceList_** (AccountPriceList) - Required - The account price list to be created. ``` -------------------------------- ### ShipToLocation ShipToLocationName Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.ShipToLocation.html Gets or sets the name of this ship-to location. ```csharp public string ShipToLocationName { get; set; } ``` -------------------------------- ### ShipToLocation ShipToLocationId Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.ShipToLocation.html Gets the unique identifier for this ship-to location. ```csharp public int ShipToLocationId { get; } ``` -------------------------------- ### Command Method Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.DevelopmentAssistance.SimpleConsoleCommandTracer.html Called before a command is issued to the server. It accepts a description and the command content for logging purposes. ```csharp public void Command(string commandDescription_, string command_) ``` -------------------------------- ### JobActivityMaterial Constructor (Job Activity ID, Purchase Product Variant ID) Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.JobActivityMaterial.html Use this constructor to create, update, or delete job activity material by specifying the job activity ID and the purchase product variant ID. ```csharp public JobActivityMaterial(int jobActivityId_, int purchaseProductVariantId_) ``` -------------------------------- ### SerialNumberRemnantId Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.SerialNumberRemnant.html Gets the unique identifier for this remnant serial number. ```csharp public int SerialNumberRemnantId { get; } ``` -------------------------------- ### ParentSerialNumberId Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.SerialNumberRemnant.html Gets the ID of the serial number from which this remnant was created. ```csharp public int ParentSerialNumberId { get; } ``` -------------------------------- ### JobPhase Constructor (Create) Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.JobPhase.html Creates a job phase object for a new job phase. Requires the job ID and the name for the new phase. ```csharp public JobPhase(int jobId_, string name_) ``` -------------------------------- ### AdjustmentDate Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.SerialNumberInventoryAdjustment.html Gets or sets the date of the serial number adjustment. ```csharp public DateTime AdjustmentDate { get; set; } ``` -------------------------------- ### Get Sell Product by ID Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Connection.html Retrieves a specific sell product using its unique ID. Returns the requested SellProduct object if it exists. ```csharp public SellProduct GetSellProduct(int sellProductId_) ``` -------------------------------- ### PurchaseProductVariant Constructor (int) Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.PurchaseProductVariant.html Initializes a PurchaseProductVariant by referencing an existing one using its ID. Use this constructor when you need to refer to a specific, already created PurchaseProductVariant. ```csharp public PurchaseProductVariant(int purchaseProductVariantId_) ``` -------------------------------- ### PurchaseOrder.Status Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.PurchaseOrder.html Gets the status of the purchase order, represented by the PurchaseOrderStatusType_Enum. ```csharp public PurchaseOrder.PurchaseOrderStatusType_Enum Status { get; } ``` -------------------------------- ### PurchaseOrderReceiptId Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.PurchaseOrderReceipt.html Gets the unique identifier for the purchase order receipt. ```csharp public int PurchaseOrderReceiptId { get; } ``` -------------------------------- ### AccountContact Constructor (Default) Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.AccountContact.html Use this constructor when creating a new account. It initializes a new instance of the AccountContact class. ```csharp public AccountContact() ``` -------------------------------- ### SimpleConsoleCommandTracer Constructor with Trace Options Enum Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.DevelopmentAssistance.SimpleConsoleCommandTracer.html Initializes a new instance of the SimpleConsoleCommandTracer class using a JTTraceOptions_Enum to specify what information will be written to the console. Defaults to tracing both commands and responses. ```csharp public SimpleConsoleCommandTracer(SimpleConsoleCommandTracer.JTTraceOptions_Enum traceOption_ = SimpleConsoleCommandTracer.JTTraceOptions_Enum.CommandAndResponse_TraceOption) ``` -------------------------------- ### PurchaseOrder.OrderDate Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.PurchaseOrder.html Gets or sets the order date for the purchase order. ```csharp public DateTime? OrderDate { get; set; } ``` -------------------------------- ### JobActivity Constructor (Create) Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.JobActivity.html Creates a JobActivity object for a new job activity. Requires the job ID, activity type ID, and status ID. ```csharp public JobActivity(int jobId_, int jobActivityTypeId_, int jobActivityStatusId_) ``` -------------------------------- ### ProductLineName Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Product.html Gets the name of the associated ProductLine. This property is read-only. ```csharp public string ProductLineName { get; } ``` -------------------------------- ### ProductLineId Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Product.html Gets the identifier for the associated ProductLine. This property is read-only. ```csharp public int ProductLineId { get; } ``` -------------------------------- ### PurchaseOrderSplitLine Constructor (Multiple Splits) Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.PurchaseOrderSplitLine.html Initializes a new instance of the PurchaseOrderSplitLine class to split off multiple new lines from an existing purchase order line. Use this constructor when defining several new split lines. ```csharp public PurchaseOrderSplitLine(int purchaseOrderLineId_, IEnumerable splitMeasurements_) ``` -------------------------------- ### ProductId Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Product.html Gets the unique identifier for the product. This property is read-only. ```csharp public int ProductId { get; } ``` -------------------------------- ### Establish JobTracker Connection Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Connection.html Attempts to establish a connection with a JobTracker instance. Call this method to initiate communication. ```csharp public void Connect() ``` -------------------------------- ### ProductVariantId Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.ProductVariant.html Gets the unique identifier for this ProductVariant. This property is read-only. ```csharp public int ProductVariantId { get; } ``` -------------------------------- ### ProductFamilyName Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Product.html Gets the name of the associated ProductFamily. This property is read-only. ```csharp public string ProductFamilyName { get; } ``` -------------------------------- ### GetPriceLists() - Retrieve All Price Lists Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Connection.html Retrieves all globally defined price lists. No parameters are required. ```csharp public List GetPriceLists() ``` -------------------------------- ### Create Command Document Stub Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Connection.html Creates the basic structure for a command document, including version strings and the current SessionId. The default API version is '5'. ```csharp public XmlElement CreateCommandDocument(string commandName_, string apiVersion_ = "5") ``` -------------------------------- ### ProductFamilyId Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Product.html Gets the identifier for the associated ProductFamily. This property is read-only. ```csharp public int ProductFamilyId { get; } ``` -------------------------------- ### InventoryCount Constructor (string) Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.InventoryCount.html Initializes a new instance of the InventoryCount class to create a new inventory count. ```APIDOC ## InventoryCount(String) ### Description Used to create a new inventory count. ### Parameters - **inventoryCountName_** (System.String) - Name of the new inventory count. ``` -------------------------------- ### LabelTemplateName Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.LabelTemplate.html Gets the name of the label template. This property is read-only. ```csharp public string LabelTemplateName { get; } ``` -------------------------------- ### PurchaseOrderProductLine Constructors Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.PurchaseOrderProductLine.html Provides constructors for creating PurchaseOrderProductLine objects, either for updating an existing line or creating a new one. ```APIDOC ## PurchaseOrderProductLine(Int32) ### Description Creates an object to be used to update an existing line. ### Parameters - **purchaseOrderLineId_** (System.Int32) - Required - Identifies the line to be updated ## PurchaseOrderProductLine(Int32, PurchaseProductVariant) ### Description Creates an object to be used to create a new line. ### Parameters - **poId_** (System.Int32) - Required - The purchase order to which the line belongs - **purchaseProductVariant_** (PurchaseProductVariant) - Required - The associated product ``` -------------------------------- ### Measurement Value Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Measurement.html Gets or sets the decimal value of the measurement. ```csharp public decimal Value { get; set; } ``` -------------------------------- ### GetPurchaseProducts() Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Connection.html Returns a list of all purchase products. ```APIDOC ## GetPurchaseProducts() ### Description Returns a list of all purchase products. ### Method GET ### Endpoint /api/PurchaseProducts ### Response #### Success Response (200) - **List** - The purchase products. ``` -------------------------------- ### Job.JobPhases Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Job.html Gets or sets the list of phases associated with the job. ```csharp public List JobPhases { get; set; } ``` -------------------------------- ### FrozenBy Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.InventoryCount.html Gets the user who froze the inventory count, if it has been frozen. ```APIDOC ## FrozenBy Property ### Description If this inventory count has been frozen, indicates who froze it. ### Property Value - **FrozenBy** (System.String) - The user who froze the inventory count. ``` -------------------------------- ### CreateAssignee Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Connection.html Creates a new assignee. ```APIDOC ## CreateAssignee(Assignee) ### Description Creates the given assignee. ### Method POST ### Endpoint /api/Assignees ### Parameters #### Request Body - **assignee_** (Assignee) - Required - Assignee to be created. ### Returns #### Success Response (200) - **AssigneeId** (Int32) - The new assignee's id. ### Remarks On successful creation, `assignee_`'s AssigneeId property will be assigned the id of the newly created assignee. ``` -------------------------------- ### AccountPriceList.AccountName Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.AccountPriceList.html Gets the name of the account associated with the price list. ```csharp public string AccountName { get; } ``` -------------------------------- ### PurchaseProductVariant Constructor (int, IEnumerable) Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.PurchaseProductVariant.html Initializes a PurchaseProductVariant with a specific purchase product ID and a collection of product attribute values. This is used to define a new variant based on its associated product and its defining attributes. ```csharp public PurchaseProductVariant(int purchaseProductId_, IEnumerable productAttributeValues_) ``` -------------------------------- ### AccountPriceList.AccountId Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.AccountPriceList.html Gets the account ID associated with the price list. ```csharp public int AccountId { get; } ``` -------------------------------- ### Create InventoryLocation for New Entry Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.InventoryLocation.html Use this constructor to create a new InventoryLocation object. It requires the name for the new inventory location. ```csharp public InventoryLocation(string inventoryLocationName_) ``` -------------------------------- ### PurchaseOrderSplitLine Constructor (Single Split) Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.PurchaseOrderSplitLine.html Initializes a new instance of the PurchaseOrderSplitLine class to split off a single new line from an existing purchase order line. Use this constructor when defining one new split line. ```csharp public PurchaseOrderSplitLine(int purchaseOrderLineId_, PurchaseOrderSplitLine.SplitMeasurement splitMeasurements_) ``` -------------------------------- ### Get Account Contacts Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Connection.html Retrieves all contacts associated with a given account ID. ```csharp public List GetAccountContacts(int accountId_) ``` -------------------------------- ### SupplierFile Constructor (Update) Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.SupplierFile.html Creates a new SupplierFile object for updating an existing file. Requires the file's ID. ```csharp public SupplierFile(int id_) ``` -------------------------------- ### UserName Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.Connection.html Gets or sets the username to be used when establishing a connection to the service. ```APIDOC ## UserName ### Description Username to be used when establishing a connection to the service. ### Property Value Type: System.String ### Access get; set; ``` -------------------------------- ### SimpleConsoleCommandTracer Methods Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.DevelopmentAssistance.SimpleConsoleCommandTracer.html Methods of the SimpleConsoleCommandTracer class. ```APIDOC ## Command(String, String) ### Description Called before a command is issued. ### Parameters - **commandDescription_** (System.String) - Required - Description of the command. - **command_** (System.String) - Required - Content of the command. ### Syntax ```csharp public void Command(string commandDescription_, string command_) ``` ``` ```APIDOC ## CommandResponse(String, String) ### Description Called after a command has been issued and successfully processed by the server. ### Parameters - **commandDescription_** (System.String) - Required - Description of the command that generated the response. - **response_** (System.String) - Required - Content of the response. ### Syntax ```csharp public void CommandResponse(string commandDescription_, string response_) ``` ``` -------------------------------- ### SerialNumberInventoryAdjustmentId Property Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.SerialNumberInventoryAdjustment.html Gets the unique identifier for the serial number inventory adjustment. ```csharp public int SerialNumberInventoryAdjustmentId { get; } ``` -------------------------------- ### JobActivityMaterial Constructor (Job Activity ID, Purchase Product Variant) Source: https://developer.moraware.com/api/Moraware.JobTrackerAPI5.JobActivityMaterial.html Use this constructor to create or update job activity material by specifying the job activity ID and the PurchaseProductVariant object. ```csharp public JobActivityMaterial(int jobActivityId_, PurchaseProductVariant purchaseProductVariant_) ```