Legacy (v0)
Create a new enrollment pack
Create an enrollment pack for the authenticated company. Nest the fields under enrollment_pack; title is required. Attach products with member_enrollable_products_attributes (one-time) and subscription_enrollable_products_attributes (with a subscription_plan_id), countries with country_ids, and agreements with enrollment_pack_agreements. Text is written in the platform default language. Returns the created pack with 201, or 422 with field errors. Admin users, company API tokens, and partner tokens need the enrollment_packs update permission.
POST
/
api
/
enrollment_packs
Create a new enrollment pack
curl --request POST \
--url https://api.fluid.app/api/enrollment_packs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"enrollment_pack": {
"title": "Branch Starter Kit",
"description": "Everything a new Dunder Mifflin rep needs on day one.",
"active": true,
"enrollment_fee": 29,
"membership_optional": true,
"additional_volume": 25,
"country_ids": [
214
],
"search_engine_optimizer_attributes": {
"title": "Branch Starter Kit | Dunder Mifflin",
"description": "Start selling with the Dunder Mifflin Branch Starter Kit.",
"block_crawler": false
},
"member_enrollable_products_attributes": [
{
"variant_id": 90417
}
],
"subscription_enrollable_products_attributes": [
{
"variant_id": 90466,
"subscription_plan_id": 318
}
],
"images_attributes": [
{
"image_url": "https://cdn.fluid.app/dunder-mifflin/enrollment-packs/branch-starter-kit.jpg",
"position": 1
}
],
"enrollment_pack_agreements": [
{
"agreement_id": 1188,
"required": true
}
]
}
}
'import requests
url = "https://api.fluid.app/api/enrollment_packs"
payload = { "enrollment_pack": {
"title": "Branch Starter Kit",
"description": "Everything a new Dunder Mifflin rep needs on day one.",
"active": True,
"enrollment_fee": 29,
"membership_optional": True,
"additional_volume": 25,
"country_ids": [214],
"search_engine_optimizer_attributes": {
"title": "Branch Starter Kit | Dunder Mifflin",
"description": "Start selling with the Dunder Mifflin Branch Starter Kit.",
"block_crawler": False
},
"member_enrollable_products_attributes": [{ "variant_id": 90417 }],
"subscription_enrollable_products_attributes": [
{
"variant_id": 90466,
"subscription_plan_id": 318
}
],
"images_attributes": [
{
"image_url": "https://cdn.fluid.app/dunder-mifflin/enrollment-packs/branch-starter-kit.jpg",
"position": 1
}
],
"enrollment_pack_agreements": [
{
"agreement_id": 1188,
"required": True
}
]
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
enrollment_pack: {
title: 'Branch Starter Kit',
description: 'Everything a new Dunder Mifflin rep needs on day one.',
active: true,
enrollment_fee: 29,
membership_optional: true,
additional_volume: 25,
country_ids: [214],
search_engine_optimizer_attributes: {
title: 'Branch Starter Kit | Dunder Mifflin',
description: 'Start selling with the Dunder Mifflin Branch Starter Kit.',
block_crawler: false
},
member_enrollable_products_attributes: [{variant_id: 90417}],
subscription_enrollable_products_attributes: [{variant_id: 90466, subscription_plan_id: 318}],
images_attributes: [
{
image_url: 'https://cdn.fluid.app/dunder-mifflin/enrollment-packs/branch-starter-kit.jpg',
position: 1
}
],
enrollment_pack_agreements: [{agreement_id: 1188, required: true}]
}
})
};
fetch('https://api.fluid.app/api/enrollment_packs', 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.fluid.app/api/enrollment_packs",
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([
'enrollment_pack' => [
'title' => 'Branch Starter Kit',
'description' => 'Everything a new Dunder Mifflin rep needs on day one.',
'active' => true,
'enrollment_fee' => 29,
'membership_optional' => true,
'additional_volume' => 25,
'country_ids' => [
214
],
'search_engine_optimizer_attributes' => [
'title' => 'Branch Starter Kit | Dunder Mifflin',
'description' => 'Start selling with the Dunder Mifflin Branch Starter Kit.',
'block_crawler' => false
],
'member_enrollable_products_attributes' => [
[
'variant_id' => 90417
]
],
'subscription_enrollable_products_attributes' => [
[
'variant_id' => 90466,
'subscription_plan_id' => 318
]
],
'images_attributes' => [
[
'image_url' => 'https://cdn.fluid.app/dunder-mifflin/enrollment-packs/branch-starter-kit.jpg',
'position' => 1
]
],
'enrollment_pack_agreements' => [
[
'agreement_id' => 1188,
'required' => true
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.fluid.app/api/enrollment_packs"
payload := strings.NewReader("{\n \"enrollment_pack\": {\n \"title\": \"Branch Starter Kit\",\n \"description\": \"Everything a new Dunder Mifflin rep needs on day one.\",\n \"active\": true,\n \"enrollment_fee\": 29,\n \"membership_optional\": true,\n \"additional_volume\": 25,\n \"country_ids\": [\n 214\n ],\n \"search_engine_optimizer_attributes\": {\n \"title\": \"Branch Starter Kit | Dunder Mifflin\",\n \"description\": \"Start selling with the Dunder Mifflin Branch Starter Kit.\",\n \"block_crawler\": false\n },\n \"member_enrollable_products_attributes\": [\n {\n \"variant_id\": 90417\n }\n ],\n \"subscription_enrollable_products_attributes\": [\n {\n \"variant_id\": 90466,\n \"subscription_plan_id\": 318\n }\n ],\n \"images_attributes\": [\n {\n \"image_url\": \"https://cdn.fluid.app/dunder-mifflin/enrollment-packs/branch-starter-kit.jpg\",\n \"position\": 1\n }\n ],\n \"enrollment_pack_agreements\": [\n {\n \"agreement_id\": 1188,\n \"required\": true\n }\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.fluid.app/api/enrollment_packs")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"enrollment_pack\": {\n \"title\": \"Branch Starter Kit\",\n \"description\": \"Everything a new Dunder Mifflin rep needs on day one.\",\n \"active\": true,\n \"enrollment_fee\": 29,\n \"membership_optional\": true,\n \"additional_volume\": 25,\n \"country_ids\": [\n 214\n ],\n \"search_engine_optimizer_attributes\": {\n \"title\": \"Branch Starter Kit | Dunder Mifflin\",\n \"description\": \"Start selling with the Dunder Mifflin Branch Starter Kit.\",\n \"block_crawler\": false\n },\n \"member_enrollable_products_attributes\": [\n {\n \"variant_id\": 90417\n }\n ],\n \"subscription_enrollable_products_attributes\": [\n {\n \"variant_id\": 90466,\n \"subscription_plan_id\": 318\n }\n ],\n \"images_attributes\": [\n {\n \"image_url\": \"https://cdn.fluid.app/dunder-mifflin/enrollment-packs/branch-starter-kit.jpg\",\n \"position\": 1\n }\n ],\n \"enrollment_pack_agreements\": [\n {\n \"agreement_id\": 1188,\n \"required\": true\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/enrollment_packs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"enrollment_pack\": {\n \"title\": \"Branch Starter Kit\",\n \"description\": \"Everything a new Dunder Mifflin rep needs on day one.\",\n \"active\": true,\n \"enrollment_fee\": 29,\n \"membership_optional\": true,\n \"additional_volume\": 25,\n \"country_ids\": [\n 214\n ],\n \"search_engine_optimizer_attributes\": {\n \"title\": \"Branch Starter Kit | Dunder Mifflin\",\n \"description\": \"Start selling with the Dunder Mifflin Branch Starter Kit.\",\n \"block_crawler\": false\n },\n \"member_enrollable_products_attributes\": [\n {\n \"variant_id\": 90417\n }\n ],\n \"subscription_enrollable_products_attributes\": [\n {\n \"variant_id\": 90466,\n \"subscription_plan_id\": 318\n }\n ],\n \"images_attributes\": [\n {\n \"image_url\": \"https://cdn.fluid.app/dunder-mifflin/enrollment-packs/branch-starter-kit.jpg\",\n \"position\": 1\n }\n ],\n \"enrollment_pack_agreements\": [\n {\n \"agreement_id\": 1188,\n \"required\": true\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"enrollment_pack": {
"enrollment_pack_id": 5120,
"active": true,
"additional_volume": 25,
"application_theme_template_id": null,
"canonical_url": "https://shop.dundermifflin.com/home/enrollments/branch-starter-kit",
"country_ids": [
214
],
"custom_slug": false,
"description": {
"body": "<div>Everything a new Dunder Mifflin rep needs on day one.</div>",
"created_at": "2026-09-08T16:20:03.512Z",
"id": 88213,
"locale": "en",
"name": "description",
"record_id": 5120,
"record_type": "EnrollmentPack",
"updated_at": "2026-09-08T16:20:03.512Z"
},
"enrollment_fee": "29.0",
"enrollment_pack_agreements": [
{
"id": 6021,
"agreement_id": 1188,
"required": true,
"position": 0
}
],
"images": [
{
"id": 7304,
"image_url": "https://cdn.fluid.app/dunder-mifflin/enrollment-packs/branch-starter-kit.jpg",
"position": 1
}
],
"member_enrollable_products": [
{
"id": 40117,
"product_id": 48213,
"variant_id": 90417
}
],
"membership_after_one_month": false,
"membership_optional": true,
"search_engine_optimizer": {
"id": 7719,
"title": "Branch Starter Kit | Dunder Mifflin",
"description": "Start selling with the Dunder Mifflin Branch Starter Kit.",
"image_url": null,
"image_path": null,
"block_crawler": false
},
"slug": "branch-starter-kit",
"status": "active",
"subscription_enrollable_products": [
{
"id": 40118,
"product_id": 48240,
"variant_id": 90466,
"subscription_plan_id": 318
}
],
"title": "Branch Starter Kit",
"token": "Vq7Lm2XcR9tPkd4NwB8sHz3E"
},
"meta": {
"request_id": "5b0f7e2c-3d41-4a8e-9c6b-7f21d8e4a913",
"timestamp": "2026-09-14T15:32:08Z"
}
}{
"message": "<string>"
}Body
application/json
⌘I
Create a new enrollment pack
curl --request POST \
--url https://api.fluid.app/api/enrollment_packs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"enrollment_pack": {
"title": "Branch Starter Kit",
"description": "Everything a new Dunder Mifflin rep needs on day one.",
"active": true,
"enrollment_fee": 29,
"membership_optional": true,
"additional_volume": 25,
"country_ids": [
214
],
"search_engine_optimizer_attributes": {
"title": "Branch Starter Kit | Dunder Mifflin",
"description": "Start selling with the Dunder Mifflin Branch Starter Kit.",
"block_crawler": false
},
"member_enrollable_products_attributes": [
{
"variant_id": 90417
}
],
"subscription_enrollable_products_attributes": [
{
"variant_id": 90466,
"subscription_plan_id": 318
}
],
"images_attributes": [
{
"image_url": "https://cdn.fluid.app/dunder-mifflin/enrollment-packs/branch-starter-kit.jpg",
"position": 1
}
],
"enrollment_pack_agreements": [
{
"agreement_id": 1188,
"required": true
}
]
}
}
'import requests
url = "https://api.fluid.app/api/enrollment_packs"
payload = { "enrollment_pack": {
"title": "Branch Starter Kit",
"description": "Everything a new Dunder Mifflin rep needs on day one.",
"active": True,
"enrollment_fee": 29,
"membership_optional": True,
"additional_volume": 25,
"country_ids": [214],
"search_engine_optimizer_attributes": {
"title": "Branch Starter Kit | Dunder Mifflin",
"description": "Start selling with the Dunder Mifflin Branch Starter Kit.",
"block_crawler": False
},
"member_enrollable_products_attributes": [{ "variant_id": 90417 }],
"subscription_enrollable_products_attributes": [
{
"variant_id": 90466,
"subscription_plan_id": 318
}
],
"images_attributes": [
{
"image_url": "https://cdn.fluid.app/dunder-mifflin/enrollment-packs/branch-starter-kit.jpg",
"position": 1
}
],
"enrollment_pack_agreements": [
{
"agreement_id": 1188,
"required": True
}
]
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
enrollment_pack: {
title: 'Branch Starter Kit',
description: 'Everything a new Dunder Mifflin rep needs on day one.',
active: true,
enrollment_fee: 29,
membership_optional: true,
additional_volume: 25,
country_ids: [214],
search_engine_optimizer_attributes: {
title: 'Branch Starter Kit | Dunder Mifflin',
description: 'Start selling with the Dunder Mifflin Branch Starter Kit.',
block_crawler: false
},
member_enrollable_products_attributes: [{variant_id: 90417}],
subscription_enrollable_products_attributes: [{variant_id: 90466, subscription_plan_id: 318}],
images_attributes: [
{
image_url: 'https://cdn.fluid.app/dunder-mifflin/enrollment-packs/branch-starter-kit.jpg',
position: 1
}
],
enrollment_pack_agreements: [{agreement_id: 1188, required: true}]
}
})
};
fetch('https://api.fluid.app/api/enrollment_packs', 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.fluid.app/api/enrollment_packs",
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([
'enrollment_pack' => [
'title' => 'Branch Starter Kit',
'description' => 'Everything a new Dunder Mifflin rep needs on day one.',
'active' => true,
'enrollment_fee' => 29,
'membership_optional' => true,
'additional_volume' => 25,
'country_ids' => [
214
],
'search_engine_optimizer_attributes' => [
'title' => 'Branch Starter Kit | Dunder Mifflin',
'description' => 'Start selling with the Dunder Mifflin Branch Starter Kit.',
'block_crawler' => false
],
'member_enrollable_products_attributes' => [
[
'variant_id' => 90417
]
],
'subscription_enrollable_products_attributes' => [
[
'variant_id' => 90466,
'subscription_plan_id' => 318
]
],
'images_attributes' => [
[
'image_url' => 'https://cdn.fluid.app/dunder-mifflin/enrollment-packs/branch-starter-kit.jpg',
'position' => 1
]
],
'enrollment_pack_agreements' => [
[
'agreement_id' => 1188,
'required' => true
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.fluid.app/api/enrollment_packs"
payload := strings.NewReader("{\n \"enrollment_pack\": {\n \"title\": \"Branch Starter Kit\",\n \"description\": \"Everything a new Dunder Mifflin rep needs on day one.\",\n \"active\": true,\n \"enrollment_fee\": 29,\n \"membership_optional\": true,\n \"additional_volume\": 25,\n \"country_ids\": [\n 214\n ],\n \"search_engine_optimizer_attributes\": {\n \"title\": \"Branch Starter Kit | Dunder Mifflin\",\n \"description\": \"Start selling with the Dunder Mifflin Branch Starter Kit.\",\n \"block_crawler\": false\n },\n \"member_enrollable_products_attributes\": [\n {\n \"variant_id\": 90417\n }\n ],\n \"subscription_enrollable_products_attributes\": [\n {\n \"variant_id\": 90466,\n \"subscription_plan_id\": 318\n }\n ],\n \"images_attributes\": [\n {\n \"image_url\": \"https://cdn.fluid.app/dunder-mifflin/enrollment-packs/branch-starter-kit.jpg\",\n \"position\": 1\n }\n ],\n \"enrollment_pack_agreements\": [\n {\n \"agreement_id\": 1188,\n \"required\": true\n }\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.fluid.app/api/enrollment_packs")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"enrollment_pack\": {\n \"title\": \"Branch Starter Kit\",\n \"description\": \"Everything a new Dunder Mifflin rep needs on day one.\",\n \"active\": true,\n \"enrollment_fee\": 29,\n \"membership_optional\": true,\n \"additional_volume\": 25,\n \"country_ids\": [\n 214\n ],\n \"search_engine_optimizer_attributes\": {\n \"title\": \"Branch Starter Kit | Dunder Mifflin\",\n \"description\": \"Start selling with the Dunder Mifflin Branch Starter Kit.\",\n \"block_crawler\": false\n },\n \"member_enrollable_products_attributes\": [\n {\n \"variant_id\": 90417\n }\n ],\n \"subscription_enrollable_products_attributes\": [\n {\n \"variant_id\": 90466,\n \"subscription_plan_id\": 318\n }\n ],\n \"images_attributes\": [\n {\n \"image_url\": \"https://cdn.fluid.app/dunder-mifflin/enrollment-packs/branch-starter-kit.jpg\",\n \"position\": 1\n }\n ],\n \"enrollment_pack_agreements\": [\n {\n \"agreement_id\": 1188,\n \"required\": true\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/enrollment_packs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"enrollment_pack\": {\n \"title\": \"Branch Starter Kit\",\n \"description\": \"Everything a new Dunder Mifflin rep needs on day one.\",\n \"active\": true,\n \"enrollment_fee\": 29,\n \"membership_optional\": true,\n \"additional_volume\": 25,\n \"country_ids\": [\n 214\n ],\n \"search_engine_optimizer_attributes\": {\n \"title\": \"Branch Starter Kit | Dunder Mifflin\",\n \"description\": \"Start selling with the Dunder Mifflin Branch Starter Kit.\",\n \"block_crawler\": false\n },\n \"member_enrollable_products_attributes\": [\n {\n \"variant_id\": 90417\n }\n ],\n \"subscription_enrollable_products_attributes\": [\n {\n \"variant_id\": 90466,\n \"subscription_plan_id\": 318\n }\n ],\n \"images_attributes\": [\n {\n \"image_url\": \"https://cdn.fluid.app/dunder-mifflin/enrollment-packs/branch-starter-kit.jpg\",\n \"position\": 1\n }\n ],\n \"enrollment_pack_agreements\": [\n {\n \"agreement_id\": 1188,\n \"required\": true\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"enrollment_pack": {
"enrollment_pack_id": 5120,
"active": true,
"additional_volume": 25,
"application_theme_template_id": null,
"canonical_url": "https://shop.dundermifflin.com/home/enrollments/branch-starter-kit",
"country_ids": [
214
],
"custom_slug": false,
"description": {
"body": "<div>Everything a new Dunder Mifflin rep needs on day one.</div>",
"created_at": "2026-09-08T16:20:03.512Z",
"id": 88213,
"locale": "en",
"name": "description",
"record_id": 5120,
"record_type": "EnrollmentPack",
"updated_at": "2026-09-08T16:20:03.512Z"
},
"enrollment_fee": "29.0",
"enrollment_pack_agreements": [
{
"id": 6021,
"agreement_id": 1188,
"required": true,
"position": 0
}
],
"images": [
{
"id": 7304,
"image_url": "https://cdn.fluid.app/dunder-mifflin/enrollment-packs/branch-starter-kit.jpg",
"position": 1
}
],
"member_enrollable_products": [
{
"id": 40117,
"product_id": 48213,
"variant_id": 90417
}
],
"membership_after_one_month": false,
"membership_optional": true,
"search_engine_optimizer": {
"id": 7719,
"title": "Branch Starter Kit | Dunder Mifflin",
"description": "Start selling with the Dunder Mifflin Branch Starter Kit.",
"image_url": null,
"image_path": null,
"block_crawler": false
},
"slug": "branch-starter-kit",
"status": "active",
"subscription_enrollable_products": [
{
"id": 40118,
"product_id": 48240,
"variant_id": 90466,
"subscription_plan_id": 318
}
],
"title": "Branch Starter Kit",
"token": "Vq7Lm2XcR9tPkd4NwB8sHz3E"
},
"meta": {
"request_id": "5b0f7e2c-3d41-4a8e-9c6b-7f21d8e4a913",
"timestamp": "2026-09-14T15:32:08Z"
}
}{
"message": "<string>"
}