curl --request POST \
--url https://api.decodahealth.com/inventory/memberships \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--header 'TENANT: <tenant>' \
--data '
{
"name": "<string>",
"price": 123,
"id": "<string>",
"externalId": "<string>",
"description": "<string>",
"globalDiscountPercentage": 0,
"patientCreditAmount": 0,
"patientCreditFrequency": "MONTHLY",
"patientCreditExpiryDays": 123,
"maxRenewals": 0,
"autoRenew": true,
"setupFee": 0,
"freezeFee": 0,
"minimumBillingCycles": 0,
"billingFrequency": "MONTHLY",
"textColor": "<string>",
"isArchived": false,
"ruleSetId": "<string>",
"discounts": [
{
"membershipId": "<string>",
"id": "<string>",
"itemId": "<string>",
"itemCategory": "<string>",
"isPhysical": true,
"discountPercentage": 123,
"discountAmount": 123,
"creditAmount": 123,
"quantity": 123,
"rollover": false,
"rolloverExpiryDays": 123,
"neverExpire": false,
"group": "<string>",
"isArchived": false
}
],
"memberCount": 0,
"totalRevenue": 0
}
'import requests
url = "https://api.decodahealth.com/inventory/memberships"
payload = {
"name": "<string>",
"price": 123,
"id": "<string>",
"externalId": "<string>",
"description": "<string>",
"globalDiscountPercentage": 0,
"patientCreditAmount": 0,
"patientCreditFrequency": "MONTHLY",
"patientCreditExpiryDays": 123,
"maxRenewals": 0,
"autoRenew": True,
"setupFee": 0,
"freezeFee": 0,
"minimumBillingCycles": 0,
"billingFrequency": "MONTHLY",
"textColor": "<string>",
"isArchived": False,
"ruleSetId": "<string>",
"discounts": [
{
"membershipId": "<string>",
"id": "<string>",
"itemId": "<string>",
"itemCategory": "<string>",
"isPhysical": True,
"discountPercentage": 123,
"discountAmount": 123,
"creditAmount": 123,
"quantity": 123,
"rollover": False,
"rolloverExpiryDays": 123,
"neverExpire": False,
"group": "<string>",
"isArchived": False
}
],
"memberCount": 0,
"totalRevenue": 0
}
headers = {
"TENANT": "<tenant>",
"API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {TENANT: '<tenant>', 'API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
price: 123,
id: '<string>',
externalId: '<string>',
description: '<string>',
globalDiscountPercentage: 0,
patientCreditAmount: 0,
patientCreditFrequency: 'MONTHLY',
patientCreditExpiryDays: 123,
maxRenewals: 0,
autoRenew: true,
setupFee: 0,
freezeFee: 0,
minimumBillingCycles: 0,
billingFrequency: 'MONTHLY',
textColor: '<string>',
isArchived: false,
ruleSetId: '<string>',
discounts: [
{
membershipId: '<string>',
id: '<string>',
itemId: '<string>',
itemCategory: '<string>',
isPhysical: true,
discountPercentage: 123,
discountAmount: 123,
creditAmount: 123,
quantity: 123,
rollover: false,
rolloverExpiryDays: 123,
neverExpire: false,
group: '<string>',
isArchived: false
}
],
memberCount: 0,
totalRevenue: 0
})
};
fetch('https://api.decodahealth.com/inventory/memberships', 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.decodahealth.com/inventory/memberships",
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([
'name' => '<string>',
'price' => 123,
'id' => '<string>',
'externalId' => '<string>',
'description' => '<string>',
'globalDiscountPercentage' => 0,
'patientCreditAmount' => 0,
'patientCreditFrequency' => 'MONTHLY',
'patientCreditExpiryDays' => 123,
'maxRenewals' => 0,
'autoRenew' => true,
'setupFee' => 0,
'freezeFee' => 0,
'minimumBillingCycles' => 0,
'billingFrequency' => 'MONTHLY',
'textColor' => '<string>',
'isArchived' => false,
'ruleSetId' => '<string>',
'discounts' => [
[
'membershipId' => '<string>',
'id' => '<string>',
'itemId' => '<string>',
'itemCategory' => '<string>',
'isPhysical' => true,
'discountPercentage' => 123,
'discountAmount' => 123,
'creditAmount' => 123,
'quantity' => 123,
'rollover' => false,
'rolloverExpiryDays' => 123,
'neverExpire' => false,
'group' => '<string>',
'isArchived' => false
]
],
'memberCount' => 0,
'totalRevenue' => 0
]),
CURLOPT_HTTPHEADER => [
"API-KEY: <api-key>",
"Content-Type: application/json",
"TENANT: <tenant>"
],
]);
$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.decodahealth.com/inventory/memberships"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"price\": 123,\n \"id\": \"<string>\",\n \"externalId\": \"<string>\",\n \"description\": \"<string>\",\n \"globalDiscountPercentage\": 0,\n \"patientCreditAmount\": 0,\n \"patientCreditFrequency\": \"MONTHLY\",\n \"patientCreditExpiryDays\": 123,\n \"maxRenewals\": 0,\n \"autoRenew\": true,\n \"setupFee\": 0,\n \"freezeFee\": 0,\n \"minimumBillingCycles\": 0,\n \"billingFrequency\": \"MONTHLY\",\n \"textColor\": \"<string>\",\n \"isArchived\": false,\n \"ruleSetId\": \"<string>\",\n \"discounts\": [\n {\n \"membershipId\": \"<string>\",\n \"id\": \"<string>\",\n \"itemId\": \"<string>\",\n \"itemCategory\": \"<string>\",\n \"isPhysical\": true,\n \"discountPercentage\": 123,\n \"discountAmount\": 123,\n \"creditAmount\": 123,\n \"quantity\": 123,\n \"rollover\": false,\n \"rolloverExpiryDays\": 123,\n \"neverExpire\": false,\n \"group\": \"<string>\",\n \"isArchived\": false\n }\n ],\n \"memberCount\": 0,\n \"totalRevenue\": 0\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("TENANT", "<tenant>")
req.Header.Add("API-KEY", "<api-key>")
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.decodahealth.com/inventory/memberships")
.header("TENANT", "<tenant>")
.header("API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"price\": 123,\n \"id\": \"<string>\",\n \"externalId\": \"<string>\",\n \"description\": \"<string>\",\n \"globalDiscountPercentage\": 0,\n \"patientCreditAmount\": 0,\n \"patientCreditFrequency\": \"MONTHLY\",\n \"patientCreditExpiryDays\": 123,\n \"maxRenewals\": 0,\n \"autoRenew\": true,\n \"setupFee\": 0,\n \"freezeFee\": 0,\n \"minimumBillingCycles\": 0,\n \"billingFrequency\": \"MONTHLY\",\n \"textColor\": \"<string>\",\n \"isArchived\": false,\n \"ruleSetId\": \"<string>\",\n \"discounts\": [\n {\n \"membershipId\": \"<string>\",\n \"id\": \"<string>\",\n \"itemId\": \"<string>\",\n \"itemCategory\": \"<string>\",\n \"isPhysical\": true,\n \"discountPercentage\": 123,\n \"discountAmount\": 123,\n \"creditAmount\": 123,\n \"quantity\": 123,\n \"rollover\": false,\n \"rolloverExpiryDays\": 123,\n \"neverExpire\": false,\n \"group\": \"<string>\",\n \"isArchived\": false\n }\n ],\n \"memberCount\": 0,\n \"totalRevenue\": 0\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.decodahealth.com/inventory/memberships")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["TENANT"] = '<tenant>'
request["API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"price\": 123,\n \"id\": \"<string>\",\n \"externalId\": \"<string>\",\n \"description\": \"<string>\",\n \"globalDiscountPercentage\": 0,\n \"patientCreditAmount\": 0,\n \"patientCreditFrequency\": \"MONTHLY\",\n \"patientCreditExpiryDays\": 123,\n \"maxRenewals\": 0,\n \"autoRenew\": true,\n \"setupFee\": 0,\n \"freezeFee\": 0,\n \"minimumBillingCycles\": 0,\n \"billingFrequency\": \"MONTHLY\",\n \"textColor\": \"<string>\",\n \"isArchived\": false,\n \"ruleSetId\": \"<string>\",\n \"discounts\": [\n {\n \"membershipId\": \"<string>\",\n \"id\": \"<string>\",\n \"itemId\": \"<string>\",\n \"itemCategory\": \"<string>\",\n \"isPhysical\": true,\n \"discountPercentage\": 123,\n \"discountAmount\": 123,\n \"creditAmount\": 123,\n \"quantity\": 123,\n \"rollover\": false,\n \"rolloverExpiryDays\": 123,\n \"neverExpire\": false,\n \"group\": \"<string>\",\n \"isArchived\": false\n }\n ],\n \"memberCount\": 0,\n \"totalRevenue\": 0\n}"
response = http.request(request)
puts response.read_body{
"name": "<string>",
"price": 123,
"id": "<string>",
"externalId": "<string>",
"description": "<string>",
"globalDiscountPercentage": 0,
"patientCreditAmount": 0,
"patientCreditFrequency": "MONTHLY",
"patientCreditExpiryDays": 123,
"maxRenewals": 0,
"autoRenew": true,
"setupFee": 0,
"freezeFee": 0,
"minimumBillingCycles": 0,
"billingFrequency": "MONTHLY",
"textColor": "<string>",
"isArchived": false,
"ruleSetId": "<string>",
"discounts": [
{
"membershipId": "<string>",
"id": "<string>",
"itemId": "<string>",
"itemCategory": "<string>",
"isPhysical": true,
"discountPercentage": 123,
"discountAmount": 123,
"creditAmount": 123,
"quantity": 123,
"rollover": false,
"rolloverExpiryDays": 123,
"neverExpire": false,
"group": "<string>",
"isArchived": false
}
],
"memberCount": 0,
"totalRevenue": 0
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Create Membership
Create a new membership.
curl --request POST \
--url https://api.decodahealth.com/inventory/memberships \
--header 'API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--header 'TENANT: <tenant>' \
--data '
{
"name": "<string>",
"price": 123,
"id": "<string>",
"externalId": "<string>",
"description": "<string>",
"globalDiscountPercentage": 0,
"patientCreditAmount": 0,
"patientCreditFrequency": "MONTHLY",
"patientCreditExpiryDays": 123,
"maxRenewals": 0,
"autoRenew": true,
"setupFee": 0,
"freezeFee": 0,
"minimumBillingCycles": 0,
"billingFrequency": "MONTHLY",
"textColor": "<string>",
"isArchived": false,
"ruleSetId": "<string>",
"discounts": [
{
"membershipId": "<string>",
"id": "<string>",
"itemId": "<string>",
"itemCategory": "<string>",
"isPhysical": true,
"discountPercentage": 123,
"discountAmount": 123,
"creditAmount": 123,
"quantity": 123,
"rollover": false,
"rolloverExpiryDays": 123,
"neverExpire": false,
"group": "<string>",
"isArchived": false
}
],
"memberCount": 0,
"totalRevenue": 0
}
'import requests
url = "https://api.decodahealth.com/inventory/memberships"
payload = {
"name": "<string>",
"price": 123,
"id": "<string>",
"externalId": "<string>",
"description": "<string>",
"globalDiscountPercentage": 0,
"patientCreditAmount": 0,
"patientCreditFrequency": "MONTHLY",
"patientCreditExpiryDays": 123,
"maxRenewals": 0,
"autoRenew": True,
"setupFee": 0,
"freezeFee": 0,
"minimumBillingCycles": 0,
"billingFrequency": "MONTHLY",
"textColor": "<string>",
"isArchived": False,
"ruleSetId": "<string>",
"discounts": [
{
"membershipId": "<string>",
"id": "<string>",
"itemId": "<string>",
"itemCategory": "<string>",
"isPhysical": True,
"discountPercentage": 123,
"discountAmount": 123,
"creditAmount": 123,
"quantity": 123,
"rollover": False,
"rolloverExpiryDays": 123,
"neverExpire": False,
"group": "<string>",
"isArchived": False
}
],
"memberCount": 0,
"totalRevenue": 0
}
headers = {
"TENANT": "<tenant>",
"API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {TENANT: '<tenant>', 'API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
price: 123,
id: '<string>',
externalId: '<string>',
description: '<string>',
globalDiscountPercentage: 0,
patientCreditAmount: 0,
patientCreditFrequency: 'MONTHLY',
patientCreditExpiryDays: 123,
maxRenewals: 0,
autoRenew: true,
setupFee: 0,
freezeFee: 0,
minimumBillingCycles: 0,
billingFrequency: 'MONTHLY',
textColor: '<string>',
isArchived: false,
ruleSetId: '<string>',
discounts: [
{
membershipId: '<string>',
id: '<string>',
itemId: '<string>',
itemCategory: '<string>',
isPhysical: true,
discountPercentage: 123,
discountAmount: 123,
creditAmount: 123,
quantity: 123,
rollover: false,
rolloverExpiryDays: 123,
neverExpire: false,
group: '<string>',
isArchived: false
}
],
memberCount: 0,
totalRevenue: 0
})
};
fetch('https://api.decodahealth.com/inventory/memberships', 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.decodahealth.com/inventory/memberships",
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([
'name' => '<string>',
'price' => 123,
'id' => '<string>',
'externalId' => '<string>',
'description' => '<string>',
'globalDiscountPercentage' => 0,
'patientCreditAmount' => 0,
'patientCreditFrequency' => 'MONTHLY',
'patientCreditExpiryDays' => 123,
'maxRenewals' => 0,
'autoRenew' => true,
'setupFee' => 0,
'freezeFee' => 0,
'minimumBillingCycles' => 0,
'billingFrequency' => 'MONTHLY',
'textColor' => '<string>',
'isArchived' => false,
'ruleSetId' => '<string>',
'discounts' => [
[
'membershipId' => '<string>',
'id' => '<string>',
'itemId' => '<string>',
'itemCategory' => '<string>',
'isPhysical' => true,
'discountPercentage' => 123,
'discountAmount' => 123,
'creditAmount' => 123,
'quantity' => 123,
'rollover' => false,
'rolloverExpiryDays' => 123,
'neverExpire' => false,
'group' => '<string>',
'isArchived' => false
]
],
'memberCount' => 0,
'totalRevenue' => 0
]),
CURLOPT_HTTPHEADER => [
"API-KEY: <api-key>",
"Content-Type: application/json",
"TENANT: <tenant>"
],
]);
$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.decodahealth.com/inventory/memberships"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"price\": 123,\n \"id\": \"<string>\",\n \"externalId\": \"<string>\",\n \"description\": \"<string>\",\n \"globalDiscountPercentage\": 0,\n \"patientCreditAmount\": 0,\n \"patientCreditFrequency\": \"MONTHLY\",\n \"patientCreditExpiryDays\": 123,\n \"maxRenewals\": 0,\n \"autoRenew\": true,\n \"setupFee\": 0,\n \"freezeFee\": 0,\n \"minimumBillingCycles\": 0,\n \"billingFrequency\": \"MONTHLY\",\n \"textColor\": \"<string>\",\n \"isArchived\": false,\n \"ruleSetId\": \"<string>\",\n \"discounts\": [\n {\n \"membershipId\": \"<string>\",\n \"id\": \"<string>\",\n \"itemId\": \"<string>\",\n \"itemCategory\": \"<string>\",\n \"isPhysical\": true,\n \"discountPercentage\": 123,\n \"discountAmount\": 123,\n \"creditAmount\": 123,\n \"quantity\": 123,\n \"rollover\": false,\n \"rolloverExpiryDays\": 123,\n \"neverExpire\": false,\n \"group\": \"<string>\",\n \"isArchived\": false\n }\n ],\n \"memberCount\": 0,\n \"totalRevenue\": 0\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("TENANT", "<tenant>")
req.Header.Add("API-KEY", "<api-key>")
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.decodahealth.com/inventory/memberships")
.header("TENANT", "<tenant>")
.header("API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"price\": 123,\n \"id\": \"<string>\",\n \"externalId\": \"<string>\",\n \"description\": \"<string>\",\n \"globalDiscountPercentage\": 0,\n \"patientCreditAmount\": 0,\n \"patientCreditFrequency\": \"MONTHLY\",\n \"patientCreditExpiryDays\": 123,\n \"maxRenewals\": 0,\n \"autoRenew\": true,\n \"setupFee\": 0,\n \"freezeFee\": 0,\n \"minimumBillingCycles\": 0,\n \"billingFrequency\": \"MONTHLY\",\n \"textColor\": \"<string>\",\n \"isArchived\": false,\n \"ruleSetId\": \"<string>\",\n \"discounts\": [\n {\n \"membershipId\": \"<string>\",\n \"id\": \"<string>\",\n \"itemId\": \"<string>\",\n \"itemCategory\": \"<string>\",\n \"isPhysical\": true,\n \"discountPercentage\": 123,\n \"discountAmount\": 123,\n \"creditAmount\": 123,\n \"quantity\": 123,\n \"rollover\": false,\n \"rolloverExpiryDays\": 123,\n \"neverExpire\": false,\n \"group\": \"<string>\",\n \"isArchived\": false\n }\n ],\n \"memberCount\": 0,\n \"totalRevenue\": 0\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.decodahealth.com/inventory/memberships")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["TENANT"] = '<tenant>'
request["API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"price\": 123,\n \"id\": \"<string>\",\n \"externalId\": \"<string>\",\n \"description\": \"<string>\",\n \"globalDiscountPercentage\": 0,\n \"patientCreditAmount\": 0,\n \"patientCreditFrequency\": \"MONTHLY\",\n \"patientCreditExpiryDays\": 123,\n \"maxRenewals\": 0,\n \"autoRenew\": true,\n \"setupFee\": 0,\n \"freezeFee\": 0,\n \"minimumBillingCycles\": 0,\n \"billingFrequency\": \"MONTHLY\",\n \"textColor\": \"<string>\",\n \"isArchived\": false,\n \"ruleSetId\": \"<string>\",\n \"discounts\": [\n {\n \"membershipId\": \"<string>\",\n \"id\": \"<string>\",\n \"itemId\": \"<string>\",\n \"itemCategory\": \"<string>\",\n \"isPhysical\": true,\n \"discountPercentage\": 123,\n \"discountAmount\": 123,\n \"creditAmount\": 123,\n \"quantity\": 123,\n \"rollover\": false,\n \"rolloverExpiryDays\": 123,\n \"neverExpire\": false,\n \"group\": \"<string>\",\n \"isArchived\": false\n }\n ],\n \"memberCount\": 0,\n \"totalRevenue\": 0\n}"
response = http.request(request)
puts response.read_body{
"name": "<string>",
"price": 123,
"id": "<string>",
"externalId": "<string>",
"description": "<string>",
"globalDiscountPercentage": 0,
"patientCreditAmount": 0,
"patientCreditFrequency": "MONTHLY",
"patientCreditExpiryDays": 123,
"maxRenewals": 0,
"autoRenew": true,
"setupFee": 0,
"freezeFee": 0,
"minimumBillingCycles": 0,
"billingFrequency": "MONTHLY",
"textColor": "<string>",
"isArchived": false,
"ruleSetId": "<string>",
"discounts": [
{
"membershipId": "<string>",
"id": "<string>",
"itemId": "<string>",
"itemCategory": "<string>",
"isPhysical": true,
"discountPercentage": 123,
"discountAmount": 123,
"creditAmount": 123,
"quantity": 123,
"rollover": false,
"rolloverExpiryDays": 123,
"neverExpire": false,
"group": "<string>",
"isArchived": false
}
],
"memberCount": 0,
"totalRevenue": 0
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Headers
The tenant you are making this request on behalf of
Your api key
Body
Name of the membership
Price of the membership in cents
Unique identifier for the membership
External system identifier for the membership
Optional description of the membership
Global discount percentage for all items
Amount of patient credit in cents
Frequency of patient credit
DAILY, WEEKLY, BIWEEKLY, MONTHLY, QUARTERLY, SEMI_ANNUALLY, YEARLY Days until patient credit expires
Maximum number of renewals (null means unlimited)
Whether the membership auto-renews
Setup fee for the membership in cents
Fee to freeze the membership in cents
Minimum number of billing cycles required
Billing frequency for the membership
DAILY, WEEKLY, BIWEEKLY, MONTHLY, QUARTERLY, SEMI_ANNUALLY, YEARLY Text color for the membership
Whether the membership is archived
ID of the rule set for the membership
Optional discounts for the membership
Show child attributes
Show child attributes
Number of active members
Total revenue from this membership
Response
Successful Response
Name of the membership
Price of the membership in cents
Unique identifier for the membership
External system identifier for the membership
Optional description of the membership
Global discount percentage for all items
Amount of patient credit in cents
Frequency of patient credit
DAILY, WEEKLY, BIWEEKLY, MONTHLY, QUARTERLY, SEMI_ANNUALLY, YEARLY Days until patient credit expires
Maximum number of renewals (null means unlimited)
Whether the membership auto-renews
Setup fee for the membership in cents
Fee to freeze the membership in cents
Minimum number of billing cycles required
Billing frequency for the membership
DAILY, WEEKLY, BIWEEKLY, MONTHLY, QUARTERLY, SEMI_ANNUALLY, YEARLY Text color for the membership
Whether the membership is archived
ID of the rule set for the membership
Optional discounts for the membership
Show child attributes
Show child attributes
Number of active members
Total revenue from this membership
