Tint API
Search…
POLICY:PAYMENT
This webhook is called as soon as a new payment is registered on a policy. It is triggered whatever the payment status: it will be sent even if the payment fails.
1
{
2
"trigger": {
3
"event": "POLICY:PAYMENT",
4
"payload": {
5
"id": "e5ccf825-5bd7-48ca-b7a1-c86dd0425456",
6
"date": "2021-11-03T07:06:15.947Z",
7
"amount": 50,
8
"status": "SUCCEEDED",
9
"billing_period_start_date": "2021-11-01T00:00:00.000Z"
10
}
11
},
12
"policy": {
13
"id": "080949ea-0de3-4690-8cb4-6f558118d7e5",
14
"session_identifier": {
15
"user_id": "unique-user-id"
16
},
17
"insurance_product_version": {
18
"id": "38855d0d-4305-468c-bde7-5246f82667bd",
19
"name": "+10 margin (Jan. 2021)",
20
"traffic_rate": 0.75
21
},
22
"policy_details": {
23
"custom_id": "P-7600BN1",
24
"mileage": 76,
25
"start_date": "2019-10-30T12:00:00.00Z",
26
"end_date": "2019-11-02T12:00:00.00Z",
27
"asset": {
28
"custom_id": "T-09918",
29
"type": "car",
30
"vehicle_make": "Toyota",
31
"vehicle_model": "Camry",
32
"vehicle_year": 2018
33
},
34
"renter": {
35
"custom_id": "U-73610",
36
"email_address": "[email protected]"
37
},
38
"payment": {
39
"id": "P-VS84990",
40
"bank": "Bank of America",
41
"name_on_card": "John Doe",
42
"card_brand": "VISA",
43
"card_type": "credit",
44
"success": true,
45
"cvc_check_success": true,
46
"zip_check_success": true,
47
"extra": {}
48
}
49
},
50
"created_at": "2019-09-17T00:00:00.00Z",
51
"updated_at": "2019-09-18T00:00:00.00Z",
52
"confirmed_at": "2020-12-01T09:44:23.924Z",
53
"issued_at": "2020-12-01T09:44:23.924Z",
54
"subscribed_quote": {
55
"id": "797ea252-8ee1-4583-b166-7f4ff4a00776",
56
"end_user_written_premium": 49,
57
"insurance_plan": {
58
"id": "eb6d91f6-8ce7-4658-9c26-32ede3342618",
59
"name": "Peace of Mind",
60
"custom_attributes": {}
61
},
62
"coverages": {
63
"physical-damage": {
64
"name": "Physical Damage",
65
"description": null,
66
"premium": 59,
67
"limit": 1000000,
68
"deductible": 1500,
69
"security_deposit": 3000,
70
"custom_attributes": {}
71
}
72
}
73
},
74
"effective_date": "2020-05-01T12:00:00.000Z",
75
"term_end_date": "2020-05-09T12:00:00.000Z",
76
"cancelled_at": null
77
}
78
}
Copied!
Copy link