Authenticate with the AutoLeap Partner API to obtain access tokens.
All other endpoints require a valid access token.
Overview
The AutoLeap API uses the REST standard, which means you interact with it by making requests over HTTP.
A request usually includes:
- An HTTP method (like
GETorPOST) - A path (the address of the resource)
- Optional headers and parameters (in the path, query string, or request body)
When you send a request, the API responds with:
- A status code (to indicate success or failure)
- Response headers
- Sometimes a response body with useful data
The API reference describes the method, path, and parameters for each endpoint, and includes sample requests and responses you can use as a guide.
Languages
Servers
Production
https://partnerapi.myautoleap.com/v2/
Bodyapplication/jsonrequired
Example: [{"customerType":"Regular","firstName":"John","lastName":"Doe","displayName":"John Doe","companyName":"Doe Enterprises","phones":[{"number":"123-456-7890","label":"Work","type":"mobile","primary":true,"active":true}],"emails":[{"emailAddress":"john.doe@example.com","label":"Personal","primary":true,"active":true}],"communicationPreference":"email","notes":"VIP customer","mainAddress":{"address":"123 Main St","city":"New York","state":"NY","zip":"10001","country":"USA"},"taxExempt":false,"tags":[{"name":"VIP","color":"FFFF00"}],"chargeAccount":true,"preferredLocationID":"LOC123","languagePreference":"EN","okForMarketing":true}]
Example: [{"number":"123-456-7890","label":"Work","type":"mobile","primary":true,"active":true}]
Example: [{"emailAddress":"john.doe@example.com","label":"Personal","primary":true,"active":true}]
Example: {"address":"123 Main St","city":"New York","state":"NY","zip":"10001","country":"USA"}
Example: {"address":"123 Main St","city":"New York","state":"NY","zip":"10001","country":"USA"}
- Productionhttps://partnerapi.myautoleap.com/v2/customers
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://partnerapi.myautoleap.com/v2/customers \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"companyId": "98392",
"customers": [
{
"customerType": "Regular",
"firstName": "John",
"lastName": "Doe",
"displayName": "John Doe",
"companyName": "Doe Enterprises",
"phones": [
{
"number": "123-456-7890",
"label": "Work",
"type": "mobile",
"primary": true,
"active": true
}
],
"emails": [
{
"emailAddress": "john.doe@example.com",
"label": "Personal",
"primary": true,
"active": true
}
],
"communicationPreference": "email",
"notes": "VIP customer",
"mainAddress": {
"address": "123 Main St",
"city": "New York",
"state": "NY",
"zip": "10001",
"country": "USA"
},
"taxExempt": false,
"tags": [
{
"name": "VIP",
"color": "FFFF00"
}
],
"chargeAccount": true,
"preferredLocationID": "LOC123",
"languagePreference": "EN",
"okForMarketing": true
}
]
}'Response
application/json
{ "type": "Success", "message": "Customer creation processed", "results": { "success": [ … ], "failed": [] } }
- Productionhttps://partnerapi.myautoleap.com/v2/customers
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://partnerapi.myautoleap.com/v2/customers?companyId=string&search=string&okForMarketing=true&updatedDateStart=2019-08-24T14%3A15%3A22Z&updatedDateEnd=2019-08-24T14%3A15%3A22Z&lastInvoiceDateStart=2019-08-24T14%3A15%3A22Z&lastInvoiceDateEnd=2019-08-24T14%3A15%3A22Z&sort=string&customerType=string&sortDirection=ASC&size=10&page=1' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Paginated list of customers
Example: [{"customerId":"CUST001","companyId":"98392","customerStatus":"Active","firstName":"John","lastName":"Doe","emails":[{"emailAddress":"john.doe@example.com","label":"Personal","primary":true,"active":true}],"phones":[{"number":"123-456-7890","label":"Work","type":"mobile","primary":true,"active":true}],"customerType":"Regular","communicationPreference":"email","notes":"VIP customer","mainAddress":{"address":"123 Main St","city":"New York","state":"NY","zip":"10001","country":"USA"},"taxExempt":false,"tags":[{"name":"VIP","color":"FFFF00"}],"chargeAccount":true,"preferredLocationID":"LOC123","languagePreference":"EN","okForMarketing":true,"createdDate":"2024-01-15T08:30:00Z","updatedDate":"2024-03-10T12:00:00Z"}]
Response
application/json
{ "content": [ { … } ] }
Bodyapplication/jsonrequired
Example: [{"number":"123-456-7890","label":"Work","type":"mobile","primary":true,"active":true}]
Example: [{"emailAddress":"john.doe@example.com","label":"Personal","primary":true,"active":true}]
Example: {"address":"123 Main St","city":"New York","state":"NY","zip":"10001","country":"USA"}
Example: {"address":"123 Main St","city":"New York","state":"NY","zip":"10001","country":"USA"}
Enum"Agricultural production""Charitable organization""Direct mail""Direct pay permit""Educational organization""Federal government""Foreign diplomat""Hospital""Industrial production / manufacturing""Local government"
- Productionhttps://partnerapi.myautoleap.com/v2/customers
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
https://partnerapi.myautoleap.com/v2/customers \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"companyId": "string",
"customers": [
{
"customerId": "string",
"customerType": "regular",
"firstName": "string",
"lastName": "string",
"displayName": "string",
"companyName": "string",
"phones": [
{
"number": "123-456-7890",
"label": "Work",
"type": "mobile",
"primary": true,
"active": true
}
],
"emails": [
{
"emailAddress": "john.doe@example.com",
"label": "Personal",
"primary": true,
"active": true
}
],
"communicationPreference": "mobile",
"notes": "string",
"mainAddress": {
"address": "123 Main St",
"city": "New York",
"state": "NY",
"zip": "10001",
"country": "USA"
},
"secondaryAddress": {
"address": "123 Main St",
"city": "New York",
"state": "NY",
"zip": "10001",
"country": "USA"
},
"taxExempt": true,
"reasonForTaxExempt": "Agricultural production",
"tags": [
{
"name": "VIP",
"color": "FFFF00"
}
],
"chargeAccount": true,
"chargeAccountDetails": {
"allowedLimit": 0,
"usedLimit": 0,
"unlimited": true
},
"preferredLocationID": "string",
"languagePreference": "EN",
"okForMarketing": true
}
]
}'Response
application/json
{ "success": true, "message": "Update processed", "data": { "updatedCount": 1, "errors": [] } }
- Productionhttps://partnerapi.myautoleap.com/v2/customers
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
https://partnerapi.myautoleap.com/v2/customers \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"companyId": "10001",
"customers": [
{
"customerId": "CUST001"
}
]
}'Response
application/json
{ "success": true, "message": "Request completed successfully", "data": {} }
- Productionhttps://partnerapi.myautoleap.com/v2/customers/{customerId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://partnerapi.myautoleap.com/v2/customers/{customerId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Customer data
Example: [{"customerId":"CUST001","companyId":"98392","customerStatus":"Active","firstName":"John","lastName":"Doe","emails":[{"emailAddress":"john.doe@example.com","label":"Personal","primary":true,"active":true}],"phones":[{"number":"123-456-7890","label":"Work","type":"mobile","primary":true,"active":true}],"customerType":"Regular","communicationPreference":"email","notes":"VIP customer","mainAddress":{"address":"123 Main St","city":"New York","state":"NY","zip":"10001","country":"USA"},"taxExempt":false,"tags":[{"name":"VIP","color":"FFFF00"}],"chargeAccount":true,"preferredLocationID":"LOC123","languagePreference":"EN","okForMarketing":true,"createdDate":"2024-01-15T08:30:00Z","updatedDate":"2024-03-10T12:00:00Z"}]
Response
application/json
{ "content": [ { … } ] }