Actions11
Overview
This node integrates with the Memberspot API to manage user-related operations, specifically allowing you to grant offers to users by their email address. The "Grant Offer by Email" operation lets you assign a specific offer (such as a course or membership) to a user identified by their email. This is useful in scenarios where you want to programmatically enroll users into offers without requiring them to manually sign up.
Practical examples include:
- Automatically granting access to a course after a purchase.
- Assigning promotional offers to users based on marketing campaigns.
- Managing user entitlements in an educational platform.
Properties
| Name | Meaning |
|---|---|
| The email address of the user to whom the offer will be granted. | |
| Offer Name or ID | Select an offer from a list or specify its ID to grant it to the user. |
| Order ID | (Optional) An order identifier associated with the offer grant. |
| Firstname | (Optional) The first name of the user receiving the offer. |
| Lastname | (Optional) The last name of the user receiving the offer. |
Output
The output is a JSON object representing the response from the Memberspot API after attempting to grant the offer. It typically contains details about the success or failure of the operation and any relevant data returned by the API regarding the granted offer or user status.
No binary data is produced by this operation.
Dependencies
- Requires an API key credential for authenticating with the Memberspot API.
- The node expects the base URL of the Memberspot API to be configured in the credentials.
- Network connectivity to the Memberspot API endpoint is necessary.
Troubleshooting
Common issues:
- Invalid or missing API credentials will cause authentication failures.
- Providing an incorrect or non-existent offer ID will result in errors from the API.
- Supplying an invalid email format may cause the request to fail.
- Network issues can prevent communication with the Memberspot API.
Error messages:
- Authentication errors usually indicate problems with the API key; verify and update credentials.
- "Offer not found" or similar messages suggest the offer ID does not exist; check the offer selection.
- Validation errors related to email or other fields require correcting the input values.
To resolve these, ensure all required properties are correctly set, credentials are valid, and the API service is reachable.
Links and References
- Memberspot API Documentation (general reference for API endpoints)
- n8n Expressions Documentation (for using expressions in property fields)