API will be used to register/update User in FlashPark System.
https://api.carusoparking.com/api/account/create
| Name | Description | Type |
|---|---|---|
| FirstName | String | |
| LastName | String | |
| String | ||
| Password | String | |
| MemberId | String | |
| client_id | Client ID need to be passed, provided by Flashpark | String |
| Secret | Secret key need to be passed, provided by Flashpark | String |
$.ajax({
type: "POST",
url: 'https://api.carusoparking.com/api/account/create',
data: 'FirstName=test&LastName=test&Email=email@email.com&Password=123456&MemberId=12345client_id=YAZiVK5ulIvw3Ip9F1zO98fLX907f48i&secret=2766799F79252C83',
success: function (_d) { alert(_d); }
}).fail(function (_d) { alert(JSON.stringify(_d));});
| Name | Description | Value |
|---|---|---|
| 400 | Bad Request/ Inavalid Client ID and Secret key | Bad Request |
| 500 | Internal Server Error | Internal Server Error |
| 200 | User created successfully and flashcode will be returned | data: 0012-5256-5624 |
API will be used to get object of a user.
https://api.carusoparking.com/api/account/profile
| Name | Description | Type |
|---|---|---|
| Flashcode | Flashcode of the card need to be provided | String |
| Email of the card need to be provided If both Email and FlashCode will be provided. FlashCode will have the priority | String | |
| client_id | Client ID need to be passed, provided by Flashpark | String |
| Secret | Secret key need to be passed, provided by Flashpark | String |
$.ajax({
type: "POST",
url: 'https://localhost:44301/api/account/profile',
data: 'client_id=q54ZTAnwxjdMmvWI5fr65IicTsNZCd2W&secret=34HrzxbfPYhOiyqc&Flashcode=0002-1392-6854',
success: function (_d) { alert(_d.data); }
}).fail(function (_d) { alert(JSON.stringify(_d)); });
| Name | Description | Value |
|---|---|---|
| 400 | Bad Request/ Inavalid Client ID and Secret key | Bad Request |
| 704 | Flashcode does not exist | Flashcode does not exist |
| 500 | Internal Server Error | Internal Server Error |
| 200 | User object will be returned containing Card related information | data: {User Object} |
API will be used to update password of an authenticated user.
https://api.carusoparking.com/api/account/updatepwd
| Name | Description | Type |
|---|---|---|
| NewPassword | NewPassword of the user | String |
| Email of the user | String |
var _data = {
"newPassword": "password",
"Email": "test@test.com",
"client_id": "client_id",
"secret": "secret"
};
$.ajax({
type: "POST",
data: JSON.stringify(_data),
contentType: "application/json",
url: 'https://api.carusoparking.com/api/account/updatepwd',
success: function (_d) { alert(JSON.stringify(_d)); }
}).fail(function (_d) { alert(JSON.stringify(_d)); });
});
| Name | Description | Value |
|---|---|---|
| 400 | Bad Request | Bad Request |
| 200 | Password was updated successfully | |
| 704 | User does not exist | User does not exist |
API will be used to add validation for a Card.
https://api.carusoparking.com/api/account/addredeem
| Name | Description | Type |
|---|---|---|
| Flashcode | String | |
| Email of the card need to be provided If both Email and FlashCode will be provided. FlashCode will have the priority | String | |
| VoucherId | Offer ID | String |
| VoucherExpiryDate | Offer Expiry Date | Date |
| Transponder {Optional} | String | |
| client_id | Client ID need to be passed, provided by Flashpark | String |
| Secret | Secret key need to be passed, provided by Flashpark | String |
$.ajax({
type: "POST",
url: 'https://api.carusoparking.com/api/account/addredeem',
data: 'client_id=NA9vBw61TyBIJKLPuCeBVBq6fLlzrKwhKJNplM41poHTpztWPujYhyIu4sHpcqPJ&secret=9ePuIbXyZ1Jdlqf7&Flashcode=0021-1447-1516&VoucherId=677&VoucherExpiryDate=9/30/2022',
success: function (_d) { alert(_d); }
}).fail(function (_d) { alert(JSON.stringify(_d)); });
| Name | Description | Value |
|---|---|---|
| 400 | Bad Request | |
| 200 | Validation added successfully | |
| 704 | Flashcode does not exist |
This API will reset the expiration date of recent 1 Year Self/Valet of the User.
https://api.carusoparking.com/api/account/resetExpiryDate
| Name | Description | Type |
|---|---|---|
| Flashcode | String | |
| Email of the card need to be provided If both Email and FlashCode will be provided. FlashCode will have the priority | String | |
| client_id | Client ID need to be passed, provided by Flashpark | String |
| Secret | Secret key need to be passed, provided by Flashpark | String |
| ExpiryDate | Expiration Date | String |
$.ajax({ type: "POST", url: 'https://api.carusoparking.com/api/account/resetExpiryDate', data: 'client_id=NA9vBw61TyBIJKLPuCeBVBq6fLlzrKwhKJNplM41poHTpztWPujYhyIu4sHpcqPJ&secret=9ePuIbXyZ1Jdlqf7&Flashcode=0021-1447-1516&ExpiryDate=10/10/2019', success: function (_d) { alert(_d); } }).fail(function (_d) { alert(JSON.stringify(_d)); });
| Name | Description | Value |
|---|---|---|
| 400 | Bad Request | |
| 709 | Email/Flashcode does not exist | |
| 741 | 1 Year Self/Valet Validation does not exist | |
| 200 | Validation expiration date updated successfully |