-
Notifications
You must be signed in to change notification settings - Fork 0
/
reqs.http
38 lines (29 loc) · 1.08 KB
/
reqs.http
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
### Create new user
POST http://localhost:3000/api/waitlist
content-type: application/json
{
"email": "[email protected]",
"lists": ["launch"],
"donation": {
"amount": 20,
"currency": "GBP"
}
}
### Confirm
GET https://localhost:3000/api/waitlist/confirm?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI2Mjg1YjgxOS1mMmFhLTRjNjYtOGYzZC04ZGIzYzdiMTNiYjkiLCJhdWQiOiJ0c2UtZ3JhcGgiLCJpYXQiOjE2MTQyNzA5MjMuNDE5LCJleHAiOjE2MTQyNzI3MjMsImh0dHBzOi8vaGFzdXJhLmlvL2p3dC9jbGFpbXMiOnsieC1oYXN1cmEtYWxsb3dlZC1yb2xlcyI6WyJ1c2VyIl0sIngtaGFzdXJhLWRlZmF1bHQtcm9sZSI6InVzZXIiLCJ4LWhhc3VyYS1lbWFpbC1pZ
### Get stripe payment intent
POST http://localhost:3000/api/donate
content-type: application/json
{
"waitlistId": "e3fd86e2-d3d4-4cbb-97e8-1b7de6eff61f",
"email": "[email protected]",
"amount": "20"
}
### Get stripe payment intent
POST http://localhost:3000/api/donate/complete
content-type: application/json
{
"email": "[email protected]",
"waitlistId": "e3fd86e2-d3d4-4cbb-97e8-1b7de6eff61f",
"intentId": "pi_1IQyZ0DS72lMqlMhLuxDB98A"
}