Resource Events
Process event for a resource
POST
resource_id*stringThe resource ID.
resource_type*stringThe resource type to create events for.
Accept*stringapplication/json
Content-Type*stringapplication/json
Ok
application/json- response
resource_type*stringThe resource type to create events for.
resource_id*integerThe resource ID.
resource_data*|The user's active subscription
curl -X POST 'https://api.devopness.com/events/application/2ab973e1-9528-4d67-aff0-209d74975830' \ -H 'Accept: application/json' \ -H 'Authorization: Bearer <your_api_token>' \ -H 'Content-Type: application/json'Example Response
{ "resource_type": "payment_provider", "resource_id": "paddle", "resource_data": { "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" } ] }}