BCL icon

BCL

Consume BCL Payment API

Overview

This node interacts with the BCL Payment API to manage forms, payment links, and coupons. Specifically for the Form resource and the Duplicate operation, it duplicates an existing form by creating a new form with a specified title and slug based on the original form's ID.

This is useful when you want to quickly create a copy of an existing form with minor modifications, such as changing the title or URL slug, without manually recreating all the form details.

Practical example:
You have a registration form for an event and want to create a similar form for another event with slight changes. Instead of building the new form from scratch, you duplicate the existing one and update the title and slug accordingly.

Properties

Name Meaning
Form ID to Duplicate The numeric ID of the existing form you want to duplicate.
Duplicate Title The title string for the newly duplicated form.
Duplicate Slug The URL-friendly slug string for the duplicated form (used in the form's URL).

Output

The node outputs JSON data representing the response from the BCL API after duplicating the form. This typically includes details of the newly created form such as its ID, title, slug, and other metadata returned by the API.

No binary data output is involved in this operation.

Dependencies

  • Requires an API token credential for authenticating with the BCL Payment API.
  • The node makes HTTP requests to the BCL API endpoint at https://bcl.my/api.
  • Proper configuration of the API token credential in n8n is necessary for successful authentication.

Troubleshooting

  • Authentication failed: If the API token is invalid or expired, the node will return an authentication error. Ensure your API token credential is correct and up to date.
  • Validation errors: If required fields like form ID, duplicate title, or slug are missing or invalid, the API may reject the request with validation errors. Double-check that all required properties are provided and correctly formatted.
  • Not found error: If the form ID to duplicate does not exist, the API will respond with a "not found" error. Verify the form ID is valid.
  • API server errors: Temporary server issues may cause 5xx errors. Retry later or check the BCL service status.
  • When using "Continue On Fail," errors are returned as JSON objects with error details instead of stopping execution.

Links and References

Discussion