Create Membership Type
curl --request POST \
--url https://api.example.com/createmember_type \
--header 'Content-Type: application/json' \
--data '
{
"membership_type": {
"name": "<string>",
"chapter_id": 123,
"category": "<string>",
"duration": 123,
"description": "<string>",
"autorecurring_payment": true,
"reminder_frequency": "<string>",
"membership_privacy": true,
"startdate": "<string>",
"enddate": "<string>"
},
"membership_dues": [
{}
],
"workflow": {},
"notificationsettings": {}
}
'import requests
url = "https://api.example.com/createmember_type"
payload = {
"membership_type": {
"name": "<string>",
"chapter_id": 123,
"category": "<string>",
"duration": 123,
"description": "<string>",
"autorecurring_payment": True,
"reminder_frequency": "<string>",
"membership_privacy": True,
"startdate": "<string>",
"enddate": "<string>"
},
"membership_dues": [{}],
"workflow": {},
"notificationsettings": {}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
membership_type: {
name: '<string>',
chapter_id: 123,
category: '<string>',
duration: 123,
description: '<string>',
autorecurring_payment: true,
reminder_frequency: '<string>',
membership_privacy: true,
startdate: '<string>',
enddate: '<string>'
},
membership_dues: [{}],
workflow: {},
notificationsettings: {}
})
};
fetch('https://api.example.com/createmember_type', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/createmember_type",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'membership_type' => [
'name' => '<string>',
'chapter_id' => 123,
'category' => '<string>',
'duration' => 123,
'description' => '<string>',
'autorecurring_payment' => true,
'reminder_frequency' => '<string>',
'membership_privacy' => true,
'startdate' => '<string>',
'enddate' => '<string>'
],
'membership_dues' => [
[
]
],
'workflow' => [
],
'notificationsettings' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/createmember_type"
payload := strings.NewReader("{\n \"membership_type\": {\n \"name\": \"<string>\",\n \"chapter_id\": 123,\n \"category\": \"<string>\",\n \"duration\": 123,\n \"description\": \"<string>\",\n \"autorecurring_payment\": true,\n \"reminder_frequency\": \"<string>\",\n \"membership_privacy\": true,\n \"startdate\": \"<string>\",\n \"enddate\": \"<string>\"\n },\n \"membership_dues\": [\n {}\n ],\n \"workflow\": {},\n \"notificationsettings\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/createmember_type")
.header("Content-Type", "application/json")
.body("{\n \"membership_type\": {\n \"name\": \"<string>\",\n \"chapter_id\": 123,\n \"category\": \"<string>\",\n \"duration\": 123,\n \"description\": \"<string>\",\n \"autorecurring_payment\": true,\n \"reminder_frequency\": \"<string>\",\n \"membership_privacy\": true,\n \"startdate\": \"<string>\",\n \"enddate\": \"<string>\"\n },\n \"membership_dues\": [\n {}\n ],\n \"workflow\": {},\n \"notificationsettings\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/createmember_type")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"membership_type\": {\n \"name\": \"<string>\",\n \"chapter_id\": 123,\n \"category\": \"<string>\",\n \"duration\": 123,\n \"description\": \"<string>\",\n \"autorecurring_payment\": true,\n \"reminder_frequency\": \"<string>\",\n \"membership_privacy\": true,\n \"startdate\": \"<string>\",\n \"enddate\": \"<string>\"\n },\n \"membership_dues\": [\n {}\n ],\n \"workflow\": {},\n \"notificationsettings\": {}\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"data": {
"id": 5,
"name": "Premium Member",
"category": "premium",
"duration": "12",
"autorecurring_payment": true,
"reminder_frequency": "monthly"
}
}
Membership Types
Create Membership Type
Create a new membership type with dues, workflow, and notification settings.
POST
/
createmember_type
Create Membership Type
curl --request POST \
--url https://api.example.com/createmember_type \
--header 'Content-Type: application/json' \
--data '
{
"membership_type": {
"name": "<string>",
"chapter_id": 123,
"category": "<string>",
"duration": 123,
"description": "<string>",
"autorecurring_payment": true,
"reminder_frequency": "<string>",
"membership_privacy": true,
"startdate": "<string>",
"enddate": "<string>"
},
"membership_dues": [
{}
],
"workflow": {},
"notificationsettings": {}
}
'import requests
url = "https://api.example.com/createmember_type"
payload = {
"membership_type": {
"name": "<string>",
"chapter_id": 123,
"category": "<string>",
"duration": 123,
"description": "<string>",
"autorecurring_payment": True,
"reminder_frequency": "<string>",
"membership_privacy": True,
"startdate": "<string>",
"enddate": "<string>"
},
"membership_dues": [{}],
"workflow": {},
"notificationsettings": {}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
membership_type: {
name: '<string>',
chapter_id: 123,
category: '<string>',
duration: 123,
description: '<string>',
autorecurring_payment: true,
reminder_frequency: '<string>',
membership_privacy: true,
startdate: '<string>',
enddate: '<string>'
},
membership_dues: [{}],
workflow: {},
notificationsettings: {}
})
};
fetch('https://api.example.com/createmember_type', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/createmember_type",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'membership_type' => [
'name' => '<string>',
'chapter_id' => 123,
'category' => '<string>',
'duration' => 123,
'description' => '<string>',
'autorecurring_payment' => true,
'reminder_frequency' => '<string>',
'membership_privacy' => true,
'startdate' => '<string>',
'enddate' => '<string>'
],
'membership_dues' => [
[
]
],
'workflow' => [
],
'notificationsettings' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/createmember_type"
payload := strings.NewReader("{\n \"membership_type\": {\n \"name\": \"<string>\",\n \"chapter_id\": 123,\n \"category\": \"<string>\",\n \"duration\": 123,\n \"description\": \"<string>\",\n \"autorecurring_payment\": true,\n \"reminder_frequency\": \"<string>\",\n \"membership_privacy\": true,\n \"startdate\": \"<string>\",\n \"enddate\": \"<string>\"\n },\n \"membership_dues\": [\n {}\n ],\n \"workflow\": {},\n \"notificationsettings\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/createmember_type")
.header("Content-Type", "application/json")
.body("{\n \"membership_type\": {\n \"name\": \"<string>\",\n \"chapter_id\": 123,\n \"category\": \"<string>\",\n \"duration\": 123,\n \"description\": \"<string>\",\n \"autorecurring_payment\": true,\n \"reminder_frequency\": \"<string>\",\n \"membership_privacy\": true,\n \"startdate\": \"<string>\",\n \"enddate\": \"<string>\"\n },\n \"membership_dues\": [\n {}\n ],\n \"workflow\": {},\n \"notificationsettings\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/createmember_type")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"membership_type\": {\n \"name\": \"<string>\",\n \"chapter_id\": 123,\n \"category\": \"<string>\",\n \"duration\": 123,\n \"description\": \"<string>\",\n \"autorecurring_payment\": true,\n \"reminder_frequency\": \"<string>\",\n \"membership_privacy\": true,\n \"startdate\": \"<string>\",\n \"enddate\": \"<string>\"\n },\n \"membership_dues\": [\n {}\n ],\n \"workflow\": {},\n \"notificationsettings\": {}\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"data": {
"id": 5,
"name": "Premium Member",
"category": "premium",
"duration": "12",
"autorecurring_payment": true,
"reminder_frequency": "monthly"
}
}
Request Body
object
required
Show child attributes
Show child attributes
string
required
Name of the membership type.
integer
required
Chapter ID.
string
required
Category (e.g., “standard”, “premium”).
integer
required
Duration in months.
string
Description.
boolean
required
Enable auto-renewal.
string
Reminder frequency:
daily, weekly, biweekly, monthly, quarterly, or empty for none.boolean
required
Whether membership is private.
string
required
Start date (ISO 8601).
string
required
End date (ISO 8601).
array
Array of dues configurations.
object
Workflow settings (approval, payment requirements).
object
Notification template configuration.
Response
{
"status": "success",
"data": {
"id": 5,
"name": "Premium Member",
"category": "premium",
"duration": "12",
"autorecurring_payment": true,
"reminder_frequency": "monthly"
}
}
⌘I