Skip to Content
Resource Events

Process event for a resource

POST
/events/{resource_type}/{resource_id}

Path Parameters

resource_id*string

The resource ID.

resource_type*string

The resource type to create events for.

Header Parameters

Accept*string

application/json

Authorization*string

Bearer {{access_token}}

Content-Type*string

application/json

Response Body

Ok

application/json
  1. response
resource_type*string

The resource type to create events for.

resource_id*integer

The resource ID.

resource_data*|

The user's active subscription

Example Request
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"      }    ]  }}