BinHong Lee 948e7eaa5b | 7 vuotta sitten | |
---|---|---|
.gitignore | 7 vuotta sitten | |
README.md | 7 vuotta sitten | |
index.js | 7 vuotta sitten | |
package.json | 7 vuotta sitten |
Creating a payment chain for bill splitting needs
api domain: https:\\breakups.herokuapp.com\
Type | Call | Request | Response |
---|---|---|---|
GET |
help |
- | URL to github repository |
POST |
total |
standard / email | { "total": 200 } |
POST |
perPerson |
standard / email | { "perPerson": 30 } |
POST |
oweChart |
standard / email | standard / email |
POST |
sortedOweChart |
standard / email | standard / email |
POST |
paymentChain |
standard / email | chain |
POST |
emailPaymentChain |
["Email sent to user1@domain.com", "Email sent to user2@domain.com"] |
{
"users": [
{
"name": "Person1",
"amount": 100
},
{
"name": "Person2",
"amount": 50
},
{
"name": "Person3",
"amount": 30
}
]
}
[
{
"from": "Person2",
"to": "Person3",
"amount": 10
},
{
"from": "Person3",
"to": "Person1",
"amount": 40
}
]
{
"users": [
{
"name": "Person1",
"email": "person1@domain.com",
"amount": 100
},
{
"name": "Person2",
"email": "person2@domain.com",
"amount": 50
},
{
"name": "Person3",
"email": "person3@domain.com",
"amount": 30
}
],
"mixmax-api": "your-mixmax-api-key"
}