Référence API
- Intro
- Environments
- Test cards
- Postman setup
- Errors
- API Principale
- Authentification
- Sessions
- Commandes
- Webhooks
- Rapports
- V1
Tokenisation
- Intro
- Clients
- Session
Postv2webhooks
Événements Webhook valides
Nous acceptons les événements Webhook suivants
Événement | Déclencheur |
---|---|
customer.tokenized | Un client est tokenisé |
order.authorized | Une commande est autorisée par Sezzle |
order.captured | Une commande est capturée par Sezzle |
order.refunded | Une commande est remboursée par Sezzle |
dispute.merchant_input_requested | Un litige est déposé par un acheteur et l’intervention du marchand est requise |
dispute.deadline_approaching | Un litige est passé en avis final par Sezzle |
dispute.closed.customer_win | L’acheteur gagne le litige et la commande est remboursée |
dispute.closed.merchant_win | Le marchand gagne le litige et il est résolu en sa faveur |
dispute.closed.neutral | Aucun gagnant clair n’est déterminé et le litige est résolu de manière neutre |
Charge utile de la requête Webhook
Identifiant unique pour l’événement webhook.
Horodatage (ISO 8601) lorsque l’événement a été généré.
Type de l’événement
Options disponibles :customer.tokenized
,order.authorized
,order.captured
,order.refunded
,dispute.merchant_input_requested
,dispute.deadline_approaching
,dispute.closed.customer_win
,dispute.closed.merchant_win
,dispute.closed.neutral
Type de données associées à l’événement.
Options disponibles :customer
,order
,dispute
Données de charge utile spécifiques au type d’événement. Voir les options dans l’accordéon applicable ci-dessous.
Exemples par événement
{
"uuid": string,
"created_at": string,
"event": string,
"data_type": string,
"data": {
"token": string,
"expiration": string,
"customer": {
"uuid": string,
"created_at": string,
"expiration": string
}
}
}
{
"uuid": string,
"created_at": string,
"event": string,
"data_type": string,
"data": {
"token": string,
"expiration": string,
"customer": {
"uuid": string,
"created_at": string,
"expiration": string
}
}
}
{
"uuid": "e41c32d5-687d-414f-b5c6-d089bea52e7d",
"created_at": "2025-04-12T00:11:01.749261Z",
"event": "customer.tokenized",
"data_type": "tokenize",
"data": {
"token": "ce56604a-5dfd-489a-80e9-753d0325dd46",
"expiration": "2025-04-12T00:41:01.745145Z",
"customer": {
"uuid": "e0003e6a-7234-4440-9265-61906e8b8879",
"created_at": "2025-04-12T00:11:01.745145Z",
"expiration": "2026-04-12T00:11:01.745145Z"
}
}
}
Le jeton de requête du marchand.
La date et l’heure d’expiration du jeton.
{
"uuid": string,
"created_at": string,
"event": string,
"data_type": string,
"data": {
"uuid": string,
"authorization": {
"uuid": string,
"created_at": string,
"authorization_amount": {
"amount_in_cents": integer,
"currency": string
},
"approved": boolean,
"expiration": string
}
}
}
{
"uuid": string,
"created_at": string,
"event": string,
"data_type": string,
"data": {
"uuid": string,
"authorization": {
"uuid": string,
"created_at": string,
"authorization_amount": {
"amount_in_cents": integer,
"currency": string
},
"approved": boolean,
"expiration": string
}
}
}
{
"uuid": "fdb263a1-a1dd-4feb-8749-c8a447977ebb",
"created_at": "2025-04-12T00:15:39.281826Z",
"event": "order.authorized",
"data_type": "order",
"data": {
"uuid": "f36605a0-4a96-46d1-9d01-a0b17140dc57",
"authorization": {
"uuid": "28ef487d-8398-43bb-8354-5ebdd1eb7b40",
"created_at": "2025-04-12T00:15:39.276841Z",
"authorization_amount": {
"amount_in_cents": 5000,
"currency": "USD"
},
"approved": true,
"expiration": "2025-04-12T00:45:39.276841Z"
}
}
}
L’identifiant unique pour la commande.
Contient les détails de la réponse d’autorisation.
L’identifiant unique pour l’autorisation.
Horodatage ISO 8601 lorsque l’autorisation a été créée.
Indique si l’autorisation a été approuvée.
Horodatage ISO 8601 lorsque l’autorisation expirera.
{
"uuid": string,
"created_at": string,
"event": string,
"data_type": string,
"data": {
"uuid": string,
"capture": {
"uuid": string,
"created_at": string,
"amount": {
"amount_in_cents": integer,
"currency": string
}
}
}
}
{
"uuid": string,
"created_at": string,
"event": string,
"data_type": string,
"data": {
"uuid": string,
"capture": {
"uuid": string,
"created_at": string,
"amount": {
"amount_in_cents": integer,
"currency": string
}
}
}
}
{
"uuid": "6ee025c6-8acf-48fe-a6d6-b51693d64c60",
"created_at": "2025-04-12T00:20:07.44668Z",
"event": "order.captured",
"data_type": "order",
"data": {
"uuid": "b87305a1-6be3-4877-bcf0-2b5b7dfaeaf0",
"capture": {
"uuid": "b69b1ba8-e977-4f26-9253-06f14d941696",
"created_at": "2025-04-12T00:20:07.438365Z",
"amount": {
"amount_in_cents": 3000,
"currency": "USD"
}
}
}
}
L’identifiant unique pour la commande.
Contient les détails de la transaction de capture.
{
"uuid": string,
"created_at": string,
"event": string,
"data_type": string,
"data": {
"uuid": string,
"refund": {
"uuid": string,
"created_at": string,
"amount": {
"amount_in_cents": integer,
"currency": string
}
}
}
}
{
"uuid": string,
"created_at": string,
"event": string,
"data_type": string,
"data": {
"uuid": string,
"refund": {
"uuid": string,
"created_at": string,
"amount": {
"amount_in_cents": integer,
"currency": string
}
}
}
}
{
"uuid": "ed89f046-f55e-4fdd-9f65-ec3d8e961f99",
"created_at": "2025-04-12T00:24:39.809499Z",
"event": "order.refunded",
"data_type": "order",
"data": {
"uuid": "b69f882d-06c3-4f2e-b6e3-ce7a6c46e455",
"refund": {
"uuid": "479e9d25-d0a5-49df-a2d3-6ca1d75b8c57",
"created_at": "2025-04-12T00:24:39.805651Z",
"amount": {
"amount_in_cents": 500,
"currency": "USD"
}
}
}
}
L’identifiant unique pour la commande.
Contient les détails de la transaction de remboursement.
L’identifiant unique pour le remboursement.
Horodatage ISO 8601 lorsque le remboursement a été créé.
Ce qui suit s’applique aux webhooks suivants :
dispute.merchant_input_requested
dispute.deadline_approaching
dispute.closed.customer_win
dispute.closed.merchant_win
dispute.closed.neutral
{
"uuid": string,
"created_at": string,
"event": string,
"data_type": string,
"data": {
"customer_name": string,
"order_uuid": string,
"order_reference_id": string,
"order_date": string,
"dispute_type": string,
"dispute_due_date": string,
"dispute_id": integer,
"dispute_amount_in_cents": integer,
"dispute_currency": string,
"dispute_status": string
}
}
{
"uuid": string,
"created_at": string,
"event": string,
"data_type": string,
"data": {
"customer_name": string,
"order_uuid": string,
"order_reference_id": string,
"order_date": string,
"dispute_type": string,
"dispute_due_date": string,
"dispute_id": integer,
"dispute_amount_in_cents": integer,
"dispute_currency": string,
"dispute_status": string
}
}
{
"uuid": "79f1e9cd-f1ef-42fa-b7b4-2ed8d9e9fae8",
"created_at": "2025-04-11T17:22:22.717757Z",
"event": "dispute.merchant_input_requested",
"data_type": "dispute",
"data": {
"customer_name": "John Doe",
"order_uuid": "e17280f3-d575-4bc2-99ff-ff881df7b137",
"order_reference_id": "order-reference-id-123",
"order_date": "2024-08-20",
"dispute_type": "No Product Or Service",
"dispute_due_date": "2025-04-08",
"dispute_id": 132,
"dispute_amount_in_cents": 2500,
"dispute_currency": "USD",
"dispute_status": "Closed All Win"
}
}
Le nom du client qui a déposé le litige.
L’identifiant unique pour la commande contestée.
L’ID de référence de la commande
La date ISO 8601 (AAAA-MM-JJ) à laquelle la commande a été passée.
La catégorie ou la raison du litige (par exemple, “Pas de produit ou service”).
La date limite (date ISO 8601) pour la réponse du marchand ou l’action sur le litige.
L’ID unique pour le litige
Le prix du litige en centimes
Code de devise ISO 4217 (par exemple, USD).
Le statut du litige
Options disponibles :Awaiting Merchant Response
,Merchant Final Notice
,Closed Merchant Loss
,Closed Customer Loss
,Closed All Win