FlashPark API Reference

Client:
Caruso Affiliated
Project:
FlashPark

Register New User

API will be used to register/update User in FlashPark System.

URL

                    https://api.carusoparking.com/api/account/create
        

Request

Name Description Type
FirstName String
LastName String
Email 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

SAMPLE

                
                $.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));});
    
        

Response

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

Get User Profile

API will be used to get object of a user.

URL

                                        	https://api.carusoparking.com/api/account/profile
        

Request

Name Description Type
Flashcode Flashcode of the card need to be provided String
Email 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

SAMPLE

                
                $.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)); });

    
        

Response

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}

Update Password API

API will be used to update password of an authenticated user.

URL

                                        	https://api.carusoparking.com/api/account/updatepwd
        

Request

Name Description Type
NewPassword NewPassword of the user String
Email Email of the user String

SAMPLE

                

                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)); });
	    });
    
        

Response

Name Description Value
400 Bad Request Bad Request
200 Password was updated successfully
704 User does not exist User does not exist

Loyalty Validation API

API will be used to add validation for a Card.

URL

                       https://api.carusoparking.com/api/account/addredeem
        

Request

Name Description Type
Flashcode String
Email 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

SAMPLE

                
                $.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)); });
    
        

Response

Name Description Value
400 Bad Request
200 Validation added successfully
704 Flashcode does not exist

Reset Expiration Date

This API will reset the expiration date of recent 1 Year Self/Valet of the User.

URL

                                                            	https://api.carusoparking.com/api/account/resetExpiryDate
        

Request

Name Description Type
Flashcode String
Email 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

SAMPLE

                
                $.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)); });
    
        

Response

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