v1
latestOpenAPI 3.0.02026-07-24161215397.4 KBFees
Add a new fee
Add a new fee
Required scopes: flex.community.fees.create
post/api/v2/organizations/{orgSlug}/fees
Path parameters
orgSlugstring required
organization slug
Query parameters
shouldUseCoinsboolean
Used to determine whether the fee you want to add should use coins valid for one-off fees. In order for this to work the fee you're adding must have a plan selected.
Request body
Example request
{
"properties": {
"customProperty1": "value1",
"customProperty2": "value2"
},
"name": "Day Pass",
"issueDate": "2025-03-03T00:00:00.000Z",
"location": "603dfbc260f4054084125d30",
"plan": "603dfbc260f4054084125d30",
"price": 20,
"member": "603dfbc260f4054084125d30",
"company": "603dfbc260f4054084125d30",
"quantity": 2,
"shouldBillInAdvance": true,
"isPersonal": true
}Response
Example response
{
"properties": {
"customProperty1": "value1",
"customProperty2": "value2"
},
"_id": "603dfbc260f4054084125d30",
"name": "Example Fee Name",
"price": 20,
"quantity": 2,
"company": "603dfbc260f4054084125d30",
"member": "603dfbc260f4054084125d30",
"location": "603dfbc260f4054084125d30",
"plan": "603dfbc260f4054084125d30",
"issueDate": "2025-03-03T00:00:00.000Z",
"discount": "603dfbc260f4054084125d33",
"discountAmount": 5,
"calculatedDiscountAmount": 5,
"discountedPrice": 5,
"isRefundable": true,
"isPersonal": true,
"shouldBillInAdvance": true,
"shouldUseCoins": true,
"coins": [
{
"_id": "594932ea518f3f150d306c89",
"count": 2
}
],
"payment": {
"_id": "603dfbc260f4054084125d30",
"creditNote": "603dfbc260f4054084125d30"
},
"source": "admin",
"createdAt": "2024-04-12T00:00:00.000Z",
"createdBy": "6080186f490fcf6e0537ec27",
"modifiedAt": "2024-05-12T00:00:00.000Z",
"modifiedBy": "6080186f490fcf6e0537ec54"
}