Magnet Customer icon

Magnet Customer

Consume Magnet Customer API

Treatment → Create

AI-generated

Overview

This node operation creates a new Treatment record in the Magnet Customer system. It is useful for automating the addition of treatment data related to contacts, such as medical or service treatments, within a CRM or customer management workflow. For example, it can be used to log a new treatment session for a patient or client automatically when triggered by an external event.

Use Case Examples

  1. Automatically create a treatment record when a new appointment is scheduled.
  2. Log treatment details for a contact after a form submission.

Properties

Name Meaning
Authentication Selects the authentication method to use for the API request (API Token or OAuth2).
Type ID The identifier for the type of treatment being created.
Contact ID The identifier of the contact associated with the treatment.
Subject The subject or title of the treatment.
Name Type The name type associated with the treatment.

Output

JSON

  • _id - Unique identifier of the created treatment record.
  • type - Type ID of the treatment.
  • contact - Contact ID associated with the treatment.
  • subject - Subject or title of the treatment.
  • nameType - Name type associated with the treatment.

Dependencies

  • Magnet Customer API

Troubleshooting

  • Ensure that the API credentials (API Token or OAuth2) are correctly configured and valid.
  • Verify that the required fields such as Type ID and Contact ID are provided and correctly formatted.
  • Check for network connectivity issues that might prevent the API request from completing.
  • If the node throws an error related to permissions, verify that the API user has the necessary rights to create treatments.

Discussion