> For the complete documentation index, see [llms.txt](https://bagelpay.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bagelpay.gitbook.io/docs/readme.md).

# Developer Platform

<h2 align="center">Payment infrastructure for Indie Hackers</h2>

<p align="center">The easy way to sell your SaaS and digital products</p>

<p align="center"><a href="https://app.bagelpay.io/login" class="button primary">Sign up</a> <a href="https://app.bagelpay.io/login" class="button secondary">Log in</a></p>

<p align="center"></p>

<p align="center"></p>

<table data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th><th data-hidden data-card-cover data-type="files"></th></tr></thead><tbody><tr><td><h4><i class="fa-leaf">:leaf:</i></h4></td><td><strong>Digital Products &#x26; SaaS Billing</strong></td><td>Create digital products and SaaS billing with flexible pricing models and seamless payment processing.<br><br>✅  Digital &#x26; Subscription Products<br>✅  Multiple Pricing Models<br>✅  Discounts, Checkout Links &#x26; Benefits</td><td><a href="/spaces/VrvPnQUpsDkMiL1jMEXt">/spaces/VrvPnQUpsDkMiL1jMEXt</a></td><td><a href="/files/3avbDqRjaOVMz52X76T5">/files/3avbDqRjaOVMz52X76T5</a></td></tr><tr><td><h4><i class="fa-server">:server:</i></h4></td><td><strong>Global Merchant of Record</strong></td><td>Focus on your passion while we handle all the tax compliance.</td><td><a href="/spaces/VrvPnQUpsDkMiL1jMEXt">/spaces/VrvPnQUpsDkMiL1jMEXt</a></td><td><a href="/files/lsT0b63nTFy4YDTLlmUe">/files/lsT0b63nTFy4YDTLlmUe</a></td></tr><tr><td><h4><i class="fa-terminal">:terminal:</i></h4></td><td><strong>Integrate in under a minute</strong></td><td>The initial step in utilizing BagelPay involves creating an account and obtaining your API key. Once that's complete, delve into our comprehensive API reference for further insights, or embark on our concise and user-friendly tutorial to get started seamlessly.</td><td><a href="/spaces/1gWORzV7KtXfPEcg6vHT">/spaces/1gWORzV7KtXfPEcg6vHT</a></td><td><a href="/files/L2NZiUM5PhY6VhTB4DFA">/files/L2NZiUM5PhY6VhTB4DFA</a></td></tr></tbody></table>

{% columns %}
{% column %}

### Get started in 5 minutes

Once your product is created, you can copy the product ID by clicking on the product options and selecting “Copy ID”. Now grab your API key and create a checkout session by sending a POST request to the following endpoint:

No guesswork, no complexity—just your first successful call, fast.

<a href="/spaces/VrvPnQUpsDkMiL1jMEXt/pages/rBYpMnx9TfFidZ85y55z" class="button primary" data-icon="rocket-launch">Get started</a>&#x20;
{% endcolumn %}

{% column %}
{% code title="index.js" overflow="wrap" %}

```javascript
const redirectUrl = await axios.post(
      `https://test.bagelpay.io/payments/checkouts`,
        {
          product_id: 'prod_6tW66i0oZM7w1qXReHJrwg',
        },
        {
          headers: { "x-api-key": `bagel_123456789` },
        },
);

```

{% endcode %}
{% endcolumn %}
{% endcolumns %}

{% columns %}
{% column %}

<figure><img src="/files/pWVcqSvg6NdpmQlcJfyb" alt=""><figcaption></figcaption></figure>

{% endcolumn %}

{% column %}

### Learn more about the Payment platform

Read guides, watch tutorials, and learn more about working with the payment platform and integrating it with your own stack.

<a href="/spaces/VrvPnQUpsDkMiL1jMEXt/pages/6a15TDz0AX6aLiNBKaZJ" class="button secondary" data-icon="book">Documentation</a>
{% endcolumn %}
{% endcolumns %}

<h2 align="center">Join a community of over 3,000 developers</h2>

<p align="center">Join our Discord community or Telegram group in just a few steps.</p>

<table data-card-size="large" data-view="cards"><thead><tr><th></th><th></th><th></th><th></th><th data-hidden data-card-cover data-type="files"></th></tr></thead><tbody><tr><td><h4><i class="fa-discord">:discord:</i></h4></td><td><strong>Discord Community</strong></td><td>Join our Discord community to post questions, get help, and share resources with over 3,000 like-minded developers.</td><td><a href="https://discord.com/invite/9WZfxfzjb8" class="button secondary">Join Discord</a></td><td></td></tr><tr><td><h4><i class="fa-telegram">:telegram:</i></h4></td><td>T<strong>elegram Group</strong></td><td>Join our telegram group to post questions, get help, and share resources.</td><td><a href="https://t.me/BagelPayment" class="button secondary">Join Telegram</a></td><td></td></tr></tbody></table>
