Memberships

Membership Credit Rules

A MembershipCreditRule represents a rule for issuing credit to members of a MembershipType.

The MembershipCreditRule object

Attributes

  • iduuidrequired

    The ID of the credit rule

  • membership_type_iduuidrequired

    The ID of the membership type this rule relates to

  • membership_typeobjectoptional
  • coupon_idstringrequired

    The ID of the coupon which will be issued

  • coupon_namestringrequired

    The name of the coupon which will be issued

  • coupon_descriptionstringrequired

    The description of the coupon which will be issued

  • roll_overbooleanrequired

    If true, unused credits will roll over to the next month. Otherwise, any unused credits will be marked as expired on the next billing period.

  • issue_on_signupbooleanrequired

    If true, the credit will be issued when new customers sign up for the given membership type. Otherwise, the credit will be issued only on the monthly billing schedule.

  • multi_usebooleanrequired

    If true, the credit can be used an unlimited number of times until the expiry date.

  • for_lead_booker_onlybooleanrequired

    If true, the credit will only be issued for the lead booker of an order. If false, the credit will be issued for all guests on the order, including non-members.

  • issuing_frequencystringrequired

    The frequency that this credit is issued. The duration is specified as an ISO8601 duration string. See https://en.wikipedia.org/wiki/ISO_8601#Durations

    Possible values:billing_cycleP0DP1MP3MP6MP1Y
  • created_atdate-timerequired

    The date and time which the credit rule was created

  • updated_atdate-timerequired

    The date and time which the credit rule was last updated

{
  "id": "00000000-0000-0000-0000-000000000000",
  "membership_type_id": "00000000-0000-0000-0000-000000000000",
  "membership_type": {
    "id": "00000000-0000-0000-0000-000000000000",
    "name": "Gold tier"
  },
  "coupon_id": "00000000-0000-0000-0000-000000000000",
  "coupon_name": "string",
  "coupon_description": "Free-form text from the resource.",
  "roll_over": false,
  "issue_on_signup": false,
  "multi_use": false,
  "for_lead_booker_only": false,
  "issuing_frequency": "P1M",
  "created_at": "2026-01-01T00:00:00+00:00",
  "updated_at": "2026-01-01T00:00:00+00:00"
}
get/customers/membership-credit-rules

List membership credit rules

listMembershipCreditRules

This endpoint retrieves all the membership credit rules associated with a brand, and is typically filtered by membership type.

Query parameters

  • brand_iduuidoptional

    Filter membership credit rules by brand ID

  • membership_type_iduuidoptional

    Filter membership credit rules by membership type ID

  • issue_on_signupbooleanoptional

    When true, only membership credit rules that are issued on signup are returned

  • pageintegeroptional

    The page to retrieve results from

  • per_pageintegeroptional

    The number of results to return per page

Responses

  • 200

    The membership credit rules were successfully retrieved

  • 401

    The user is unauthenticated

post/customers/membership-credit-rules

Create a membership credit rule

createMembershipCreditRule

This endpoint creates a new membership credit rule for a membership type.

Request body

  • membership_type_iduuidrequired

    Identifier of the membership tier whose members will receive this credit rule. Rules are scoped to a single tier; create separate rules per tier if benefits differ.

  • coupon_idstringrequired

    Identifier of the coupon template used when issuing the credit. Each application of the rule issues a fresh coupon code derived from this template; the template defines the discount amount, validity, and offerings.

  • coupon_namestringrequired

    Display name shown alongside the issued coupon in the customer's account (e.g. "August spa credit"). Not the redemption code; that's generated automatically. 1-120 characters.

  • roll_overbooleanoptional

    If true, unused credits will roll over to the next month. Otherwise, any unused credits will be marked as expired on the next billing period.

  • issue_on_signupbooleanoptional

    If true, the credit will be issued when new customers sign up for the given membership type. Otherwise, the credit will be issued only on the monthly billing schedule.

  • multi_usebooleanoptional

    If true, the credit can be used an unlimited number of times until the expiry date.

  • for_lead_booker_onlybooleanoptional

    If true, the credit will only be issued for the lead booker of an order. If false, the credit will be issued for all guests on the order, including non-members.

  • issuing_frequencystringoptional

    The frequency that this credit is issued. The duration is specified as an ISO8601 duration string. See https://en.wikipedia.org/wiki/ISO_8601#Durations

    Possible values:billing_cycleP0DP1MP3MP6MP1Y
  • include_upcomingbooleanoptional

    When true, apply the new rule to membership charges that are already scheduled but not yet billed — issuing the configured credit on the next cycle for members who joined before the rule existed. When false (default), the rule only takes effect for cycles scheduled after the rule was created; existing scheduled charges continue unchanged.

Responses

  • 201

    The membership credit rule was successfully retrieved

  • 401

    The user is unauthenticated

  • 403

    The authenticated user does not have permission.

  • 422

    The request didn't pass validation

get/customers/membership-credit-rules/{creditRuleId}

Get a single membership credit rule

getMembershipCreditRule

This endpoint retrieves a single membership credit rule by its ID.

Path parameters

  • creditRuleIduuidrequired

    The ID of the membership credit rule

Responses

  • 200

    The membership credit rule was successfully retrieved

  • 401

    The user is unauthenticated

  • 404

    The resource couldn't be found

put/customers/membership-credit-rules/{creditRuleId}

Update a membership credit rule

updateMembershipCreditRule

This endpoint updates a membership credit rule.

Path parameters

  • creditRuleIduuidrequired

    The ID of the membership credit rule

Request body

  • membership_type_iduuidoptional

    Identifier of the membership tier whose members will receive this credit rule. Rules are scoped to a single tier; create separate rules per tier if benefits differ.

  • coupon_idstringoptional

    Identifier of the coupon template used when issuing the credit. Each application of the rule issues a fresh coupon code derived from this template; the template defines the discount amount, validity, and offerings.

  • coupon_namestringoptional

    Display name shown alongside the issued coupon in the customer's account (e.g. "August spa credit"). Not the redemption code; that's generated automatically. 1-120 characters.

  • roll_overbooleanoptional

    If true, unused credits will roll over to the next month. Otherwise, any unused credits will be marked as expired on the next billing period.

  • issue_on_signupbooleanoptional

    If true, the credit will be issued when new customers sign up for the given membership type. Otherwise, the credit will be issued only on the monthly billing schedule.

  • multi_usebooleanoptional

    If true, the credit can be used an unlimited number of times until the expiry date.

  • for_lead_booker_onlybooleanoptional

    If true, the credit will only be issued for the lead booker of an order. If false, the credit will be issued for all guests on the order, including non-members.

  • issuing_frequencystringoptional

    The frequency that this credit is issued. The duration is specified as an ISO8601 duration string. See https://en.wikipedia.org/wiki/ISO_8601#Durations

    Possible values:billing_cycleP0DP1MP3MP6MP1Y
  • include_upcomingbooleanoptional

    When true, apply the updated rule to membership charges that are already scheduled but not yet billed — picking up rate / frequency / coupon changes for the next cycle without waiting for the new rule to organically take effect on the cycle after that. When false (default), the update only affects credits issued from the next billing cycle onwards; existing scheduled charges continue to apply the previous rule.

Responses

  • 200

    The membership credit rule was successfully retrieved

  • 401

    The user is unauthenticated

  • 403

    The authenticated user does not have permission.

  • 404

    The resource couldn't be found

  • 422

    The request didn't pass validation

delete/customers/membership-credit-rules/{creditRuleId}

Delete a membership credit rule

deleteMembershipCreditRule

This endpoint deletes a membership credit rule.

Path parameters

  • creditRuleIduuidrequired

    The ID of the membership credit rule

Responses

  • 204

    The membership credit rule was successfully deleted

  • 401

    The user is unauthenticated

  • 403

    The authenticated user does not have permission.

  • 404

    The resource couldn't be found

post/customers/membership-credit-rules/{creditRuleId}/issue

Issue credits for all active memberships under a credit rule's membership type

actionIssueMembershipCreditRuleCredits

This endpoint will trigger an async job to issue credits for all active memberships under this credit rule's membership type. It will only issue credits if the customer doesn't already have an unredeemed, unexpired, unrevoked token issued by this rule.

Path parameters

  • creditRuleIduuidrequired

    The ID of the membership credit rule

Request body

  • include_upcomingbooleanoptional

    When true, also issue credits to memberships that are signed up under this credit rule's membership type but haven't yet been billed for the current cycle — effectively backfilling the credit for members who joined after the rule fired. When false (default), only memberships that are already in the active / billing state receive a credit.

Responses

  • 204

    The credits were successfully issued

  • 401

    The user is unauthenticated

  • 403

    The authenticated user does not have permission.

  • 404

    The resource couldn't be found