Unleashed
App · 25 actions
Manage Unleashed customers, products and sales orders, and read purchase orders, suppliers and stock on hand.
Actions
| Action | What it does |
|---|---|
| Add a sales order line | Add a product line to an existing sales order. |
| Complete a purchase order | Complete a purchase order, receiving its stock into the warehouse. |
| Complete a sales order | Complete a sales order, taking its stock out of the warehouse. |
| Create a customer | Create a customer with a primary contact. |
| Create a product | Create a product. |
| Create a sales order | Create a sales order with one line. |
| Delete a sales order | Delete a sales order. |
| Get a customer | Get one customer's details. |
| Get a product | Get one product's details and prices. |
| Get a product's stock on hand | Get one product's stock in each warehouse. |
| Get a purchase order | Get one purchase order with its lines. |
| Get a sales order | Get one sales order with its lines. |
| Get a supplier | Get one supplier's details. |
| List currencies | List the currencies set up in Unleashed. |
| List customers | List customers, a page at a time. |
| List products | List products, a page at a time. |
| List purchase orders | List purchase orders, a page at a time. |
| List sales orders | List sales orders, most recently changed first. |
| List stock on hand | List stock on hand, available and allocated quantities and costs by product. |
| List suppliers | List suppliers, a page at a time. |
| List taxes | List the taxes set up in Unleashed, with their codes and rates. |
| List warehouses | List your warehouses. |
| Make a product obsolete | Mark a product obsolete so it no longer appears on new orders. |
| Update a customer | Change a customer's details. |
| Update a product | Change a product's details. |
Add a sales order line
Add a product line to an existing sales order.
Inputs
- Order guid
order_guidtextRequired - The sales order to add the line to.
- Product code
product_codetextRequired - The product being sold.
- Quantity
quantitynumberRequired - How many are being sold.At least 0.
- Unit price
unit_pricenumber - The price of one unit, before tax.At least 0.
- Discount rate
discount_ratenumber - A discount as a fraction, such as 0.1 for 10%.From 0 to 1.
- Comments
commentstext - Comments on the line.
Outputs
dataobject- The response from Unleashed.
Example output
{
"data": {}
}Complete a purchase order
Complete a purchase order, receiving its stock into the warehouse.
Inputs
- Order guid
order_guidtextRequired - The purchase order to complete.
Outputs
dataobject- The response from Unleashed.
Example output
{
"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_guidtextRequired - The sales order to complete.
Outputs
dataobject- The response from Unleashed.
Example output
{
"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_codetextRequired - A unique code for the customer. It can't be changed later.
- Customer name
customer_nametextRequired - The customer's name.
- Contact first name
contact_first_nametext - The primary contact's first name.
- Contact last name
contact_last_nametext - The primary contact's last name.
- Email
emailtext - The primary contact's email address.
- Phone number
phone_numbertext - The primary contact's phone number. Needs the contact's name or email.
- Mobile number
mobile_numbertext - The primary contact's mobile number. Needs the contact's name or email.
- Website
websitetext - The customer's website. Needs the contact's name or email.
- Currency code
currency_codetext - The customer's currency, such as NZD. Leave blank for your company's base currency.
- Customer type
customer_typetext - The customer type, as set up in Unleashed.
- Payment term
payment_termtext - The payment term, as set up in Unleashed.
- Notes
notestext - Notes about the customer.
Outputs
dataobject- The response from Unleashed.
Example output
{
"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_codetextRequired - A unique code for the product.
- Product description
product_descriptiontextRequired - The product's name or description.
- Default sell price
default_sell_pricenumber - The usual selling price of one unit.At least 0.
- Default purchase price
default_purchase_pricenumber - The usual buying price of one unit.At least 0.
- Barcode
barcodetext - The product's barcode.
- Min stock alert level
min_stock_alert_levelnumber - Warn when stock falls below this level.At least 0.
- Max stock alert level
max_stock_alert_levelnumber - Warn when stock rises above this level.At least 0.
- Is sellable
is_sellabletrue/false - Whether the product can go on sales orders. Defaults to yes.
- Is purchasable
is_purchasabletrue/false - Whether the product can go on purchase orders. Defaults to yes.
- Notes
notestext - Notes about the product.
Outputs
dataobject- The response from Unleashed.
Example output
{
"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_codetextRequired - The customer the order is for.
- Product code
product_codetextRequired - The product being sold.
- Quantity
quantitynumberRequired - How many are being sold.At least 0.
- Unit price
unit_pricenumberRequired - The price of one unit, before tax.At least 0.
- Tax code
tax_codetextRequired - The tax to apply, as set up in Unleashed.
- Tax rate
tax_ratenumber - 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_codetextRequired - The warehouse the order ships from.
- Currency code
currency_codetextRequired - The order's currency. It must match the customer's currency.
- Exchange rate
exchange_ratenumber - The exchange rate to your base currency. Defaults to 1.At least 0.
- Order status
order_statustext - Parked to save the order, or Completed to complete it straight away. Defaults to Parked.One of:
Parked,Completed. - Order number
order_numbertext - The order number. Leave blank to have Unleashed number it.
- Order date
order_datedate - The order's date. Defaults to today.
- Required date
required_datedate - When the customer needs the order.
- Customer ref
customer_reftext - The customer's own reference for the order.
- Comments
commentstext - Comments on the order.
Outputs
dataobject- The response from Unleashed.
Example output
{
"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_guidtextRequired - The sales order to delete.
Outputs
dataobject- The response from Unleashed.
Example output
{
"data": {}
}Get a customer
Get one customer's details.
Inputs
- Customer guid
customer_guidtextRequired - The customer to get.
Outputs
dataobject- The response from Unleashed.
Example output
{
"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_guidtextRequired - The product to get.
Outputs
dataobject- The response from Unleashed.
Example output
{
"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_guidtextRequired - The product to check.
Outputs
dataobject- The response from Unleashed.
Example output
{
"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_guidtextRequired - The purchase order to get.
Outputs
dataobject- The response from Unleashed.
Example output
{
"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_guidtextRequired - The sales order to get.
Outputs
dataobject- The response from Unleashed.
Example output
{
"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_guidtextRequired - The supplier to get.
Outputs
dataobject- The response from Unleashed.
Example output
{
"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_usetrue/false - Only list currencies that have a buy rate set.
Outputs
dataobject- The response from Unleashed.
Example output
{
"data": {
"Items": [],
"Pagination": {
"NumberOfItems": 1,
"NumberOfPages": 1,
"PageNumber": 1,
"PageSize": 1
}
}
}List customers
List customers, a page at a time.
Inputs
- Search
searchtext - Only return customers whose code or name contains this text. Case-sensitive.
- Customer code
customer_codetext - Only return customers whose code starts with this text.
- Customer name
customer_nametext - Only return customers whose name starts with this text.
- Currency code
currency_codetext - Only return customers with this currency code.
- Customer type
customer_typetext - Only return customers of this type.
- Modified since
modified_sincedate - Only return records created or changed since this date (UTC).
- Include obsolete
include_obsoletetrue/false - Also return records marked obsolete.
- Order by
order_bytext - Sort by when records were last changed or created.One of:
LastModifiedOn,CreatedOn. - Sort
sorttext - Sort ascending or descending.One of:
asc,desc. - Page
pagenumber - The page of results to return, starting at 1. Defaults to 1.At least 1.
- Page size
page_sizenumber - How many records to return on each page, up to 1,000. Defaults to 200.From 1 to 1000.
Outputs
dataobject- The response from Unleashed.
Example output
{
"data": {
"Items": [],
"Pagination": {
"NumberOfItems": 1,
"NumberOfPages": 1,
"PageNumber": 1,
"PageSize": 1
}
}
}List products
List products, a page at a time.
Inputs
- Search
searchtext - Only return products whose code or description contains this text.
- Product code
product_codetext - Only return products whose code starts with this text.
- Product group
product_grouptext - Only return products in this product group.
- Modified since
modified_sincedate - Only return records created or changed since this date (UTC).
- Include obsolete
include_obsoletetrue/false - Also return records marked obsolete.
- Order by
order_bytext - Sort by when records were last changed or created.One of:
LastModifiedOn,CreatedOn. - Sort
sorttext - Sort ascending or descending.One of:
asc,desc. - Page
pagenumber - The page of results to return, starting at 1. Defaults to 1.At least 1.
- Page size
page_sizenumber - How many records to return on each page, up to 1,000. Defaults to 200.From 1 to 1000.
Outputs
dataobject- The response from Unleashed.
Example output
{
"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_statustext - 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_codetext - Only return orders from suppliers whose code starts with this text.
- Order number
order_numbertext - Only return the order with this number.
- Warehouse code
warehouse_codetext - Only return orders for this warehouse.
- Start date
start_datedate - Only return orders dated after this day.
- End date
end_datedate - Only return orders dated before this day.
- Modified since
modified_sincedate - Only return records created or changed since this date (UTC).
- Page
pagenumber - The page of results to return, starting at 1. Defaults to 1.At least 1.
- Page size
page_sizenumber - How many records to return on each page, up to 1,000. Defaults to 200.From 1 to 1000.
Outputs
dataobject- The response from Unleashed.
Example output
{
"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_statuslist - 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_codetext - Only return orders for customers whose code starts with this text.
- Order number
order_numbertext - Only return the order with this number.
- Warehouse code
warehouse_codetext - Only return orders from this warehouse.
- Start date
start_datedate - Only return orders dated on or after this day.
- End date
end_datedate - Only return orders dated before this day.
- Modified since
modified_sincedate - Only return records created or changed since this date (UTC).
- Page
pagenumber - The page of results to return, starting at 1. Defaults to 1.At least 1.
- Page size
page_sizenumber - How many records to return on each page, up to 1,000. Defaults to 200.From 1 to 1000.
Outputs
dataobject- The response from Unleashed.
Example output
{
"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_codetext - Only return stock in this warehouse.
- As at date
as_at_datedate - Show stock as it was on this day.
- Modified since
modified_sincedate - Only return records created or changed since this date (UTC).
- Page
pagenumber - The page of results to return, starting at 1. Defaults to 1.At least 1.
- Page size
page_sizenumber - How many records to return on each page, up to 1,000. Defaults to 200.From 1 to 1000.
Outputs
dataobject- The response from Unleashed.
Example output
{
"data": {
"Items": [],
"Pagination": {
"NumberOfItems": 1,
"NumberOfPages": 1,
"PageNumber": 1,
"PageSize": 1
}
}
}List suppliers
List suppliers, a page at a time.
Inputs
- Supplier code
supplier_codetext - Only return suppliers whose code starts with this text.
- Contact email
contact_emailtext - Only return suppliers with a contact email starting with this text.
- Modified since
modified_sincedate - Only return records created or changed since this date (UTC).
- Page
pagenumber - The page of results to return, starting at 1. Defaults to 1.At least 1.
- Page size
page_sizenumber - How many records to return on each page, up to 1,000. Defaults to 200.From 1 to 1000.
Outputs
dataobject- The response from Unleashed.
Example output
{
"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_revenuetrue/false - Only list taxes that can be charged on sales.
Outputs
dataobject- The response from Unleashed.
Example output
{
"data": {
"Items": [],
"Pagination": {
"NumberOfItems": 1,
"NumberOfPages": 1,
"PageNumber": 1,
"PageSize": 1
}
}
}List warehouses
List your warehouses.
Inputs
- Warehouse code
warehouse_codetext - Only return warehouses whose code starts with this text.
- Include obsolete
include_obsoletetrue/false - Also return records marked obsolete.
Outputs
dataobject- The response from Unleashed.
Example output
{
"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_guidtextRequired - The product to make obsolete.
Outputs
dataobject- The response from Unleashed.
Example output
{
"data": {}
}Update a customer
Change a customer's details. Fields left blank keep their current values.
Inputs
- Customer guid
customer_guidtextRequired - The customer to change.
- Customer name
customer_nametext - The customer's name.
- Contact first name
contact_first_nametext - The primary contact's first name.
- Contact last name
contact_last_nametext - The primary contact's last name.
- Email
emailtext - The primary contact's email address.
- Phone number
phone_numbertext - The primary contact's phone number. Needs the contact's name or email.
- Mobile number
mobile_numbertext - The primary contact's mobile number. Needs the contact's name or email.
- Website
websitetext - The customer's website. Needs the contact's name or email.
- Customer type
customer_typetext - The customer type, as set up in Unleashed.
- Payment term
payment_termtext - The payment term, as set up in Unleashed.
- Notes
notestext - Notes about the customer.
- Obsolete
obsoletetrue/false - Mark the customer obsolete (yes) or active again (no).
Outputs
dataobject- The response from Unleashed.
Example output
{
"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_guidtextRequired - The product to change.
- Product description
product_descriptiontext - The product's name or description.
- Default sell price
default_sell_pricenumber - The usual selling price of one unit.At least 0.
- Default purchase price
default_purchase_pricenumber - The usual buying price of one unit.At least 0.
- Barcode
barcodetext - The product's barcode.
- Min stock alert level
min_stock_alert_levelnumber - Warn when stock falls below this level.At least 0.
- Max stock alert level
max_stock_alert_levelnumber - Warn when stock rises above this level.At least 0.
- Is sellable
is_sellabletrue/false - Whether the product can go on sales orders. Defaults to yes.
- Is purchasable
is_purchasabletrue/false - Whether the product can go on purchase orders. Defaults to yes.
- Notes
notestext - Notes about the product.
Outputs
dataobject- The response from Unleashed.
Example output
{
"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
}
}