Create Membership Policy

Creates a new membership policy for the requesting practice group.

SecurityapiKeyAuth and practiceGroupId
Request
Request Body schema: application/json
required
membership_scheme_id
required
string
customer
required
string
price
required
string
quantity
required
number
starts_on
required
number
collection_method
required
string
Enum: "charge_automatically" "send_invoice"
billing_cycle_anchor
required
number
payment_method
required
string
days_until_due
required
number
required
Array of objects
required
Array of objects
Responses
200

Ok

400

Validation error

401

Unauthorised

404

Not found

500

Unknown error

post/v1/invoicing/membership-policies
Request samples
application/json
{
  • "membership_scheme_id": "string",
  • "customer": "string",
  • "price": "string",
  • "quantity": 0,
  • "starts_on": 0,
  • "collection_method": "charge_automatically",
  • "billing_cycle_anchor": 0,
  • "payment_method": "string",
  • "days_until_due": 0,
  • "discounts": [
    ],
  • "members": [
    ]
}
Response samples
application/json
{
  • "id": "string",
  • "practice_group_id": "string",
  • "membership_scheme_id": "string"
}