Name | Get Payment History |
---|---|
Description | Get the payment history. |
Method | GET |
URL | /bills/history |
Example | /api/bills/history | Access | OWNER, MANAGER, TRAVELER |
Authorization | eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXUyJ9... |
---|---|
Fields | Type | Required | Description |
---|
{
"items_total": 2,
"items": [
{
"id": "747363583",
"date_created": "2017-05-08T12:30:28-0400",
"amount": 786.61,
"card": "1111",
"reservation": "769657272"
},
{
"id": "709422246",
"date_created": "2017-05-08T12:47:16-0400",
"amount": 4013.52,
"card": "1111",
"reservation": "302258525"
}
]
}
Code | Message | Cause | Possible Frontend Message [Behavior] |
---|---|---|---|
EC000 |
Internal error in API |
Internal error connecting the database | "Oops! Looks like we hit a snag. Try closing the app and reopening it." |
EC001 |
User not found |
Token user id doesn't match our records | "Sorry, We couldn't find your information!" |
EC004 |
Not found result |
There are problems finding the data in our database | "No Record Found" |
SC006 |
User no authorization |
The token role is not valid for using the API services | "You have been logged out." - [Take the user to the login screen] |
SC014 |
Expired token |
The token has expired | "You have been logged out." - [Take the user to the login screen] |