Authenticate with the AutoLeap Partner API to obtain access tokens.
All other endpoints require a valid access token.
API reference
/- Create Items (bulk)
Get items
Archive items (bulk) — set status to Inactive
Get item by id
Create Items (bulk)
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: [{"itemType":"part","itemName":"Brake Pad Set","itemNumber":"BP12345","status":"Active","taxable":true,"partDetails":{"defaultQuantity":1,"costPerUnit":25.5,"pricePerUnit":45,"isStockItem":true,"supplier":"NAPA","brand":"NAPA Pro"}},{"itemType":"tire","itemName":"Goodyear Eagle F1","itemNumber":"GY12345","status":"Active","taxable":true,"tireDetails":{"tireDisplayName":"Goodyear Eagle F1","model":"Eagle F1","brand":"Goodyear","tireWidth":245,"tireProfile":40,"tireSize":"18","defaultQuantity":4,"costPerUnit":100,"pricePerUnit":150,"seasonality":2}}]
Type of item to create.
"part"requirespartDetails."tire"requirestireDetails.
Enum"part""tire"
- Productionhttps://partnerapi.myautoleap.com/v2/items
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://partnerapi.myautoleap.com/v2/items \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"companyId": "SHOP5678",
"items": [
{
"itemType": "part",
"itemName": "Brake Pad Set",
"itemNumber": "BP12345",
"status": "Active",
"taxable": true,
"partDetails": {
"defaultQuantity": 1,
"costPerUnit": 25.5,
"pricePerUnit": 45,
"isStockItem": true,
"supplier": "NAPA",
"brand": "NAPA Pro"
}
},
{
"itemType": "tire",
"itemName": "Goodyear Eagle F1",
"itemNumber": "GY12345",
"status": "Active",
"taxable": true,
"tireDetails": {
"tireDisplayName": "Goodyear Eagle F1",
"model": "Eagle F1",
"brand": "Goodyear",
"tireWidth": 245,
"tireProfile": 40,
"tireSize": "18",
"defaultQuantity": 4,
"costPerUnit": 100,
"pricePerUnit": 150,
"seasonality": 2
}
}
]
}'Response
application/json
{ "success": true, "message": "Request completed successfully", "data": {} }
- Productionhttps://partnerapi.myautoleap.com/v2/items
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://partnerapi.myautoleap.com/v2/items?companyId=string&type=string&itemNumber=string&updatedDateStart=2019-08-24T14%3A15%3A22Z&updatedDateEnd=2019-08-24T14%3A15%3A22Z&size=100&page=1' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Response
application/json
{ "content": [ { … }, { … } ], "pageable": { "sort": { … }, "offset": 0, "pageSize": 100, "pageNumber": 1, "paged": true, "unpaged": false }, "totalPages": 1, "totalCount": 2, "last": true, "size": 100, "number": 1, "first": true, "sort": { "unsorted": true, "sorted": false, "empty": false }, "numberOfElements": 2, "empty": false }
- Productionhttps://partnerapi.myautoleap.com/v2/items
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
https://partnerapi.myautoleap.com/v2/items \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"companyId": "string",
"items": [
{
"itemId": "string"
}
]
}'Response
application/json
{ "success": true, "message": "Request completed successfully", "data": {} }
- Productionhttps://partnerapi.myautoleap.com/v2/items/{itemId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://partnerapi.myautoleap.com/v2/items/{itemId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Item detail
detailsPartDetails (object) or TireDetails (object) or LaborDetails (object) or DiscountDetails (object) or FeeDetails (object)
Structure depends on itemType:
part→ PartDetailstire→ TireDetailslabor→ LaborDetailsdiscount→ DiscountDetailsfee→ FeeDetails
One of:
Structure depends on itemType:
part→ PartDetailstire→ TireDetailslabor→ LaborDetailsdiscount→ DiscountDetailsfee→ FeeDetails
Response
application/json
{ "itemId": "string", "companyId": "string", "itemType": "part", "itemName": "string", "itemNameFR": "string", "itemNumber": "string", "category": "string", "subCategory": "string", "subSubCategory": "string", "description": "string", "descriptionFR": "string", "displayQuantityOnRO": true, "displayDescriptionOnRO": true, "status": "Active", "taxable": true, "commissionable": true, "internalNotes": "string", "salesCodeName": "string", "salesCode": "string", "details": { "defaultQuantity": 0, "costPerUnit": 0.1, "hasCore": true, "coreCost": 0.1, "totalCost": 0.1, "pricePerUnit": 0.1, "pricingMatrix": "string", "totalPrice": 0.1, "isStockItem": true, "supplier": "string", "brand": "string", "productLine": "string", "warrantyEligible": true, "warrantyName": "string", "associatedFeesName": [ … ] } }