cURL
curl --request POST \ --url https://api.example.com/api/v1/plans/{plan_id}/charges \ --header 'Content-Type: application/json' \ --data ' { "type": "<string>", "unit_price": 123, "meter_id": "<string>", "display_name": "<string>" } '
{ "id": "...", "type": "USAGE", "meter_id": "...", "unit_price": 0.001, "display_name": "API calls", "status": "ACTIVE", "created_at": "2025-01-01T00:00:00Z" }
Add a fixed or usage-based charge to an existing plan.
FIXED
USAGE
Was this page helpful?