# Unleashed

> Manage Unleashed customers, products and sales orders, and read purchase orders, suppliers and stock on hand.

App · 25 actions. Web page: https://docs.lodol.com/docs/integrations/unleashed

## Actions

### Add a sales order line

Add a product line to an existing sales order.

**Inputs**

- Order guid (`order_guid`, text, required): The sales order to add the line to.
- Product code (`product_code`, text, required): The product being sold.
- Quantity (`quantity`, number, required): How many are being sold. At least 0.
- Unit price (`unit_price`, number): The price of one unit, before tax. At least 0.
- Discount rate (`discount_rate`, number): A discount as a fraction, such as 0.1 for 10%. From 0 to 1.
- Comments (`comments`, text): Comments on the line.

**Outputs**

- `data` (object): The response from Unleashed.

**Example output**

```json
{
  "data": {}
}
```

### Complete a purchase order

Complete a purchase order, receiving its stock into the warehouse.

**Inputs**

- Order guid (`order_guid`, text, required): The purchase order to complete.

**Outputs**

- `data` (object): The response from Unleashed.

**Example output**

```json
{
  "data": {
    "BCSubTotal": 1.0,
    "BCTaxTotal": 1.0,
    "BCTotal": 1.0,
    "Comments": "example",
    "CompletedDate": "example",
    "CreatedBy": "example",
    "CreatedOn": "example",
    "Currency": {
      "CurrencyCode": "example",
      "DefaultBuyRate": 1.0,
      "DefaultSellRate": 1.0,
      "Description": "example",
      "Guid": "example",
      "LastModifiedOn": "example"
    },
    "CustomOrderStatus": "example",
    "DeliveryCity": "example",
    "DeliveryCountry": "example",
    "DeliveryDate": "example",
    "DeliveryName": "example",
    "DeliveryPostCode": "example",
    "DeliveryRegion": "example",
    "DeliveryStreetAddress": "example",
    "DeliveryStreetAddress2": "example",
    "DeliverySuburb": "example",
    "DiscountRate": 1.0,
    "ExchangeRate": 1.0,
    "Guid": "example",
    "LastModifiedBy": "example",
    "LastModifiedOn": "example",
    "OrderDate": "example",
    "OrderNumber": "example",
    "OrderStatus": "example",
    "Printed": false,
    "PurchaseOrderLines": [],
    "ReceivedDate": "example",
    "SalesOrders": [],
    "SubTotal": 1.0,
    "Supplier": {
      "Guid": "example",
      "SupplierCode": "example",
      "SupplierName": "example"
    },
    "SupplierEORI": "example",
    "SupplierInvoiceDate": "example",
    "SupplierRef": "example",
    "Tax": {
      "CanApplyToExpenses": false,
      "CanApplyToRevenue": false,
      "Description": "example",
      "Guid": "example",
      "LastModifiedOn": "example",
      "Obsolete": false,
      "TaxCode": "example",
      "TaxRate": 1.0
    },
    "TaxCode": "example",
    "TaxRate": 1.0,
    "TaxTotal": 1.0,
    "Total": 1.0,
    "TotalVolume": 1.0,
    "TotalWeight": 1.0,
    "Warehouse": {
      "AddressLine1": "example",
      "AddressLine2": "example",
      "City": "example",
      "ContactName": "example",
      "Country": "example",
      "DDINumber": "example",
      "FaxNumber": "example",
      "Guid": "example",
      "IsDefault": false,
      "LastModifiedOn": "example",
      "MobileNumber": "example",
      "Obsolete": false,
      "PhoneNumber": "example",
      "PostCode": "example",
      "Region": "example",
      "StreetNo": "example",
      "Suburb": "example",
      "WarehouseCode": "example",
      "WarehouseName": "example"
    }
  }
}
```

### Complete a sales order

Complete a sales order, taking its stock out of the warehouse.

**Inputs**

- Order guid (`order_guid`, text, required): The sales order to complete.

**Outputs**

- `data` (object): The response from Unleashed.

**Example output**

```json
{
  "data": {
    "BCSubTotal": 1.0,
    "BCTaxTotal": 1.0,
    "BCTotal": 1.0,
    "Comments": "example",
    "CompletedDate": "example",
    "CreatedBy": "example",
    "CreatedOn": "example",
    "Currency": {
      "CurrencyCode": "example",
      "DefaultBuyRate": 1.0,
      "DefaultSellRate": 1.0,
      "Description": "example",
      "Guid": "example",
      "LastModifiedOn": "example"
    },
    "CustomOrderStatus": "example",
    "Customer": {
      "CurrencyId": 1,
      "CustomerCode": "example",
      "CustomerName": "example",
      "Guid": "example",
      "LastModifiedOn": "example"
    },
    "CustomerRef": "example",
    "DeliveryCity": "example",
    "DeliveryContact": {
      "EmailAddress": "example",
      "FirstName": "example",
      "Guid": "example",
      "LastName": "example",
      "MobilePhone": "example",
      "OfficePhone": "example",
      "PhoneNumber": "example",
      "UseDefaultDeliveryAddress": false
    },
    "DeliveryCountry": "example",
    "DeliveryInstruction": "example",
    "DeliveryMethod": "example",
    "DeliveryName": "example",
    "DeliveryPostCode": "example",
    "DeliveryRegion": "example",
    "DeliveryStreetAddress": "example",
    "DeliveryStreetAddress2": "example",
    "DeliverySuburb": "example",
    "DiscountRate": 1.0,
    "ExchangeRate": 1.0,
    "Guid": "example",
    "LastModifiedBy": "example",
    "LastModifiedOn": "example",
    "OrderDate": "example",
    "OrderNumber": "example",
    "OrderStatus": "example",
    "PaymentDueDate": "example",
    "ReceivedDate": "example",
    "RequiredDate": "example",
    "SalesAccount": "example",
    "SalesOrderGroup": "example",
    "SalesOrderLines": [],
    "Salesperson": {
      "Email": "example",
      "FullName": "example",
      "Guid": "example",
      "LastModifiedOn": "example",
      "Obsolete": false
    },
    "SourceId": "example",
    "SubTotal": 1.0,
    "Tax": {
      "CanApplyToExpenses": false,
      "CanApplyToRevenue": false,
      "Description": "example",
      "Guid": "example",
      "LastModifiedOn": "example",
      "Obsolete": false,
      "TaxCode": "example",
      "TaxRate": 1.0
    },
    "TaxRate": 1.0,
    "TaxTotal": 1.0,
    "Total": 1.0,
    "TotalVolume": 1.0,
    "TotalWeight": 1.0,
    "Warehouse": {
      "AddressLine1": "example",
      "AddressLine2": "example",
      "City": "example",
      "ContactName": "example",
      "Country": "example",
      "DDINumber": "example",
      "FaxNumber": "example",
      "Guid": "example",
      "IsDefault": false,
      "LastModifiedOn": "example",
      "MobileNumber": "example",
      "Obsolete": false,
      "PhoneNumber": "example",
      "PostCode": "example",
      "Region": "example",
      "StreetNo": "example",
      "Suburb": "example",
      "WarehouseCode": "example",
      "WarehouseName": "example"
    },
    "XeroTaxCode": "example"
  }
}
```

### Create a customer

Create a customer with a primary contact.

**Inputs**

- Customer code (`customer_code`, text, required): A unique code for the customer. It can't be changed later.
- Customer name (`customer_name`, text, required): The customer's name.
- Contact first name (`contact_first_name`, text): The primary contact's first name.
- Contact last name (`contact_last_name`, text): The primary contact's last name.
- Email (`email`, text): The primary contact's email address.
- Phone number (`phone_number`, text): The primary contact's phone number. Needs the contact's name or email.
- Mobile number (`mobile_number`, text): The primary contact's mobile number. Needs the contact's name or email.
- Website (`website`, text): The customer's website. Needs the contact's name or email.
- Currency code (`currency_code`, text): The customer's currency, such as NZD. Leave blank for your company's base currency.
- Customer type (`customer_type`, text): The customer type, as set up in Unleashed.
- Payment term (`payment_term`, text): The payment term, as set up in Unleashed.
- Notes (`notes`, text): Notes about the customer.

**Outputs**

- `data` (object): The response from Unleashed.

**Example output**

```json
{
  "data": {
    "Addresses": [],
    "BankAccount": "example",
    "BankBranch": "example",
    "BankName": "example",
    "ContactFirstName": "example",
    "ContactLastName": "example",
    "Contacts": [],
    "CreatedBy": "example",
    "CreatedOn": "example",
    "CreditLimit": 1.0,
    "Currency": {
      "CurrencyCode": "example",
      "DefaultBuyRate": 1.0,
      "DefaultSellRate": 1.0,
      "Description": "example",
      "Guid": "example",
      "LastModifiedOn": "example"
    },
    "CustomerCode": "example",
    "CustomerName": "example",
    "CustomerType": "example",
    "CustomerTypeGuid": "example",
    "DDINumber": "example",
    "DefaultWarehouse": {
      "Guid": "example",
      "WarehouseCode": "example",
      "WarehouseName": "example"
    },
    "DeliveryInstruction": "example",
    "DeliveryMethod": "example",
    "DiscountRate": 1.0,
    "EORINumber": "example",
    "Email": "example",
    "EmailCC": "example",
    "FaxNumber": "example",
    "GSTVATNumber": "example",
    "Guid": "example",
    "HasCreditLimit": false,
    "LastModifiedBy": "example",
    "LastModifiedOn": "example",
    "MobileNumber": "example",
    "Notes": "example",
    "Obsolete": false,
    "PaymentTerm": "example",
    "PhoneNumber": "example",
    "PrintInvoice": false,
    "PrintPackingSlipInsteadOfInvoice": false,
    "Reminder": "example",
    "SalesOrderGroup": "example",
    "Salesperson": {
      "Email": "example",
      "FullName": "example",
      "Guid": "example",
      "LastModifiedOn": "example",
      "Obsolete": false
    },
    "SellPriceTier": "example",
    "SellPriceTierReference": {},
    "StopCredit": false,
    "TaxCode": "example",
    "TaxRate": 1.0,
    "Taxable": false,
    "TollFreeNumber": "example",
    "Website": "example",
    "XeroCostOfGoodsAccount": "example",
    "XeroSalesAccount": "example"
  }
}
```

### Create a product

Create a product.

**Inputs**

- Product code (`product_code`, text, required): A unique code for the product.
- Product description (`product_description`, text, required): The product's name or description.
- Default sell price (`default_sell_price`, number): The usual selling price of one unit. At least 0.
- Default purchase price (`default_purchase_price`, number): The usual buying price of one unit. At least 0.
- Barcode (`barcode`, text): The product's barcode.
- Min stock alert level (`min_stock_alert_level`, number): Warn when stock falls below this level. At least 0.
- Max stock alert level (`max_stock_alert_level`, number): Warn when stock rises above this level. At least 0.
- Is sellable (`is_sellable`, true/false): Whether the product can go on sales orders. Defaults to yes.
- Is purchasable (`is_purchasable`, true/false): Whether the product can go on purchase orders. Defaults to yes.
- Notes (`notes`, text): Notes about the product.

**Outputs**

- `data` (object): The response from Unleashed.

**Example output**

```json
{
  "data": {
    "AlternateUnitsOfMeasure": [],
    "AutomaticChargeCost": 1.0,
    "AverageLandPrice": 1.0,
    "Barcode": "example",
    "BinLocation": "example",
    "Comments": "example",
    "CommerceCode": "example",
    "CopyCommentsForPurchases": false,
    "CopyCommentsForSales": false,
    "CreatedBy": "example",
    "CreatedOn": "example",
    "CustomerSellPrice": 1.0,
    "CustomsDescription": "example",
    "DefaultPurchasePrice": 1.0,
    "DefaultPurchasesUnitOfMeasure": {
      "Guid": "example",
      "Name": "example",
      "Obsolete": false
    },
    "DefaultSellPrice": 1.0,
    "Depth": 1.0,
    "Guid": "example",
    "Height": 1.0,
    "ICCCountryCode": "example",
    "ICCCountryName": "example",
    "ImageUrl": "example",
    "Images": [],
    "InventoryDetails": [],
    "IsAssembledProduct": false,
    "IsBatchTracked": false,
    "IsComponent": false,
    "IsPurchasable": false,
    "IsSellable": false,
    "IsSerialized": false,
    "LastCost": 1.0,
    "LastModifiedBy": "example",
    "LastModifiedOn": "example",
    "MaxStockAlertLevel": 1.0,
    "MinStockAlertLevel": 1.0,
    "MinimumOrderQuantity": 1.0,
    "MinimumSaleQuantity": 1.0,
    "MinimumSellPrice": 1.0,
    "NeverDiminishing": false,
    "NominalCost": 1.0,
    "Notes": "example",
    "Obsolete": false,
    "PackSize": 1.0,
    "ProductBrand": {
      "BrandName": "example",
      "Guid": "example",
      "LastModifiedOn": "example"
    },
    "ProductCode": "example",
    "ProductDescription": "example",
    "ProductGroup": {
      "GroupName": "example",
      "Guid": "example",
      "LastModifiedOn": "example",
      "ParentGroupGuid": "example"
    },
    "ProductSubGroup": {
      "GroupName": "example",
      "Guid": "example",
      "LastModifiedOn": "example",
      "ParentGroupGuid": "example"
    },
    "PurchaseAccount": "example",
    "Reminder": "example",
    "SellPriceTier1": {},
    "SellPriceTier10": {},
    "SellPriceTier2": {},
    "SellPriceTier3": {},
    "SellPriceTier4": {},
    "SellPriceTier5": {},
    "SellPriceTier6": {},
    "SellPriceTier7": {},
    "SellPriceTier8": {},
    "SellPriceTier9": {},
    "SourceId": "example",
    "SourceVariantParentId": "example",
    "SupplementaryClassificationAbbreviation": "example",
    "Supplier": {
      "Guid": "example",
      "LeadTimeDays": 1,
      "MinimumOrderQuantity": 1.0,
      "SupplierCode": "example",
      "SupplierName": "example",
      "SupplierProductCode": "example",
      "SupplierProductDescription": "example",
      "SupplierProductPrice": 1.0,
      "UnitOfMeasure": {
        "Guid": "example",
        "Name": "example",
        "Obsolete": false
      }
    },
    "TaxablePurchase": false,
    "TaxableSales": false,
    "UnitOfMeasure": {
      "Guid": "example",
      "Name": "example",
      "Obsolete": false
    },
    "Weight": 1.0,
    "Width": 1.0,
    "XeroCostOfGoodsAccount": "example",
    "XeroSalesAccount": "example",
    "XeroSalesTaxCode": "example",
    "XeroSalesTaxRate": 1.0,
    "XeroTaxCode": "example",
    "XeroTaxRate": 1.0
  }
}
```

### Create a sales order

Create a sales order with one line. Unleashed's line, tax and order totals are worked out for you.

**Inputs**

- Customer code (`customer_code`, text, required): The customer the order is for.
- Product code (`product_code`, text, required): The product being sold.
- Quantity (`quantity`, number, required): How many are being sold. At least 0.
- Unit price (`unit_price`, number, required): The price of one unit, before tax. At least 0.
- Tax code (`tax_code`, text, required): The tax to apply, as set up in Unleashed.
- Tax rate (`tax_rate`, number): The tax rate as a fraction, such as 0.15 for 15%. Leave blank to use the chosen tax's rate. From 0 to 1.
- Warehouse code (`warehouse_code`, text, required): The warehouse the order ships from.
- Currency code (`currency_code`, text, required): The order's currency. It must match the customer's currency.
- Exchange rate (`exchange_rate`, number): The exchange rate to your base currency. Defaults to 1. At least 0.
- Order status (`order_status`, text): Parked to save the order, or Completed to complete it straight away. Defaults to Parked. One of: `Parked`, `Completed`.
- Order number (`order_number`, text): The order number. Leave blank to have Unleashed number it.
- Order date (`order_date`, date): The order's date. Defaults to today.
- Required date (`required_date`, date): When the customer needs the order.
- Customer ref (`customer_ref`, text): The customer's own reference for the order.
- Comments (`comments`, text): Comments on the order.

**Outputs**

- `data` (object): The response from Unleashed.

**Example output**

```json
{
  "data": {
    "BCSubTotal": 1.0,
    "BCTaxTotal": 1.0,
    "BCTotal": 1.0,
    "Comments": "example",
    "CompletedDate": "example",
    "CreatedBy": "example",
    "CreatedOn": "example",
    "Currency": {
      "CurrencyCode": "example",
      "DefaultBuyRate": 1.0,
      "DefaultSellRate": 1.0,
      "Description": "example",
      "Guid": "example",
      "LastModifiedOn": "example"
    },
    "CustomOrderStatus": "example",
    "Customer": {
      "CurrencyId": 1,
      "CustomerCode": "example",
      "CustomerName": "example",
      "Guid": "example",
      "LastModifiedOn": "example"
    },
    "CustomerRef": "example",
    "DeliveryCity": "example",
    "DeliveryContact": {
      "EmailAddress": "example",
      "FirstName": "example",
      "Guid": "example",
      "LastName": "example",
      "MobilePhone": "example",
      "OfficePhone": "example",
      "PhoneNumber": "example",
      "UseDefaultDeliveryAddress": false
    },
    "DeliveryCountry": "example",
    "DeliveryInstruction": "example",
    "DeliveryMethod": "example",
    "DeliveryName": "example",
    "DeliveryPostCode": "example",
    "DeliveryRegion": "example",
    "DeliveryStreetAddress": "example",
    "DeliveryStreetAddress2": "example",
    "DeliverySuburb": "example",
    "DiscountRate": 1.0,
    "ExchangeRate": 1.0,
    "Guid": "example",
    "LastModifiedBy": "example",
    "LastModifiedOn": "example",
    "OrderDate": "example",
    "OrderNumber": "example",
    "OrderStatus": "example",
    "PaymentDueDate": "example",
    "ReceivedDate": "example",
    "RequiredDate": "example",
    "SalesAccount": "example",
    "SalesOrderGroup": "example",
    "SalesOrderLines": [],
    "Salesperson": {
      "Email": "example",
      "FullName": "example",
      "Guid": "example",
      "LastModifiedOn": "example",
      "Obsolete": false
    },
    "SourceId": "example",
    "SubTotal": 1.0,
    "Tax": {
      "CanApplyToExpenses": false,
      "CanApplyToRevenue": false,
      "Description": "example",
      "Guid": "example",
      "LastModifiedOn": "example",
      "Obsolete": false,
      "TaxCode": "example",
      "TaxRate": 1.0
    },
    "TaxRate": 1.0,
    "TaxTotal": 1.0,
    "Total": 1.0,
    "TotalVolume": 1.0,
    "TotalWeight": 1.0,
    "Warehouse": {
      "AddressLine1": "example",
      "AddressLine2": "example",
      "City": "example",
      "ContactName": "example",
      "Country": "example",
      "DDINumber": "example",
      "FaxNumber": "example",
      "Guid": "example",
      "IsDefault": false,
      "LastModifiedOn": "example",
      "MobileNumber": "example",
      "Obsolete": false,
      "PhoneNumber": "example",
      "PostCode": "example",
      "Region": "example",
      "StreetNo": "example",
      "Suburb": "example",
      "WarehouseCode": "example",
      "WarehouseName": "example"
    },
    "XeroTaxCode": "example"
  }
}
```

### Delete a sales order

Delete a sales order.

**Inputs**

- Order guid (`order_guid`, text, required): The sales order to delete.

**Outputs**

- `data` (object): The response from Unleashed.

**Example output**

```json
{
  "data": {}
}
```

### Get a customer

Get one customer's details.

**Inputs**

- Customer guid (`customer_guid`, text, required): The customer to get.

**Outputs**

- `data` (object): The response from Unleashed.

**Example output**

```json
{
  "data": {
    "Addresses": [],
    "BankAccount": "example",
    "BankBranch": "example",
    "BankName": "example",
    "ContactFirstName": "example",
    "ContactLastName": "example",
    "Contacts": [],
    "CreatedBy": "example",
    "CreatedOn": "example",
    "CreditLimit": 1.0,
    "Currency": {
      "CurrencyCode": "example",
      "DefaultBuyRate": 1.0,
      "DefaultSellRate": 1.0,
      "Description": "example",
      "Guid": "example",
      "LastModifiedOn": "example"
    },
    "CustomerCode": "example",
    "CustomerName": "example",
    "CustomerType": "example",
    "CustomerTypeGuid": "example",
    "DDINumber": "example",
    "DefaultWarehouse": {
      "Guid": "example",
      "WarehouseCode": "example",
      "WarehouseName": "example"
    },
    "DeliveryInstruction": "example",
    "DeliveryMethod": "example",
    "DiscountRate": 1.0,
    "EORINumber": "example",
    "Email": "example",
    "EmailCC": "example",
    "FaxNumber": "example",
    "GSTVATNumber": "example",
    "Guid": "example",
    "HasCreditLimit": false,
    "LastModifiedBy": "example",
    "LastModifiedOn": "example",
    "MobileNumber": "example",
    "Notes": "example",
    "Obsolete": false,
    "PaymentTerm": "example",
    "PhoneNumber": "example",
    "PrintInvoice": false,
    "PrintPackingSlipInsteadOfInvoice": false,
    "Reminder": "example",
    "SalesOrderGroup": "example",
    "Salesperson": {
      "Email": "example",
      "FullName": "example",
      "Guid": "example",
      "LastModifiedOn": "example",
      "Obsolete": false
    },
    "SellPriceTier": "example",
    "SellPriceTierReference": {},
    "StopCredit": false,
    "TaxCode": "example",
    "TaxRate": 1.0,
    "Taxable": false,
    "TollFreeNumber": "example",
    "Website": "example",
    "XeroCostOfGoodsAccount": "example",
    "XeroSalesAccount": "example"
  }
}
```

### Get a product

Get one product's details and prices.

**Inputs**

- Product guid (`product_guid`, text, required): The product to get.

**Outputs**

- `data` (object): The response from Unleashed.

**Example output**

```json
{
  "data": {
    "AlternateUnitsOfMeasure": [],
    "AutomaticChargeCost": 1.0,
    "AverageLandPrice": 1.0,
    "Barcode": "example",
    "BinLocation": "example",
    "Comments": "example",
    "CommerceCode": "example",
    "CopyCommentsForPurchases": false,
    "CopyCommentsForSales": false,
    "CreatedBy": "example",
    "CreatedOn": "example",
    "CustomerSellPrice": 1.0,
    "CustomsDescription": "example",
    "DefaultPurchasePrice": 1.0,
    "DefaultPurchasesUnitOfMeasure": {
      "Guid": "example",
      "Name": "example",
      "Obsolete": false
    },
    "DefaultSellPrice": 1.0,
    "Depth": 1.0,
    "Guid": "example",
    "Height": 1.0,
    "ICCCountryCode": "example",
    "ICCCountryName": "example",
    "ImageUrl": "example",
    "Images": [],
    "InventoryDetails": [],
    "IsAssembledProduct": false,
    "IsBatchTracked": false,
    "IsComponent": false,
    "IsPurchasable": false,
    "IsSellable": false,
    "IsSerialized": false,
    "LastCost": 1.0,
    "LastModifiedBy": "example",
    "LastModifiedOn": "example",
    "MaxStockAlertLevel": 1.0,
    "MinStockAlertLevel": 1.0,
    "MinimumOrderQuantity": 1.0,
    "MinimumSaleQuantity": 1.0,
    "MinimumSellPrice": 1.0,
    "NeverDiminishing": false,
    "NominalCost": 1.0,
    "Notes": "example",
    "Obsolete": false,
    "PackSize": 1.0,
    "ProductBrand": {
      "BrandName": "example",
      "Guid": "example",
      "LastModifiedOn": "example"
    },
    "ProductCode": "example",
    "ProductDescription": "example",
    "ProductGroup": {
      "GroupName": "example",
      "Guid": "example",
      "LastModifiedOn": "example",
      "ParentGroupGuid": "example"
    },
    "ProductSubGroup": {
      "GroupName": "example",
      "Guid": "example",
      "LastModifiedOn": "example",
      "ParentGroupGuid": "example"
    },
    "PurchaseAccount": "example",
    "Reminder": "example",
    "SellPriceTier1": {},
    "SellPriceTier10": {},
    "SellPriceTier2": {},
    "SellPriceTier3": {},
    "SellPriceTier4": {},
    "SellPriceTier5": {},
    "SellPriceTier6": {},
    "SellPriceTier7": {},
    "SellPriceTier8": {},
    "SellPriceTier9": {},
    "SourceId": "example",
    "SourceVariantParentId": "example",
    "SupplementaryClassificationAbbreviation": "example",
    "Supplier": {
      "Guid": "example",
      "LeadTimeDays": 1,
      "MinimumOrderQuantity": 1.0,
      "SupplierCode": "example",
      "SupplierName": "example",
      "SupplierProductCode": "example",
      "SupplierProductDescription": "example",
      "SupplierProductPrice": 1.0,
      "UnitOfMeasure": {
        "Guid": "example",
        "Name": "example",
        "Obsolete": false
      }
    },
    "TaxablePurchase": false,
    "TaxableSales": false,
    "UnitOfMeasure": {
      "Guid": "example",
      "Name": "example",
      "Obsolete": false
    },
    "Weight": 1.0,
    "Width": 1.0,
    "XeroCostOfGoodsAccount": "example",
    "XeroSalesAccount": "example",
    "XeroSalesTaxCode": "example",
    "XeroSalesTaxRate": 1.0,
    "XeroTaxCode": "example",
    "XeroTaxRate": 1.0
  }
}
```

### Get a product's stock on hand

Get one product's stock in each warehouse.

**Inputs**

- Product guid (`product_guid`, text, required): The product to check.

**Outputs**

- `data` (object): The response from Unleashed.

**Example output**

```json
{
  "data": {
    "Items": [],
    "Pagination": {
      "NumberOfItems": 1,
      "NumberOfPages": 1,
      "PageNumber": 1,
      "PageSize": 1
    }
  }
}
```

### Get a purchase order

Get one purchase order with its lines.

**Inputs**

- Order guid (`order_guid`, text, required): The purchase order to get.

**Outputs**

- `data` (object): The response from Unleashed.

**Example output**

```json
{
  "data": {
    "BCSubTotal": 1.0,
    "BCTaxTotal": 1.0,
    "BCTotal": 1.0,
    "Comments": "example",
    "CompletedDate": "example",
    "CreatedBy": "example",
    "CreatedOn": "example",
    "Currency": {
      "CurrencyCode": "example",
      "DefaultBuyRate": 1.0,
      "DefaultSellRate": 1.0,
      "Description": "example",
      "Guid": "example",
      "LastModifiedOn": "example"
    },
    "CustomOrderStatus": "example",
    "DeliveryCity": "example",
    "DeliveryCountry": "example",
    "DeliveryDate": "example",
    "DeliveryName": "example",
    "DeliveryPostCode": "example",
    "DeliveryRegion": "example",
    "DeliveryStreetAddress": "example",
    "DeliveryStreetAddress2": "example",
    "DeliverySuburb": "example",
    "DiscountRate": 1.0,
    "ExchangeRate": 1.0,
    "Guid": "example",
    "LastModifiedBy": "example",
    "LastModifiedOn": "example",
    "OrderDate": "example",
    "OrderNumber": "example",
    "OrderStatus": "example",
    "Printed": false,
    "PurchaseOrderLines": [],
    "ReceivedDate": "example",
    "SalesOrders": [],
    "SubTotal": 1.0,
    "Supplier": {
      "Guid": "example",
      "SupplierCode": "example",
      "SupplierName": "example"
    },
    "SupplierEORI": "example",
    "SupplierInvoiceDate": "example",
    "SupplierRef": "example",
    "Tax": {
      "CanApplyToExpenses": false,
      "CanApplyToRevenue": false,
      "Description": "example",
      "Guid": "example",
      "LastModifiedOn": "example",
      "Obsolete": false,
      "TaxCode": "example",
      "TaxRate": 1.0
    },
    "TaxCode": "example",
    "TaxRate": 1.0,
    "TaxTotal": 1.0,
    "Total": 1.0,
    "TotalVolume": 1.0,
    "TotalWeight": 1.0,
    "Warehouse": {
      "AddressLine1": "example",
      "AddressLine2": "example",
      "City": "example",
      "ContactName": "example",
      "Country": "example",
      "DDINumber": "example",
      "FaxNumber": "example",
      "Guid": "example",
      "IsDefault": false,
      "LastModifiedOn": "example",
      "MobileNumber": "example",
      "Obsolete": false,
      "PhoneNumber": "example",
      "PostCode": "example",
      "Region": "example",
      "StreetNo": "example",
      "Suburb": "example",
      "WarehouseCode": "example",
      "WarehouseName": "example"
    }
  }
}
```

### Get a sales order

Get one sales order with its lines.

**Inputs**

- Order guid (`order_guid`, text, required): The sales order to get.

**Outputs**

- `data` (object): The response from Unleashed.

**Example output**

```json
{
  "data": {
    "BCSubTotal": 1.0,
    "BCTaxTotal": 1.0,
    "BCTotal": 1.0,
    "Comments": "example",
    "CompletedDate": "example",
    "CreatedBy": "example",
    "CreatedOn": "example",
    "Currency": {
      "CurrencyCode": "example",
      "DefaultBuyRate": 1.0,
      "DefaultSellRate": 1.0,
      "Description": "example",
      "Guid": "example",
      "LastModifiedOn": "example"
    },
    "CustomOrderStatus": "example",
    "Customer": {
      "CurrencyId": 1,
      "CustomerCode": "example",
      "CustomerName": "example",
      "Guid": "example",
      "LastModifiedOn": "example"
    },
    "CustomerRef": "example",
    "DeliveryCity": "example",
    "DeliveryContact": {
      "EmailAddress": "example",
      "FirstName": "example",
      "Guid": "example",
      "LastName": "example",
      "MobilePhone": "example",
      "OfficePhone": "example",
      "PhoneNumber": "example",
      "UseDefaultDeliveryAddress": false
    },
    "DeliveryCountry": "example",
    "DeliveryInstruction": "example",
    "DeliveryMethod": "example",
    "DeliveryName": "example",
    "DeliveryPostCode": "example",
    "DeliveryRegion": "example",
    "DeliveryStreetAddress": "example",
    "DeliveryStreetAddress2": "example",
    "DeliverySuburb": "example",
    "DiscountRate": 1.0,
    "ExchangeRate": 1.0,
    "Guid": "example",
    "LastModifiedBy": "example",
    "LastModifiedOn": "example",
    "OrderDate": "example",
    "OrderNumber": "example",
    "OrderStatus": "example",
    "PaymentDueDate": "example",
    "ReceivedDate": "example",
    "RequiredDate": "example",
    "SalesAccount": "example",
    "SalesOrderGroup": "example",
    "SalesOrderLines": [],
    "Salesperson": {
      "Email": "example",
      "FullName": "example",
      "Guid": "example",
      "LastModifiedOn": "example",
      "Obsolete": false
    },
    "SourceId": "example",
    "SubTotal": 1.0,
    "Tax": {
      "CanApplyToExpenses": false,
      "CanApplyToRevenue": false,
      "Description": "example",
      "Guid": "example",
      "LastModifiedOn": "example",
      "Obsolete": false,
      "TaxCode": "example",
      "TaxRate": 1.0
    },
    "TaxRate": 1.0,
    "TaxTotal": 1.0,
    "Total": 1.0,
    "TotalVolume": 1.0,
    "TotalWeight": 1.0,
    "Warehouse": {
      "AddressLine1": "example",
      "AddressLine2": "example",
      "City": "example",
      "ContactName": "example",
      "Country": "example",
      "DDINumber": "example",
      "FaxNumber": "example",
      "Guid": "example",
      "IsDefault": false,
      "LastModifiedOn": "example",
      "MobileNumber": "example",
      "Obsolete": false,
      "PhoneNumber": "example",
      "PostCode": "example",
      "Region": "example",
      "StreetNo": "example",
      "Suburb": "example",
      "WarehouseCode": "example",
      "WarehouseName": "example"
    },
    "XeroTaxCode": "example"
  }
}
```

### Get a supplier

Get one supplier's details.

**Inputs**

- Supplier guid (`supplier_guid`, text, required): The supplier to get.

**Outputs**

- `data` (object): The response from Unleashed.

**Example output**

```json
{
  "data": {
    "Addresses": [],
    "BankAccount": "example",
    "BankBranch": "example",
    "BankName": "example",
    "CreatedBy": "example",
    "CreatedOn": "example",
    "Currency": {
      "CurrencyCode": "example",
      "DefaultBuyRate": 1.0,
      "DefaultSellRate": 1.0,
      "Description": "example",
      "Guid": "example",
      "LastModifiedOn": "example"
    },
    "DDINumber": "example",
    "DefaultWarehouse": {
      "Guid": "example",
      "WarehouseCode": "example",
      "WarehouseName": "example"
    },
    "Email": "example",
    "FaxNumber": "example",
    "GSTVATNumber": "example",
    "Guid": "example",
    "LastModifiedBy": "example",
    "LastModifiedOn": "example",
    "LeadTimeDays": 1.0,
    "MinimumOrderValue": 1.0,
    "MobileNumber": "example",
    "Notes": "example",
    "Obsolete": false,
    "PaymentTerm": "example",
    "PhoneNumber": "example",
    "PurchaseOrderCostDistributionMethod": "example",
    "PurchaseOrderPrintTemplate": "example",
    "Reminder": "example",
    "SupplierCode": "example",
    "SupplierName": "example",
    "SupplierReturnPrintTemplate": "example",
    "TaxRate": 1.0,
    "Taxable": false,
    "TollFreeNumber": "example",
    "Website": "example",
    "XeroContactId": "example"
  }
}
```

### List currencies

List the currencies set up in Unleashed.

**Inputs**

- In use (`in_use`, true/false): Only list currencies that have a buy rate set.

**Outputs**

- `data` (object): The response from Unleashed.

**Example output**

```json
{
  "data": {
    "Items": [],
    "Pagination": {
      "NumberOfItems": 1,
      "NumberOfPages": 1,
      "PageNumber": 1,
      "PageSize": 1
    }
  }
}
```

### List customers

List customers, a page at a time.

**Inputs**

- Search (`search`, text): Only return customers whose code or name contains this text. Case-sensitive.
- Customer code (`customer_code`, text): Only return customers whose code starts with this text.
- Customer name (`customer_name`, text): Only return customers whose name starts with this text.
- Currency code (`currency_code`, text): Only return customers with this currency code.
- Customer type (`customer_type`, text): Only return customers of this type.
- Modified since (`modified_since`, date): Only return records created or changed since this date (UTC).
- Include obsolete (`include_obsolete`, true/false): Also return records marked obsolete.
- Order by (`order_by`, text): Sort by when records were last changed or created. One of: `LastModifiedOn`, `CreatedOn`.
- Sort (`sort`, text): Sort ascending or descending. One of: `asc`, `desc`.
- Page (`page`, number): The page of results to return, starting at 1. Defaults to 1. At least 1.
- Page size (`page_size`, number): How many records to return on each page, up to 1,000. Defaults to 200. From 1 to 1000.

**Outputs**

- `data` (object): The response from Unleashed.

**Example output**

```json
{
  "data": {
    "Items": [],
    "Pagination": {
      "NumberOfItems": 1,
      "NumberOfPages": 1,
      "PageNumber": 1,
      "PageSize": 1
    }
  }
}
```

### List products

List products, a page at a time.

**Inputs**

- Search (`search`, text): Only return products whose code or description contains this text.
- Product code (`product_code`, text): Only return products whose code starts with this text.
- Product group (`product_group`, text): Only return products in this product group.
- Modified since (`modified_since`, date): Only return records created or changed since this date (UTC).
- Include obsolete (`include_obsolete`, true/false): Also return records marked obsolete.
- Order by (`order_by`, text): Sort by when records were last changed or created. One of: `LastModifiedOn`, `CreatedOn`.
- Sort (`sort`, text): Sort ascending or descending. One of: `asc`, `desc`.
- Page (`page`, number): The page of results to return, starting at 1. Defaults to 1. At least 1.
- Page size (`page_size`, number): How many records to return on each page, up to 1,000. Defaults to 200. From 1 to 1000.

**Outputs**

- `data` (object): The response from Unleashed.

**Example output**

```json
{
  "data": {
    "Items": [],
    "Pagination": {
      "NumberOfItems": 1,
      "NumberOfPages": 1,
      "PageNumber": 1,
      "PageSize": 1
    }
  }
}
```

### List purchase orders

List purchase orders, a page at a time.

**Inputs**

- Order status (`order_status`, text): Only return orders in this status. Deleted orders are left out unless you choose Deleted. One of: `Parked`, `Placed`, `Unapproved`, `Costed`, `Receipted`, `Complete`, `Deleted`.
- Supplier code (`supplier_code`, text): Only return orders from suppliers whose code starts with this text.
- Order number (`order_number`, text): Only return the order with this number.
- Warehouse code (`warehouse_code`, text): Only return orders for this warehouse.
- Start date (`start_date`, date): Only return orders dated after this day.
- End date (`end_date`, date): Only return orders dated before this day.
- Modified since (`modified_since`, date): Only return records created or changed since this date (UTC).
- Page (`page`, number): The page of results to return, starting at 1. Defaults to 1. At least 1.
- Page size (`page_size`, number): How many records to return on each page, up to 1,000. Defaults to 200. From 1 to 1000.

**Outputs**

- `data` (object): The response from Unleashed.

**Example output**

```json
{
  "data": {
    "Items": [],
    "Pagination": {
      "NumberOfItems": 1,
      "NumberOfPages": 1,
      "PageNumber": 1,
      "PageSize": 1
    }
  }
}
```

### List sales orders

List sales orders, most recently changed first.

**Inputs**

- Order status (`order_status`, list): Only return orders in these statuses. Deleted orders are left out unless you choose Deleted. One or more of: `Parked`, `Placed`, `Backordered`, `Completed`, `Deleted`.
- Customer code (`customer_code`, text): Only return orders for customers whose code starts with this text.
- Order number (`order_number`, text): Only return the order with this number.
- Warehouse code (`warehouse_code`, text): Only return orders from this warehouse.
- Start date (`start_date`, date): Only return orders dated on or after this day.
- End date (`end_date`, date): Only return orders dated before this day.
- Modified since (`modified_since`, date): Only return records created or changed since this date (UTC).
- Page (`page`, number): The page of results to return, starting at 1. Defaults to 1. At least 1.
- Page size (`page_size`, number): How many records to return on each page, up to 1,000. Defaults to 200. From 1 to 1000.

**Outputs**

- `data` (object): The response from Unleashed.

**Example output**

```json
{
  "data": {
    "Items": [],
    "Pagination": {
      "NumberOfItems": 1,
      "NumberOfPages": 1,
      "PageNumber": 1,
      "PageSize": 1
    }
  }
}
```

### List stock on hand

List stock on hand, available and allocated quantities and costs by product.

**Inputs**

- Warehouse code (`warehouse_code`, text): Only return stock in this warehouse.
- As at date (`as_at_date`, date): Show stock as it was on this day.
- Modified since (`modified_since`, date): Only return records created or changed since this date (UTC).
- Page (`page`, number): The page of results to return, starting at 1. Defaults to 1. At least 1.
- Page size (`page_size`, number): How many records to return on each page, up to 1,000. Defaults to 200. From 1 to 1000.

**Outputs**

- `data` (object): The response from Unleashed.

**Example output**

```json
{
  "data": {
    "Items": [],
    "Pagination": {
      "NumberOfItems": 1,
      "NumberOfPages": 1,
      "PageNumber": 1,
      "PageSize": 1
    }
  }
}
```

### List suppliers

List suppliers, a page at a time.

**Inputs**

- Supplier code (`supplier_code`, text): Only return suppliers whose code starts with this text.
- Contact email (`contact_email`, text): Only return suppliers with a contact email starting with this text.
- Modified since (`modified_since`, date): Only return records created or changed since this date (UTC).
- Page (`page`, number): The page of results to return, starting at 1. Defaults to 1. At least 1.
- Page size (`page_size`, number): How many records to return on each page, up to 1,000. Defaults to 200. From 1 to 1000.

**Outputs**

- `data` (object): The response from Unleashed.

**Example output**

```json
{
  "data": {
    "Items": [],
    "Pagination": {
      "NumberOfItems": 1,
      "NumberOfPages": 1,
      "PageNumber": 1,
      "PageSize": 1
    }
  }
}
```

### List taxes

List the taxes set up in Unleashed, with their codes and rates.

**Inputs**

- Can apply to revenue (`can_apply_to_revenue`, true/false): Only list taxes that can be charged on sales.

**Outputs**

- `data` (object): The response from Unleashed.

**Example output**

```json
{
  "data": {
    "Items": [],
    "Pagination": {
      "NumberOfItems": 1,
      "NumberOfPages": 1,
      "PageNumber": 1,
      "PageSize": 1
    }
  }
}
```

### List warehouses

List your warehouses.

**Inputs**

- Warehouse code (`warehouse_code`, text): Only return warehouses whose code starts with this text.
- Include obsolete (`include_obsolete`, true/false): Also return records marked obsolete.

**Outputs**

- `data` (object): The response from Unleashed.

**Example output**

```json
{
  "data": {
    "Items": [],
    "Pagination": {
      "NumberOfItems": 1,
      "NumberOfPages": 1,
      "PageNumber": 1,
      "PageSize": 1
    }
  }
}
```

### Make a product obsolete

Mark a product obsolete so it no longer appears on new orders.

**Inputs**

- Product guid (`product_guid`, text, required): The product to make obsolete.

**Outputs**

- `data` (object): The response from Unleashed.

**Example output**

```json
{
  "data": {}
}
```

### Update a customer

Change a customer's details. Fields left blank keep their current values.

**Inputs**

- Customer guid (`customer_guid`, text, required): The customer to change.
- Customer name (`customer_name`, text): The customer's name.
- Contact first name (`contact_first_name`, text): The primary contact's first name.
- Contact last name (`contact_last_name`, text): The primary contact's last name.
- Email (`email`, text): The primary contact's email address.
- Phone number (`phone_number`, text): The primary contact's phone number. Needs the contact's name or email.
- Mobile number (`mobile_number`, text): The primary contact's mobile number. Needs the contact's name or email.
- Website (`website`, text): The customer's website. Needs the contact's name or email.
- Customer type (`customer_type`, text): The customer type, as set up in Unleashed.
- Payment term (`payment_term`, text): The payment term, as set up in Unleashed.
- Notes (`notes`, text): Notes about the customer.
- Obsolete (`obsolete`, true/false): Mark the customer obsolete (yes) or active again (no).

**Outputs**

- `data` (object): The response from Unleashed.

**Example output**

```json
{
  "data": {
    "Addresses": [],
    "BankAccount": "example",
    "BankBranch": "example",
    "BankName": "example",
    "ContactFirstName": "example",
    "ContactLastName": "example",
    "Contacts": [],
    "CreatedBy": "example",
    "CreatedOn": "example",
    "CreditLimit": 1.0,
    "Currency": {
      "CurrencyCode": "example",
      "DefaultBuyRate": 1.0,
      "DefaultSellRate": 1.0,
      "Description": "example",
      "Guid": "example",
      "LastModifiedOn": "example"
    },
    "CustomerCode": "example",
    "CustomerName": "example",
    "CustomerType": "example",
    "CustomerTypeGuid": "example",
    "DDINumber": "example",
    "DefaultWarehouse": {
      "Guid": "example",
      "WarehouseCode": "example",
      "WarehouseName": "example"
    },
    "DeliveryInstruction": "example",
    "DeliveryMethod": "example",
    "DiscountRate": 1.0,
    "EORINumber": "example",
    "Email": "example",
    "EmailCC": "example",
    "FaxNumber": "example",
    "GSTVATNumber": "example",
    "Guid": "example",
    "HasCreditLimit": false,
    "LastModifiedBy": "example",
    "LastModifiedOn": "example",
    "MobileNumber": "example",
    "Notes": "example",
    "Obsolete": false,
    "PaymentTerm": "example",
    "PhoneNumber": "example",
    "PrintInvoice": false,
    "PrintPackingSlipInsteadOfInvoice": false,
    "Reminder": "example",
    "SalesOrderGroup": "example",
    "Salesperson": {
      "Email": "example",
      "FullName": "example",
      "Guid": "example",
      "LastModifiedOn": "example",
      "Obsolete": false
    },
    "SellPriceTier": "example",
    "SellPriceTierReference": {},
    "StopCredit": false,
    "TaxCode": "example",
    "TaxRate": 1.0,
    "Taxable": false,
    "TollFreeNumber": "example",
    "Website": "example",
    "XeroCostOfGoodsAccount": "example",
    "XeroSalesAccount": "example"
  }
}
```

### Update a product

Change a product's details. Fields left blank keep their current values.

**Inputs**

- Product guid (`product_guid`, text, required): The product to change.
- Product description (`product_description`, text): The product's name or description.
- Default sell price (`default_sell_price`, number): The usual selling price of one unit. At least 0.
- Default purchase price (`default_purchase_price`, number): The usual buying price of one unit. At least 0.
- Barcode (`barcode`, text): The product's barcode.
- Min stock alert level (`min_stock_alert_level`, number): Warn when stock falls below this level. At least 0.
- Max stock alert level (`max_stock_alert_level`, number): Warn when stock rises above this level. At least 0.
- Is sellable (`is_sellable`, true/false): Whether the product can go on sales orders. Defaults to yes.
- Is purchasable (`is_purchasable`, true/false): Whether the product can go on purchase orders. Defaults to yes.
- Notes (`notes`, text): Notes about the product.

**Outputs**

- `data` (object): The response from Unleashed.

**Example output**

```json
{
  "data": {
    "AlternateUnitsOfMeasure": [],
    "AutomaticChargeCost": 1.0,
    "AverageLandPrice": 1.0,
    "Barcode": "example",
    "BinLocation": "example",
    "Comments": "example",
    "CommerceCode": "example",
    "CopyCommentsForPurchases": false,
    "CopyCommentsForSales": false,
    "CreatedBy": "example",
    "CreatedOn": "example",
    "CustomerSellPrice": 1.0,
    "CustomsDescription": "example",
    "DefaultPurchasePrice": 1.0,
    "DefaultPurchasesUnitOfMeasure": {
      "Guid": "example",
      "Name": "example",
      "Obsolete": false
    },
    "DefaultSellPrice": 1.0,
    "Depth": 1.0,
    "Guid": "example",
    "Height": 1.0,
    "ICCCountryCode": "example",
    "ICCCountryName": "example",
    "ImageUrl": "example",
    "Images": [],
    "InventoryDetails": [],
    "IsAssembledProduct": false,
    "IsBatchTracked": false,
    "IsComponent": false,
    "IsPurchasable": false,
    "IsSellable": false,
    "IsSerialized": false,
    "LastCost": 1.0,
    "LastModifiedBy": "example",
    "LastModifiedOn": "example",
    "MaxStockAlertLevel": 1.0,
    "MinStockAlertLevel": 1.0,
    "MinimumOrderQuantity": 1.0,
    "MinimumSaleQuantity": 1.0,
    "MinimumSellPrice": 1.0,
    "NeverDiminishing": false,
    "NominalCost": 1.0,
    "Notes": "example",
    "Obsolete": false,
    "PackSize": 1.0,
    "ProductBrand": {
      "BrandName": "example",
      "Guid": "example",
      "LastModifiedOn": "example"
    },
    "ProductCode": "example",
    "ProductDescription": "example",
    "ProductGroup": {
      "GroupName": "example",
      "Guid": "example",
      "LastModifiedOn": "example",
      "ParentGroupGuid": "example"
    },
    "ProductSubGroup": {
      "GroupName": "example",
      "Guid": "example",
      "LastModifiedOn": "example",
      "ParentGroupGuid": "example"
    },
    "PurchaseAccount": "example",
    "Reminder": "example",
    "SellPriceTier1": {},
    "SellPriceTier10": {},
    "SellPriceTier2": {},
    "SellPriceTier3": {},
    "SellPriceTier4": {},
    "SellPriceTier5": {},
    "SellPriceTier6": {},
    "SellPriceTier7": {},
    "SellPriceTier8": {},
    "SellPriceTier9": {},
    "SourceId": "example",
    "SourceVariantParentId": "example",
    "SupplementaryClassificationAbbreviation": "example",
    "Supplier": {
      "Guid": "example",
      "LeadTimeDays": 1,
      "MinimumOrderQuantity": 1.0,
      "SupplierCode": "example",
      "SupplierName": "example",
      "SupplierProductCode": "example",
      "SupplierProductDescription": "example",
      "SupplierProductPrice": 1.0,
      "UnitOfMeasure": {
        "Guid": "example",
        "Name": "example",
        "Obsolete": false
      }
    },
    "TaxablePurchase": false,
    "TaxableSales": false,
    "UnitOfMeasure": {
      "Guid": "example",
      "Name": "example",
      "Obsolete": false
    },
    "Weight": 1.0,
    "Width": 1.0,
    "XeroCostOfGoodsAccount": "example",
    "XeroSalesAccount": "example",
    "XeroSalesTaxCode": "example",
    "XeroSalesTaxRate": 1.0,
    "XeroTaxCode": "example",
    "XeroTaxRate": 1.0
  }
}
```
