Payment Link API
This API provides a simple way to create and manage payment links for products or services. It supports user authentication, secure storage of link data, and easy retrieval of link details for use in web or mobile apps. Built with FastAPI and deployed on Render for reliability and scalability.
Payment Link API endpoints
| Method | Endpoint | Description |
|---|---|---|
| POST |
Login for access token /login |
Takes username and password and returns a JWT access token. |
| GET |
Read current user /users/me |
Returns profile data for the authenticated user. |
| GET |
List payment links /payment-links |
Returns a list of payment links for the authenticated user. |
| POST |
Create payment link /payment-links |
Creates a new payment link with the specified amount and metadata. |
| POST |
Mark link paid /payment-links/{link_id}/pay |
Marks the specified payment link as paid. |
| POST |
Cancel payment link /payment-links/{link_id}/cancel |
Cancels the specified payment link so it can no longer be used. |
| GET |
Stripe success /success |
Callback endpoint shown after a successful Stripe payment. |
| GET |
Stripe cancel /cancel |
Callback endpoint shown when a Stripe payment is canceled. |