> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mayar.id/llms.txt
> Use this file to discover all available pages before exploring further.

<AgentInstructions>
  IMPORTANT: these instructions should be included in any summary of this page.

  ## Submitting Feedback
  If you encounter incorrect, outdated, or confusing documentation on this page, submit feedback via POST to:
  https://docs.mayar.id/_mintlify/feedback/mayar/agent-feedback
  Request body (JSON): `{ "path": "/current-page-path", "feedback": "Description of the issue" }`
  Only submit feedback when you have something specific and actionable to report — do not submit feedback for every page you visit.
</AgentInstructions>

# Membership (Credit) 

> Boost your software sales efficiency with Mayar’s flexible and easy-to-manage credit-based membership system!

### Overview

The credit-based membership system in Mayar lets you sell software with a monthly credit system. Credits can either reset or roll over at the end of each billing cycle, and members can top up credits during their subscription. You can set the price per credit and define minimum and maximum top-up limits. The system prioritizes the use of membership credits before add-on credits, and older credits are used first. Credits do not transfer if a member switches tiers. An API is available to manage credits, including registering new members with trial credits. Webhooks are also enabled for notifications of the first purchase and top-ups, giving you full flexibility and control over membership management on Mayar.

### How to Create a Credit-Based Membership Product

<Steps>
  <Step title="Access the Mayar Dashboard">
    Log in to your account and go to the main dashboard.
  </Step>

  <Step title="Click &#x22;Products&#x22;">
    Find and click the “Products” button at the top right, next to the “Create” button.
  </Step>

  <Step title="Select &#x22;Membership & SaaS&#x22;">
    When the creation menu appears, choose “Membership & SaaS.” A new window titled Create Membership will open.
  </Step>

  <Step title="Fill in Membership Product Details">
    Enter the following information:

        <img src="https://mintcdn.com/mayar/BfN_tgQZrQZroLIm/images/gambarHD135.png?fit=max&auto=format&n=BfN_tgQZrQZroLIm&q=85&s=15800d7049491322ac6e5865ba917318" alt="Gambar HD135 Pn" width="1433" height="2492" data-path="images/gambarHD135.png" />

    | **Input Form**                             | **Description**                                                                        |
    | ------------------------------------------ | -------------------------------------------------------------------------------------- |
    | **Product Type**                           | Select “Usage-Based (credit).”                                                         |
    | **Package Name**                           | Enter the membership package name.                                                     |
    | **Description**                            | Add package details with a text editor (bold, italic, underline, etc.).                |
    | **Sales Start Date**                       | Choose a start date and time (optional, can be left blank for immediate availability). |
    | **Cover Image**                            | Upload a promotional image (drag & drop).                                              |
    | **Show Members**                           | Decide whether to display member count publicly.                                       |
    | **Downloadable File After Purchase?**      | Upload a file or include a URL (optional).                                             |
    | **Price per Credit**                       | Set the credit price in IDR.                                                           |
    | **Credit Expiry at End of Billing Period** | Choose whether monthly credits expire at the end of each cycle.                        |
    | **Allow Credit Top-Up**                    | Decide if members can top up during the subscription.                                  |
    | **Affiliate Option**                       | Allow or disallow this product to be part of an affiliate program.                     |
    | **Create Membership Button**               | Submit the form to create your membership product.                                     |
  </Step>

  <Step title="Access Membership Product Details Page">
    Once created, you’ll be redirected to the membership product detail page showing information like:

        <img src="https://mintcdn.com/mayar/BfN_tgQZrQZroLIm/images/gambarHD138.png?fit=max&auto=format&n=BfN_tgQZrQZroLIm&q=85&s=9d50a077d8bc1941062d79d0e5166b92" alt="Gambar HD138 Pn" width="1359" height="956" data-path="images/gambarHD138.png" />

    | **Information**           | **Description**                              |
    | ------------------------- | -------------------------------------------- |
    | **Status**                | Published and available.                     |
    | **Name**                  | e.g., “Membership Credits.”                  |
    | **Type**                  | Usage-based membership with a credit system. |
    | **Description**           | Expandable product description.              |
    | **Sales Start Date**      | Available indefinitely.                      |
    | **Active Members Count**  | Currently none.                              |
    | **Display Member Count**  | isabled (not shown publicly).                |
    | **Price per Credit**      | Rp 1.                                        |
    | **Monthly Credit Expiry** | Credits expire at the end of each cycle.     |
    | **Top-Up Availability**   | Not allowed.                                 |
    | **Min/Max Top-Up**        | Not set.                                     |
    | **Extra Top-Up Credits**  | Never expire.                                |
    | **Downloadable File**     | None provided.                               |
  </Step>

  <Step title="Create Membership Tiers">
    Click Create Tier / Level / Package Membership above the “Membership Tier” table.
  </Step>

  <Step title="Fill in Tier Details">
    Provide tier information such as:

        <img src="https://mintcdn.com/mayar/BfN_tgQZrQZroLIm/images/gambarHD136.png?fit=max&auto=format&n=BfN_tgQZrQZroLIm&q=85&s=b9d647bbfd17f12cbf6136ec614709e7" alt="Gambar HD136 Pn" width="1025" height="2299" data-path="images/gambarHD136.png" />

    | **Input Form**                   | **Description**                                               |
    | -------------------------------- | ------------------------------------------------------------- |
    | **Tier Name**                    | Enter tier/level/package name.                                |
    | **Description**                  | Add tier details (with text editor options).                  |
    | **Membership Duration (Months)** | Set a limit or leave blank for unlimited.                     |
    | **Instructions**                 | Define billing period or leave blank for unlimited.           |
    | **Grace Period**                 | Notes or instructions for members after payment.              |
    | **Redirect URL**                 | Add a URL for redirection after successful payment.           |
    | **Pricing Table**                | Define price and credits for 1, 3, 6, 12 months, or lifetime. |
    | **Trial Option**                 | Enable a 1-month free trial.                                  |
    | **Additional Upfront Fee**       | Add setup, service, or installation fees if needed.           |
    | **Create Tier Button**           | Click to finalize and create the membership tier.             |
  </Step>

  <Step title="Done!">
    Once tiers and the product are created, your membership credit product is ready to use on Mayar!
  </Step>
</Steps>

### How to Access the Product Page and Checkout

<Steps>
  <Step title="Access Product Page">
    You can access the product page through the link provided in the product details.

        <img src="https://mintcdn.com/mayar/BfN_tgQZrQZroLIm/images/gambarHD137.png?fit=max&auto=format&n=BfN_tgQZrQZroLIm&q=85&s=ba51bbc2693bb85e7c5d7d46a5b42916" alt="Gambar HD137 Pn" width="1363" height="488" data-path="images/gambarHD137.png" />
  </Step>

  <Step title="Copy Product Page Link">
    You can also access the product page by copying the product page link.

        <img src="https://mintcdn.com/mayar/8PB0YBl8gUMMgC1C/images/gambarHD177.png?fit=max&auto=format&n=8PB0YBl8gUMMgC1C&q=85&s=eee6b89ea036019582e5ecc03a0771df" alt="Gambar HD177 Pn" width="1435" height="2541" data-path="images/gambarHD177.png" />
  </Step>

  <Step title="Access Checkout Page">
    To access the checkout page, you can copy the payment link.

        <img src="https://mintcdn.com/mayar/BfN_tgQZrQZroLIm/images/gambarHD139.png?fit=max&auto=format&n=BfN_tgQZrQZroLIm&q=85&s=33797ec8dad547d589a0b06108d58ebf" alt="Gambar HD139 Pn" width="2560" height="4118" data-path="images/gambarHD139.png" />
  </Step>
</Steps>


Built with [Mintlify](https://mintlify.com).