Skip to main content
This guide will walk you through integrating CrediBill into your application. We’ll obtain API keys from the dashboard, authenticate, and create your first customer.

Prerequisites

Before you begin, make sure you have:
  1. A Credibill account. Sign up here.
  2. A live application created in the Developer Dashboard.
  3. An API Key from the Developer Dashboard.

1. Setup API Access

Store your API key securely in your environment variables.
All API requests use the base URL https://giant-goldfish-922.convex.site/api/ and require the Authorization header: CREDIBILL_SECRET_KEY=sk_live_abc123def456
Authorization: Bearer sk_live_abc123def456 A Customer represents a business or individual that subscribes to your service.
Never expose your Secret API Key in client-side code. Always perform billing operations from your backend server. For client-side operations, use publishable keys.

3. Subscribe the Customer

Now, subscribe the customer to a plan. Ensure you have created a plan in your dashboard first.

4. Handle Webhooks (Optional)

Set up webhooks to receive real-time updates about payments and subscriptions.

Next Steps

You’ve successfully billed your first customer! Explore deeper into the platform: