forked from StellarSplit/StellarSplit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi-payload-fixtures.json
More file actions
96 lines (96 loc) · 2.68 KB
/
Copy pathapi-payload-fixtures.json
File metadata and controls
96 lines (96 loc) · 2.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{
"splits": {
"create": {
"request": {
"totalAmount": 450.00,
"description": "Dinner at Nobu",
"creatorWalletAddress": "GCREATORWALLETADDRESS",
"preferredCurrency": "USD",
"dueDate": "2026-04-01T18:00:00.000Z",
"participants": [
{
"userId": "c65916df-0e49-4cfe-a3e8-a96c7da7c34a",
"amountOwed": 225.00,
"walletAddress": "GABC1234WALLETADDRESS"
}
]
},
"response": {
"id": "91d71dcb-59f8-40c6-8e06-e3e408069e62",
"totalAmount": 450.00,
"amountPaid": 0,
"status": "active",
"isFrozen": false,
"description": "Dinner at Nobu",
"preferredCurrency": "USD",
"creatorWalletAddress": "GCREATORWALLETADDRESS",
"dueDate": "2026-04-01T18:00:00.000Z",
"createdAt": "2026-03-20T10:00:00.000Z",
"updatedAt": "2026-03-20T10:00:00.000Z",
"items": [],
"participants": [
{
"id": "6f0f6b90-07dc-42b7-bfca-a37b3db6e4c2",
"splitId": "91d71dcb-59f8-40c6-8e06-e3e408069e62",
"userId": "c65916df-0e49-4cfe-a3e8-a96c7da7c34a",
"amountOwed": 225.00,
"amountPaid": 0,
"status": "pending",
"walletAddress": "GABC1234WALLETADDRESS",
"createdAt": "2026-03-20T10:00:00.000Z",
"updatedAt": "2026-03-20T10:00:00.000Z"
}
]
}
},
"finalize_draft": {
"request": {
"splitType": "equal",
"participantIds": ["c65916df-0e49-4cfe-a3e8-a96c7da7c34a", "d76027ef-60f9-50d7-9f07-f4f509070f73"],
"tax": 15.00,
"tip": 45.00,
"tipDistribution": "proportional"
}
}
},
"items": {
"create": {
"request": {
"name": "Sashimi Platter",
"quantity": 1,
"unitPrice": 120.00,
"totalPrice": 120.00,
"category": "food",
"assignedToIds": ["c65916df-0e49-4cfe-a3e8-a96c7da7c34a"]
}
}
},
"payments": {
"submit": {
"request": {
"splitId": "91d71dcb-59f8-40c6-8e06-e3e408069e62",
"participantId": "6f0f6b90-07dc-42b7-bfca-a37b3db6e4c2",
"stellarTxHash": "a3c5f8b2e1d4...",
"externalReference": "ORDER-12345"
}
}
},
"export": {
"create": {
"request": {
"format": "CSV",
"reportType": "monthly_summary",
"filters": {
"startDate": "2024-01-01",
"endDate": "2024-12-31",
"categories": ["food", "transportation"],
"currency": "XLM"
},
"settings": {
"includeTaxFields": true,
"includeReceipts": true
}
}
}
}
}