MYOB icon

MYOB

Interact with MYOB Business API - Sales Orders, Customers, Items, Invoices, and more

Actions12

Overview

This node interacts with the MYOB Business API to retrieve inventory items for a specific location. The "Get Inventory Items" operation fetches detailed information about inventory items, including SKU, description, and quantity on hand at the specified location. This is useful for businesses that need to monitor stock levels across different warehouses or stores.

Practical examples:

  • A retail business can use this node to get real-time stock quantities for a particular store location.
  • An e-commerce platform can synchronize available inventory from MYOB to update product availability on their website.
  • Warehouse managers can generate reports of current stock levels per location.

Properties

Name Meaning
Location UID The unique identifier of the location (warehouse/store) for which to retrieve inventory data

Output

The output JSON contains the following structure:

  • success: Boolean indicating if the retrieval was successful.
  • message: Informational message summarizing the result.
  • locationUid: The UID of the location queried.
  • totalItems: Total number of inventory items retrieved.
  • itemsWithStock: Number of items that have stock quantity greater than zero.
  • items: Array of inventory item objects, each containing:
    • uid: Unique ID of the inventory item.
    • sku: SKU or item number.
    • description: Description or name of the item.
    • name: Item name.
    • isInventoried: Boolean indicating if the item is inventoried.
    • isActive: Boolean indicating if the item is active.
    • baseSellingPrice: Base selling price of the item.
    • quantityOnHand: Quantity physically on hand at the location.
    • availableQuantity: Quantity available for sale (may exclude committed stock).
    • committedQuantity: Quantity already committed/reserved.
    • locationName: Name of the location.
    • locationUid: The UID of the location.
  • rawResponse: The full raw response from the MYOB API.

The node does not output binary data.

Dependencies

  • Requires an API key credential for authenticating with the MYOB Business API.
  • Needs the company file GUID from MYOB credentials to construct API requests.
  • Uses the MYOB REST API endpoint: https://api.myob.com/accountright/{companyFileGuid}.
  • The node depends on a helper function (myobRequest) to make HTTP requests to the MYOB API.

Troubleshooting

  • Missing Location UID: The node throws an error if the Location UID property is empty or missing. Ensure you provide a valid location identifier.
  • API Response Issues: If the MYOB API returns invalid or empty responses, the node will throw an error indicating failure to retrieve inventory items.
  • No Inventory Items Found: If no active and inventoried items exist for the location, the returned items array will be empty.
  • Authentication Errors: Make sure the API key credential is correctly configured and has access to the company file.
  • Rate Limits or Network Issues: Temporary network failures or API rate limits may cause errors; retrying the operation might help.

Links and References

Discussion