Magnet Customer icon

Magnet Customer

Consume Magnet Customer API

Treatment Type → Get

AI-generated

Overview

This node operation retrieves details of a specific Treatment Type from the Magnet Customer API. It is useful in scenarios where you need to fetch information about a particular treatment type by its ID, such as in healthcare or wellness applications managing treatment data.

Use Case Examples

  1. Fetch details of a treatment type by providing its unique Type ID to display or process treatment information in an application.
  2. Use the node to get treatment type data for reporting or integration with other systems.

Properties

Name Meaning
Authentication Selects the authentication method to use for the API request (API Token or OAuth2).
Type ID The unique identifier of the treatment type to retrieve. This is required for the get operation on treatment types.

Output

JSON

  • _id - The unique identifier of the treatment type.
  • name - The name of the treatment type.
  • description - A description of the treatment type.
  • createdAt - Timestamp when the treatment type was created.
  • updatedAt - Timestamp when the treatment type was last updated.

Dependencies

  • Magnet Customer API with either API Token or OAuth2 authentication

Troubleshooting

  • Ensure the Type ID is provided and valid; missing or incorrect IDs will cause errors.
  • Authentication failures can occur if the API token or OAuth2 credentials are invalid or expired.
  • Network issues or API downtime can cause request failures; verify connectivity and API status.

Links

Discussion