API Reference
Welcome to the API Reference for the PaymentKit Node.js SDK. This section provides detailed documentation for every resource and method available. Each resource has its own dedicated page with comprehensive information on parameters, return values, and practical code examples to help you integrate PaymentKit into your application.
Resource Relationship Diagram#
The following diagram illustrates how the core resources in PaymentKit interact with each other. It shows the relationships between the core billing model, payment initiation flows, customer management, and the credit-based billing system.
API Resources#
Browse the available resources below to find detailed information about each module's methods and data structures.
Payments & Checkout#
Resource | Description |
---|---|
API for creating and managing Checkout Session objects to handle payment flows. | |
API for creating and managing Payment Intent objects to process charges. | |
API for creating and managing reusable Payment Link objects. | |
API for listing and managing available Payment Method objects. | |
API for creating and managing Refund objects. |
Customer & Subscription Management#
Resource | Description |
---|---|
API for creating and managing Customer objects. | |
API for creating and managing Subscription objects for recurring payments. | |
API for managing Subscription Item objects and reporting usage records. |
Products & Pricing#
Resource | Description |
---|---|
API for creating and managing Product objects that represent your goods or services. | |
API for creating and managing Price objects associated with your products. | |
API for listing supported currencies and managing credit currency recharge configurations. |
Credit-Based Billing#
Resource | Description |
---|---|
API for creating and managing Meter objects to track usage for credit-based billing. | |
API for reporting usage events to a meter. | |
API for creating and managing Credit Grant objects to issue credits to customers. | |
API for listing and retrieving Credit Transaction objects to view credit history. |
Configuration & Webhooks#
Resource | Description |
---|---|
API for creating and managing Webhook Endpoint objects to receive events. | |
API for managing various settings within the PaymentKit. |
Now that you have an overview of the available API resources, you can dive into the specifics of each one. If you are looking for practical implementation guides, please refer to the Core Concepts section.