Docs

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/stripe

Available Endpoints

EndpointDescription
/productsCreate and manage Stripe products
/pricesCreate and manage pricing for products
/couponsCreate and manage discount coupons
/promo-codesCreate 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:

StatusDescription
200Success
400Bad Request - Invalid input data
401Unauthorized - Authentication required
403Forbidden - Insufficient permissions
500Internal Server Error - Stripe API error

On this page