Event Types
List of supported event types and their payloads.
checkout.completed
A checkout session was completed, returning all the information about the payment and the order created.
{
"id": "evt_5WHHcZPv7VS0YUsberIuOz",
"eventType": "checkout.completed",
"created_at": 1728734325927,
"object": {
"id": "ch_4l0N34kxo16AhRKUHFUuXr",
"object": "checkout",
"request_id": "my-request-id",
"order": {
"id": "ord_4aDwWXjMLpes4Kj4XqNnUA",
"customer": "cust_1OcIK1GEuVvXZwD19tjq2z",
"product": "prod_d1AY2Sadk9YAvLI0pj97f",
"amount": 1000,
"currency": "EUR",
"status": "paid",
"type": "recurring",
"created_at": "2024-10-12T11:58:33.097Z",
"updated_at": "2024-10-12T11:58:33.097Z",
"mode": "local"
},
"product": {
"id": "prod_d1AY2Sadk9YAvLI0pj97f",
"name": "Monthly",
"description": "Monthly",
"image_url": null,
"price": 1000,
"currency": "EUR",
"billing_type": "recurring",
"billing_period": "every-month",
"status": "active",
"tax_mode": "exclusive",
"tax_category": "saas",
"default_success_url": "",
"created_at": "2024-10-11T11:50:00.182Z",
"updated_at": "2024-10-11T11:50:00.182Z",
"mode": "local"
},
"customer": {
"id": "cust_1OcIK1GEuVvXZwD19tjq2z",
"object": "customer",
"email": "tester@gmail.com",
"name": "Tester Test",
"country": "NL",
"created_at": "2024-10-11T09:16:48.557Z",
"updated_at": "2024-10-11T09:16:48.557Z",
"mode": "local"
},
"subscription": {
"id": "sub_6pC2lNB6joCRQIZ1aMrTpi",
"object": "subscription",
"product": "prod_d1AY2Sadk9YAvLI0pj97f",
"customer": "cust_1OcIK1GEuVvXZwD19tjq2z",
"collection_method": "charge_automatically",
"status": "active",
"canceled_at": null,
"created_at": "2024-10-12T11:58:45.425Z",
"updated_at": "2024-10-12T11:58:45.425Z",
"metadata": {
"custom_data": "mycustom data",
"internal_customer_id": "internal_customer_id"
},
"mode": "local"
},
"custom_fields": [],
"status": "completed",
"metadata": {
"custom_data": "mycustom data",
"internal_customer_id": "internal_customer_id"
},
"mode": "local"
}
}
subscription.active
Received when a new subscription is created, the payment was successful and Creem collected the payment creating a new subscription object in your account.
Use only for synchronization, we encourage using subscription.paid
for activating access.
{
"id": "evt_6EptlmjazyGhEPiNQ5f4lz",
"eventType": "subscription.active",
"created_at": 1728734325927,
"object": {
"id": "sub_21lfZb67szyvMiXnm6SVi0",
"object": "subscription",
"product": {
"id": "prod_AnVJ11ujp7x953ARpJvAF",
"name": "My Product - Product 01",
"description": "Test my product",
"image_url": null,
"price": 10000,
"currency": "EUR",
"billing_type": "recurring",
"billing_period": "every-month",
"status": "active",
"tax_mode": "inclusive",
"tax_category": "saas",
"default_success_url": "",
"created_at": "2024-09-16T16:12:09.813Z",
"updated_at": "2024-09-16T16:12:09.813Z",
"mode": "local"
},
"customer": {
"id": "cust_3biFPNt4Cz5YRDSdIqs7kc",
"object": "customer",
"email": "tester@gmail.com",
"name": "Tester Test",
"country": "SE",
"created_at": "2024-09-16T16:13:39.265Z",
"updated_at": "2024-09-16T16:13:39.265Z",
"mode": "local"
},
"collection_method": "charge_automatically",
"status": "active",
"canceled_at": "2024-09-16T19:40:41.984Z",
"created_at": "2024-09-16T19:40:41.984Z",
"updated_at": "2024-09-16T19:40:42.121Z",
"mode": "local"
}
}
subscription.paid
A subscription transaction was paid by the customer
{
"id": "evt_21mO1jWmU2QHe7u2oFV7y1",
"eventType": "subscription.paid",
"created_at": 1728734327355,
"object": {
"id": "sub_6pC2lNB6joCRQIZ1aMrTpi",
"object": "subscription",
"product": {
"id": "prod_d1AY2Sadk9YAvLI0pj97f",
"name": "Monthly",
"description": "Monthly",
"image_url": null,
"price": 1000,
"currency": "EUR",
"billing_type": "recurring",
"billing_period": "every-month",
"status": "active",
"tax_mode": "exclusive",
"tax_category": "saas",
"default_success_url": "",
"created_at": "2024-10-11T11:50:00.182Z",
"updated_at": "2024-10-11T11:50:00.182Z",
"mode": "local"
},
"customer": {
"id": "cust_1OcIK1GEuVvXZwD19tjq2z",
"object": "customer",
"email": "tester@gmail.com",
"name": "Tester Test",
"country": "NL",
"created_at": "2024-10-11T09:16:48.557Z",
"updated_at": "2024-10-11T09:16:48.557Z",
"mode": "local"
},
"collection_method": "charge_automatically",
"status": "active",
"last_transaction_id": "tran_5yMaWzAl3jxuGJMCOrYWwk",
"last_transaction_date": "2024-10-12T11:58:47.109Z",
"next_transaction_date": "2024-11-12T11:58:38.000Z",
"current_period_start_date": "2024-10-12T11:58:38.000Z",
"current_period_end_date": "2024-11-12T11:58:38.000Z",
"canceled_at": null,
"created_at": "2024-10-12T11:58:45.425Z",
"updated_at": "2024-10-12T11:58:45.425Z",
"metadata": {
"custom_data": "mycustom data",
"internal_customer_id": "internal_customer_id"
},
"mode": "local"
}
}
subscription.canceled
The subscription was canceled by the merchant or by the customer.
{
"id": "evt_2iGTc600qGW6FBzloh2Nr7",
"eventType": "subscription.canceled",
"created_at": 1728734337932,
"object": {
"id": "sub_6pC2lNB6joCRQIZ1aMrTpi",
"object": "subscription",
"product": {
"id": "prod_d1AY2Sadk9YAvLI0pj97f",
"name": "Monthly",
"description": "Monthly",
"image_url": null,
"price": 1000,
"currency": "EUR",
"billing_type": "recurring",
"billing_period": "every-month",
"status": "active",
"tax_mode": "exclusive",
"tax_category": "saas",
"default_success_url": "",
"created_at": "2024-10-11T11:50:00.182Z",
"updated_at": "2024-10-11T11:50:00.182Z",
"mode": "local"
},
"customer": {
"id": "cust_1OcIK1GEuVvXZwD19tjq2z",
"object": "customer",
"email": "tester@gmail.com",
"name": "Tester Test",
"country": "NL",
"created_at": "2024-10-11T09:16:48.557Z",
"updated_at": "2024-10-11T09:16:48.557Z",
"mode": "local"
},
"collection_method": "charge_automatically",
"status": "canceled",
"last_transaction_id": "tran_5yMaWzAl3jxuGJMCOrYWwk",
"last_transaction_date": "2024-10-12T11:58:47.109Z",
"current_period_start_date": "2024-10-12T11:58:38.000Z",
"current_period_end_date": "2024-11-12T11:58:38.000Z",
"canceled_at": "2024-10-12T11:58:57.813Z",
"created_at": "2024-10-12T11:58:45.425Z",
"updated_at": "2024-10-12T11:58:57.827Z",
"metadata": {
"custom_data": "mycustom data",
"internal_customer_id": "internal_customer_id"
},
"mode": "local"
}
}
subscription.expired
The subscription was expired, given that the current_end_period
has been reached without a new payment.
Payment retries can happen at this stage, and the subscription status will be terminal only when status is changed to canceled
.
{
"id": "evt_V5CxhipUu10BYonO2Vshb",
"eventType": "subscription.expired",
"created_at": 1734463872058,
"object": {
"id": "sub_7FgHvrOMC28tG5DEemoCli",
"object": "subscription",
"product": {
"id": "prod_3ELsC3Lt97orn81SOdgQI3",
"name": "Subs",
"description": "Subs",
"image_url": null,
"price": 1200,
"currency": "EUR",
"billing_type": "recurring",
"billing_period": "every-year",
"status": "active",
"tax_mode": "exclusive",
"tax_category": "saas",
"default_success_url": "",
"created_at": "2024-12-11T17:33:32.186Z",
"updated_at": "2024-12-11T17:33:32.186Z",
"mode": "local"
},
"customer": {
"id": "cust_3y4k2CELGsw7n9Eeeiw2hm",
"object": "customer",
"email": "alecerasmus2@gmail.com",
"name": "Alec Erasmus",
"country": "NL",
"created_at": "2024-12-09T16:09:20.709Z",
"updated_at": "2024-12-09T16:09:20.709Z",
"mode": "local"
},
"collection_method": "charge_automatically",
"status": "active",
"last_transaction_id": "tran_6ZeTvMqMkGdAIIjw5aAcnh",
"last_transaction_date": "2024-12-16T12:40:12.658Z",
"next_transaction_date": "2025-12-16T12:39:47.000Z",
"current_period_start_date": "2024-12-16T12:39:47.000Z",
"current_period_end_date": "2024-12-16T12:39:47.000Z",
"canceled_at": null,
"created_at": "2024-12-16T12:40:05.058Z",
"updated_at": "2024-12-16T12:40:05.058Z",
"mode": "local"
}
}
refund.created
A refund was created by the merchant
{
"id": "evt_61eTsJHUgInFw2BQKhTiPV",
"eventType": "refund.created",
"created_at": 1728734351631,
"object": {
"id": "ref_3DB9NQFvk18TJwSqd0N6bd",
"object": "refund",
"status": "succeeded",
"refund_amount": 1210,
"refund_currency": "EUR",
"reason": "requested_by_customer",
"transaction": {
"id": "tran_5yMaWzAl3jxuGJMCOrYWwk",
"object": "transaction",
"amount": 1000,
"amount_paid": 1210,
"currency": "EUR",
"type": "invoice",
"tax_country": "NL",
"tax_amount": 210,
"status": "refunded",
"refunded_amount": 1210,
"order": "ord_4aDwWXjMLpes4Kj4XqNnUA",
"subscription": "sub_6pC2lNB6joCRQIZ1aMrTpi",
"description": "Subscription payment",
"period_start": 1728734318000,
"period_end": 1731412718000,
"created_at": 1728734327109,
"mode": "local"
},
"subscription": {
"id": "sub_6pC2lNB6joCRQIZ1aMrTpi",
"object": "subscription",
"product": "prod_d1AY2Sadk9YAvLI0pj97f",
"customer": "cust_1OcIK1GEuVvXZwD19tjq2z",
"collection_method": "charge_automatically",
"status": "canceled",
"last_transaction_id": "tran_5yMaWzAl3jxuGJMCOrYWwk",
"last_transaction_date": "2024-10-12T11:58:47.109Z",
"current_period_start_date": "2024-10-12T11:58:38.000Z",
"current_period_end_date": "2024-11-12T11:58:38.000Z",
"canceled_at": "2024-10-12T11:58:57.813Z",
"created_at": "2024-10-12T11:58:45.425Z",
"updated_at": "2024-10-12T11:58:57.827Z",
"metadata": {
"custom_data": "mycustom data",
"internal_customer_id": "internal_customer_id"
},
"mode": "local"
},
"checkout": {
"id": "ch_4l0N34kxo16AhRKUHFUuXr",
"object": "checkout",
"request_id": "my-request-id",
"custom_fields": [],
"status": "completed",
"metadata": {
"custom_data": "mycustom data",
"internal_customer_id": "internal_customer_id"
},
"mode": "local"
},
"order": {
"id": "ord_4aDwWXjMLpes4Kj4XqNnUA",
"customer": "cust_1OcIK1GEuVvXZwD19tjq2z",
"product": "prod_d1AY2Sadk9YAvLI0pj97f",
"amount": 1000,
"currency": "EUR",
"status": "paid",
"type": "recurring",
"created_at": "2024-10-12T11:58:33.097Z",
"updated_at": "2024-10-12T11:58:33.097Z",
"mode": "local"
},
"customer": {
"id": "cust_1OcIK1GEuVvXZwD19tjq2z",
"object": "customer",
"email": "tester@gmail.com",
"name": "Tester Test",
"country": "NL",
"created_at": "2024-10-11T09:16:48.557Z",
"updated_at": "2024-10-11T09:16:48.557Z",
"mode": "local"
},
"created_at": 1728734351525,
"mode": "local"
}
}