Account event types ​
This is a list of all public thin events we currently send for updates to Account, which are continually evolving and expanding. The payload of thin events is unversioned. During processing, you must fetch the versioned event from the API or fetch the resource’s current state.
API event types ​
v2.core.account.closed ​
This event occurs when an account is closed.
Related object: Account
Attributes ​
id(string) Unique identifier for the event.object(string, value is "v2.core.event") String representing the object’s type. Objects of the same type share the same value of the object field.context(string, nullable) Authentication context needed to fetch the event or related object.created(timestamp) Time at which the object was created.livemode(boolean) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.related_object(object) Object containing the reference to API resource relevant to the event.related_object.id(string) Unique identifier for the object relevant to the event.related_object.type(string, value is "v2.core.account") Object tag of the resource relevant to the event.related_object.url(string) URL to retrieve the resource.
type(string, value is "v2.core.account.closed") The type of the event.
Fetched attributes ​
changes(object) Changes that the event makes to properties in the related object. See the Account object for the structure ofbeforeandafter.changes.after(object) Updated values of properties that the event changed. This isnullfor deletion events.changes.before(object) Values of properties before the event changes. This isnullfor creation events.
data(object) Additional data about the event.reason(object, nullable) Reason for the event.reason.request(object, nullable) Information on the API request that instigated the event.reason.request.id(string) ID of the API request that caused the event.reason.request.idempotency_key(string) The idempotency key transmitted during the request.
reason.type(enum) Event reason type. Possible enum values:requestThe event was published as the result of an API request.
Event handler ​
curl
# Select a client library to see examples of
# parsing and retrieving event details.Event handler ​
bash
# Select a client library to see examples of
# parsing and retrieving event details.Event handler ​
ruby
client = Stripe::StripeClient.new("{{YOUR_API_KEY}}")
endpoint_secret = 'whsec_...'
signature_header = request.env['HTTP_STRIPE_SIGNATURE']
thin_event = client.parse_thin_event(
payload,
signature_header,
endpoint_secret
)
event = client.v2.core.events.retrieve(thin_event.id)Event handler ​
python
client = StripeClient("{{YOUR_API_KEY}}")
endpoint_secret = 'whsec_...'
signature_header = ''
thin_event = client.parse_thin_event(
payload,
signature_header,
endpoint_secret
)
event = client.v2.core.events.retrieve(thin_event.id)Event handler ​
php
$stripe = new StripeStripeClient('{{YOUR_API_KEY}}');
$endpoint_secret = 'whsec_...';
$signature_header = $_SERVER['HTTP_STRIPE_SIGNATURE'];
$thin_event = $client->parseThinEvent(
$payload,
$signature_header,
$endpoint_secret
);
$event = $client->v2->core->events->retrieve($thin_event->id);Event handler ​
java
StripeClient client = new StripeClient("{{YOUR_API_KEY}}");
String signatureHeader = request.headers("Stripe-Signature");
String endpointSecret = "whsec_...";
com.stripe.model.ThinEvent thinEvent = client.parseThinEvent(
payload,
signatureHeader,
endpointSecret
);
com.stripe.model.v2.Event event = client.v2().core().events().retrieve(
thinEvent.getId()
);Event handler ​
javascript
const stripe = require('stripe')('{{YOUR_API_KEY}}');
const endpoint_secret = 'whsec_...'
const signature_header = '...'
const thinEvent = stripe.parseThinEvent(
payload,
signature_header,
endpoint_secret
);
const event = await stripe.v2.core.events.retrieve(thinEvent.id);Event handler ​
go
err = webhook.ValidatePayload(
payload,
signatureHeader,
endpointSecret
)
if err != nil {
fmt.Fprintf(os.Stderr, "Error reading request body: %v
", err)
return
}
var thinEvent map[string]interface{}
if err := json.Unmarshal(payload, &thinEvent); err != nil {
fmt.Fprintf(
os.Stderr,
"Failed to parse thin event body json: %v
", err.Error()
)
return
}
eventID := thinEvent["id"].(string)
var event map[string]interface{}
resp, err := client.RawRequest(
http.MethodGet,
"/v2/core/events/"+eventID,
"",
nil
)
if err != nil {
fmt.Fprintf(
os.Stderr,
"Failed to get pull event: %v
",
err.Error()
)
return
}
if err := json.Unmarshal(resp.RawJSON, &event); err != nil {
fmt.Fprintf(
os.Stderr,
"Failed to parse pull event body json: %v
",
err.Error()
)
return
}Event handler ​
dotnet
var client = new StripeClient("{{YOUR_API_KEY}}");
string endpointSecret = "whsec_...";
string signatureHeader = Request.Headers["Stripe-Signature"];
var thinEvent = client.ParseThinEvent(
payload,
signatureHeader,
endpointSecret
);
var event = await client.V2.Core.Events.GetAsync(thinEvent.Id);v2.core.account.created ​
Occurs when an Account is created.
Related object: Account
Attributes ​
id(string) Unique identifier for the event.object(string, value is "v2.core.event") String representing the object’s type. Objects of the same type share the same value of the object field.context(string, nullable) Authentication context needed to fetch the event or related object.created(timestamp) Time at which the object was created.livemode(boolean) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.related_object(object) Object containing the reference to API resource relevant to the event.related_object.id(string) Unique identifier for the object relevant to the event.related_object.type(string, value is "v2.core.account") Object tag of the resource relevant to the event.related_object.url(string) URL to retrieve the resource.
type(string, value is "v2.core.account.created") The type of the event.
Fetched attributes ​
changes(object) Changes that the event makes to properties in the related object. See the Account object for the structure ofbeforeandafter.changes.after(object) Updated values of properties that the event changed. This isnullfor deletion events.changes.before(object, nullable) Values of properties before the event changes. This isnullfor creation events.
data(object) Additional data about the event.reason(object, nullable) Reason for the event.reason.request(object, nullable) Information on the API request that instigated the event.reason.request.id(string) ID of the API request that caused the event.reason.request.idempotency_key(string) The idempotency key transmitted during the request.
reason.type(enum) Event reason type. Possible enum values:requestThe event was published as the result of an API request.
Event handler ​
curl
# Select a client library to see examples of
# parsing and retrieving event details.Event handler ​
bash
# Select a client library to see examples of
# parsing and retrieving event details.Event handler ​
ruby
client = Stripe::StripeClient.new("{{YOUR_API_KEY}}")
endpoint_secret = 'whsec_...'
signature_header = request.env['HTTP_STRIPE_SIGNATURE']
thin_event = client.parse_thin_event(
payload,
signature_header,
endpoint_secret
)
event = client.v2.core.events.retrieve(thin_event.id)Event handler ​
python
client = StripeClient("{{YOUR_API_KEY}}")
endpoint_secret = 'whsec_...'
signature_header = ''
thin_event = client.parse_thin_event(
payload,
signature_header,
endpoint_secret
)
event = client.v2.core.events.retrieve(thin_event.id)Event handler ​
php
$stripe = new StripeStripeClient('{{YOUR_API_KEY}}');
$endpoint_secret = 'whsec_...';
$signature_header = $_SERVER['HTTP_STRIPE_SIGNATURE'];
$thin_event = $client->parseThinEvent(
$payload,
$signature_header,
$endpoint_secret
);
$event = $client->v2->core->events->retrieve($thin_event->id);Event handler ​
java
StripeClient client = new StripeClient("{{YOUR_API_KEY}}");
String signatureHeader = request.headers("Stripe-Signature");
String endpointSecret = "whsec_...";
com.stripe.model.ThinEvent thinEvent = client.parseThinEvent(
payload,
signatureHeader,
endpointSecret
);
com.stripe.model.v2.Event event = client.v2().core().events().retrieve(
thinEvent.getId()
);Event handler ​
javascript
const stripe = require('stripe')('{{YOUR_API_KEY}}');
const endpoint_secret = 'whsec_...'
const signature_header = '...'
const thinEvent = stripe.parseThinEvent(
payload,
signature_header,
endpoint_secret
);
const event = await stripe.v2.core.events.retrieve(thinEvent.id);Event handler ​
go
err = webhook.ValidatePayload(
payload,
signatureHeader,
endpointSecret
)
if err != nil {
fmt.Fprintf(os.Stderr, "Error reading request body: %v
", err)
return
}
var thinEvent map[string]interface{}
if err := json.Unmarshal(payload, &thinEvent); err != nil {
fmt.Fprintf(
os.Stderr,
"Failed to parse thin event body json: %v
", err.Error()
)
return
}
eventID := thinEvent["id"].(string)
var event map[string]interface{}
resp, err := client.RawRequest(
http.MethodGet,
"/v2/core/events/"+eventID,
"",
nil
)
if err != nil {
fmt.Fprintf(
os.Stderr,
"Failed to get pull event: %v
",
err.Error()
)
return
}
if err := json.Unmarshal(resp.RawJSON, &event); err != nil {
fmt.Fprintf(
os.Stderr,
"Failed to parse pull event body json: %v
",
err.Error()
)
return
}Event handler ​
dotnet
var client = new StripeClient("{{YOUR_API_KEY}}");
string endpointSecret = "whsec_...";
string signatureHeader = Request.Headers["Stripe-Signature"];
var thinEvent = client.ParseThinEvent(
payload,
signatureHeader,
endpointSecret
);
var event = await client.V2.Core.Events.GetAsync(thinEvent.Id);v2.core.account.updated ​
Occurs when an Account is updated.
Related object: Account
Attributes ​
id(string) Unique identifier for the event.object(string, value is "v2.core.event") String representing the object’s type. Objects of the same type share the same value of the object field.context(string, nullable) Authentication context needed to fetch the event or related object.created(timestamp) Time at which the object was created.livemode(boolean) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.related_object(object) Object containing the reference to API resource relevant to the event.related_object.id(string) Unique identifier for the object relevant to the event.related_object.type(string, value is "v2.core.account") Object tag of the resource relevant to the event.related_object.url(string) URL to retrieve the resource.
type(string, value is "v2.core.account.updated") The type of the event.
Fetched attributes ​
changes(object) Changes that the event makes to properties in the related object. See the Account object for the structure ofbeforeandafter.changes.after(object) Updated values of properties that the event changed. This isnullfor deletion events.changes.before(object) Values of properties before the event changes. This isnullfor creation events.
data(object) Additional data about the event.reason(object, nullable) Reason for the event.reason.request(object, nullable) Information on the API request that instigated the event.reason.request.id(string) ID of the API request that caused the event.reason.request.idempotency_key(string) The idempotency key transmitted during the request.
reason.type(enum) Event reason type. Possible enum values:requestThe event was published as the result of an API request.
Event handler ​
curl
# Select a client library to see examples of
# parsing and retrieving event details.Event handler ​
bash
# Select a client library to see examples of
# parsing and retrieving event details.Event handler ​
ruby
client = Stripe::StripeClient.new("{{YOUR_API_KEY}}")
endpoint_secret = 'whsec_...'
signature_header = request.env['HTTP_STRIPE_SIGNATURE']
thin_event = client.parse_thin_event(
payload,
signature_header,
endpoint_secret
)
event = client.v2.core.events.retrieve(thin_event.id)Event handler ​
python
client = StripeClient("{{YOUR_API_KEY}}")
endpoint_secret = 'whsec_...'
signature_header = ''
thin_event = client.parse_thin_event(
payload,
signature_header,
endpoint_secret
)
event = client.v2.core.events.retrieve(thin_event.id)Event handler ​
php
$stripe = new StripeStripeClient('{{YOUR_API_KEY}}');
$endpoint_secret = 'whsec_...';
$signature_header = $_SERVER['HTTP_STRIPE_SIGNATURE'];
$thin_event = $client->parseThinEvent(
$payload,
$signature_header,
$endpoint_secret
);
$event = $client->v2->core->events->retrieve($thin_event->id);Event handler ​
java
StripeClient client = new StripeClient("{{YOUR_API_KEY}}");
String signatureHeader = request.headers("Stripe-Signature");
String endpointSecret = "whsec_...";
com.stripe.model.ThinEvent thinEvent = client.parseThinEvent(
payload,
signatureHeader,
endpointSecret
);
com.stripe.model.v2.Event event = client.v2().core().events().retrieve(
thinEvent.getId()
);Event handler ​
javascript
const stripe = require('stripe')('{{YOUR_API_KEY}}');
const endpoint_secret = 'whsec_...'
const signature_header = '...'
const thinEvent = stripe.parseThinEvent(
payload,
signature_header,
endpoint_secret
);
const event = await stripe.v2.core.events.retrieve(thinEvent.id);Event handler ​
go
err = webhook.ValidatePayload(
payload,
signatureHeader,
endpointSecret
)
if err != nil {
fmt.Fprintf(os.Stderr, "Error reading request body: %v
", err)
return
}
var thinEvent map[string]interface{}
if err := json.Unmarshal(payload, &thinEvent); err != nil {
fmt.Fprintf(
os.Stderr,
"Failed to parse thin event body json: %v
", err.Error()
)
return
}
eventID := thinEvent["id"].(string)
var event map[string]interface{}
resp, err := client.RawRequest(
http.MethodGet,
"/v2/core/events/"+eventID,
"",
nil
)
if err != nil {
fmt.Fprintf(
os.Stderr,
"Failed to get pull event: %v
",
err.Error()
)
return
}
if err := json.Unmarshal(resp.RawJSON, &event); err != nil {
fmt.Fprintf(
os.Stderr,
"Failed to parse pull event body json: %v
",
err.Error()
)
return
}Event handler ​
dotnet
var client = new StripeClient("{{YOUR_API_KEY}}");
string endpointSecret = "whsec_...";
string signatureHeader = Request.Headers["Stripe-Signature"];
var thinEvent = client.ParseThinEvent(
payload,
signatureHeader,
endpointSecret
);
var event = await client.V2.Core.Events.GetAsync(thinEvent.Id);v2.core.account[configuration.customer].capability_status_updated ​
Occurs when the status of an Account's customer configuration capability is updated.
Related object: Account
Attributes ​
id(string) Unique identifier for the event.object(string, value is "v2.core.event") String representing the object’s type. Objects of the same type share the same value of the object field.context(string, nullable) Authentication context needed to fetch the event or related object.created(timestamp) Time at which the object was created.livemode(boolean) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.related_object(object) Object containing the reference to API resource relevant to the event.related_object.id(string) Unique identifier for the object relevant to the event.related_object.type(string, value is "v2.core.account") Object tag of the resource relevant to the event.related_object.url(string) URL to retrieve the resource.
type(string, value is "v2.core.account[configuration.customer].capability_status_updated") The type of the event.
Fetched attributes ​
changes(object) Changes that the event makes to properties in the related object. See the Account object for the structure ofbeforeandafter.changes.after(object) Updated values of properties that the event changed. This isnullfor deletion events.changes.before(object) Values of properties before the event changes. This isnullfor creation events.
data(object) Additional data about the event.data.updated_capability(enum) The capability which had its status updated. Possible enum values:automatic_indirect_taxRefers to thecustomer.capabilities.card_paymentscapability.
reason(object, nullable) Reason for the event.reason.request(object, nullable) Information on the API request that instigated the event.reason.request.id(string) ID of the API request that caused the event.reason.request.idempotency_key(string) The idempotency key transmitted during the request.
reason.type(enum) Event reason type. Possible enum values:requestThe event was published as the result of an API request.
Event handler ​
curl
# Select a client library to see examples of
# parsing and retrieving event details.Event handler ​
bash
# Select a client library to see examples of
# parsing and retrieving event details.Event handler ​
ruby
client = Stripe::StripeClient.new("{{YOUR_API_KEY}}")
endpoint_secret = 'whsec_...'
signature_header = request.env['HTTP_STRIPE_SIGNATURE']
thin_event = client.parse_thin_event(
payload,
signature_header,
endpoint_secret
)
event = client.v2.core.events.retrieve(thin_event.id)Event handler ​
python
client = StripeClient("{{YOUR_API_KEY}}")
endpoint_secret = 'whsec_...'
signature_header = ''
thin_event = client.parse_thin_event(
payload,
signature_header,
endpoint_secret
)
event = client.v2.core.events.retrieve(thin_event.id)Event handler ​
php
$stripe = new StripeStripeClient('{{YOUR_API_KEY}}');
$endpoint_secret = 'whsec_...';
$signature_header = $_SERVER['HTTP_STRIPE_SIGNATURE'];
$thin_event = $client->parseThinEvent(
$payload,
$signature_header,
$endpoint_secret
);
$event = $client->v2->core->events->retrieve($thin_event->id);Event handler ​
java
StripeClient client = new StripeClient("{{YOUR_API_KEY}}");
String signatureHeader = request.headers("Stripe-Signature");
String endpointSecret = "whsec_...";
com.stripe.model.ThinEvent thinEvent = client.parseThinEvent(
payload,
signatureHeader,
endpointSecret
);
com.stripe.model.v2.Event event = client.v2().core().events().retrieve(
thinEvent.getId()
);Event handler ​
javascript
const stripe = require('stripe')('{{YOUR_API_KEY}}');
const endpoint_secret = 'whsec_...'
const signature_header = '...'
const thinEvent = stripe.parseThinEvent(
payload,
signature_header,
endpoint_secret
);
const event = await stripe.v2.core.events.retrieve(thinEvent.id);Event handler ​
go
err = webhook.ValidatePayload(
payload,
signatureHeader,
endpointSecret
)
if err != nil {
fmt.Fprintf(os.Stderr, "Error reading request body: %v
", err)
return
}
var thinEvent map[string]interface{}
if err := json.Unmarshal(payload, &thinEvent); err != nil {
fmt.Fprintf(
os.Stderr,
"Failed to parse thin event body json: %v
", err.Error()
)
return
}
eventID := thinEvent["id"].(string)
var event map[string]interface{}
resp, err := client.RawRequest(
http.MethodGet,
"/v2/core/events/"+eventID,
"",
nil
)
if err != nil {
fmt.Fprintf(
os.Stderr,
"Failed to get pull event: %v
",
err.Error()
)
return
}
if err := json.Unmarshal(resp.RawJSON, &event); err != nil {
fmt.Fprintf(
os.Stderr,
"Failed to parse pull event body json: %v
",
err.Error()
)
return
}Event handler ​
dotnet
var client = new StripeClient("{{YOUR_API_KEY}}");
string endpointSecret = "whsec_...";
string signatureHeader = Request.Headers["Stripe-Signature"];
var thinEvent = client.ParseThinEvent(
payload,
signatureHeader,
endpointSecret
);
var event = await client.V2.Core.Events.GetAsync(thinEvent.Id);v2.core.account[configuration.customer].updated ​
Occurs when an Account's customer configuration is updated.
Related object: Account
Attributes ​
id(string) Unique identifier for the event.object(string, value is "v2.core.event") String representing the object’s type. Objects of the same type share the same value of the object field.context(string, nullable) Authentication context needed to fetch the event or related object.created(timestamp) Time at which the object was created.livemode(boolean) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.related_object(object) Object containing the reference to API resource relevant to the event.related_object.id(string) Unique identifier for the object relevant to the event.related_object.type(string, value is "v2.core.account") Object tag of the resource relevant to the event.related_object.url(string) URL to retrieve the resource.
type(string, value is "v2.core.account[configuration.customer].updated") The type of the event.
Fetched attributes ​
changes(object) Changes that the event makes to properties in the related object. See the Account object for the structure ofbeforeandafter.changes.after(object) Updated values of properties that the event changed. This isnullfor deletion events.changes.before(object) Values of properties before the event changes. This isnullfor creation events.
data(object) Additional data about the event.reason(object, nullable) Reason for the event.reason.request(object, nullable) Information on the API request that instigated the event.reason.request.id(string) ID of the API request that caused the event.reason.request.idempotency_key(string) The idempotency key transmitted during the request.
reason.type(enum) Event reason type. Possible enum values:requestThe event was published as the result of an API request.
Event handler ​
curl
# Select a client library to see examples of
# parsing and retrieving event details.Event handler ​
bash
# Select a client library to see examples of
# parsing and retrieving event details.Event handler ​
ruby
client = Stripe::StripeClient.new("{{YOUR_API_KEY}}")
endpoint_secret = 'whsec_...'
signature_header = request.env['HTTP_STRIPE_SIGNATURE']
thin_event = client.parse_thin_event(
payload,
signature_header,
endpoint_secret
)
event = client.v2.core.events.retrieve(thin_event.id)Event handler ​
python
client = StripeClient("{{YOUR_API_KEY}}")
endpoint_secret = 'whsec_...'
signature_header = ''
thin_event = client.parse_thin_event(
payload,
signature_header,
endpoint_secret
)
event = client.v2.core.events.retrieve(thin_event.id)Event handler ​
php
$stripe = new StripeStripeClient('{{YOUR_API_KEY}}');
$endpoint_secret = 'whsec_...';
$signature_header = $_SERVER['HTTP_STRIPE_SIGNATURE'];
$thin_event = $client->parseThinEvent(
$payload,
$signature_header,
$endpoint_secret
);
$event = $client->v2->core->events->retrieve($thin_event->id);Event handler ​
java
StripeClient client = new StripeClient("{{YOUR_API_KEY}}");
String signatureHeader = request.headers("Stripe-Signature");
String endpointSecret = "whsec_...";
com.stripe.model.ThinEvent thinEvent = client.parseThinEvent(
payload,
signatureHeader,
endpointSecret
);
com.stripe.model.v2.Event event = client.v2().core().events().retrieve(
thinEvent.getId()
);Event handler ​
javascript
const stripe = require('stripe')('{{YOUR_API_KEY}}');
const endpoint_secret = 'whsec_...'
const signature_header = '...'
const thinEvent = stripe.parseThinEvent(
payload,
signature_header,
endpoint_secret
);
const event = await stripe.v2.core.events.retrieve(thinEvent.id);Event handler ​
go
err = webhook.ValidatePayload(
payload,
signatureHeader,
endpointSecret
)
if err != nil {
fmt.Fprintf(os.Stderr, "Error reading request body: %v
", err)
return
}
var thinEvent map[string]interface{}
if err := json.Unmarshal(payload, &thinEvent); err != nil {
fmt.Fprintf(
os.Stderr,
"Failed to parse thin event body json: %v
", err.Error()
)
return
}
eventID := thinEvent["id"].(string)
var event map[string]interface{}
resp, err := client.RawRequest(
http.MethodGet,
"/v2/core/events/"+eventID,
"",
nil
)
if err != nil {
fmt.Fprintf(
os.Stderr,
"Failed to get pull event: %v
",
err.Error()
)
return
}
if err := json.Unmarshal(resp.RawJSON, &event); err != nil {
fmt.Fprintf(
os.Stderr,
"Failed to parse pull event body json: %v
",
err.Error()
)
return
}Event handler ​
dotnet
var client = new StripeClient("{{YOUR_API_KEY}}");
string endpointSecret = "whsec_...";
string signatureHeader = Request.Headers["Stripe-Signature"];
var thinEvent = client.ParseThinEvent(
payload,
signatureHeader,
endpointSecret
);
var event = await client.V2.Core.Events.GetAsync(thinEvent.Id);v2.core.account[configuration.merchant].capability_status_updated ​
Occurs when the status of an Account's merchant configuration capability is updated.
Related object: Account
Attributes ​
id(string) Unique identifier for the event.object(string, value is "v2.core.event") String representing the object’s type. Objects of the same type share the same value of the object field.context(string, nullable) Authentication context needed to fetch the event or related object.created(timestamp) Time at which the object was created.livemode(boolean) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.related_object(object) Object containing the reference to API resource relevant to the event.related_object.id(string) Unique identifier for the object relevant to the event.related_object.type(string, value is "v2.core.account") Object tag of the resource relevant to the event.related_object.url(string) URL to retrieve the resource.
type(string, value is "v2.core.account[configuration.merchant].capability_status_updated") The type of the event.
Fetched attributes ​
changes(object) Changes that the event makes to properties in the related object. See the Account object for the structure ofbeforeandafter.changes.after(object) Updated values of properties that the event changed. This isnullfor deletion events.changes.before(object) Values of properties before the event changes. This isnullfor creation events.
data(object) Additional data about the event.data.updated_capability(enum) The capability which had its status updated. Possible enum values:ach_debit_paymentsRefers to themerchant.capabilities.ach_debit_paymentscapability.acss_debit_paymentsRefers to themerchant.capabilities.acss_debit_paymentscapability.affirm_paymentsRefers to themerchant.capabilities.affirm_paymentscapability.afterpay_clearpay_paymentsRefers to themerchant.capabilities.afterpay_clearpay_paymentscapability.alma_paymentsRefers to themerchant.capabilities.alma_paymentscapability.amazon_pay_paymentsRefers to themerchant.capabilities.amazon_pay_paymentscapability.au_becs_debit_paymentsRefers to themerchant.capabilities.au_becs_debit_paymentscapability.bacs_debit_paymentsRefers to themerchant.capabilities.bacs_debit_paymentscapability.bancontact_paymentsRefers to themerchant.capabilities.bancontact_paymentscapability.blik_paymentsRefers to themerchant.capabilities.blik_paymentscapability.boleto_paymentsRefers to themerchant.capabilities.boleto_paymentscapability.card_paymentsRefers to themerchant.capabilities.card_paymentscapability.cartes_bancaires_paymentsRefers to themerchant.capabilities.cartes_bancaires_paymentscapability.cashapp_paymentsRefers to themerchant.capabilities.cashapp_paymentscapability.eps_paymentsRefers to themerchant.capabilities.eps_paymentscapability.fpx_paymentsRefers to themerchant.capabilities.fpx_paymentscapability.gb_bank_transfer_paymentsRefers to themerchant.capabilities.gb_bank_transfer_paymentscapability.grabpay_paymentsRefers to themerchant.capabilities.grabpay_paymentscapability.ideal_paymentsRefers to themerchant.capabilities.ideal_paymentscapability.jcb_paymentsRefers to themerchant.capabilities.jcb_paymentscapability.jp_bank_transfer_paymentsRefers to themerchant.capabilities.jp_bank_transfer_paymentscapability.kakao_pay_paymentsRefers to themerchant.capabilities.kakao_pay_paymentscapability.klarna_paymentsRefers to themerchant.capabilities.klarna_paymentscapability.konbini_paymentsRefers to themerchant.capabilities.konbini_paymentscapability.kr_card_paymentsRefers to themerchant.capabilities.kr_card_paymentscapability.link_paymentsRefers to themerchant.capabilities.link_paymentscapability.mobilepay_paymentsRefers to themerchant.capabilities.mobilepay_paymentscapability.multibanco_paymentsRefers to themerchant.capabilities.multibanco_paymentscapability.mx_bank_transfer_paymentsRefers to themerchant.capabilities.mx_bank_transfer_paymentscapability.naver_pay_paymentsRefers to themerchant.capabilities.naver_pay_paymentscapability.oxxo_paymentsRefers to themerchant.capabilities.oxxo_paymentscapability.p24_paymentsRefers to themerchant.capabilities.p24_paymentscapability.pay_by_bank_paymentsRefers to themerchant.capabilities.pay_by_bank_paymentscapability.payco_paymentsRefers to themerchant.capabilities.payco_paymentscapability.paynow_paymentsRefers to themerchant.capabilities.paynow_paymentscapability.promptpay_paymentsRefers to themerchant.capabilities.promptpay_paymentscapability.revolut_pay_paymentsRefers to themerchant.capabilities.revolut_pay_paymentscapability.samsung_pay_paymentsRefers to themerchant.capabilities.samsung_pay_paymentscapability.sepa_bank_transfer_paymentsRefers to themerchant.capabilities.sepa_bank_transfer_paymentscapability.sepa_debit_paymentsRefers to themerchant.capabilities.sepa_debit_paymentscapability.stripe_balance.payoutsRefers to themerchant.capabilities.stripe_balance.payoutscapability.swish_paymentsRefers to themerchant.capabilities.swish_paymentscapability.twint_paymentsRefers to themerchant.capabilities.twint_paymentscapability.us_bank_transfer_paymentsRefers to themerchant.capabilities.us_bank_transfer_paymentscapability.zip_paymentsRefers to themerchant.capabilities.zip_paymentscapability.
reason(object, nullable) Reason for the event.reason.request(object, nullable) Information on the API request that instigated the event.reason.request.id(string) ID of the API request that caused the event.reason.request.idempotency_key(string) The idempotency key transmitted during the request.
reason.type(enum) Event reason type. Possible enum values:requestThe event was published as the result of an API request.
Event handler ​
curl
# Select a client library to see examples of
# parsing and retrieving event details.Event handler ​
bash
# Select a client library to see examples of
# parsing and retrieving event details.Event handler ​
ruby
client = Stripe::StripeClient.new("{{YOUR_API_KEY}}")
endpoint_secret = 'whsec_...'
signature_header = request.env['HTTP_STRIPE_SIGNATURE']
thin_event = client.parse_thin_event(
payload,
signature_header,
endpoint_secret
)
event = client.v2.core.events.retrieve(thin_event.id)Event handler ​
python
client = StripeClient("{{YOUR_API_KEY}}")
endpoint_secret = 'whsec_...'
signature_header = ''
thin_event = client.parse_thin_event(
payload,
signature_header,
endpoint_secret
)
event = client.v2.core.events.retrieve(thin_event.id)Event handler ​
php
$stripe = new StripeStripeClient('{{YOUR_API_KEY}}');
$endpoint_secret = 'whsec_...';
$signature_header = $_SERVER['HTTP_STRIPE_SIGNATURE'];
$thin_event = $client->parseThinEvent(
$payload,
$signature_header,
$endpoint_secret
);
$event = $client->v2->core->events->retrieve($thin_event->id);Event handler ​
java
StripeClient client = new StripeClient("{{YOUR_API_KEY}}");
String signatureHeader = request.headers("Stripe-Signature");
String endpointSecret = "whsec_...";
com.stripe.model.ThinEvent thinEvent = client.parseThinEvent(
payload,
signatureHeader,
endpointSecret
);
com.stripe.model.v2.Event event = client.v2().core().events().retrieve(
thinEvent.getId()
);Event handler ​
javascript
const stripe = require('stripe')('{{YOUR_API_KEY}}');
const endpoint_secret = 'whsec_...'
const signature_header = '...'
const thinEvent = stripe.parseThinEvent(
payload,
signature_header,
endpoint_secret
);
const event = await stripe.v2.core.events.retrieve(thinEvent.id);Event handler ​
go
err = webhook.ValidatePayload(
payload,
signatureHeader,
endpointSecret
)
if err != nil {
fmt.Fprintf(os.Stderr, "Error reading request body: %v
", err)
return
}
var thinEvent map[string]interface{}
if err := json.Unmarshal(payload, &thinEvent); err != nil {
fmt.Fprintf(
os.Stderr,
"Failed to parse thin event body json: %v
", err.Error()
)
return
}
eventID := thinEvent["id"].(string)
var event map[string]interface{}
resp, err := client.RawRequest(
http.MethodGet,
"/v2/core/events/"+eventID,
"",
nil
)
if err != nil {
fmt.Fprintf(
os.Stderr,
"Failed to get pull event: %v
",
err.Error()
)
return
}
if err := json.Unmarshal(resp.RawJSON, &event); err != nil {
fmt.Fprintf(
os.Stderr,
"Failed to parse pull event body json: %v
",
err.Error()
)
return
}Event handler ​
dotnet
var client = new StripeClient("{{YOUR_API_KEY}}");
string endpointSecret = "whsec_...";
string signatureHeader = Request.Headers["Stripe-Signature"];
var thinEvent = client.ParseThinEvent(
payload,
signatureHeader,
endpointSecret
);
var event = await client.V2.Core.Events.GetAsync(thinEvent.Id);v2.core.account[configuration.merchant].updated ​
Occurs when an Account's merchant configuration is updated.
Related object: Account
Attributes ​
id(string) Unique identifier for the event.object(string, value is "v2.core.event") String representing the object’s type. Objects of the same type share the same value of the object field.context(string, nullable) Authentication context needed to fetch the event or related object.created(timestamp) Time at which the object was created.livemode(boolean) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.related_object(object) Object containing the reference to API resource relevant to the event.related_object.id(string) Unique identifier for the object relevant to the event.related_object.type(string, value is "v2.core.account") Object tag of the resource relevant to the event.related_object.url(string) URL to retrieve the resource.
type(string, value is "v2.core.account[configuration.merchant].updated") The type of the event.
Fetched attributes ​
changes(object) Changes that the event makes to properties in the related object. See the Account object for the structure ofbeforeandafter.changes.after(object) Updated values of properties that the event changed. This isnullfor deletion events.changes.before(object) Values of properties before the event changes. This isnullfor creation events.
data(object) Additional data about the event.reason(object, nullable) Reason for the event.reason.request(object, nullable) Information on the API request that instigated the event.reason.request.id(string) ID of the API request that caused the event.reason.request.idempotency_key(string) The idempotency key transmitted during the request.
reason.type(enum) Event reason type. Possible enum values:requestThe event was published as the result of an API request.
Event handler ​
curl
# Select a client library to see examples of
# parsing and retrieving event details.Event handler ​
bash
# Select a client library to see examples of
# parsing and retrieving event details.Event handler ​
ruby
client = Stripe::StripeClient.new("{{YOUR_API_KEY}}")
endpoint_secret = 'whsec_...'
signature_header = request.env['HTTP_STRIPE_SIGNATURE']
thin_event = client.parse_thin_event(
payload,
signature_header,
endpoint_secret
)
event = client.v2.core.events.retrieve(thin_event.id)Event handler ​
python
client = StripeClient("{{YOUR_API_KEY}}")
endpoint_secret = 'whsec_...'
signature_header = ''
thin_event = client.parse_thin_event(
payload,
signature_header,
endpoint_secret
)
event = client.v2.core.events.retrieve(thin_event.id)Event handler ​
php
$stripe = new StripeStripeClient('{{YOUR_API_KEY}}');
$endpoint_secret = 'whsec_...';
$signature_header = $_SERVER['HTTP_STRIPE_SIGNATURE'];
$thin_event = $client->parseThinEvent(
$payload,
$signature_header,
$endpoint_secret
);
$event = $client->v2->core->events->retrieve($thin_event->id);Event handler ​
java
StripeClient client = new StripeClient("{{YOUR_API_KEY}}");
String signatureHeader = request.headers("Stripe-Signature");
String endpointSecret = "whsec_...";
com.stripe.model.ThinEvent thinEvent = client.parseThinEvent(
payload,
signatureHeader,
endpointSecret
);
com.stripe.model.v2.Event event = client.v2().core().events().retrieve(
thinEvent.getId()
);Event handler ​
javascript
const stripe = require('stripe')('{{YOUR_API_KEY}}');
const endpoint_secret = 'whsec_...'
const signature_header = '...'
const thinEvent = stripe.parseThinEvent(
payload,
signature_header,
endpoint_secret
);
const event = await stripe.v2.core.events.retrieve(thinEvent.id);Event handler ​
go
err = webhook.ValidatePayload(
payload,
signatureHeader,
endpointSecret
)
if err != nil {
fmt.Fprintf(os.Stderr, "Error reading request body: %v
", err)
return
}
var thinEvent map[string]interface{}
if err := json.Unmarshal(payload, &thinEvent); err != nil {
fmt.Fprintf(
os.Stderr,
"Failed to parse thin event body json: %v
", err.Error()
)
return
}
eventID := thinEvent["id"].(string)
var event map[string]interface{}
resp, err := client.RawRequest(
http.MethodGet,
"/v2/core/events/"+eventID,
"",
nil
)
if err != nil {
fmt.Fprintf(
os.Stderr,
"Failed to get pull event: %v
",
err.Error()
)
return
}
if err := json.Unmarshal(resp.RawJSON, &event); err != nil {
fmt.Fprintf(
os.Stderr,
"Failed to parse pull event body json: %v
",
err.Error()
)
return
}Event handler ​
dotnet
var client = new StripeClient("{{YOUR_API_KEY}}");
string endpointSecret = "whsec_...";
string signatureHeader = Request.Headers["Stripe-Signature"];
var thinEvent = client.ParseThinEvent(
payload,
signatureHeader,
endpointSecret
);
var event = await client.V2.Core.Events.GetAsync(thinEvent.Id);v2.core.account[configuration.recipient].capability_status_updated ​
Occurs when the status of an Account's recipient configuration capability is updated.
Related object: Account
Attributes ​
id(string) Unique identifier for the event.object(string, value is "v2.core.event") String representing the object’s type. Objects of the same type share the same value of the object field.context(string, nullable) Authentication context needed to fetch the event or related object.created(timestamp) Time at which the object was created.livemode(boolean) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.related_object(object) Object containing the reference to API resource relevant to the event.related_object.id(string) Unique identifier for the object relevant to the event.related_object.type(string, value is "v2.core.account") Object tag of the resource relevant to the event.related_object.url(string) URL to retrieve the resource.
type(string, value is "v2.core.account[configuration.recipient].capability_status_updated") The type of the event.
Fetched attributes ​
changes(object) Changes that the event makes to properties in the related object. See the Account object for the structure ofbeforeandafter.changes.after(object) Updated values of properties that the event changed. This isnullfor deletion events.changes.before(object) Values of properties before the event changes. This isnullfor creation events.
data(object) Additional data about the event.data.updated_capability(enum) The capability which had its status updated. Possible enum values:bank_accounts.localRefers to therecipient.capabilities.bank_accounts.localcapability.bank_accounts.wireRefers to therecipient.capabilities.bank_accounts.wirecapability.cardsRefers to therecipient.capabilities.cardscapability.stripe.transfersDEPRECATED: use RECIPIENT_CONFIG__STRIPE_TRANSFERS_CAPABILITY instead - Refers to therecipient.capabilities.stripe.transferscapability.stripe_balance.payoutsRefers to therecipient.capabilities.stripe_balance.payoutscapability.stripe_balance.stripe_transfersRefers to therecipient.capabilities.stripe_balance.stripe_transferscapability.
reason(object, nullable) Reason for the event.reason.request(object, nullable) Information on the API request that instigated the event.reason.request.id(string) ID of the API request that caused the event.reason.request.idempotency_key(string) The idempotency key transmitted during the request.
reason.type(enum) Event reason type. Possible enum values:requestThe event was published as the result of an API request.
Event handler ​
curl
# Select a client library to see examples of
# parsing and retrieving event details.Event handler ​
bash
# Select a client library to see examples of
# parsing and retrieving event details.Event handler ​
ruby
client = Stripe::StripeClient.new("{{YOUR_API_KEY}}")
endpoint_secret = 'whsec_...'
signature_header = request.env['HTTP_STRIPE_SIGNATURE']
thin_event = client.parse_thin_event(
payload,
signature_header,
endpoint_secret
)
event = client.v2.core.events.retrieve(thin_event.id)Event handler ​
python
client = StripeClient("{{YOUR_API_KEY}}")
endpoint_secret = 'whsec_...'
signature_header = ''
thin_event = client.parse_thin_event(
payload,
signature_header,
endpoint_secret
)
event = client.v2.core.events.retrieve(thin_event.id)Event handler ​
php
$stripe = new StripeStripeClient('{{YOUR_API_KEY}}');
$endpoint_secret = 'whsec_...';
$signature_header = $_SERVER['HTTP_STRIPE_SIGNATURE'];
$thin_event = $client->parseThinEvent(
$payload,
$signature_header,
$endpoint_secret
);
$event = $client->v2->core->events->retrieve($thin_event->id);Event handler ​
java
StripeClient client = new StripeClient("{{YOUR_API_KEY}}");
String signatureHeader = request.headers("Stripe-Signature");
String endpointSecret = "whsec_...";
com.stripe.model.ThinEvent thinEvent = client.parseThinEvent(
payload,
signatureHeader,
endpointSecret
);
com.stripe.model.v2.Event event = client.v2().core().events().retrieve(
thinEvent.getId()
);Event handler ​
javascript
const stripe = require('stripe')('{{YOUR_API_KEY}}');
const endpoint_secret = 'whsec_...'
const signature_header = '...'
const thinEvent = stripe.parseThinEvent(
payload,
signature_header,
endpoint_secret
);
const event = await stripe.v2.core.events.retrieve(thinEvent.id);Event handler ​
go
err = webhook.ValidatePayload(
payload,
signatureHeader,
endpointSecret
)
if err != nil {
fmt.Fprintf(os.Stderr, "Error reading request body: %v
", err)
return
}
var thinEvent map[string]interface{}
if err := json.Unmarshal(payload, &thinEvent); err != nil {
fmt.Fprintf(
os.Stderr,
"Failed to parse thin event body json: %v
", err.Error()
)
return
}
eventID := thinEvent["id"].(string)
var event map[string]interface{}
resp, err := client.RawRequest(
http.MethodGet,
"/v2/core/events/"+eventID,
"",
nil
)
if err != nil {
fmt.Fprintf(
os.Stderr,
"Failed to get pull event: %v
",
err.Error()
)
return
}
if err := json.Unmarshal(resp.RawJSON, &event); err != nil {
fmt.Fprintf(
os.Stderr,
"Failed to parse pull event body json: %v
",
err.Error()
)
return
}Event handler ​
dotnet
var client = new StripeClient("{{YOUR_API_KEY}}");
string endpointSecret = "whsec_...";
string signatureHeader = Request.Headers["Stripe-Signature"];
var thinEvent = client.ParseThinEvent(
payload,
signatureHeader,
endpointSecret
);
var event = await client.V2.Core.Events.GetAsync(thinEvent.Id);v2.core.account[configuration.recipient].updated ​
Occurs when a Recipient's configuration is updated.
Related object: Account
Attributes ​
id(string) Unique identifier for the event.object(string, value is "v2.core.event") String representing the object’s type. Objects of the same type share the same value of the object field.context(string, nullable) Authentication context needed to fetch the event or related object.created(timestamp) Time at which the object was created.livemode(boolean) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.related_object(object) Object containing the reference to API resource relevant to the event.related_object.id(string) Unique identifier for the object relevant to the event.related_object.type(string, value is "v2.core.account") Object tag of the resource relevant to the event.related_object.url(string) URL to retrieve the resource.
type(string, value is "v2.core.account[configuration.recipient].updated") The type of the event.
Fetched attributes ​
changes(object) Changes that the event makes to properties in the related object. See the Account object for the structure ofbeforeandafter.changes.after(object) Updated values of properties that the event changed. This isnullfor deletion events.changes.before(object) Values of properties before the event changes. This isnullfor creation events.
data(object) Additional data about the event.reason(object, nullable) Reason for the event.reason.request(object, nullable) Information on the API request that instigated the event.reason.request.id(string) ID of the API request that caused the event.reason.request.idempotency_key(string) The idempotency key transmitted during the request.
reason.type(enum) Event reason type. Possible enum values:requestThe event was published as the result of an API request.
Event handler ​
curl
# Select a client library to see examples of
# parsing and retrieving event details.Event handler ​
bash
# Select a client library to see examples of
# parsing and retrieving event details.Event handler ​
ruby
client = Stripe::StripeClient.new("{{YOUR_API_KEY}}")
endpoint_secret = 'whsec_...'
signature_header = request.env['HTTP_STRIPE_SIGNATURE']
thin_event = client.parse_thin_event(
payload,
signature_header,
endpoint_secret
)
event = client.v2.core.events.retrieve(thin_event.id)Event handler ​
python
client = StripeClient("{{YOUR_API_KEY}}")
endpoint_secret = 'whsec_...'
signature_header = ''
thin_event = client.parse_thin_event(
payload,
signature_header,
endpoint_secret
)
event = client.v2.core.events.retrieve(thin_event.id)Event handler ​
php
$stripe = new StripeStripeClient('{{YOUR_API_KEY}}');
$endpoint_secret = 'whsec_...';
$signature_header = $_SERVER['HTTP_STRIPE_SIGNATURE'];
$thin_event = $client->parseThinEvent(
$payload,
$signature_header,
$endpoint_secret
);
$event = $client->v2->core->events->retrieve($thin_event->id);Event handler ​
java
StripeClient client = new StripeClient("{{YOUR_API_KEY}}");
String signatureHeader = request.headers("Stripe-Signature");
String endpointSecret = "whsec_...";
com.stripe.model.ThinEvent thinEvent = client.parseThinEvent(
payload,
signatureHeader,
endpointSecret
);
com.stripe.model.v2.Event event = client.v2().core().events().retrieve(
thinEvent.getId()
);Event handler ​
javascript
const stripe = require('stripe')('{{YOUR_API_KEY}}');
const endpoint_secret = 'whsec_...'
const signature_header = '...'
const thinEvent = stripe.parseThinEvent(
payload,
signature_header,
endpoint_secret
);
const event = await stripe.v2.core.events.retrieve(thinEvent.id);Event handler ​
go
err = webhook.ValidatePayload(
payload,
signatureHeader,
endpointSecret
)
if err != nil {
fmt.Fprintf(os.Stderr, "Error reading request body: %v
", err)
return
}
var thinEvent map[string]interface{}
if err := json.Unmarshal(payload, &thinEvent); err != nil {
fmt.Fprintf(
os.Stderr,
"Failed to parse thin event body json: %v
", err.Error()
)
return
}
eventID := thinEvent["id"].(string)
var event map[string]interface{}
resp, err := client.RawRequest(
http.MethodGet,
"/v2/core/events/"+eventID,
"",
nil
)
if err != nil {
fmt.Fprintf(
os.Stderr,
"Failed to get pull event: %v
",
err.Error()
)
return
}
if err := json.Unmarshal(resp.RawJSON, &event); err != nil {
fmt.Fprintf(
os.Stderr,
"Failed to parse pull event body json: %v
",
err.Error()
)
return
}Event handler ​
dotnet
var client = new StripeClient("{{YOUR_API_KEY}}");
string endpointSecret = "whsec_...";
string signatureHeader = Request.Headers["Stripe-Signature"];
var thinEvent = client.ParseThinEvent(
payload,
signatureHeader,
endpointSecret
);
var event = await client.V2.Core.Events.GetAsync(thinEvent.Id);v2.core.account[defaults].updated ​
This event occurs when account defaults are created or updated.
Related object: Account
Attributes ​
id(string) Unique identifier for the event.object(string, value is "v2.core.event") String representing the object’s type. Objects of the same type share the same value of the object field.context(string, nullable) Authentication context needed to fetch the event or related object.created(timestamp) Time at which the object was created.livemode(boolean) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.related_object(object) Object containing the reference to API resource relevant to the event.related_object.id(string) Unique identifier for the object relevant to the event.related_object.type(string, value is "v2.core.account") Object tag of the resource relevant to the event.related_object.url(string) URL to retrieve the resource.
type(string, value is "v2.core.account[defaults].updated") The type of the event.
Fetched attributes ​
changes(object) Changes that the event makes to properties in the related object. See the Account object for the structure ofbeforeandafter.changes.after(object) Updated values of properties that the event changed. This isnullfor deletion events.changes.before(object) Values of properties before the event changes. This isnullfor creation events.
data(object) Additional data about the event.reason(object, nullable) Reason for the event.reason.request(object, nullable) Information on the API request that instigated the event.reason.request.id(string) ID of the API request that caused the event.reason.request.idempotency_key(string) The idempotency key transmitted during the request.
reason.type(enum) Event reason type. Possible enum values:requestThe event was published as the result of an API request.
Event handler ​
curl
# Select a client library to see examples of
# parsing and retrieving event details.Event handler ​
bash
# Select a client library to see examples of
# parsing and retrieving event details.Event handler ​
ruby
client = Stripe::StripeClient.new("{{YOUR_API_KEY}}")
endpoint_secret = 'whsec_...'
signature_header = request.env['HTTP_STRIPE_SIGNATURE']
thin_event = client.parse_thin_event(
payload,
signature_header,
endpoint_secret
)
event = client.v2.core.events.retrieve(thin_event.id)Event handler ​
python
client = StripeClient("{{YOUR_API_KEY}}")
endpoint_secret = 'whsec_...'
signature_header = ''
thin_event = client.parse_thin_event(
payload,
signature_header,
endpoint_secret
)
event = client.v2.core.events.retrieve(thin_event.id)Event handler ​
php
$stripe = new StripeStripeClient('{{YOUR_API_KEY}}');
$endpoint_secret = 'whsec_...';
$signature_header = $_SERVER['HTTP_STRIPE_SIGNATURE'];
$thin_event = $client->parseThinEvent(
$payload,
$signature_header,
$endpoint_secret
);
$event = $client->v2->core->events->retrieve($thin_event->id);Event handler ​
java
StripeClient client = new StripeClient("{{YOUR_API_KEY}}");
String signatureHeader = request.headers("Stripe-Signature");
String endpointSecret = "whsec_...";
com.stripe.model.ThinEvent thinEvent = client.parseThinEvent(
payload,
signatureHeader,
endpointSecret
);
com.stripe.model.v2.Event event = client.v2().core().events().retrieve(
thinEvent.getId()
);Event handler ​
javascript
const stripe = require('stripe')('{{YOUR_API_KEY}}');
const endpoint_secret = 'whsec_...'
const signature_header = '...'
const thinEvent = stripe.parseThinEvent(
payload,
signature_header,
endpoint_secret
);
const event = await stripe.v2.core.events.retrieve(thinEvent.id);Event handler ​
go
err = webhook.ValidatePayload(
payload,
signatureHeader,
endpointSecret
)
if err != nil {
fmt.Fprintf(os.Stderr, "Error reading request body: %v
", err)
return
}
var thinEvent map[string]interface{}
if err := json.Unmarshal(payload, &thinEvent); err != nil {
fmt.Fprintf(
os.Stderr,
"Failed to parse thin event body json: %v
", err.Error()
)
return
}
eventID := thinEvent["id"].(string)
var event map[string]interface{}
resp, err := client.RawRequest(
http.MethodGet,
"/v2/core/events/"+eventID,
"",
nil
)
if err != nil {
fmt.Fprintf(
os.Stderr,
"Failed to get pull event: %v
",
err.Error()
)
return
}
if err := json.Unmarshal(resp.RawJSON, &event); err != nil {
fmt.Fprintf(
os.Stderr,
"Failed to parse pull event body json: %v
",
err.Error()
)
return
}Event handler ​
dotnet
var client = new StripeClient("{{YOUR_API_KEY}}");
string endpointSecret = "whsec_...";
string signatureHeader = Request.Headers["Stripe-Signature"];
var thinEvent = client.ParseThinEvent(
payload,
signatureHeader,
endpointSecret
);
var event = await client.V2.Core.Events.GetAsync(thinEvent.Id);v2.core.account[future_requirements].updated ​
Occurs when an Account's future requirements are updated.
Related object: Account
Attributes ​
id(string) Unique identifier for the event.object(string, value is "v2.core.event") String representing the object’s type. Objects of the same type share the same value of the object field.context(string, nullable) Authentication context needed to fetch the event or related object.created(timestamp) Time at which the object was created.livemode(boolean) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.related_object(object) Object containing the reference to API resource relevant to the event.related_object.id(string) Unique identifier for the object relevant to the event.related_object.type(string, value is "v2.core.account") Object tag of the resource relevant to the event.related_object.url(string) URL to retrieve the resource.
type(string, value is "v2.core.account[future_requirements].updated") The type of the event.
Fetched attributes ​
changes(object) Changes that the event makes to properties in the related object. See the Account object for the structure ofbeforeandafter.changes.after(object) Updated values of properties that the event changed. This isnullfor deletion events.changes.before(object) Values of properties before the event changes. This isnullfor creation events.
data(object) Additional data about the event.reason(object, nullable) Reason for the event.reason.request(object, nullable) Information on the API request that instigated the event.reason.request.id(string) ID of the API request that caused the event.reason.request.idempotency_key(string) The idempotency key transmitted during the request.
reason.type(enum) Event reason type. Possible enum values:requestThe event was published as the result of an API request.
Event handler ​
curl
# Select a client library to see examples of
# parsing and retrieving event details.Event handler ​
bash
# Select a client library to see examples of
# parsing and retrieving event details.Event handler ​
ruby
client = Stripe::StripeClient.new("{{YOUR_API_KEY}}")
endpoint_secret = 'whsec_...'
signature_header = request.env['HTTP_STRIPE_SIGNATURE']
thin_event = client.parse_thin_event(
payload,
signature_header,
endpoint_secret
)
event = client.v2.core.events.retrieve(thin_event.id)Event handler ​
python
client = StripeClient("{{YOUR_API_KEY}}")
endpoint_secret = 'whsec_...'
signature_header = ''
thin_event = client.parse_thin_event(
payload,
signature_header,
endpoint_secret
)
event = client.v2.core.events.retrieve(thin_event.id)Event handler ​
php
$stripe = new StripeStripeClient('{{YOUR_API_KEY}}');
$endpoint_secret = 'whsec_...';
$signature_header = $_SERVER['HTTP_STRIPE_SIGNATURE'];
$thin_event = $client->parseThinEvent(
$payload,
$signature_header,
$endpoint_secret
);
$event = $client->v2->core->events->retrieve($thin_event->id);Event handler ​
java
StripeClient client = new StripeClient("{{YOUR_API_KEY}}");
String signatureHeader = request.headers("Stripe-Signature");
String endpointSecret = "whsec_...";
com.stripe.model.ThinEvent thinEvent = client.parseThinEvent(
payload,
signatureHeader,
endpointSecret
);
com.stripe.model.v2.Event event = client.v2().core().events().retrieve(
thinEvent.getId()
);Event handler ​
javascript
const stripe = require('stripe')('{{YOUR_API_KEY}}');
const endpoint_secret = 'whsec_...'
const signature_header = '...'
const thinEvent = stripe.parseThinEvent(
payload,
signature_header,
endpoint_secret
);
const event = await stripe.v2.core.events.retrieve(thinEvent.id);Event handler ​
go
err = webhook.ValidatePayload(
payload,
signatureHeader,
endpointSecret
)
if err != nil {
fmt.Fprintf(os.Stderr, "Error reading request body: %v
", err)
return
}
var thinEvent map[string]interface{}
if err := json.Unmarshal(payload, &thinEvent); err != nil {
fmt.Fprintf(
os.Stderr,
"Failed to parse thin event body json: %v
", err.Error()
)
return
}
eventID := thinEvent["id"].(string)
var event map[string]interface{}
resp, err := client.RawRequest(
http.MethodGet,
"/v2/core/events/"+eventID,
"",
nil
)
if err != nil {
fmt.Fprintf(
os.Stderr,
"Failed to get pull event: %v
",
err.Error()
)
return
}
if err := json.Unmarshal(resp.RawJSON, &event); err != nil {
fmt.Fprintf(
os.Stderr,
"Failed to parse pull event body json: %v
",
err.Error()
)
return
}Event handler ​
dotnet
var client = new StripeClient("{{YOUR_API_KEY}}");
string endpointSecret = "whsec_...";
string signatureHeader = Request.Headers["Stripe-Signature"];
var thinEvent = client.ParseThinEvent(
payload,
signatureHeader,
endpointSecret
);
var event = await client.V2.Core.Events.GetAsync(thinEvent.Id);v2.core.account[identity].updated ​
Occurs when an Identity is updated.
Related object: Account
Attributes ​
id(string) Unique identifier for the event.object(string, value is "v2.core.event") String representing the object’s type. Objects of the same type share the same value of the object field.context(string, nullable) Authentication context needed to fetch the event or related object.created(timestamp) Time at which the object was created.livemode(boolean) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.related_object(object) Object containing the reference to API resource relevant to the event.related_object.id(string) Unique identifier for the object relevant to the event.related_object.type(string, value is "v2.core.account") Object tag of the resource relevant to the event.related_object.url(string) URL to retrieve the resource.
type(string, value is "v2.core.account[identity].updated") The type of the event.
Fetched attributes ​
changes(object) Changes that the event makes to properties in the related object. See the Account object for the structure ofbeforeandafter.changes.after(object) Updated values of properties that the event changed. This isnullfor deletion events.changes.before(object) Values of properties before the event changes. This isnullfor creation events.
data(object) Additional data about the event.reason(object, nullable) Reason for the event.reason.request(object, nullable) Information on the API request that instigated the event.reason.request.id(string) ID of the API request that caused the event.reason.request.idempotency_key(string) The idempotency key transmitted during the request.
reason.type(enum) Event reason type. Possible enum values:requestThe event was published as the result of an API request.
Event handler ​
curl
# Select a client library to see examples of
# parsing and retrieving event details.Event handler ​
bash
# Select a client library to see examples of
# parsing and retrieving event details.Event handler ​
ruby
client = Stripe::StripeClient.new("{{YOUR_API_KEY}}")
endpoint_secret = 'whsec_...'
signature_header = request.env['HTTP_STRIPE_SIGNATURE']
thin_event = client.parse_thin_event(
payload,
signature_header,
endpoint_secret
)
event = client.v2.core.events.retrieve(thin_event.id)Event handler ​
python
client = StripeClient("{{YOUR_API_KEY}}")
endpoint_secret = 'whsec_...'
signature_header = ''
thin_event = client.parse_thin_event(
payload,
signature_header,
endpoint_secret
)
event = client.v2.core.events.retrieve(thin_event.id)Event handler ​
php
$stripe = new StripeStripeClient('{{YOUR_API_KEY}}');
$endpoint_secret = 'whsec_...';
$signature_header = $_SERVER['HTTP_STRIPE_SIGNATURE'];
$thin_event = $client->parseThinEvent(
$payload,
$signature_header,
$endpoint_secret
);
$event = $client->v2->core->events->retrieve($thin_event->id);Event handler ​
java
StripeClient client = new StripeClient("{{YOUR_API_KEY}}");
String signatureHeader = request.headers("Stripe-Signature");
String endpointSecret = "whsec_...";
com.stripe.model.ThinEvent thinEvent = client.parseThinEvent(
payload,
signatureHeader,
endpointSecret
);
com.stripe.model.v2.Event event = client.v2().core().events().retrieve(
thinEvent.getId()
);Event handler ​
javascript
const stripe = require('stripe')('{{YOUR_API_KEY}}');
const endpoint_secret = 'whsec_...'
const signature_header = '...'
const thinEvent = stripe.parseThinEvent(
payload,
signature_header,
endpoint_secret
);
const event = await stripe.v2.core.events.retrieve(thinEvent.id);Event handler ​
go
err = webhook.ValidatePayload(
payload,
signatureHeader,
endpointSecret
)
if err != nil {
fmt.Fprintf(os.Stderr, "Error reading request body: %v
", err)
return
}
var thinEvent map[string]interface{}
if err := json.Unmarshal(payload, &thinEvent); err != nil {
fmt.Fprintf(
os.Stderr,
"Failed to parse thin event body json: %v
", err.Error()
)
return
}
eventID := thinEvent["id"].(string)
var event map[string]interface{}
resp, err := client.RawRequest(
http.MethodGet,
"/v2/core/events/"+eventID,
"",
nil
)
if err != nil {
fmt.Fprintf(
os.Stderr,
"Failed to get pull event: %v
",
err.Error()
)
return
}
if err := json.Unmarshal(resp.RawJSON, &event); err != nil {
fmt.Fprintf(
os.Stderr,
"Failed to parse pull event body json: %v
",
err.Error()
)
return
}Event handler ​
dotnet
var client = new StripeClient("{{YOUR_API_KEY}}");
string endpointSecret = "whsec_...";
string signatureHeader = Request.Headers["Stripe-Signature"];
var thinEvent = client.ParseThinEvent(
payload,
signatureHeader,
endpointSecret
);
var event = await client.V2.Core.Events.GetAsync(thinEvent.Id);v2.core.account[requirements].updated ​
Occurs when an Account's requirements are updated.
Related object: Account
Attributes ​
id(string) Unique identifier for the event.object(string, value is "v2.core.event") String representing the object’s type. Objects of the same type share the same value of the object field.context(string, nullable) Authentication context needed to fetch the event or related object.created(timestamp) Time at which the object was created.livemode(boolean) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.related_object(object) Object containing the reference to API resource relevant to the event.related_object.id(string) Unique identifier for the object relevant to the event.related_object.type(string, value is "v2.core.account") Object tag of the resource relevant to the event.related_object.url(string) URL to retrieve the resource.
type(string, value is "v2.core.account[requirements].updated") The type of the event.
Fetched attributes ​
changes(object) Changes that the event makes to properties in the related object. See the Account object for the structure ofbeforeandafter.changes.after(object) Updated values of properties that the event changed. This isnullfor deletion events.changes.before(object) Values of properties before the event changes. This isnullfor creation events.
data(object) Additional data about the event.reason(object, nullable) Reason for the event.reason.request(object, nullable) Information on the API request that instigated the event.reason.request.id(string) ID of the API request that caused the event.reason.request.idempotency_key(string) The idempotency key transmitted during the request.
reason.type(enum) Event reason type. Possible enum values:requestThe event was published as the result of an API request.
Event handler ​
curl
# Select a client library to see examples of
# parsing and retrieving event details.Event handler ​
bash
# Select a client library to see examples of
# parsing and retrieving event details.Event handler ​
ruby
client = Stripe::StripeClient.new("{{YOUR_API_KEY}}")
endpoint_secret = 'whsec_...'
signature_header = request.env['HTTP_STRIPE_SIGNATURE']
thin_event = client.parse_thin_event(
payload,
signature_header,
endpoint_secret
)
event = client.v2.core.events.retrieve(thin_event.id)Event handler ​
python
client = StripeClient("{{YOUR_API_KEY}}")
endpoint_secret = 'whsec_...'
signature_header = ''
thin_event = client.parse_thin_event(
payload,
signature_header,
endpoint_secret
)
event = client.v2.core.events.retrieve(thin_event.id)Event handler ​
php
$stripe = new StripeStripeClient('{{YOUR_API_KEY}}');
$endpoint_secret = 'whsec_...';
$signature_header = $_SERVER['HTTP_STRIPE_SIGNATURE'];
$thin_event = $client->parseThinEvent(
$payload,
$signature_header,
$endpoint_secret
);
$event = $client->v2->core->events->retrieve($thin_event->id);Event handler ​
java
StripeClient client = new StripeClient("{{YOUR_API_KEY}}");
String signatureHeader = request.headers("Stripe-Signature");
String endpointSecret = "whsec_...";
com.stripe.model.ThinEvent thinEvent = client.parseThinEvent(
payload,
signatureHeader,
endpointSecret
);
com.stripe.model.v2.Event event = client.v2().core().events().retrieve(
thinEvent.getId()
);Event handler ​
javascript
const stripe = require('stripe')('{{YOUR_API_KEY}}');
const endpoint_secret = 'whsec_...'
const signature_header = '...'
const thinEvent = stripe.parseThinEvent(
payload,
signature_header,
endpoint_secret
);
const event = await stripe.v2.core.events.retrieve(thinEvent.id);Event handler ​
go
err = webhook.ValidatePayload(
payload,
signatureHeader,
endpointSecret
)
if err != nil {
fmt.Fprintf(os.Stderr, "Error reading request body: %v
", err)
return
}
var thinEvent map[string]interface{}
if err := json.Unmarshal(payload, &thinEvent); err != nil {
fmt.Fprintf(
os.Stderr,
"Failed to parse thin event body json: %v
", err.Error()
)
return
}
eventID := thinEvent["id"].(string)
var event map[string]interface{}
resp, err := client.RawRequest(
http.MethodGet,
"/v2/core/events/"+eventID,
"",
nil
)
if err != nil {
fmt.Fprintf(
os.Stderr,
"Failed to get pull event: %v
",
err.Error()
)
return
}
if err := json.Unmarshal(resp.RawJSON, &event); err != nil {
fmt.Fprintf(
os.Stderr,
"Failed to parse pull event body json: %v
",
err.Error()
)
return
}Event handler ​
dotnet
var client = new StripeClient("{{YOUR_API_KEY}}");
string endpointSecret = "whsec_...";
string signatureHeader = Request.Headers["Stripe-Signature"];
var thinEvent = client.ParseThinEvent(
payload,
signatureHeader,
endpointSecret
);
var event = await client.V2.Core.Events.GetAsync(thinEvent.Id);