Delete a Subscription Event

Delete specified subscription_event object either by subscription event external_id and data_source_uuid or subscription event id.

Examples

curl -X DELETE "https://api.chartmogul.com/v1/subscription_events" \
     -u YOUR_API_KEY: \
     -H "Content-Type: application/json" \
     -d '{
            "subscription_event":
              {
                "external_id": "evnt_0001",
                "data_source_uuid": "ds_14336c0c-ab0b-11ec-8c55-c3902af70e1c"
              }
        }'
ChartMogul::SubscriptionEvent.destroy_with_params!({
  subscription_event: {
    external_id: "evnt_0001",
    data_source_uuid: "ds_14336c0c-ab0b-11ec-8c55-c3902af70e1c",
  },
})
ChartMogul.SubscriptionEvent.deleteWithParams(config, {
  subscription_event: {
    external_id: "evnt_0001",
    data_source_uuid: "ds_14336c0c-ab0b-11ec-8c55-c3902af70e1c",
  },
});
ChartMogul\SubscriptionEvent::destroyWithParams([
  "subscription_event" => [
    "external_id" => "evnt_0001",
    "data_source_uuid" => "ds_14336c0c-ab0b-11ec-8c55-c3902af70e1c"
  ]
]);
api.DeleteSubscriptionEvent(
  &cm.DeleteSubscriptionEvent{
    DataSourceUUID: "ds_14336c0c-ab0b-11ec-8c55-c3902af70e1c",
    ExternalID:     "evnt_0001",
  },
)
chartmogul.SubscriptionEvent.destroy_with_params(
  config,
  data={
    "subscription_event": {
      "external_id": "evnt_0001",
      "data_source_uuid": "ds_14336c0c-ab0b-11ec-8c55-c3902af70e1c",
    }
  },
)

Result Format

{}
true
{}
true
nil
None

🚧

Impact of this action

This request will permanently delete the specified subscription event. Metrics for the customer will be recalculated based on remaining billing data after this action. This action cannot be undone.

To delete the subscription event required params are either:

  • external_id and data_source_uuid
    or
  • id
Language
Credentials
Basic
base64
: