Add Member
Add Member Using API
This method will add a member to a Product or Collection via API and using an API Key.
You may find the product_id or collection_id at the end of the URL when managing your product or collection
Payment gateway IDs are only needed for Collections. Since payment gateways with Products only have a one-to-one ratio, all that is needed is the Product ID. With Collections, payment gateways have a many-to-one ratio, and so we'll need to know which payment gateway id the member will be added to. You may find a payment_gateway_id on the Payment Gateways screen for a collection.
Once the correct parameters are sent, the response will include the status of a member. [status: 1 = active] - if the response does not include 'status' or if 'status' is not equal to '1', then credentials are wrong or the request could not be processed.
PATH
https://app.productdyno.com/api/v1/members/add
METHOD
POST
PARAMETERS
_api_key first_name last_name email product_id OR collection_id payment_gateway_ids[] (Array) - required for collection only expired_at[] (Array) - optional for collections
EXAMPLE JSON RESPONSE
{ "member_id": 523, "first_name": "John", "last_name": "Doe", "email": "john.doe@productdyno.com", "status": 1, "collection_id": "7" "product_id": "58" }