Feeds
Feeds are incoming inventory files that are mapped to autoZnetwork. We currently accept SFTP feeds, with vendor credentials provided when creating the feed through the API.
We do provide a selection of common 3rd party vendors with formatting established already by using Feed Providers. These vendors are already in our system and as soon as the file is dropped in the SFTP directory, autoZnetwork will begin importing the inventory.
Anytime a file is dropped into the SFTP directory, it begins processing immediately. No more waiting around for the next hour to process the imported file!
Feed Providers
Provider | Value |
---|---|
Dealer Fire | dealer-fire |
vAuto | vauto |
Homenet | homenet |
Lot Wizard | lotwizard |
ASN Software | asn-software |
Feed Bundling
A common scenario that automotive vendors struggle to handle is moving inventory between locations without taking the vehicle offline. Consider the following scenario:
- A vehicle is located at Feed (Location) 1 (feed1.csv)
- The vehicle is added to Feed (Location) 2 (feed2.csv)
Most providers mark the vehicle as "sold" at Feed (Location) 1, and then create a new vehicle at Feed (Location) 2. This results in logs not going with the original vehicle, along with all sorts of disconnected data.
We offer "Feed Bundling" which allows you to wait for multiple feed files to arrive before processing resulting in the following:
- A vehicle is located at Feed (Location) 1 (feed1.csv)
- Bundling is enabled so Feed (Location) 1 will not be processed until the remaining files have arrived
- The vehicle is moved to Feed (Location) 2 (feed2.csv)
- feed1.csv and feed2.csv are combined, then the inventory is synced up resulting in the vehicle moving between locations without being taken offline.
List Feeds
GET Request: https://api.autoznetwork.com/v1/feeds
AUTOZNETWORK_TOKEN="your API token"
AUTOZNETWORK_ORG_ID="your organization id"
curl https://api.autoznetwork.com/v1/feeds \
-H "Authorization: Bearer $AUTOZNETWORK_TOKEN" \
-H "X-AutozNetwork-Organization-Id: $AUTOZNETWORK_ORG_ID" \
-H 'Accept: application/json'
Add a Feed
POST Request: https://api.autoznetwork.com/v1/feeds
AUTOZNETWORK_TOKEN="your API token"
AUTOZNETWORK_ORG_ID="your organization id"
curl -X POST https://api.autoznetwork.com/v1/feeds \
-H "Authorization: Bearer $AUTOZNETWORK_TOKEN" \
-H "X-AutozNetwork-Organization-Id: $AUTOZNETWORK_ORG_ID" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"active": true,
"supplemental": false,
"provider": "vauto",
"name": "your feed name",
"filenames": "filename1.csv,filename2.csv",
"mapping": "",
"location_mapping_type": "file",
"location_mapping": {
"LOCATION_ID": "filename1.csv",
"LOCATION_ID_2": "filename2.csv",
},
"driver": "sftp",
}'
Parameters
Parameter | Type | Description |
---|---|---|
active | Boolean | Determines whether to process the feed files when dropped. |
supplemental | Boolean | Identifies if the feed is a supplemental feed or inventory feed. |
provider | String | Feed Provider slug/value for pre-formatted mappings. |
name | String | A friendly name to identify the incoming feed. |
filenames | Array | An array of filenames that are whitelisted to be processed. |
mapping | Object | A mapping of column headers to values for the inventory feed. |
location_mapping_type | String | Determines whether the location_mapping is by "file" or "column". |
location_mapping | Object | Key value object, with the key being the LOCATION_ID and the filename matching a file in the "filenames" array. |
driver | String | Currently only "sftp" is supported. The credentials will be returned in the the "driver_settings". |
Response
{
"id": 5000,
"active": true,
"supplemental": false,
"provider": "vauto",
"name": "your feed name",
"filenames": [
"filename1.csv",
"filename2.csv"
],
"mapping": "",
"location_mapping_type": "file",
"location_mapping": {
"LOCATION_ID": "filename1.csv",
"LOCATION_ID_2": "filename2.csv",
},
"driver": "sftp",
// Generated Driver Settings
"driver_settings": {
"sftp_host": "sftp.autoznetwork.com",
"sftp_port": "22",
"sftp_user": "vauto_username",
"sftp_password": "RandomPassword123!"
},
"created_at": "2020-07-29 16:08:30",
"updated_at": "2020-07-29 16:08:30",
}