Users
Get current user's billing info for active subscription
GET
Accept*stringapplication/json
Content-Type*stringapplication/json
Ok
application/json- response
active_subscription*|The user's active subscription
curl -X GET 'https://api.devopness.com/users/billing' \ -H 'Accept: application/json' \ -H 'Authorization: Bearer <your_api_token>' \ -H 'Content-Type: application/json'Example Response200
{ "active_subscription": { "id": 654982, "user_id": 23489, "plan_name": "Devopness - 300 actions per month plan", "status": "active", "quantity": 10, "price_unit": 20.5, "price_total": 200.5, "price_currency": "USD", "cancelled_at": "2019-09-25T15:50:48.000000Z", "ends_at": "2019-09-25T15:50:48.000000Z", "created_at": "2019-09-25T15:50:48.000000Z", "updated_at": "2019-09-25T13:52:04.000000Z", "current_balance": { "credits": { "limit": 200, "used": 50, "remaining": 150 }, "unit": "action-step", "billing_period_started_at": "2023-04-11T00:00:00.000000Z", "billing_period_ends_at": "2023-05-11T00:00:00.000000Z", "created_at": "2023-04-11T00:22:48.000000Z", "updated_at": "2023-04-12T00:22:48.000000Z" }, "balances": [ { "credits": { "limit": 200, "used": 50, "remaining": 150 }, "unit": "action-step", "billing_period_started_at": "2023-04-11T00:00:00.000000Z", "billing_period_ends_at": "2023-05-11T00:00:00.000000Z", "created_at": "2023-04-11T00:22:48.000000Z", "updated_at": "2023-04-12T00:22:48.000000Z" } ] }}