Welcome to the FlexPrice API

The FlexPrice API enables you to programmatically manage pricing, subscriptions, and billing for your SaaS application. This documentation will help you integrate FlexPrice into your application.

Base URL

All API requests should be made to:

https://api.cloud.flexprice.io/v1

Authentication

All API endpoints require authentication using an API Key. These are the keys you get when you create a new API key in the FlexPrice Dashboard.

x-api-key: <your_api_key>

Drop us an email at support@flexprice.io if you need help getting an API key.

Response Format

All API responses follow a consistent JSON format:

{
    "status": "success",
    "data": { ... },
    "message": "Optional status message"
}

Error Handling

The API uses standard HTTP response codes:

  • 200 - Success
  • 201 - Created
  • 400 - Bad Request
  • 401 - Unauthorized
  • 404 - Not Found
  • 500 - Internal Server Error

Error responses include detailed information:

{
    "status": "error",
    "message": "Error description",
    "code": "ERROR_CODE"
}

Need Help?