Generated My API Key

This guide explains how to integrate your paid product with our Webhook-based API to accept payments and handle subscription events in your SaaS, web app, or website.

Prerequisites – Set Up Your Product

Beforehand, make sure to create a paid product in this section and finish by integrating it via webhook. First Payment in 2 Minutes

Important: Product creation is not yet available via API. Each product must be created manually on the platform and then connected to the API. API-based product creation will be available soon.

Step 1 – Test Your Webhook Endpoint

Before submitting your product, you must ensure that your webhook endpoint is reachable and responds correctly.

Requirements for the webhook endpoint:

  • Must be publicly accessible (HTTPS required)

  • Must respond with HTTP 200 to webhook calls

  • Should handle JSON payloads

Test flow:

  1. Enter your webhook URL during product setup.

  2. Trigger a test webhook event from the dashboard.

  3. Verify that:

    • Your server receives the request

    • The payload is correctly parsed

    • Your endpoint returns a 200 OK response

Once the webhook response is validated, you can proceed.

Step 2 – Submit the Product

After successfully testing the webhook:

  1. Submit the product from the dashboard.

  2. The product becomes active and ready to receive real payments.

Step 3 – Retrieve Your Webhook Secret

When the product is created, a Webhook Secret is generated.

  1. Copy the webhook secret.

  2. Store it securely on your backend.

This secret is used to verify the authenticity of webhook events and ensure they are sent by our system.

Step 4 – Generate Your API Key

To interact with the API:

  1. Go to Settings

  2. Generate an API Key

  3. Copy and store it securely

The API key is required for authenticated API requests.

Step 5 – Integrate With Your Application

You can now integrate the API and webhook system into:

  • SaaS applications

  • Web apps

  • Websites

  • Backend services

At this stage, all the technical implementation is handled in the Developer Documentation, which covers the full integration in detail.

Continue here: https://suby-api.readme.io/reference/introductionarrow-up-right

Typical Integration Flow

  1. A user completes a payment.

  2. Our system sends a webhook event to your configured endpoint.

  3. Your backend:

    • Verifies the webhook signature using your webhook secret

    • Processes the event (unlock access, activate a subscription, update your database, etc.)

All supported events, payload formats, and examples are documented in the Developer Documentation.

Last updated