---
title: "Issue credits for all active memberships under a credit rule's membership type"
method: POST
path: "/customers/membership-credit-rules/{creditRuleId}/issue"
tags: ["MembershipCreditRules"]
---

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

`POST /customers/membership-credit-rules/{creditRuleId}/issue`

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.

## Request body

- object
  - `include_upcoming` boolean — 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.

## Response `204`

The credits were successfully issued

## Other responses

- `401` — The user is unauthenticated
- `403` — The authenticated user does not have permission.
- `404` — The resource couldn't be found

---

[API](https://skmtc.dev/try/apis/trybe-api.md) · [All operations](https://skmtc.dev/try/apis/trybe-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/try/trybe-api/revisions/f37f92702da5/schema)
