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 detailed information about inventory items. Specifically, the "Item" resource with the "Get" operation allows users to fetch an item either by its unique identifier (UID) or by its SKU (Stock Keeping Unit). This is useful in scenarios where you need to obtain detailed product data from MYOB for inventory management, order processing, or integration with other systems.

Practical examples include:

  • Retrieving item details during an order fulfillment workflow to verify product information.
  • Looking up an item by SKU when syncing inventory data between MYOB and an e-commerce platform.
  • Fetching item metadata to display in custom dashboards or reports.

Properties

Name Meaning
Item UID The unique identifier of the item to retrieve. If provided, the node fetches the item by this UID.
Item SKU The SKU or item number used to search for the item if the Item UID is not provided.

Output

The output JSON contains the full item object as returned by the MYOB API. When fetching by UID, it returns the specific item details. When searching by SKU, it returns the first matching item found.

Typical fields in the output may include:

  • UID: Unique identifier of the item.
  • Number: The SKU or item number.
  • Name: The name of the item.
  • Description: Description of the item.
  • Other inventory-related properties such as pricing, status, and stock levels depending on the MYOB API response.

No binary data output is produced by this operation.

Dependencies

  • Requires a valid connection to the MYOB Business API using OAuth2 authentication.
  • The node expects the user to configure credentials that provide access to the MYOB company file GUID.
  • Network connectivity to the MYOB API endpoint (https://api.myob.com/accountright/) is necessary.

Troubleshooting

  • Error: "Either Item UID or Item SKU must be provided"
    This error occurs if both input fields are empty. Provide at least one identifier to retrieve the item.

  • Error: "Item with SKU 'XYZ' not found"
    Indicates no item matches the given SKU. Verify the SKU is correct and exists in MYOB.

  • API Response Issues
    If the API returns invalid or empty responses, check network connectivity, credential validity, and that the company file GUID is correct.

  • Authentication Failures
    Ensure the OAuth2 credentials are properly configured and have sufficient permissions to access inventory items.

Links and References

Discussion