Invoice Status Draft

An invoice’s status was changed to draft

Payload

The payload of this webhook request is an object.
eventTypestringRequired
invoiceobjectRequired
userobjectOptional

User who initiated the change.

Response

200
any
Return a 200 status to indicate that the data was received successfully.
Payload
1{
2 "eventType": "invoice.status.draft",
3 "invoice": {
4 "id": "inv_26e7b5d3-a739-4b23-9ad9-6aaa085f47a9",
5 "status": "DRAFT",
6 "paymentDestinationConfirmed": true,
7 "hasDocuments": true,
8 "hasSourceEmail": true,
9 "approvers": [],
10 "approvalPolicy": [],
11 "metadata": {},
12 "createdAt": "2021-01-01T00:00:00Z",
13 "updatedAt": "2021-01-01T00:00:00Z",
14 "payerId": "ent_8545a84e-a45f-41bf-bdf1-33b42a55812c",
15 "payer": {
16 "acceptedTos": true,
17 "accountType": "business",
18 "createdAt": "2024-01-01T00:00:00Z",
19 "email": "customer@acme.com",
20 "id": "ent_8545a84e-a45f-41bf-bdf1-33b42a55812c",
21 "isCustomer": true,
22 "isNetworkPayee": false,
23 "isNetworkPayor": false,
24 "isPayee": false,
25 "isPayor": true,
26 "name": "Acme Inc.",
27 "profile": {
28 "business": {
29 "legalBusinessName": "Acme Inc.",
30 "taxIDProvided": true,
31 "email": "customer@acme.com",
32 "businessType": "llc",
33 "phone": {
34 "countryCode": "1",
35 "number": "4155551234"
36 },
37 "address": {
38 "addressLine1": "123 Main St",
39 "city": "San Francisco",
40 "stateOrProvince": "CA",
41 "postalCode": "94105",
42 "addressLine2": "Unit 1",
43 "country": "US"
44 },
45 "ownersProvided": true,
46 "taxId": {
47 "ein": {
48 "number": "12-3456789"
49 }
50 }
51 }
52 },
53 "status": "verified",
54 "updatedAt": "2024-01-02T00:00:00Z",
55 "accounts": [
56 {
57 "accountId": "85866843",
58 "postalCode": "94105",
59 "nameOnAccount": "John Doe"
60 }
61 ],
62 "counterpartyType": [
63 "ENTITY"
64 ],
65 "foreignId": "MY-DB-ID-12345",
66 "paymentMethods": [
67 {
68 "type": "bankAccount",
69 "accountName": "My Checking Account",
70 "accountNumber": "99988767623",
71 "accountType": "CHECKING",
72 "bankName": "Chase",
73 "createdAt": "2021-01-01T00:00:00Z",
74 "frozen": false,
75 "id": "pm_4794d597-70dc-4fec-b6ec-c5988e759769",
76 "isDefaultDestination": true,
77 "isDefaultSource": true,
78 "metadata": {},
79 "routingNumber": "12345678",
80 "status": "VERIFIED",
81 "supportedCurrencies": [
82 "USD"
83 ],
84 "updatedAt": "2021-01-01T00:00:00Z"
85 }
86 ]
87 }
88 },
89 "user": {
90 "id": "user_ec3aafc8-ea86-408a-a6c1-545497badbbb",
91 "roles": [
92 "admin",
93 "approver"
94 ],
95 "createdAt": "2024-01-01T00:00:00Z",
96 "updatedAt": "2024-01-01T00:00:00Z",
97 "foreignId": "MY-DB-ID-12345",
98 "email": "john.doe@acme.com",
99 "name": "John Doe"
100 }
101}