Fungies.io Help Center
  • 🙌Getting Started
  • Customize your online store
    • General Settings
    • Header
    • Footer
    • Add New Page
    • Add Page Section
    • Text Section
    • Image Section
    • Video Section
    • Gallery Section
    • Points Section
    • Slider Section
    • Recent Products Section
    • Custom Style
  • Add Subscription Product
  • Add Digital Downloads
  • Add Game Keys
  • Add Mobile Game Assets
  • Variants of the product
  • 🛠️Workspace Settings
    • Connect your Stripe account
    • Sandbox Mode
    • Team Management
  • 🧮Store Settings
    • Publish your store
    • Previewing The Store
    • Edit Explore / Search Page (Built-in)
    • Edit Product Page (Built-in)
      • Customize Review Categories
    • Set up Custom Domain
      • Migrating your domain to Cloudflare
  • Tax-inclusive Pricing
  • 🤑Getting Paid
    • Test Payments
    • Checkout Choice
      • Hosted Checkout
      • Overlay Checkout
      • Embedded Checkout
    • Global Availability
    • Customer Payment Methods
      • PayPal Settings
    • Billing Details
    • Payouts
    • Editing Statement Descriptor
    • Transactions Reports
    • Example React checkout
  • 👨‍💻FOR SAAS DEVELOPERS
    • Hosted Checkout (more payment methods)
    • Editing and Pausing Subscriptions
      • Downgrading / Upgrading Subscriptions
    • Creating Plans
    • Free Trials and Custom Intervals
    • Redirecting After Purchase
    • Using Webhooks
    • Types of Webhooks
      • Payment Success
      • Payment Refunded
      • Payment Failed
      • Subscription Created
      • Subscription Interval
      • Subscription Updated
      • Subscription Cancelled
    • Getting Started with the API
    • Orders APIs
      • Managing Orders through API
      • Orders List
      • Cancel Order
      • Update Order
    • Managing Subscriptions through API
    • Managing and Creating Users through API
    • Customizing Subscription Confirmation Page
    • Using CustomFields to parse data from your Software / App
      • Parse e-mails from your Software directly to checkout URL
  • Additional charges on top of Subscriptions
  • Upgrading or Downgrading Plans with API
  • Using Fungies.js npm package
    • Next.js 15 integration guide
  • 🎮For Game Developers
    • Orders
    • Platform Fees
    • Users list
    • Integrating with Game's Back-end
    • Customizing Purchase Confirmation Page
    • Webhooks
  • 💲Selling
    • Payment history
    • Selling FREE products
    • Managing Game Keys
    • Managing Game Assets
    • Pricing
    • Fulfillment of Orders
    • Prohibited Business and Products
    • Invoices and Receipts
    • Google Merchant Center XML Feed
    • SEO Sitemap
  • 🚀Marketing
    • Integrations
      • Google Tag Manager
      • Google Merchant Center
      • Trustpilot
      • Google Analytics (via Google Tag Manager)
    • SEO
    • Discount Codes
    • Pricing Localization
    • Language Localization
    • E-mail Marketing
  • 💰Billing
    • Plans and Usage
    • Invoices
    • Payment Methods
  • 🤩For End-Users
    • How to manage your Subscription?
    • How to buy a Game Key?
    • How to buy a Mobile Game Asset?
    • Getting your product
    • Steam key activation
    • Searching for games
    • Product details page
    • Order details
    • Refunds and chargebacks
  • 🗃️Other
    • FAQ
    • Roadmap
    • Product Changelog
  • 📃Legal
    • General Terms of Use
    • SaaS Terms of Use
    • Privacy Policy
    • Cookies and Tracking
Powered by GitBook
On this page
  • GET /users/list (List All Users)
  • POST /users/create (Create a New User)
  • GET /users/{userId} (Get User by ID)
  • PATCH /users/{userId}/update (Update User Details)
  • PATCH /users/{userId}/archive (Archive User)
  • GET /users/{userId}/inventory (Get User Inventory)
  1. FOR SAAS DEVELOPERS

Managing and Creating Users through API

Managing and Creating Users through API" provides developers with detailed instructions on how to create, update, and manage user accounts within a system using API endpoints.

PreviousManaging Subscriptions through APINextCustomizing Subscription Confirmation Page

Last updated 7 months ago

User management is an essential feature of the Fungies.io platform, enabling developers to handle user accounts programmatically. The user-related endpoints allow you to create new users, retrieve user information, update user details, and manage user inventory. These endpoints are designed to simplify user account management by providing necessary features like listing users, modifying their details, and archiving accounts.

To access these endpoints, authentication via API keys is required, you can go through the "" guide in which you will learn how you can generate the API-key and write-API-key.

After generating the API-key and write-API key you can immediately start making requests to the Fungies User management API endpoints.

GET /users/list (List All Users)

The /users/list endpoint is used to retrieve a list of all users on the Fungies.io platform. It allows developers to access details of every user in the system, including filtering options based on user creation dates and email.

Note: This endpoint requires an API-key for authentication.

This is a GET API endpoint that accepts the following parameters:

  • email: Filters users by their email address.

  • createdAfter: Returns users created after a specified date.

  • createdBefore: Returns users created before a specified date.

  • page: Specifies which page of the user list you want to retrieve.

  • limit: Defines the maximum number of users to return per page.

Successful Response:

When the request is successful, you will receive a response like this:

{
  "status": "<string>",
  "data": "<string>"
}

Error Response:

If the request fails, you will receive an error response like this:

{
  "status": "error",
  "error": {
    "message": "Sample error message"
  }
}

POST /users/create (Create a New User)

The /users/create endpoint allows developers to create a new user in the system by providing the necessary information such as email, password, and username.

Note: This endpoint requires an API-key and write-API key (both) for authentication at the same time.

This is a POST API endpoint that requires the following in the request body:

  • email: The email address of the new user.

  • password: The password for the user account.

  • username: The username for the user.

Successful Response:

When the request is successful, you will receive a response like this:

{
  "status": "<string>",
  "data": "<string>"
}

Error Response:

If the request fails, you will receive an error response like this:

{
  "status": "error",
  "error": {
    "message": "Sample error message"
  }
}

GET /users/{userId} (Get User by ID)

The /users/{userId} endpoint is used to retrieve details of a specific user by their unique user ID.

Note: This endpoint requires an API-key for authentication.

This is a GET API endpoint that requires a single parameter:

  • userId: The unique ID of the user you want to retrieve.

Successful Response:

When the request is successful, you will receive a response like this:

{
  "status": "<string>",
  "data": "<string>"
}

Error Response:

If the request fails, you will receive an error response like this:

{
  "status": "error",
  "error": {
    "message": "Sample error message"
  }
}

PATCH /users/{userId}/update (Update User Details)

The /users/{userId}/update endpoint allows developers to update a user's details, such as their email or username.

Note: This endpoint requires an API-key and write-API key (both) for authentication at the same time.

This is a PATCH API endpoint that requires a single parameter and request body:

  • userId: The unique ID of the user to update.

  • Request Body:

    email: The updated email address for the user.

    username: The updated username for the user.

Successful Response:

When the request is successful, you will receive a response like this:

{
  "status": "<string>",
  "data": "<string>"
}

Error Response:

If the request fails, you will receive an error response like this:

{
  "status": "error",
  "error": {
    "message": "Sample error message"
  }
}

PATCH /users/{userId}/archive (Archive User)

The /users/{userId}/archive endpoint is used to archive a specific user account, effectively deactivating it while preserving its data.

Note: This endpoint requires an API-key and write-API key (both) for authentication at the same time.

This is a PATCH API endpoint that requires a single parameter and request body:

  • userId: The unique ID of the user to archive.

  • Request Body: An object specifying any additional data needed for archiving the user.

Successful Response:

When the request is successful, you will receive a response like this:

{
  "status": "<string>",
  "data": "<string>"
}

Error Response:

If the request fails, you will receive an error response like this:

{
  "status": "error",
  "error": {
    "message": "Sample error message"
  }
}

GET /users/{userId}/inventory (Get User Inventory)

The /users/{userId}/inventory endpoint retrieves the inventory of digital products or subscriptions associated with a specific user.

Note: This endpoint requires an API-key for authentication.

This is a GET API endpoint that requires the following parameters:

  • userId: The unique ID of the user whose inventory you want to retrieve.

  • productType: Filters inventory by the type of product. Available options-

    DigitalDownload ,Game ,GiftCard ,SoftwareKey ,VirtualCurrency ,VirtualItem ,Subscription.

  • expiresAfter: Filters items that expire after a specific date.

Successful Response:

When the request is successful, you will receive a response like this:

{
  "status": "<string>",
  "data": "<string>"
}

Error Response:

If the request fails, you will receive an error response like this:

{
  "status": "error",
  "error": {
    "message": "Sample error message"
  }
}
👨‍💻
Getting Started with the API