REST API for Latepoint icon

REST API for Latepoint

Consume REST API for LatePoint on Tools

Actions40

Overview

This node integrates with the LatePoint REST API to manage customer data, specifically allowing you to create new customer records. It is useful in scenarios where you want to automate adding customers into the LatePoint booking system from other workflows or applications. For example, when a new lead is captured via a form or CRM, this node can create a corresponding customer record in LatePoint automatically.

The "Create Customer" operation supports sending either individual fields or a custom JSON/form body, providing flexibility for simple or complex customer data submissions.

Properties

Name Meaning
Description A text prompt or description to provide context or instructions for the API call.
Send Body Whether to send a custom JSON or form data body instead of using individual input fields.
Body Content Type When sending a custom body, choose between JSON or Form Data format.
JSON Body The raw JSON object to send as the request body when "Send Body" is true and "Body Content Type" is JSON. Example structure includes customer details like first name, last name, email, phone, etc.
Form Data Collection of key-value pairs to send as form data parameters when "Send Body" is true and "Body Content Type" is Form Data.
Additional Fields Individual customer fields to include when creating the customer. These include:
- First Name: Customer's first name.
- Last Name: Customer's last name.
- Email: Customer's email (optional but must be valid and unique if provided).
- Phone: Customer's phone number. AI can help populate these intelligently based on context.

Output

The node outputs the response from the LatePoint API as JSON. This typically contains the newly created customer record details including its unique identifier and any other metadata returned by the API.

  • The output is an array of JSON objects, each representing a created customer.
  • No binary data output is involved.

Example output snippet:

{
  "id": "123",
  "first_name": "Ana",
  "last_name": "López",
  "email": "ana.lopez@email.com",
  "phone": "+52 555 987 6543",
  ...
}

Dependencies

  • Requires an API key credential configured for the LatePoint REST API.
  • The node uses the base URL and API key from the credentials to authenticate requests.
  • No additional external dependencies beyond the LatePoint API service.

Troubleshooting

  • No credentials configured!: Ensure that the required API key credential for LatePoint is set up correctly in n8n.
  • Invalid JSON in body: When using the "JSON Body" option, ensure the JSON syntax is correct and parsable.
  • API errors: If the API returns errors (e.g., duplicate email, missing required fields), verify the input data correctness and uniqueness constraints.
  • Empty or missing required fields: Make sure mandatory customer fields are provided either via individual fields or in the custom body.
  • Network or authentication issues: Check API key validity and network connectivity to the LatePoint API endpoint.

Links and References

Discussion