In order to create a new monthly account via your app or website, you need to directly integrate into Valet Manager's Monthly Controller API. This API allows you to manage monthly account data.
When creating a new monthly account there are a number of key elements that have to be correctly set:
- garageId (The id of the garage)
- rate (the Full Gross Rate of the monthly account)
- effectiveDate (The start date of the monthly account)
- emailAddress (The new parker's email address)
- phone (The new parker's phone number)
- plate (The license plate of the vehicle)
- state (The state of the vehicle)
- make (The make of the vehicle)
- color (The color of the vehicle)
- type (The size type of the vehicle)
- automaticPayment (Should invoices be automatically paid)
- paymentDetails (The new payment method to be used with the automatic payment process.)
- authorizedDrivers (the list of people allowed to retrieve the vehicle from the facility)
- address (The billing/mailing address for the new account)
{
"effectiveDate": "2021-05-02T00:28:18.000Z",
"rate": "100",
"garageId": "d72046a64560ce9dadd6b2cac963f8d0",
"emailAddress": "john.i.payne@gmail.com",
"phone": "5555555555",
"firstName": "JOHN",
"lastName": "PAYNE",
"make": "Subaru",
"model": "Outback",
"color": "Black",
"plate": "ABC1234",
"type": "STANDARD",
"cardNumber": "",
"automaticPayment": true,
"paymentDetails": {
"addressId": "",
"bankAccountNumber": "",
"bankAccountType": "CHECKING",
"bankRoutingNumber": "",
"channels": [],
"creationDate": "",
"creditCardCVV": "123",
"creditCardCompanyName": "",
"creditCardExpirationDate": "09/24",
"creditCardExpirationDateWithoutSlash": "",
"creditCardHolderName": "JOHN PAYNE",
"creditCardPAN": "1111",
"creditCardPANWithoutSpace": "",
"creditCardType": "Visa",
"defaultPaymentMethod": false,
"driversLicense": "",
"driversLicenseState": "",
"error": false,
"errorDateTime": "",
"errorMessage": "",
"garageId": "d72046a64560ce9dadd6b2cac963f8d0",
"id": "",
"isSaveCard": true,
"paymentMethodName": "JOHN PAYNE",
"paymentToken": "4111111111111111",
"paymentType": "CREDITCARD",
"userId": ""
},
"authorizedDrivers": [{
"driversLicenseNumber": "TEMP",
"firstName": "JOHN",
"lastName": "Payne",
"middleName": "I ",
"phoneNumber": "5555555555"
}],
"address": {
"address": "1 Main St",
"address2": "",
"addressName": "",
"attention": "",
"city": "Engelwood Clifs",
"company": "",
"defaultAddress": false,
"documentId": "",
"state": "NJ",
"userId": "",
"zip": "07632"
}
}
Please see below for a sample request
curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'api_key: apiKey' --header 'Authorization: Bearer <token>' -d '{ \
"effectiveDate": "2021-05-02T00:28:18.000Z", \
"rate": "100", \
"garageId": "d72046a64560ce9dadd6b2cac963f8d0", \
"emailAddress": "john.i.payne%40gmail.com", \
"phone": "5555555555", \
"firstName": "JOHN", \
"lastName": "PAYNE", \
"make": "Subaru", \
"model": "Outback", \
"color": "Black", \
"plate": "ABC1234", \
"type": "STANDARD", \
"cardNumber": "", \
"automaticPayment": true, \
"paymentDetails": { \
"addressId": "", \
"bankAccountNumber": "", \
"bankAccountType": "CHECKING", \
"bankRoutingNumber": "", \
"channels": [], \
"creationDate": "", \
"creditCardCVV": "123", \
"creditCardCompanyName": "", \
"creditCardExpirationDate": "09/24", \
"creditCardExpirationDateWithoutSlash": "", \
"creditCardHolderName": "JOHN PAYNE", \
"creditCardPAN": "1111", \
"creditCardPANWithoutSpace": "", \
"creditCardType": "Visa", \
"defaultPaymentMethod": false, \
"driversLicense": "", \
"driversLicenseState": "", \
"error": false, \
"errorDateTime": "", \
"errorMessage": "", \
"garageId": "d72046a64560ce9dadd6b2cac963f8d0", \
"id": "", \
"isSaveCard": true, \
"paymentMethodName": "JOHN PAYNE", \
"paymentToken": "4111111111111111", \
"paymentType": "CREDITCARD", \
"userId": "" \
}, \
"authorizedDrivers": [{ \
"driversLicenseNumber": "TEMP", \
"firstName": "JOHN", \
"lastName": "Payne", \
"middleName": "I ", \
"phoneNumber": "5555555555" \
}], \
"address": { \
"address": "1 Main St", \
"address2": "", \
"addressName": "", \
"attention": "", \
"city": "Engelwood Clifs", \
"company": "", \
"defaultAddress": false, \
"documentId": "", \
"state": "NJ", \
"userId": "", \
"zip": "07632" \
} \
}' 'https://demo.api.valet-manager.com/monthlyAccount/demo/signUp'