Stripe Admin API
Administrative API endpoints for managing Stripe resources
Stripe Admin API
The Stripe Admin API provides administrative endpoints for managing your Stripe integration. These endpoints allow you to create and manage products, prices, coupons, and promo codes programmatically.
Overview
These endpoints are designed for administrative use and typically require appropriate permissions. They wrap Stripe's API to provide a consistent interface within your application.
Base URL
/api/admin/stripeAvailable Endpoints
| Endpoint | Description |
|---|---|
/products | Create and manage Stripe products |
/prices | Create and manage pricing for products |
/coupons | Create and manage discount coupons |
/promo-codes | Create and manage promotional codes |
Authentication
All endpoints require authentication. Ensure the user has the appropriate admin role before allowing access to these endpoints.
Error Handling
All endpoints return consistent error responses:
{
"error": "Error message description"
}Common HTTP status codes:
| Status | Description |
|---|---|
200 | Success |
400 | Bad Request - Invalid input data |
401 | Unauthorized - Authentication required |
403 | Forbidden - Insufficient permissions |
500 | Internal Server Error - Stripe API error |