Update a Subscription Event

Update an existing subscription_event object.

Examples

curl -X PATCH "https://api.chartmogul.com/v1/subscription_events" \
     -u YOUR_API_KEY: \
     -H "Content-Type: application/json" \
     -d '{
     "subscription_event":
       {
        "external_id": "evnt_026",
        "data_source_uuid": "ds_1fm3eaac-62d0-31ec-clf4-4bf0mbe81aba",
                "effective_date":"2022-04-30",
        "currency":"USD",
        "amount_in_cents":"100"
       }
     }'

Result Format

{
    "id": 23223966,
    "data_source_uuid": "ds_1fm3eaac-62d0-31ec-clf4-4bf0mbe81aba",
    "customer_external_id": "scus_022",
    "subscription_set_external_id": null,
    "subscription_external_id": "sub_0001",
    "plan_external_id": "gold_monthly",
    "event_date": "2022-03-30T00:00:00Z",
    "effective_date": "2022-04-30T00:00:00Z",
    "event_type": "subscription_start_scheduled",
    "external_id": "evnt_026",
    "errors":
    {},
    "created_at": "2022-03-31T14:30:48Z",
    "updated_at": "2022-04-12T09:58:06Z",
    "quantity": 1,
    "currency": "USD",
    "amount_in_cents": "100",
    "tax_amount_in_cents": 0,
    "retracted_event_id": null,
}

To update a subscription event the required params are either:

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