For Developers

Select Category

API & SDK

Introduction

Movitronic is providing facility for it’s user to handle errors in managed way to control flow by handling errors. For this we have set different errors and list of possible errors that can be thrown by the movitronic server upon your api request.

Base url
				
					https://dev.movitronic.com/v1
				
			

Authentication

When you purchase your device you can add your vehicle here. You have to register first here. and then have to add your vehicles. You have to request for api key by submitting your request.

This api token is a random string for a user to prove their identity in a login process. It is typically used as a form of identification for physical access or as a method of computer system access. The token can be an item or a card that displays or contains security information about a user and can be verified by the system. Token is based on the use of a device that generates a random number, encrypts it and sends it to a server with user authentication information. The server then sends back an encrypted response that can only be decrypted by the device. The device is reused for every authentication, so the server does not have to store any username or password information, with the intent of making the system less vulnerable to hacking.

Error Handling

Movitronic is providing facility for it’s user to handle errors in managed way to control flow by handling errors. For this we have set different errors and list of possible errors that can be thrown by the movitronic server upon your api request. All codes that you receive from movitronic server that start from 2.xx are success. 5.xx errors are those which due to any error in our server. 4.xx errors are those which you can managed easily.

Attributes

code integer
For some errors that could be handled programmatically, a short string indicating the error code reported.


message string
A human-readable message providing more details about the error. For card errors, these messages can be shown to your users.


status boolean
Status also represent request is executed successfully or not.

http status code summary
				
					200 OK
Everything worked as expected.

400 Bad Request
The request was unacceptable, often due to missing a required parameter.

401 Unauthorized
No valid API key provided.

402 Request Faile
The parameters were valid but the request failed.

403 Forbidden
The API key doesn't have permissions to perform the request.

404 Not Found
The requested resource doesn't exist.

409 Conflict
The request conflicts with another request (perhaps due to using the same idempotent key).

408 Device Error
This error comes when device throw any error so we are managing it and displaying error. It usually happens when your device is not powered on and you are trying to create share.

429 Too Many Requests
Too many requests hit the API too quickly. We recommend an exponential backoff of your requests.

500, 502, 503, 504 Server Errors
Errors on movitronic server, which is mostly already controlled by our team.
				
			

Shares

Movitronic provide you facility to view all your shares vehicles listing that you shared your vehicle. You can use this api to view listing. You can view two type of listing by sending api_key in request.

1: Available
2: Expire

Get all shares shows you Listings of all the vehicles that you have shared. Each Listing is associated with a User, and with a Vehicle (Users own Vehicles.) Shares Listings have a start date, and are valid till specified end date. By default, it returns all active Shares with pagination. If you want to see active shares then you have to write available in share_type field and if you want to see expired shares then you write expired in share_type field.

ENDPOINTS
				
					POST  /shares/create
POST  /share/update
GET   /shares/get/{token}
GET   /shares/list
				
			

Create a Share

The Shares Create API allows users to insert records into the system. The HTTP request URI you use to insert a new recording contains a vehicle_id, share_type and a token that let you create a share on the system. This API uses a different authentication model than the other SaaS APIs. For those APIs, you make a request with a username and password that belong to a normal user of the Movitronic environment who also exists in Configuration Server. To use this Share Create API, the HTTP request must send a Basic Authentication header with the Username and UserPassword. As with any POST request to Movitronic, you must add the Cross Site Request Forgery Protection (CSRF) headers to the requests.

Parameters

start_date (UTC) required
Start date must be a date and it’s should be in UTC and it’s formate should be this ( Y-m-d H:i:s )


end_date (UTC) required
End date must be a date and it’s should be in UTC and it’s formate should be this ( Y-m-d H:i:s )


api_key required
This key must be provided that will used to authenticate user and if not provide it will return un-authorization error.


vehicles_id required
This is the vehicle id that we are using to create share against vehicle. While creating share your device must be active else it throw eror.


access_type required
It is permission that what permission you want to grant against this device, and security will be implemented according to your selected option. There are three option to choose.

"1" — Full access
"2" — Driver access
"3" — Only can access doors and trunk


token optional
This token is optional and is a unique random token that if you send we will store else we will create a unique random string which will be stored against this share.


via optional
This text is optional which you can send any text which represent any company title or anything that you want.


status optional
You can provide status either you want to make active share while creating or not. Possible statuses are 0 Active 1 In active


allow_advance_command optional
You can provide boolean value to enable or disable this option.  Possible values are true or false

Errors
API-KEY
				
					Code            401
Description 	Unauthorized user, api key must be valid.
				
			
SHARE_ID
				
					Code            400
Description     Share id is mandatory and provide valid share id.
				
			
VEHICLES_ID
				
					Code        	400
Description     This vehicle id must be valid. You may enter wrong vehicle id that doesn't exist in our system.
				
			
START_DATE, END_DATE
				
					Code	        400
Description     Share dates expired. Please provide valid date ranges.
Code            402
Description     Share is already exist in the system against unique token and vehicle_id. Token must be unique for each share.
				
			
DEVICE ERROR
				
					Code            408
Description     This error comes when device throw any error so we are managing it and displaying error. It usually happens when your device is not powered on and you are trying to create share.
				
			
ENDPOINTS
				
					POST  /shares/create
				
			
ENDPOINTS
				
					 {
    "code": 200,
    "message": "Data Updated Successfully",
    "data": {
        "id": 216,
        "start_date": "2022-03-01 11:38:58",
        "end_date": "2022-03-01 19:38:58",
        "token": "1198784618",
        "status": "0",
        "vehicle_id": {
            "id": 128,
            "name": "Carolla",
            "tags": "sports",
            "year": "2015",
            "vehicle_company_id": 12,
            "vehicle_company_name": "abceP",
            "vehicle_model_id": 9,
            "vehicle_model_name": "Daimler Moto8",
            "key_id": 11,
            "key_name": "bc-001",
            "license": "500",
            "can_update": false,
            "colour": "white",
            "doors": 2,
            "ignition": "1",
            "door_button": 1,
            "trunk_button": 1,
            "detail": {
                "id": 130,
                "device_code": "share-1",
                "fuel": 80,
                "latitude": 74.001,
                "longitude": 34.0001,
                "doors": "true",
                "trunk": "true",
                "tank_size": "0"
            },
            "file": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2022-02-23-025207-b34pgr3zuM.png",
            "thumbnail": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2022-02-23-025210-T92TeQDIar.png",
            "user": {
                "id": 428,
                "code": null,
                "name": "Shahid",
                "email": "shahid.backup.professional@gmail.com",
                "contact": null,
                "type": "operator",
                "image": "https://mldel97moa9p.i.optimole.com/cb:iRPe.62548/w:auto/h:auto/q:82/http://www.movitronic.com/assets/images/default_vehicle.png"
            },
            "active_shares": 2,
            "share_code": "426131",
            "label": {
                "id": 11,
                "name": "movitronic",
                "email": "test@whitelabel.com",
                "contact_no": "+92333",
                "color": "black",
                "api_key": "thEMN571FqkX24bi1aI0ylS9Kdf598dM",
                "file": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-10-12-065000-JWpq9tABac.png",
                "is_used": true,
                "vehicle_id": 1,
                "strip_key": "pk_test_51GzLtKLbPf34pHVYeJqkB7vSfnFMAO0uKmcI2sTPfJ9RjgqCqaScXYFp5C9WfanyaM14Y7ebAXhwMXtMvBAT1IO400h8hJYwAq",
                "strip_secret": "sk_test_51GzLtKLbPf34pHVY6cPVWHIejcFWwc2yicFWx4nLe06waWsa0o7L1h2A2h0U6xeUIqiBoe8ab58EuNs6OGsFliWf00PyDrPGLK"
            },
            "label_share": {
                "id": 136,
                "hprice": "150",
                "dprice": "250",
                "label_id": "11",
                "vehicle_id": 128
            },
            "usages": {
                "previos_usage": {
                    "id": 142,
                    "from": "CG6P2222+92",
                    "to": null
                },
                "current_usage": {
                    "id": 143,
                    "from": null,
                    "to": null
                },
                "current_user": {
                    "id": 425,
                    "name": "Hello test",
                    "image": null
                }
            },
            "share": true,
            "deleted_at": false
        }
    },
    "status": "true"
}  
  
				
			

List Share

Movitronic provide you facility to view all your shares vehicles listing that you shared your vehicle. You can use this api to view listing. You can view two type of listing by sending api_key in request.

available
expire

Get all shares shows you Listings of all the vehicles that you have shared. Each Listing is associated with a User, and with a Vehicle (Users own Vehicles.) Shares Listings have a start date, and are valid till specified end date. By default, it returns all active Shares with pagination. If you want to see active shares then you have to write available in share_type field and if you want to see expired shares then you write expired in share_type field.

Parameters

api_key required

This key must be provided that will used to authenticate user and if not provide it will return un-authorization error.


share_type required

It will filter according to your need and you can view available shares or expire shares. Two options are there for this.

available
expire

Errors
API-KEY
				
					Code            401
Description 	Unauthorized user, api key must be valid.
				
			
share_type
				
					Code            400
Description 	The share type field is required and it must be valid.
				
			
ENDPOINTS
				
					 GET  /shares/get/{token}
				
			
ENDPOINTS
				
					                                            
  {
    "code": 200,
    "message": "Success",
    "status": "true",
    "data": [
        {
            "id": 1,
            "start_date": "2021-03-25 17:22:52",
            "end_date": "2021-03-29 17:54:10",
            "token": null,
            "status": "1",
            "vehicle_id": {
                "id": 1,
                "name": "Toyota",
                "tags": "sports",
                "year": "2050",
                "vehicle_company_id": 1,
                "vehicle_company_name": "Honda",
                "vehicle_model_id": 4,
                "vehicle_model_name": "500CC",
                "key_id": 6,
                "key_name": "B2c-0921",
                "license": "500",
                "can_update": true,
                "colour": "White",
                "doors": 2,
                "ignition": null,
                "door_button": 0,
                "trunk_button": 0,
                "detail": {
                    "id": 1,
                    "device_code": "DA1235",
                    "fuel": 30,
                    "latitude": 0,
                    "longitude": 0,
                    "doors": "false",
                    "trunk": "false",
                    "tank_size": "0"
                },
                "file": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-07-27-121640-wcJ8NX0lZP.png",
                "thumbnail": "https://dev.movitronic.com/assets/images/default_vehicle.png",
                "user": {
                    "id": 1,
                    "code": null,
                    "name": "Super Admin",
                    "email": "superadmin@rentalmoose.com",
                    "contact": "+923113233028",
                    "type": "superadmin",
                    "image": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-08-26-165311-ZB1KK1Wi9A.png"
                },
                "active_shares": 1,
                "share_code": "266558",
                "label": {
                    "id": 11,
                    "name": "movitronic",
                    "email": "test@whitelabel.com",
                    "contact_no": "+92333",
                    "color": "black",
                    "api_key": "thEMN571FqkX24bi1aI0ylS9Kdf598dM",
                    "file": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-10-12-065000-JWpq9tABac.png",
                    "is_used": true,
                    "vehicle_id": 1,
                    "strip_key": "pk_test_51GzLtKLbPf34pHVYeJqkB7vSfnFMAO0uKmcI2sTPfJ9RjgqCqaScXYFp5C9WfanyaM14Y7ebAXhwMXtMvBAT1IO400h8hJYwAq",
                    "strip_secret": "sk_test_51GzLtKLbPf34pHVY6cPVWHIejcFWwc2yicFWx4nLe06waWsa0o7L1h2A2h0U6xeUIqiBoe8ab58EuNs6OGsFliWf00PyDrPGLK"
                },
                "label_share": {
                    "id": 2,
                    "hprice": "150",
                    "dprice": "250",
                    "label_id": "11",
                    "vehicle_id": 1
                },
                "usages": {
                    "previos_usage": {},
                    "current_usage": {
                        "id": 8,
                        "from": "357, Block N Shah Jamal Gulberg III, Lahore, Punjab 53700, Pakistan",
                        "to": "2, Napier Quarter, Karachi, Karachi City, Sindh, Pakistan"
                    },
                    "current_user": {
                        "id": 297,
                        "name": null,
                        "image": null
                    }
                },
                "share": true,
                "deleted_at": false
            },
            "encryption": {
                "bluetooth_key": "AB1641719844",
                "bluetooth_slot": null
            }
        },
        {
            "id": 2,
            "start_date": "2021-03-25 17:22:52",
            "end_date": "2021-03-29 17:54:10",
            "token": "987654321",
            "status": "1",
            "vehicle_id": {
                "id": 1,
                "name": "Toyota",
                "tags": "sports",
                "year": "2050",
                "vehicle_company_id": 1,
                "vehicle_company_name": "Honda",
                "vehicle_model_id": 4,
                "vehicle_model_name": "500CC",
                "key_id": 6,
                "key_name": "B2c-0921",
                "license": "500",
                "can_update": true,
                "colour": "White",
                "doors": 2,
                "ignition": null,
                "door_button": 0,
                "trunk_button": 0,
                "detail": {
                    "id": 1,
                    "device_code": "DA1235",
                    "fuel": 30,
                    "latitude": 0,
                    "longitude": 0,
                    "doors": "false",
                    "trunk": "false",
                    "tank_size": "0"
                },
                "file": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-07-27-121640-wcJ8NX0lZP.png",
                "thumbnail": "https://dev.movitronic.com/assets/images/default_vehicle.png",
                "user": {
                    "id": 1,
                    "code": null,
                    "name": "Super Admin",
                    "email": "superadmin@rentalmoose.com",
                    "contact": "+923113233028",
                    "type": "superadmin",
                    "image": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-08-26-165311-ZB1KK1Wi9A.png"
                },
                "active_shares": 1,
                "share_code": "266558",
                "label": {
                    "id": 11,
                    "name": "movitronic",
                    "email": "test@whitelabel.com",
                    "contact_no": "+92333",
                    "color": "black",
                    "api_key": "thEMN571FqkX24bi1aI0ylS9Kdf598dM",
                    "file": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-10-12-065000-JWpq9tABac.png",
                    "is_used": true,
                    "vehicle_id": 1,
                    "strip_key": "pk_test_51GzLtKLbPf34pHVYeJqkB7vSfnFMAO0uKmcI2sTPfJ9RjgqCqaScXYFp5C9WfanyaM14Y7ebAXhwMXtMvBAT1IO400h8hJYwAq",
                    "strip_secret": "sk_test_51GzLtKLbPf34pHVY6cPVWHIejcFWwc2yicFWx4nLe06waWsa0o7L1h2A2h0U6xeUIqiBoe8ab58EuNs6OGsFliWf00PyDrPGLK"
                },
                "label_share": {
                    "id": 2,
                    "hprice": "150",
                    "dprice": "250",
                    "label_id": "11",
                    "vehicle_id": 1
                },
                "usages": {
                    "previos_usage": {},
                    "current_usage": {
                        "id": 8,
                        "from": "357, Block N Shah Jamal Gulberg III, Lahore, Punjab 53700, Pakistan",
                        "to": "2, Napier Quarter, Karachi, Karachi City, Sindh, Pakistan"
                    },
                    "current_user": {
                        "id": 297,
                        "name": null,
                        "image": null
                    }
                },
                "share": true,
                "deleted_at": false
            },
            "encryption": {
                "bluetooth_key": "AB1651665504",
                "bluetooth_slot": null
            }
        },
        {
            "id": 3,
            "start_date": "2021-03-25 17:22:52",
            "end_date": "2021-03-29 17:54:10",
            "token": "987654321",
            "status": "1",
            "vehicle_id": {
                "id": 1,
                "name": "Toyota",
                "tags": "sports",
                "year": "2050",
                "vehicle_company_id": 1,
                "vehicle_company_name": "Honda",
                "vehicle_model_id": 4,
                "vehicle_model_name": "500CC",
                "key_id": 6,
                "key_name": "B2c-0921",
                "license": "500",
                "can_update": true,
                "colour": "White",
                "doors": 2,
                "ignition": null,
                "door_button": 0,
                "trunk_button": 0,
                "detail": {
                    "id": 1,
                    "device_code": "DA1235",
                    "fuel": 30,
                    "latitude": 0,
                    "longitude": 0,
                    "doors": "false",
                    "trunk": "false",
                    "tank_size": "0"
                },
                "file": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-07-27-121640-wcJ8NX0lZP.png",
                "thumbnail": "https://dev.movitronic.com/assets/images/default_vehicle.png",
                "user": {
                    "id": 1,
                    "code": null,
                    "name": "Super Admin",
                    "email": "superadmin@rentalmoose.com",
                    "contact": "+923113233028",
                    "type": "superadmin",
                    "image": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-08-26-165311-ZB1KK1Wi9A.png"
                },
                "active_shares": 1,
                "share_code": "266558",
                "label": {
                    "id": 11,
                    "name": "movitronic",
                    "email": "test@whitelabel.com",
                    "contact_no": "+92333",
                    "color": "black",
                    "api_key": "thEMN571FqkX24bi1aI0ylS9Kdf598dM",
                    "file": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-10-12-065000-JWpq9tABac.png",
                    "is_used": true,
                    "vehicle_id": 1,
                    "strip_key": "pk_test_51GzLtKLbPf34pHVYeJqkB7vSfnFMAO0uKmcI2sTPfJ9RjgqCqaScXYFp5C9WfanyaM14Y7ebAXhwMXtMvBAT1IO400h8hJYwAq",
                    "strip_secret": "sk_test_51GzLtKLbPf34pHVY6cPVWHIejcFWwc2yicFWx4nLe06waWsa0o7L1h2A2h0U6xeUIqiBoe8ab58EuNs6OGsFliWf00PyDrPGLK"
                },
                "label_share": {
                    "id": 2,
                    "hprice": "150",
                    "dprice": "250",
                    "label_id": "11",
                    "vehicle_id": 1
                },
                "usages": {
                    "previos_usage": {},
                    "current_usage": {
                        "id": 8,
                        "from": "357, Block N Shah Jamal Gulberg III, Lahore, Punjab 53700, Pakistan",
                        "to": "2, Napier Quarter, Karachi, Karachi City, Sindh, Pakistan"
                    },
                    "current_user": {
                        "id": 297,
                        "name": null,
                        "image": null
                    }
                },
                "share": true,
                "deleted_at": false
            },
            "encryption": {
                "bluetooth_key": "AB2100594159",
                "bluetooth_slot": null
            }
        },
        {
            "id": 4,
            "start_date": "2021-03-25 17:22:52",
            "end_date": "2021-03-29 17:54:10",
            "token": "987654321",
            "status": "1",
            "vehicle_id": {
                "id": 1,
                "name": "Toyota",
                "tags": "sports",
                "year": "2050",
                "vehicle_company_id": 1,
                "vehicle_company_name": "Honda",
                "vehicle_model_id": 4,
                "vehicle_model_name": "500CC",
                "key_id": 6,
                "key_name": "B2c-0921",
                "license": "500",
                "can_update": true,
                "colour": "White",
                "doors": 2,
                "ignition": null,
                "door_button": 0,
                "trunk_button": 0,
                "detail": {
                    "id": 1,
                    "device_code": "DA1235",
                    "fuel": 30,
                    "latitude": 0,
                    "longitude": 0,
                    "doors": "false",
                    "trunk": "false",
                    "tank_size": "0"
                },
                "file": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-07-27-121640-wcJ8NX0lZP.png",
                "thumbnail": "https://dev.movitronic.com/assets/images/default_vehicle.png",
                "user": {
                    "id": 1,
                    "code": null,
                    "name": "Super Admin",
                    "email": "superadmin@rentalmoose.com",
                    "contact": "+923113233028",
                    "type": "superadmin",
                    "image": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-08-26-165311-ZB1KK1Wi9A.png"
                },
                "active_shares": 1,
                "share_code": "266558",
                "label": {
                    "id": 11,
                    "name": "movitronic",
                    "email": "test@whitelabel.com",
                    "contact_no": "+92333",
                    "color": "black",
                    "api_key": "thEMN571FqkX24bi1aI0ylS9Kdf598dM",
                    "file": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-10-12-065000-JWpq9tABac.png",
                    "is_used": true,
                    "vehicle_id": 1,
                    "strip_key": "pk_test_51GzLtKLbPf34pHVYeJqkB7vSfnFMAO0uKmcI2sTPfJ9RjgqCqaScXYFp5C9WfanyaM14Y7ebAXhwMXtMvBAT1IO400h8hJYwAq",
                    "strip_secret": "sk_test_51GzLtKLbPf34pHVY6cPVWHIejcFWwc2yicFWx4nLe06waWsa0o7L1h2A2h0U6xeUIqiBoe8ab58EuNs6OGsFliWf00PyDrPGLK"
                },
                "label_share": {
                    "id": 2,
                    "hprice": "150",
                    "dprice": "250",
                    "label_id": "11",
                    "vehicle_id": 1
                },
                "usages": {
                    "previos_usage": {},
                    "current_usage": {
                        "id": 8,
                        "from": "357, Block N Shah Jamal Gulberg III, Lahore, Punjab 53700, Pakistan",
                        "to": "2, Napier Quarter, Karachi, Karachi City, Sindh, Pakistan"
                    },
                    "current_user": {
                        "id": 297,
                        "name": null,
                        "image": null
                    }
                },
                "share": true,
                "deleted_at": false
            },
            "encryption": {
                "bluetooth_key": "AB1097716689",
                "bluetooth_slot": null
            }
        },
        {
            "id": 5,
            "start_date": "2021-09-13 17:22:52",
            "end_date": "2021-09-29 17:54:10",
            "token": "eyJpdiI6IjFiZlk5RWwrVnZvd0hGdkhOZEFLcGc9PSIsInZhbHVlIjoiK1BSOUhKcVRCUDlacHI1ZVpWZGVWQT09IiwibWFjIjoiMzhkM2ZkYzJkNWMzM2JkMzVhNDRhZDI4YjczZDYxN2M2NmI2YzFiMTFhMzIzOTg2ZTBkODM0MzYxMzM4OTQyNCJ9",
            "status": "1",
            "vehicle_id": {
                "id": 1,
                "name": "Toyota",
                "tags": "sports",
                "year": "2050",
                "vehicle_company_id": 1,
                "vehicle_company_name": "Honda",
                "vehicle_model_id": 4,
                "vehicle_model_name": "500CC",
                "key_id": 6,
                "key_name": "B2c-0921",
                "license": "500",
                "can_update": true,
                "colour": "White",
                "doors": 2,
                "ignition": null,
                "door_button": 0,
                "trunk_button": 0,
                "detail": {
                    "id": 1,
                    "device_code": "DA1235",
                    "fuel": 30,
                    "latitude": 0,
                    "longitude": 0,
                    "doors": "false",
                    "trunk": "false",
                    "tank_size": "0"
                },
                "file": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-07-27-121640-wcJ8NX0lZP.png",
                "thumbnail": "https://dev.movitronic.com/assets/images/default_vehicle.png",
                "user": {
                    "id": 1,
                    "code": null,
                    "name": "Super Admin",
                    "email": "superadmin@rentalmoose.com",
                    "contact": "+923113233028",
                    "type": "superadmin",
                    "image": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-08-26-165311-ZB1KK1Wi9A.png"
                },
                "active_shares": 1,
                "share_code": "266558",
                "label": {
                    "id": 11,
                    "name": "movitronic",
                    "email": "test@whitelabel.com",
                    "contact_no": "+92333",
                    "color": "black",
                    "api_key": "thEMN571FqkX24bi1aI0ylS9Kdf598dM",
                    "file": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-10-12-065000-JWpq9tABac.png",
                    "is_used": true,
                    "vehicle_id": 1,
                    "strip_key": "pk_test_51GzLtKLbPf34pHVYeJqkB7vSfnFMAO0uKmcI2sTPfJ9RjgqCqaScXYFp5C9WfanyaM14Y7ebAXhwMXtMvBAT1IO400h8hJYwAq",
                    "strip_secret": "sk_test_51GzLtKLbPf34pHVY6cPVWHIejcFWwc2yicFWx4nLe06waWsa0o7L1h2A2h0U6xeUIqiBoe8ab58EuNs6OGsFliWf00PyDrPGLK"
                },
                "label_share": {
                    "id": 2,
                    "hprice": "150",
                    "dprice": "250",
                    "label_id": "11",
                    "vehicle_id": 1
                },
                "usages": {
                    "previos_usage": {},
                    "current_usage": {
                        "id": 8,
                        "from": "357, Block N Shah Jamal Gulberg III, Lahore, Punjab 53700, Pakistan",
                        "to": "2, Napier Quarter, Karachi, Karachi City, Sindh, Pakistan"
                    },
                    "current_user": {
                        "id": 297,
                        "name": null,
                        "image": null
                    }
                },
                "share": true,
                "deleted_at": false
            },
            "encryption": {
                "bluetooth_key": "AB945353222",
                "bluetooth_slot": null
            }
        },
        {
            "id": 6,
            "start_date": "2021-09-13 17:22:52",
            "end_date": "2021-09-29 17:54:10",
            "token": "eyJpdiI6IjFiZlk5RWwrVnZvd0hGdkhOZEFLcGc9PSIsInZhbHVlIjoiK1BSOUhKcVRCUDlacHI1ZVpWZGVWQT09IiwibWFjIjoiMzhkM2ZkYzJkNWMzM2JkMzVhNDRhZDI4YjczZDYxN2M2NmI2YzFiMTFhMzIzOTg2ZTBkODM0MzYxMzM4OTQyNCJ9",
            "status": "1",
            "vehicle_id": {
                "id": 1,
                "name": "Toyota",
                "tags": "sports",
                "year": "2050",
                "vehicle_company_id": 1,
                "vehicle_company_name": "Honda",
                "vehicle_model_id": 4,
                "vehicle_model_name": "500CC",
                "key_id": 6,
                "key_name": "B2c-0921",
                "license": "500",
                "can_update": true,
                "colour": "White",
                "doors": 2,
                "ignition": null,
                "door_button": 0,
                "trunk_button": 0,
                "detail": {
                    "id": 1,
                    "device_code": "DA1235",
                    "fuel": 30,
                    "latitude": 0,
                    "longitude": 0,
                    "doors": "false",
                    "trunk": "false",
                    "tank_size": "0"
                },
                "file": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-07-27-121640-wcJ8NX0lZP.png",
                "thumbnail": "https://dev.movitronic.com/assets/images/default_vehicle.png",
                "user": {
                    "id": 1,
                    "code": null,
                    "name": "Super Admin",
                    "email": "superadmin@rentalmoose.com",
                    "contact": "+923113233028",
                    "type": "superadmin",
                    "image": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-08-26-165311-ZB1KK1Wi9A.png"
                },
                "active_shares": 1,
                "share_code": "266558",
                "label": {
                    "id": 11,
                    "name": "movitronic",
                    "email": "test@whitelabel.com",
                    "contact_no": "+92333",
                    "color": "black",
                    "api_key": "thEMN571FqkX24bi1aI0ylS9Kdf598dM",
                    "file": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-10-12-065000-JWpq9tABac.png",
                    "is_used": true,
                    "vehicle_id": 1,
                    "strip_key": "pk_test_51GzLtKLbPf34pHVYeJqkB7vSfnFMAO0uKmcI2sTPfJ9RjgqCqaScXYFp5C9WfanyaM14Y7ebAXhwMXtMvBAT1IO400h8hJYwAq",
                    "strip_secret": "sk_test_51GzLtKLbPf34pHVY6cPVWHIejcFWwc2yicFWx4nLe06waWsa0o7L1h2A2h0U6xeUIqiBoe8ab58EuNs6OGsFliWf00PyDrPGLK"
                },
                "label_share": {
                    "id": 2,
                    "hprice": "150",
                    "dprice": "250",
                    "label_id": "11",
                    "vehicle_id": 1
                },
                "usages": {
                    "previos_usage": {},
                    "current_usage": {
                        "id": 8,
                        "from": "357, Block N Shah Jamal Gulberg III, Lahore, Punjab 53700, Pakistan",
                        "to": "2, Napier Quarter, Karachi, Karachi City, Sindh, Pakistan"
                    },
                    "current_user": {
                        "id": 297,
                        "name": null,
                        "image": null
                    }
                },
                "share": true,
                "deleted_at": false
            },
            "encryption": {
                "bluetooth_key": "AB601178002",
                "bluetooth_slot": null
            }
        },
        {
            "id": 7,
            "start_date": "2021-09-13 17:22:52",
            "end_date": "2021-09-29 17:54:10",
            "token": "eyJpdiI6IjgwOHFEejduTGZGeTZHcWRDMEFKd2c9PSIsInZhbHVlIjoiT0l3aW11RmYyK1lYUEhsdmtpRjRBQT09IiwibWFjIjoiMjc2ZDQ3MDUxYmExY2RlZDBiOGVmZDQ3ODM2YzM4ZWZhMDQ3YzdjNDg3MWEzN2UxNWNjY2EyNzkwOWUzNTQyYyJ9",
            "status": "1",
            "vehicle_id": {
                "id": 1,
                "name": "Toyota",
                "tags": "sports",
                "year": "2050",
                "vehicle_company_id": 1,
                "vehicle_company_name": "Honda",
                "vehicle_model_id": 4,
                "vehicle_model_name": "500CC",
                "key_id": 6,
                "key_name": "B2c-0921",
                "license": "500",
                "can_update": true,
                "colour": "White",
                "doors": 2,
                "ignition": null,
                "door_button": 0,
                "trunk_button": 0,
                "detail": {
                    "id": 1,
                    "device_code": "DA1235",
                    "fuel": 30,
                    "latitude": 0,
                    "longitude": 0,
                    "doors": "false",
                    "trunk": "false",
                    "tank_size": "0"
                },
                "file": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-07-27-121640-wcJ8NX0lZP.png",
                "thumbnail": "https://dev.movitronic.com/assets/images/default_vehicle.png",
                "user": {
                    "id": 1,
                    "code": null,
                    "name": "Super Admin",
                    "email": "superadmin@rentalmoose.com",
                    "contact": "+923113233028",
                    "type": "superadmin",
                    "image": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-08-26-165311-ZB1KK1Wi9A.png"
                },
                "active_shares": 1,
                "share_code": "266558",
                "label": {
                    "id": 11,
                    "name": "movitronic",
                    "email": "test@whitelabel.com",
                    "contact_no": "+92333",
                    "color": "black",
                    "api_key": "thEMN571FqkX24bi1aI0ylS9Kdf598dM",
                    "file": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-10-12-065000-JWpq9tABac.png",
                    "is_used": true,
                    "vehicle_id": 1,
                    "strip_key": "pk_test_51GzLtKLbPf34pHVYeJqkB7vSfnFMAO0uKmcI2sTPfJ9RjgqCqaScXYFp5C9WfanyaM14Y7ebAXhwMXtMvBAT1IO400h8hJYwAq",
                    "strip_secret": "sk_test_51GzLtKLbPf34pHVY6cPVWHIejcFWwc2yicFWx4nLe06waWsa0o7L1h2A2h0U6xeUIqiBoe8ab58EuNs6OGsFliWf00PyDrPGLK"
                },
                "label_share": {
                    "id": 2,
                    "hprice": "150",
                    "dprice": "250",
                    "label_id": "11",
                    "vehicle_id": 1
                },
                "usages": {
                    "previos_usage": {},
                    "current_usage": {
                        "id": 8,
                        "from": "357, Block N Shah Jamal Gulberg III, Lahore, Punjab 53700, Pakistan",
                        "to": "2, Napier Quarter, Karachi, Karachi City, Sindh, Pakistan"
                    },
                    "current_user": {
                        "id": 297,
                        "name": null,
                        "image": null
                    }
                },
                "share": true,
                "deleted_at": false
            },
            "encryption": {
                "bluetooth_key": "AB1147411495",
                "bluetooth_slot": null
            }
        },
        {
            "id": 17,
            "start_date": "2021-11-16 17:22:52",
            "end_date": "2021-11-29 17:54:10",
            "token": "asad",
            "status": "1",
            "vehicle_id": {
                "id": 107,
                "name": "BMW",
                "tags": "sports, speed",
                "year": "2020",
                "vehicle_company_id": 19,
                "vehicle_company_name": "New Test Company 2",
                "vehicle_model_id": 21,
                "vehicle_model_name": "New Test Model 2",
                "key_id": 22,
                "key_name": "New Test Key 2",
                "license": "PK 333",
                "can_update": false,
                "colour": "white",
                "doors": 4,
                "ignition": "1",
                "door_button": 1,
                "trunk_button": 1,
                "detail": {
                    "id": 109,
                    "device_code": "mv-app-new",
                    "fuel": 0,
                    "latitude": 0,
                    "longitude": 0,
                    "doors": "true",
                    "trunk": "true",
                    "tank_size": "0"
                },
                "file": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-09-16-083823-hBVFSOZmw2.png",
                "thumbnail": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-09-16-083823-W4RBZZ9xOk.png",
                "user": {
                    "id": 348,
                    "code": null,
                    "name": "BMW",
                    "email": "testoperator@operator.com",
                    "contact": "+923171490009",
                    "type": "operator",
                    "image": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-08-26-083642-lPiAPULi5K.png"
                },
                "active_shares": 0,
                "share_code": "698594",
                "label": {},
                "label_share": {},
                "usages": {
                    "previos_usage": {},
                    "current_usage": {},
                    "current_user": {}
                },
                "share": false,
                "deleted_at": false
            },
            "encryption": {
                "bluetooth_key": "AB273498940",
                "bluetooth_slot": null
            }
        },
        {
            "id": 33,
            "start_date": "2021-11-26 07:22:52",
            "end_date": "2021-11-29 17:54:10",
            "token": "63269766",
            "status": "0",
            "vehicle_id": {
                "id": 119,
                "name": "usman's vehicle",
                "tags": "sports, speed",
                "year": "2020",
                "vehicle_company_id": 16,
                "vehicle_company_name": "BMW",
                "vehicle_model_id": 18,
                "vehicle_model_name": "M3",
                "key_id": 15,
                "key_name": "Good key",
                "license": "ks302",
                "can_update": false,
                "colour": "black",
                "doors": 4,
                "ignition": "1",
                "door_button": 0,
                "trunk_button": 1,
                "detail": {
                    "id": 121,
                    "device_code": "usmandevice1",
                    "fuel": 0,
                    "latitude": 0,
                    "longitude": 0,
                    "doors": "false",
                    "trunk": "true",
                    "tank_size": "0"
                },
                "file": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-11-18-094132-6Qeb82pzde.png",
                "thumbnail": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-11-18-094132-1FcR16OmGt.png",
                "user": {
                    "id": 415,
                    "code": null,
                    "name": "usman saeed",
                    "email": "usman@user.com",
                    "contact": null,
                    "type": "operator",
                    "image": "https://dev.movitronic.com/assets/images/default_vehicle.png"
                },
                "active_shares": 1,
                "share_code": "115231",
                "label": {
                    "id": 44,
                    "name": "Asad",
                    "email": "asad@whitelabel.com",
                    "contact_no": "+923171440000",
                    "color": "white",
                    "api_key": "Nr5j3AZ7lxF8wUEzIpBeVk1TwydZp7vk",
                    "file": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-11-23-120727-8390D5J0Z8.png",
                    "is_used": true,
                    "vehicle_id": 119,
                    "strip_key": "pk_test_51GzLtKLbPf34pHVYeJqkB7vSfnFMAO0uKmcI2sTPfJ9RjgqCqaScXYFp5C9WfanyaM14Y7ebAXhwMXtMvBAT1IO400h8hJYwAq",
                    "strip_secret": "sk_test_51GzLtKLbPf34pHVY6cPVWHIejcFWwc2yicFWx4nLe06waWsa0o7L1h2A2h0U6xeUIqiBoe8ab58EuNs6OGsFliWf00PyDrPGLK"
                },
                "label_share": {
                    "id": 125,
                    "hprice": "200",
                    "dprice": "1000",
                    "label_id": "44",
                    "vehicle_id": 119
                },
                "usages": {
                    "previos_usage": {},
                    "current_usage": {
                        "id": 63,
                        "from": null,
                        "to": null
                    },
                    "current_user": {
                        "id": 416,
                        "name": "fahad",
                        "image": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-11-18-093446-yRqdUCwtAK.png"
                    }
                },
                "share": true,
                "deleted_at": false
            },
            "encryption": {
                "bluetooth_key": null,
                "bluetooth_slot": null
            }
        },
        {
            "id": 34,
            "start_date": "2021-11-26 07:22:52",
            "end_date": "2021-11-29 17:54:10",
            "token": "1026175849",
            "status": "0",
            "vehicle_id": {
                "id": 119,
                "name": "usman's vehicle",
                "tags": "sports, speed",
                "year": "2020",
                "vehicle_company_id": 16,
                "vehicle_company_name": "BMW",
                "vehicle_model_id": 18,
                "vehicle_model_name": "M3",
                "key_id": 15,
                "key_name": "Good key",
                "license": "ks302",
                "can_update": false,
                "colour": "black",
                "doors": 4,
                "ignition": "1",
                "door_button": 0,
                "trunk_button": 1,
                "detail": {
                    "id": 121,
                    "device_code": "usmandevice1",
                    "fuel": 0,
                    "latitude": 0,
                    "longitude": 0,
                    "doors": "false",
                    "trunk": "true",
                    "tank_size": "0"
                },
                "file": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-11-18-094132-6Qeb82pzde.png",
                "thumbnail": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-11-18-094132-1FcR16OmGt.png",
                "user": {
                    "id": 415,
                    "code": null,
                    "name": "usman saeed",
                    "email": "usman@user.com",
                    "contact": null,
                    "type": "operator",
                    "image": "https://dev.movitronic.com/assets/images/default_vehicle.png"
                },
                "active_shares": 1,
                "share_code": "115231",
                "label": {
                    "id": 44,
                    "name": "Asad",
                    "email": "asad@whitelabel.com",
                    "contact_no": "+923171440000",
                    "color": "white",
                    "api_key": "Nr5j3AZ7lxF8wUEzIpBeVk1TwydZp7vk",
                    "file": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-11-23-120727-8390D5J0Z8.png",
                    "is_used": true,
                    "vehicle_id": 119,
                    "strip_key": "pk_test_51GzLtKLbPf34pHVYeJqkB7vSfnFMAO0uKmcI2sTPfJ9RjgqCqaScXYFp5C9WfanyaM14Y7ebAXhwMXtMvBAT1IO400h8hJYwAq",
                    "strip_secret": "sk_test_51GzLtKLbPf34pHVY6cPVWHIejcFWwc2yicFWx4nLe06waWsa0o7L1h2A2h0U6xeUIqiBoe8ab58EuNs6OGsFliWf00PyDrPGLK"
                },
                "label_share": {
                    "id": 125,
                    "hprice": "200",
                    "dprice": "1000",
                    "label_id": "44",
                    "vehicle_id": 119
                },
                "usages": {
                    "previos_usage": {},
                    "current_usage": {
                        "id": 63,
                        "from": null,
                        "to": null
                    },
                    "current_user": {
                        "id": 416,
                        "name": "fahad",
                        "image": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-11-18-093446-yRqdUCwtAK.png"
                    }
                },
                "share": true,
                "deleted_at": false
            },
            "encryption": {
                "bluetooth_key": null,
                "bluetooth_slot": null
            }
        },
        {
            "id": 35,
            "start_date": "2021-11-26 07:22:52",
            "end_date": "2021-11-29 17:54:10",
            "token": "1036273994",
            "status": "0",
            "vehicle_id": {
                "id": 119,
                "name": "usman's vehicle",
                "tags": "sports, speed",
                "year": "2020",
                "vehicle_company_id": 16,
                "vehicle_company_name": "BMW",
                "vehicle_model_id": 18,
                "vehicle_model_name": "M3",
                "key_id": 15,
                "key_name": "Good key",
                "license": "ks302",
                "can_update": false,
                "colour": "black",
                "doors": 4,
                "ignition": "1",
                "door_button": 0,
                "trunk_button": 1,
                "detail": {
                    "id": 121,
                    "device_code": "usmandevice1",
                    "fuel": 0,
                    "latitude": 0,
                    "longitude": 0,
                    "doors": "false",
                    "trunk": "true",
                    "tank_size": "0"
                },
                "file": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-11-18-094132-6Qeb82pzde.png",
                "thumbnail": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-11-18-094132-1FcR16OmGt.png",
                "user": {
                    "id": 415,
                    "code": null,
                    "name": "usman saeed",
                    "email": "usman@user.com",
                    "contact": null,
                    "type": "operator",
                    "image": "https://dev.movitronic.com/assets/images/default_vehicle.png"
                },
                "active_shares": 1,
                "share_code": "115231",
                "label": {
                    "id": 44,
                    "name": "Asad",
                    "email": "asad@whitelabel.com",
                    "contact_no": "+923171440000",
                    "color": "white",
                    "api_key": "Nr5j3AZ7lxF8wUEzIpBeVk1TwydZp7vk",
                    "file": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-11-23-120727-8390D5J0Z8.png",
                    "is_used": true,
                    "vehicle_id": 119,
                    "strip_key": "pk_test_51GzLtKLbPf34pHVYeJqkB7vSfnFMAO0uKmcI2sTPfJ9RjgqCqaScXYFp5C9WfanyaM14Y7ebAXhwMXtMvBAT1IO400h8hJYwAq",
                    "strip_secret": "sk_test_51GzLtKLbPf34pHVY6cPVWHIejcFWwc2yicFWx4nLe06waWsa0o7L1h2A2h0U6xeUIqiBoe8ab58EuNs6OGsFliWf00PyDrPGLK"
                },
                "label_share": {
                    "id": 125,
                    "hprice": "200",
                    "dprice": "1000",
                    "label_id": "44",
                    "vehicle_id": 119
                },
                "usages": {
                    "previos_usage": {},
                    "current_usage": {
                        "id": 63,
                        "from": null,
                        "to": null
                    },
                    "current_user": {
                        "id": 416,
                        "name": "fahad",
                        "image": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-11-18-093446-yRqdUCwtAK.png"
                    }
                },
                "share": true,
                "deleted_at": false
            },
            "encryption": {
                "bluetooth_key": null,
                "bluetooth_slot": null
            }
        },
        {
            "id": 36,
            "start_date": "2021-11-26 07:22:52",
            "end_date": "2021-11-29 17:54:10",
            "token": "245676768",
            "status": "0",
            "vehicle_id": {
                "id": 119,
                "name": "usman's vehicle",
                "tags": "sports, speed",
                "year": "2020",
                "vehicle_company_id": 16,
                "vehicle_company_name": "BMW",
                "vehicle_model_id": 18,
                "vehicle_model_name": "M3",
                "key_id": 15,
                "key_name": "Good key",
                "license": "ks302",
                "can_update": false,
                "colour": "black",
                "doors": 4,
                "ignition": "1",
                "door_button": 0,
                "trunk_button": 1,
                "detail": {
                    "id": 121,
                    "device_code": "usmandevice1",
                    "fuel": 0,
                    "latitude": 0,
                    "longitude": 0,
                    "doors": "false",
                    "trunk": "true",
                    "tank_size": "0"
                },
                "file": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-11-18-094132-6Qeb82pzde.png",
                "thumbnail": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-11-18-094132-1FcR16OmGt.png",
                "user": {
                    "id": 415,
                    "code": null,
                    "name": "usman saeed",
                    "email": "usman@user.com",
                    "contact": null,
                    "type": "operator",
                    "image": "https://dev.movitronic.com/assets/images/default_vehicle.png"
                },
                "active_shares": 1,
                "share_code": "115231",
                "label": {
                    "id": 44,
                    "name": "Asad",
                    "email": "asad@whitelabel.com",
                    "contact_no": "+923171440000",
                    "color": "white",
                    "api_key": "Nr5j3AZ7lxF8wUEzIpBeVk1TwydZp7vk",
                    "file": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-11-23-120727-8390D5J0Z8.png",
                    "is_used": true,
                    "vehicle_id": 119,
                    "strip_key": "pk_test_51GzLtKLbPf34pHVYeJqkB7vSfnFMAO0uKmcI2sTPfJ9RjgqCqaScXYFp5C9WfanyaM14Y7ebAXhwMXtMvBAT1IO400h8hJYwAq",
                    "strip_secret": "sk_test_51GzLtKLbPf34pHVY6cPVWHIejcFWwc2yicFWx4nLe06waWsa0o7L1h2A2h0U6xeUIqiBoe8ab58EuNs6OGsFliWf00PyDrPGLK"
                },
                "label_share": {
                    "id": 125,
                    "hprice": "200",
                    "dprice": "1000",
                    "label_id": "44",
                    "vehicle_id": 119
                },
                "usages": {
                    "previos_usage": {},
                    "current_usage": {
                        "id": 63,
                        "from": null,
                        "to": null
                    },
                    "current_user": {
                        "id": 416,
                        "name": "fahad",
                        "image": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-11-18-093446-yRqdUCwtAK.png"
                    }
                },
                "share": true,
                "deleted_at": false
            },
            "encryption": {
                "bluetooth_key": null,
                "bluetooth_slot": null
            }
        },
        {
            "id": 37,
            "start_date": "2021-11-26 07:00:52",
            "end_date": "2021-11-29 07:00:52",
            "token": "9195595",
            "status": "0",
            "vehicle_id": {
                "id": 119,
                "name": "usman's vehicle",
                "tags": "sports, speed",
                "year": "2020",
                "vehicle_company_id": 16,
                "vehicle_company_name": "BMW",
                "vehicle_model_id": 18,
                "vehicle_model_name": "M3",
                "key_id": 15,
                "key_name": "Good key",
                "license": "ks302",
                "can_update": false,
                "colour": "black",
                "doors": 4,
                "ignition": "1",
                "door_button": 0,
                "trunk_button": 1,
                "detail": {
                    "id": 121,
                    "device_code": "usmandevice1",
                    "fuel": 0,
                    "latitude": 0,
                    "longitude": 0,
                    "doors": "false",
                    "trunk": "true",
                    "tank_size": "0"
                },
                "file": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-11-18-094132-6Qeb82pzde.png",
                "thumbnail": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-11-18-094132-1FcR16OmGt.png",
                "user": {
                    "id": 415,
                    "code": null,
                    "name": "usman saeed",
                    "email": "usman@user.com",
                    "contact": null,
                    "type": "operator",
                    "image": "https://dev.movitronic.com/assets/images/default_vehicle.png"
                },
                "active_shares": 1,
                "share_code": "115231",
                "label": {
                    "id": 44,
                    "name": "Asad",
                    "email": "asad@whitelabel.com",
                    "contact_no": "+923171440000",
                    "color": "white",
                    "api_key": "Nr5j3AZ7lxF8wUEzIpBeVk1TwydZp7vk",
                    "file": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-11-23-120727-8390D5J0Z8.png",
                    "is_used": true,
                    "vehicle_id": 119,
                    "strip_key": "pk_test_51GzLtKLbPf34pHVYeJqkB7vSfnFMAO0uKmcI2sTPfJ9RjgqCqaScXYFp5C9WfanyaM14Y7ebAXhwMXtMvBAT1IO400h8hJYwAq",
                    "strip_secret": "sk_test_51GzLtKLbPf34pHVY6cPVWHIejcFWwc2yicFWx4nLe06waWsa0o7L1h2A2h0U6xeUIqiBoe8ab58EuNs6OGsFliWf00PyDrPGLK"
                },
                "label_share": {
                    "id": 125,
                    "hprice": "200",
                    "dprice": "1000",
                    "label_id": "44",
                    "vehicle_id": 119
                },
                "usages": {
                    "previos_usage": {},
                    "current_usage": {
                        "id": 63,
                        "from": null,
                        "to": null
                    },
                    "current_user": {
                        "id": 416,
                        "name": "fahad",
                        "image": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-11-18-093446-yRqdUCwtAK.png"
                    }
                },
                "share": true,
                "deleted_at": false
            },
            "encryption": {
                "bluetooth_key": null,
                "bluetooth_slot": null
            }
        },
        {
            "id": 38,
            "start_date": "2021-11-26 07:00:52",
            "end_date": "2021-11-29 07:00:52",
            "token": "909829132",
            "status": "0",
            "vehicle_id": {
                "id": 119,
                "name": "usman's vehicle",
                "tags": "sports, speed",
                "year": "2020",
                "vehicle_company_id": 16,
                "vehicle_company_name": "BMW",
                "vehicle_model_id": 18,
                "vehicle_model_name": "M3",
                "key_id": 15,
                "key_name": "Good key",
                "license": "ks302",
                "can_update": false,
                "colour": "black",
                "doors": 4,
                "ignition": "1",
                "door_button": 0,
                "trunk_button": 1,
                "detail": {
                    "id": 121,
                    "device_code": "usmandevice1",
                    "fuel": 0,
                    "latitude": 0,
                    "longitude": 0,
                    "doors": "false",
                    "trunk": "true",
                    "tank_size": "0"
                },
                "file": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-11-18-094132-6Qeb82pzde.png",
                "thumbnail": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-11-18-094132-1FcR16OmGt.png",
                "user": {
                    "id": 415,
                    "code": null,
                    "name": "usman saeed",
                    "email": "usman@user.com",
                    "contact": null,
                    "type": "operator",
                    "image": "https://dev.movitronic.com/assets/images/default_vehicle.png"
                },
                "active_shares": 1,
                "share_code": "115231",
                "label": {
                    "id": 44,
                    "name": "Asad",
                    "email": "asad@whitelabel.com",
                    "contact_no": "+923171440000",
                    "color": "white",
                    "api_key": "Nr5j3AZ7lxF8wUEzIpBeVk1TwydZp7vk",
                    "file": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-11-23-120727-8390D5J0Z8.png",
                    "is_used": true,
                    "vehicle_id": 119,
                    "strip_key": "pk_test_51GzLtKLbPf34pHVYeJqkB7vSfnFMAO0uKmcI2sTPfJ9RjgqCqaScXYFp5C9WfanyaM14Y7ebAXhwMXtMvBAT1IO400h8hJYwAq",
                    "strip_secret": "sk_test_51GzLtKLbPf34pHVY6cPVWHIejcFWwc2yicFWx4nLe06waWsa0o7L1h2A2h0U6xeUIqiBoe8ab58EuNs6OGsFliWf00PyDrPGLK"
                },
                "label_share": {
                    "id": 125,
                    "hprice": "200",
                    "dprice": "1000",
                    "label_id": "44",
                    "vehicle_id": 119
                },
                "usages": {
                    "previos_usage": {},
                    "current_usage": {
                        "id": 63,
                        "from": null,
                        "to": null
                    },
                    "current_user": {
                        "id": 416,
                        "name": "fahad",
                        "image": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-11-18-093446-yRqdUCwtAK.png"
                    }
                },
                "share": true,
                "deleted_at": false
            },
            "encryption": {
                "bluetooth_key": null,
                "bluetooth_slot": null
            }
        },
        {
            "id": 42,
            "start_date": "2021-11-26 10:22:39",
            "end_date": "2021-11-26 18:21:39",
            "token": "253589229",
            "status": "0",
            "vehicle_id": {
                "id": 55,
                "name": "Testing Vehicle",
                "tags": "sports",
                "year": "2030",
                "vehicle_company_id": 12,
                "vehicle_company_name": "abceP",
                "vehicle_model_id": 9,
                "vehicle_model_name": "Daimler Moto8",
                "key_id": 11,
                "key_name": "bc-001",
                "license": "500",
                "can_update": true,
                "colour": "white",
                "doors": 2,
                "ignition": "1",
                "door_button": 0,
                "trunk_button": 1,
                "detail": {
                    "id": 55,
                    "device_code": "0003e44b",
                    "fuel": 5,
                    "latitude": 15,
                    "longitude": 20,
                    "doors": "false",
                    "trunk": "true",
                    "tank_size": "0"
                },
                "file": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-06-25-051526-wGl5C9choX.png",
                "thumbnail": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-06-25-051526-xXrijtSIXv.png",
                "user": {
                    "id": 84,
                    "code": null,
                    "name": "Hello World 1",
                    "email": "hello@world.com",
                    "contact": "+923413396669",
                    "type": "operator",
                    "image": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-09-01-174351-kUkD46qtoS.png"
                },
                "active_shares": 3,
                "share_code": "341653",
                "label": {
                    "id": 11,
                    "name": "movitronic",
                    "email": "test@whitelabel.com",
                    "contact_no": "+92333",
                    "color": "black",
                    "api_key": "thEMN571FqkX24bi1aI0ylS9Kdf598dM",
                    "file": "https://movitronicbucket2.s3.eu-north-1.amazonaws.com/2021-10-12-065000-JWpq9tABac.png",
                    "is_used": true,
                    "vehicle_id": 1,
                    "strip_key": "pk_test_51GzLtKLbPf34pHVYeJqkB7vSfnFMAO0uKmcI2sTPfJ9RjgqCqaScXYFp5C9WfanyaM14Y7ebAXhwMXtMvBAT1IO400h8hJYwAq",
                    "strip_secret": "sk_test_51GzLtKLbPf34pHVY6cPVWHIejcFWwc2yicFWx4nLe06waWsa0o7L1h2A2h0U6xeUIqiBoe8ab58EuNs6OGsFliWf00PyDrPGLK"
                },
                "label_share": {
                    "id": 3,
                    "hprice": "250",
                    "dprice": "500",
                    "label_id": "11",
                    "vehicle_id": 55
                },
                "usages": {
                    "previos_usage": {
                        "id": 159,
                        "from": "8MQ72222+22",
                        "to": null
                    },
                    "current_usage": {
                        "id": 160,
                        "from": "8MQ72222+22",
                        "to": null
                    },
                    "current_user": {
                        "id": 426,
                        "name": "shahid",
                        "image": null
                    }
                },
                "share": true,
                "deleted_at": false
            },
            "encryption": {
                "bluetooth_key": null,
                "bluetooth_slot": null
            }
        }
    ],
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 8,
        "to": 15,
        "total": 110,
        "path": "https://dev.movitronic.com/v1/shares/list",
        "next_page_url": "https://dev.movitronic.com/v1/shares/list?page=2&share_type=expire&api_key=thEMN571FqkX24bi1aI0ylS9Kdf598dM",
        "prev_page_url": null
    }
}  
                
				
			

Booking

Movitronic’s technology suite for car rental businesses includes everything you need: customer facing mobile apps, digital key hardware, a robust server system, and easy integration with fleet and booking management systems. Movitronic has vast features and one of it is booking feature. Booking facilitate you with the functionality to manage your vehicle booking automatically via our system and system also keep you upto-date with the booking process and flow like booking start, booking expiry and booking complete.

ENDPOINTS
				
					GET  /bookings
POST  /bookings/create
POST  /bookings/update
DELETE  /bookings/delete/{id}
GET  /bookings/get/{id}
POST  /bookings/upload/image
DELETE  /bookings/delete/image/{imageId}
				
			

Create a Booking

The Booking Create API allows users to create booking into the system. Below we will provide you all params detail which gonna needed to create a booking.

Parameters

start_date (UTC) required
The start date must be a date and it should be in UTC and its format should be this ( Y-m-d H:i:s )


end_date (UTC) required
The end date must be a date and it should be in UTC and its format should be this ( Y-m-d H:i:s )


api_key required
This key must be provided that will used to authenticate the user and if not provided it will return an unauthorized error.


vehicle_id required

This is the vehicle ID that we are using to create a booking against a vehicle. While creating a booking your device must be active else it throws an error.


main_driver required

This is the main driver email which is required to create a booking against a specific user so we can also send booking invitations and other notifications to the respective email.


additional_drivers optional

This is the additional driver attribute if the rental company wants to include more users in a single booking. It will create a booking and will send invitations to these additional drivers also.


contract required

This is an HTML attribute that accepts html tags and also stores against booking which the rental company will utilize to show the contract to respective users.


vehicle_condition_pdf required

It accepts a pdf file which you need to send along others. Customers can see the vehicle condition report pdf when you upload this and it will provide much detail to customers about your service.

 

pickup_station_geofence optional

It’s pickup coordinates that need to be in an array and can have multiple coordinates with lat and long. It defines from where the vehicle should be pickup. Here is an example of how it can be

				
					    [
        {
            "lat": 20.13,
            "long": 10.13
        }
    ],
				
			
 
dropoff_station_geofence optional

It’s dropoff coordinates that need to be in an array and can have multiple coordinates with lat and long. It defines where customers have to drop the vehicle and we can name it as parking position also. Here is an example of how it can below. 

				
					    [
        {
            "lat": 20.13,
            "long": 10.13
        }
    ],
				
			
extra_insurance_content_en optional

This text is optional and you can send any html formatted content which you can then later utilize to show insurance details. You need to enter English language insurance in it.


extra_insurance_content_et optional

This text is optional and you can send any html formatted content which you can then later utilize to show insurance details. You need to enter Estonia language insurance in it.


insurance_price optional

This is a double input field that represents the insurance price and informs customers what is our insurance price if they need to add premium insurance or not.


agent optional

This is a text field that represents the insurance agent name which helps the user to develop trust in which the insurance company is integrated with our system.


excess_amount optional

This is a double input field that needs to be sent along with the agent that the user chooses. It shows the customer how much the agent charges for it.


extras optional

It’s a dynamic field that need to be in an array and can have multiple object item in it. It will helpfull in contract to show customers what else we are providing to him. Some of example I am attaching below. 

				
					    [
        {
            "title": "Insurance",
            "title_en": "Insurance",
            "title_es": "Insurance",
            "price": 10,
            "is_daily": true,
            "is_vat": false
        },{
            "title": "Fuel fee",
            "title_en": "Fuel fee",
            "title_es": "Fuel fee",
            "price": 50,
            "is_daily": false,
            "is_vat": true
        },{
            "title": "tyre puncture",
            "title_en": "tyre puncture",
            "title_es": "tyre puncture",
            "price": 4,
            "is_daily": true,
            "is_vat": true
        }
    ]
				
			
Errors
API-KEY
				
					Code            401
Description 	Unauthorized user, api key must be valid.
				
			
Vehicle Not Owned By Whitelabel
				
					Code            400
Description     This vehicle is not shared yet. Please assign this vehicle first.
				
			
Booking Already Exist
				
					Code        	400
Description     A booking is already exist. Please choose different dateTime or choose an-other vehicle
				
			
START_DATE, END_DATE
				
					Code	        400
Description     share end date must be in future
				
			
Validation Error
				
					{
    "code": 400,
    "status": "false",
    "message": "All Fields are required",
    "data": {
        "start_date": "The start date field is required.",
        "end_date": "The end date field is required.",
        "main_driver": "The main driver field is required.",
        "vehicle_id": "The vehicle id field is required."
    }
}
				
			
ENDPOINTS
				
					POST  /bookings/create
				
			
Body(Example)
				
					{
    "api_key": "*****************",
    "start_date": "2023-12-18 17:56:01",
    "end_date":"2023-12-18 19:02:00",
    "main_driver":"abc@gmail.com",
    "vehicle_id":202,
    "additional_drivers":"example@gmail.com,example1@gmail.com",
    "contract": "",
    "vehicle_condition_pdf": "",//It should be an file
    "pickup_station_geofence":[
        {
            "lat": 20.13,
            "long": 10.13
        }
    ],
    "dropoff_station_geofence":[
        {
            "lat": 20.13,
            "long": 10.13
        }
    ],
    "extra_insurance_content_en":"",
    "extra_insurance_content_et":"",
    "insurance_price":"",
    "agent": "ERGO Insurance SE",
    "excess_amount":300,
    "extras": [
        {
            "title": "Insurance",
            "title_en": "Insurance",
            "title_es": "Insurance",
            "price": 10,
            "is_daily": true,
            "is_vat": false
        },{
            "title": "Fuel fee",
            "title_en": "Fuel fee",
            "title_es": "Fuel fee",
            "price": 50,
            "is_daily": false,
            "is_vat": true
        },{
            "title": "tyre puncture",
            "title_en": "tyre puncture",
            "title_es": "tyre puncture",
            "price": 4,
            "is_daily": true,
            "is_vat": true
        }
    ]
}
				
			
Response
				
					{
    "code": 200,
    "data": [],
    "status": "true",
    "message": "Success"
}
				
			

Update Booking

The Booking Update API allows users to update booking information of already created booking. Below we will provide you all params detail which gonna needed to create a booking.

Parameters

start_date (UTC) required
The start date must be a date and it should be in UTC and its format should be this ( Y-m-d H:i:s )


end_date (UTC) required
The end date must be a date and it should be in UTC and its format should be this ( Y-m-d H:i:s )


api_key required
This key must be provided that will used to authenticate the user and if not provided it will return an unauthorized error.


vehicle_id required

This is the vehicle ID that we are using to create a booking against a vehicle. While creating a booking your device must be active else it throws an error.


main_driver required

This is the main driver email which is required to create a booking against a specific user so we can also send booking invitations and other notifications to the respective email.


additional_drivers optional

This is the additional driver attribute if the rental company wants to include more users in a single booking. It will create a booking and will send invitations to these additional drivers also.


contract required

This is an HTML attribute that accepts html tags and also stores against booking which the rental company will utilize to show the contract to respective users.


vehicle_condition_pdf required

It accepts a pdf file which you need to send along others. Customers can see the vehicle condition report pdf when you upload this and it will provide much detail to customers about your service.

 

pickup_station_geofence optional

It’s pickup coordinates that need to be in an array and can have multiple coordinates with lat and long. It defines from where the vehicle should be pickup. Here is an example of how it can be

				
					    [
        {
            "lat": 20.13,
            "long": 10.13
        }
    ],
				
			
 
dropoff_station_geofence optional

It’s dropoff coordinates that need to be in an array and can have multiple coordinates with lat and long. It defines where customers have to drop the vehicle and we can name it as parking position also. Here is an example of how it can below. 

				
					    [
        {
            "lat": 20.13,
            "long": 10.13
        }
    ],
				
			
extra_insurance_content_en optional

This text is optional and you can send any html formatted content which you can then later utilize to show insurance details. You need to enter English language insurance in it.


extra_insurance_content_et optional

This text is optional and you can send any html formatted content which you can then later utilize to show insurance details. You need to enter Estonia language insurance in it.


insurance_price optional

This is a double input field that represents the insurance price and informs customers what is our insurance price if they need to add premium insurance or not.


agent optional

This is a text field that represents the insurance agent name which helps the user to develop trust in which the insurance company is integrated with our system.


excess_amount optional

This is a double input field that needs to be sent along with the agent that the user chooses. It shows the customer how much the agent charges for it.


extras optional

It’s a dynamic field that need to be in an array and can have multiple object item in it. It will helpfull in contract to show customers what else we are providing to him. Some of example I am attaching below. 

				
					    [
        {
            "title": "Insurance",
            "title_en": "Insurance",
            "title_es": "Insurance",
            "price": 10,
            "is_daily": true,
            "is_vat": false
        },{
            "title": "Fuel fee",
            "title_en": "Fuel fee",
            "title_es": "Fuel fee",
            "price": 50,
            "is_daily": false,
            "is_vat": true
        },{
            "title": "tyre puncture",
            "title_en": "tyre puncture",
            "title_es": "tyre puncture",
            "price": 4,
            "is_daily": true,
            "is_vat": true
        }
    ]
				
			
Errors
API-KEY
				
					Code            401
Description 	Unauthorized user, api key must be valid.
				
			
Vehicle Not Owned By Whitelabel
				
					Code            400
Description     This vehicle is not shared yet. Please assign this vehicle first.
				
			
Invalid Id
				
					Code            400
Description     No booking found.
				
			
Booking Already Exist
				
					Code        	400
Description     A booking is already exist. Please choose different dateTime or choose an-other vehicle
				
			
START_DATE, END_DATE
				
					Code	        400
Description     share end date must be in future
				
			
Validation Error
				
					{
    "code": 400,
    "status": "false",
    "message": "All Fields are required",
    "data": {
        "start_date": "The start date field is required.",
        "end_date": "The end date field is required.",
        "main_driver": "The main driver field is required.",
        "vehicle_id": "The vehicle id field is required."
    }
}
				
			
ENDPOINTS
				
					POST  /bookings/update/{id}
				
			
Body(Example)
				
					{
    "api_key": "*****************",
    "start_date": "2023-12-18 17:56:01",
    "end_date":"2023-12-18 19:02:00",
    "main_driver":"abc@gmail.com",
    "vehicle_id":202,
    "additional_drivers":"example@gmail.com,example1@gmail.com",
    "contract": "",
    "vehicle_condition_pdf": "",//It should be an file
    "pickup_station_geofence":[
        {
            "lat": 20.13,
            "long": 10.13
        }
    ],
    "dropoff_station_geofence":[
        {
            "lat": 20.13,
            "long": 10.13
        }
    ],
    "extra_insurance_content_en":"",
    "extra_insurance_content_et":"",
    "insurance_price":"",
    "agent": "ERGO Insurance SE",
    "excess_amount":300,
    "extras": [
        {
            "title": "Insurance",
            "title_en": "Insurance",
            "title_es": "Insurance",
            "price": 10,
            "is_daily": true,
            "is_vat": false
        },{
            "title": "Fuel fee",
            "title_en": "Fuel fee",
            "title_es": "Fuel fee",
            "price": 50,
            "is_daily": false,
            "is_vat": true
        },{
            "title": "tyre puncture",
            "title_en": "tyre puncture",
            "title_es": "tyre puncture",
            "price": 4,
            "is_daily": true,
            "is_vat": true
        }
    ]
}
				
			
Response
				
					{
    "code": 200,
    "data": [],
    "status": "true",
    "message": "Success"
}
				
			

Get Booking Detail

The Booking Get api will provide you all information against booking id. You just need to provide correct booking id and it will give you all information related to it.

Parameters


api_key required
This key must be provided that will used to authenticate the user and if not provided it will return an unauthorized error.

Errors
API-KEY
				
					Code            401
Description 	Unauthorized user, api key must be valid.
				
			
Invalid Id
				
					Code            400
Description     No booking found.
				
			
ENDPOINTS
				
					get  /bookings/get/{id}
				
			
Response
				
					{
    "code": 200,
    "data": {
        "id": 2,
        "uuid": "*******",
        "contract": null,
        "booking_status": "Active booking",
        "agent": "ERGO Insurance SE",
        "pay_price": null,
        "check_in_odometer": null,
        "check_out_odometer": null,
        "check_in_fuel": null,
        "check_out_fuel": null,
        "excess_amount": 300,
        "extra_insurance_content": null,
        "extra_insurance_content_et": null,
        "start_date": "2024-01-18 15:56:01",
        "end_date": "2024-01-29 17:02:00",
        "vehicle_id": 202,
        "label_id": 11,
        "current_fuel": 0,
        "status": "1",
        "extras": [
            {
                "id": 7,
                "title": "Insurance",
                "title_en": "Insurance",
                "title_es": "Insurance",
                "price": 10,
                "is_daily": true,
                "is_vat": false,
                "created_at": "2024-01-22T15:05:16.000000Z",
                "booking_id": 2
            },
            {
                "id": 8,
                "title": "Fuel fee",
                "title_en": "Fuel fee",
                "title_es": "Fuel fee",
                "price": 50,
                "is_daily": false,
                "is_vat": true,
                "created_at": "2024-01-22T15:05:16.000000Z",
                "booking_id": 2
            },
            {
                "id": 9,
                "title": "tyre puncture",
                "title_en": "tyre puncture",
                "title_es": "tyre puncture",
                "price": 4,
                "is_daily": true,
                "is_vat": true,
                "created_at": "2024-01-22T15:05:16.000000Z",
                "booking_id": 2
            }
        ],
        "check_parking": null,
        "check_things": null,
        "return_key": null,
        "vehicle_condition_pdf": null,
        "insurance_price": null,
        "pickup_station_geofence": [
            {
                "lat": 20.13,
                "long": 10.13
            }
        ],
        "dropoff_station_geofence": [
            {
                "lat": 20.13,
                "long": 10.13
            }
        ],
        "fuel_tank_capacity": 55,
        "fuel_tank_price": 97,
        "signature": null,
        "checkout_at": null,
        "extra_insurance": null,
        "fuel_coverage": false,
        "is_contract_signed": null,
        "contract_signed_at": null,
        "images": [],
        "vehicle_detail": {
            "id": 202,
            "name": "Toyota Corolla",
            "license": "623 LSX",
            "file": "",
            "thumbnail": ""
        },
        "previous_vehicle": null,
        "drivers": [
            {
                "id": 2,
                "user_contact": "*****************",
                "user_name": "",
                "type": "1",
                "extra_insurance": 0,
                "is_license_verified": false,
                "license_verification_status": "not-created",
                "license_number": "",
                "license_verification_failed_reason": ""
            }
        ],
        "created_at": "2024-01-18 11:10:49",
        "updated_at": "2024-01-22 15:05:16"
    },
    "status": "true",
    "message": "Success"
}
				
			

Delete Booking

The Booking delete api will allow you to delete specific booking if it’s no more use for you. You can delete it by just providing booking id.

Parameters


api_key required
This key must be provided that will used to authenticate the user and if not provided it will return an unauthorized error.

Errors
API-KEY
				
					Code            401
Description 	Unauthorized user, api key must be valid.
				
			
Invalid Id
				
					Code            400
Description     No booking found.
				
			
ENDPOINTS
				
					delete  /bookings/delete/{id}
				
			
Response
				
					{
    "code": 200,
    "data": [],
    "status": "true",
    "message": "Record Deleted Successfully"
}
				
			

Upload Images

We provide functionality to upload images which we allow customers to upload against specific category. We have define some category for images which are

  • Check In Images
  • Checout Images
  • Extra Images
  • Damage Report

These are the category we can allow to upload images. Here are ids of each category

 
check-in-top-left: 1
check-in-top-right: 2
check-in-bottom-left: 3
check-in-bottom-right: 4
 
check-out-top-left: 7
check-out-top-right: 8
check-out-bottom-left: 9
check-out-bottom-right: 10
 
extras: 5
damage report: 6

Parameters

booking_id required
Booking id is required to upload images against specific booking. You can get it from list booking api


comment optional
It is a text field that just acts as notes.


type required
This is a category of image that the customer needs to provide while uploading images. We have 4 sides of images of cars that users can upload while check-in and check-out. All types are defined above.


image required
This is file type which should be png,jpg or jpeg. 

Errors
API-KEY
				
					Code            401
Description 	Unauthorized user, api key must be valid.
				
			
No Booking Found
				
					Code            401
Description 	No booking found.
				
			
Validation Error
				
					{
    "code": 400,
    "status": "false",
    "message": "All Fields are required",
    "data": {
        "image": "The image field is required.",
        "type": "The type field is required. | The selected type is invalid."
    }
}
				
			
ENDPOINTS
				
					POST  /bookings/upload/image
				
			
Response
				
					{
    "code": 200,
    "data": [],
    "status": "true",
    "message": "Success"
}
				
			

Delete Images

The Booking system allows to delete uploaded images also. All you need to use delete image api and provide imageId and also need to provide booking_id so to make system more secure not allow anyone to delete another booking images.

Parameters

booking_id required
Booking id is required to upload images against specific booking. You can get it from list booking api

Errors
API-KEY
				
					Code            401
Description 	Unauthorized user, api key must be valid.
				
			
Invalid Image Id
				
					Code            400
Description 	No Image found against this image.
				
			
No Booking Found
				
					Code            400
Description 	No booking found.
				
			
Unable to delete sides images
				
					Code            400
Description 	This image is part of vehicle sides image. You cannot delete it.
				
			
Validation Error
				
					{
    "code": 400,
    "status": "false",
    "message": "All Fields are required",
    "data": {
        "image": "The image field is required.",
        "type": "The type field is required. | The selected type is invalid."
    }
}
				
			
ENDPOINTS
				
					delete  /bookings/delete/image/{imageId}
				
			
Response
				
					{
    "code": 200,
    "data": [],
    "status": "true",
    "message": "Success"
}
				
			

Command API

This api will provide you control on your device. You can use command door and trunk to control them either to open or close them.

Parameters

api_key required
This key must be provided that will used to authenticate user and if not provide it will return un-authorization error.


unique_id required
This token is required and should be same token that you have send while creating share. If you have not given this token then you can get this token by using get share api.

"token": "123"


command required
Customer can send command and we have set restriction which is only allowing to send these commands. doors, trunk


data required
It’s a json value which movitronic will receive and will decode the data and utilize values. Possible json that system will receive is [ 'value' => '1' ] or [ 'value' => '0' ] for door command only and for trunk we doesn’t need any data value.


extra_param optional
It’s a json value which movitronic will receive and will decode the data and store value.

Errors
CODE: 400
				
					No share against this unique_id found.
his share is not started yet.
No share against this unique_id found.
No share against this unique_id found.
				
			
CODE: 402
				
					Shares Date Expires.
				
			
CODE: 403
				
					Access Denied! You does not has permission to proceed with this command.
				
			
DEVICE ERROR
				
					Code            408
Description     This error comes when device throw any error so we are managing it and displaying error. It usually happens when your device is not powered on and you are trying to create share.
				
			
ENDPOINTS
				
					POST  /command
				
			
ENDPOINTS
				
					{
    "code": 200,
    "data": {
        "door": 0,
        "car_id": 128
    },
    "status": "true",
    "message": "Success"
}
				
			

Webhook EndPoints

Movitronic will use these webhook endpoints to trigger events like door, trunk and key holder etc. You have to provide this end point on your website where you hosted your website.

Event Parameters (Doors, Trunk)

unique_id
This key will be your sass unique key that you got by movitronic admin after registration.


command
Movitronic will inform you about which event is this. It can be
“1” – doors
“2” – trunk


status
For doors it can be open, closed and for trunk it will be open always


vehicle_id
Movitronic will also send you vehicle id so you can easily handle events at your side.

Event Parameters (Heartbeat)

unique_id
This key will be your sass unique key that you got by movitronic admin after registration.


command
Movitronic will inform you about which event is this. It can be

1: doors
2: trunk


vehicle_id
Movitronic will also send you vehicle id so you can easily handle events at your side.


data
Movitronic will also send some extra data about heartbeat.

1: lat
2: long
3: battery_voltage
4: supply_voltage
5: engine_rpm
6: user_id
7: fuel

Event Parameters (Keyholder)

api_key
This key will be your sass unique key that you got by movitronic admin after registration.


command
Movitronic will inform you about which event is this. The command will be key-holder


label_id
Movitronic will send you id of your sass registration that exist in our system.


value
Movitronic will you value attribute that shows that key is placed in key holder or not. value grater than 4 show not placed yet and less than 4 show key is placed in key holder.


user_id
Movitronic will send you user id who actually triggering this event.

Version History

Our team is working day and night and putting full effort to provide our customer a well maintained software and resolved all our customer issues so we are maintaining version history to give you update about any new feature or bug fixing.

Version 1.1 – February 7, 2024

Copyright & License

Code released under the Movitronic License.

For more information about copyright and license check choosealicense.com.

Need any help? Contact Our Experts
Contact Movitronic experts for more information.