curl --request POST \
--url https://api.withflex.com/v1/events/{id}/retry \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"event": {
"webhook_id": "<string>"
}
}
'{
"event": {
"event_id": "<string>",
"event_type": "account.updated",
"object": {
"customer": {
"customer_id": "fcus_01HACM7FZ1084XB1GB6053VM0D",
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]",
"created_at": "<string>",
"test_mode": true,
"phone": "+15555555555",
"employer": "Flex",
"shipping": {
"shipping_address_id": "<string>",
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>"
},
"metadata": {}
}
},
"test_mode": true,
"created_at": "<string>"
}
}Retry sending an exisitng event
curl --request POST \
--url https://api.withflex.com/v1/events/{id}/retry \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"event": {
"webhook_id": "<string>"
}
}
'{
"event": {
"event_id": "<string>",
"event_type": "account.updated",
"object": {
"customer": {
"customer_id": "fcus_01HACM7FZ1084XB1GB6053VM0D",
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]",
"created_at": "<string>",
"test_mode": true,
"phone": "+15555555555",
"employer": "Flex",
"shipping": {
"shipping_address_id": "<string>",
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>"
},
"metadata": {}
}
},
"test_mode": true,
"created_at": "<string>"
}
}Use a Bearer token to access this API.
Show child attributes
Unique identifier for the event
Type of the event
account.updated, charge.dispute.closed, charge.dispute.created, charge.dispute.funds_reinstated, charge.dispute.funds_withdrawn, charge.dispute.updated, charge.failed, charge.pending, charge.refund.updated, charge.refunded, charge.captured, charge.expired, charge.updated, charge.succeeded, checkout.session.completed, checkout.session.async_payment_succeeded, checkout.session.async_payment_failed, checkout.session.refunded, customer.created, customer.deleted, customer.subscription.updated, customer.subscription.deleted, customer.subscription.created, invoice.created, invoice.finalized, invoice.paid, invoice.updated, invoice.payment_succeeded, invoice.payment_failed, payment_intent.succeeded, payment_intent.created, payment_intent.payment_failed, payment_intent.amount_capturable_updated, payment_intent.canceled, payment_intent.processing, payment_intent.requires_action, payment_intent.requires_capture, payment_method.attached, payment_method.automatically_updated, payment_method.detached, payment_method.updated, payout.created, refund.created, refund.updated, setup_intent.succeeded, setup_intent.created, setup_intent.setup_failed, setup_intent.requires_action, setup_intent.canceled, transfer.created, transfer.failed, transfer.paid, transfer.reversed, transfer.updated Object associated with the event
Show child attributes
Show child attributes
The unique identifier for the customer.
"fcus_01HACM7FZ1084XB1GB6053VM0D"
The customer's first name.
"John"
The customer's last name.
"Doe"
The customer's email address.
The time the customer was created.
Whether the customer was created in test mode.
The customer's phone number.
"+15555555555"
The customer's employer.
"Flex"
The customer's shipping address.
Show child attributes
Whether the event is test mode or not
Timestamp of the event