cURL
curl --request POST \ --url https://api.example.com/api/admin/billing/resource-configs \ --header 'Content-Type: application/json' \ --cookie better-auth.session_token= \ --data ' { "resourceType": "<string>", "billingType": "hourly", "ratePerUnit": 1, "currency": "<string>", "description": "<string>" } '
{ "id": "<string>", "resourceType": "<string>", "billingType": "hourly", "ratePerUnit": 123, "currency": "<string>", "active": true, "createdAt": "<string>", "updatedAt": "<string>", "description": "<string>" }
Creates a new billing configuration for a resource type.
1
hourly
x >= 0
Default Response
Was this page helpful?