Vendors
WriteVendor objects represent top-level vendor data from AppFolio® — the payee records that bills and dispatched work orders reference. Skywalk API lets you list the vendors in your account and create new ones.
- Get All Vendors
GET /v1/vendors - Create a Vendor
POST /v1/vendorsWrite
The Vendor Object
Attributes
"466"
"ACME Plumbing Inc."
null
"1234 Warm Weather Rd. Los Angeles, CA 90001"
[{"label":"Office","phone":"(555) 123-4567"}]null
More Attributes
{
"appfolioId": "466",
"companyName": "ACME Plumbing Inc.",
"name": null,
"firstName": null,
"lastName": null,
"fullAddress": "1234 Warm Weather Rd. Los Angeles, CA 90001",
"address": {
"street": "1234 Warm Weather Rd.",
"street2": null,
"city": "Los Angeles",
"state": "CA",
"zip": "90001"
},
"phoneNumbers": [
{
"label": "Office",
"phone": "(555) 123-4567"
}
],
"email": null,
"defaultGLAccount": null,
"paymentType": "check",
"send1099": false,
"workersCompExpires": null,
"liabilityInsExpires": null,
"epaCertExpires": null,
"stateLicExpires": null,
"contractExpires": null,
"tags": [],
"enrolledInNetVendor": false,
"autoInsExpires": null,
"vendorTrades": null,
"doNotUseForWorkOrder": false,
"terms": null
}
Get All Vendors
GET /v1/vendors
Follows: Authentication • Caching • Polling • List Response Format • Scheduled Job
The vendors endpoint returns a list of all vendors in your AppFolio® account. This endpoint should respond immediately with your most recently cached data.
Parameters
This endpoint requires no additional parameters.
Returns
The standard List Response Format with a data property containing an array of Vendor objects.
curl -X GET 'https://api.skywalkapi.com/v1/vendors' \
-H "X-API-Key: PUT_YOUR_API_KEY_HERE"
{
"meta": {
"status": "ok",
"path": "/v1/vendors",
"query": {},
"count": 1,
"lastUpdated": 1610992228
},
"links": {
"next": "/v1/vendors?cursor=abcdefg"
},
"data": [
{
"appfolioId": "466",
"companyName": "ACME Plumbing Inc.",
"name": null,
"firstName": null,
"lastName": null,
"fullAddress": "1234 Warm Weather Rd. Los Angeles, CA 90001",
"address": {
"street": "1234 Warm Weather Rd.",
"street2": null,
"city": "Los Angeles",
"state": "CA",
"zip": "90001"
},
"phoneNumbers": [
{
"label": "Office",
"phone": "(555) 123-4567"
}
],
"email": null,
"defaultGLAccount": null,
"paymentType": "check",
"send1099": false,
"workersCompExpires": null,
"liabilityInsExpires": null,
"epaCertExpires": null,
"stateLicExpires": null,
"contractExpires": null,
"tags": [],
"enrolledInNetVendor": false,
"autoInsExpires": null,
"vendorTrades": null,
"doNotUseForWorkOrder": false,
"terms": null
}
]
}
Create a Vendor
POST /v1/vendors Write
Follows: Authentication • Caching • Polling • List Response Format
Creates a new vendor.
Parameters
Returns
The standard List Response Format with a data property containing an array with one Created Vendor object.
The response reflects the vendor as stored in AppFolio, not the request as
submitted. The address, phone number and email are returned as address,
phoneNumbers and email, the same way the
Vendor list row returns them;
glAccountId is returned as the account's displayed defaultGLAccount, and
tradeIds as the displayed vendorTrades string.
curl -X POST 'https://api.skywalkapi.com/v1/vendors' \
-H "X-API-Key: PUT_YOUR_API_KEY_HERE" \
-H "Content-Type: application/json" \
-d '{"companyName":"ACME Plumbing Inc.","firstName":"Jane","lastName":"Smith","phoneNumber":"(555) 123-4567","email":"jane.smith@example.com","addressStreet":"1234 Warm Weather Rd.","addressCity":"Los Angeles","addressState":"CA","addressZip":"90001","tradeIds":["6"]}'
{
"meta": {
"status": "ok",
"path": "/v1/vendors",
"query": {
"companyName": "ACME Plumbing Inc."
},
"count": 1,
"lastUpdated": 1610992228
},
"errors": [],
"data": [
{
"appfolioId": "466",
"name": "Smith, Jane",
"firstName": "Jane",
"lastName": "Smith",
"companyName": "ACME Plumbing Inc.",
"useCompanyNameAsDisplayName": true,
"vendorType": "general",
"taxpayerName": "ACME Plumbing Inc.",
"send1099": true,
"address": {
"street": "1234 Warm Weather Rd.",
"street2": null,
"city": "Los Angeles",
"state": "CA",
"zip": "90001",
"country": "US"
},
"phoneNumbers": [
{
"label": "Office",
"phone": "(555) 123-4567"
}
],
"email": "jane.smith@example.com",
"defaultGLAccount": "216-240 - Unit:Plumbing Repairs",
"vendorTrades": "Plumbing"
}
]
}
The Created Vendor Object
Create a Vendor returns the vendor as stored in AppFolio®. Fields it shares with the Vendor list row, including name, defaultGLAccount and vendorTrades, read the same way; it also carries vendorType, taxpayerName, useCompanyNameAsDisplayName and the address country. Use appfolioId to find the same vendor in the list.
Attributes
"466"
"Smith, Jane"
"Jane"
"Smith"
"ACME Plumbing Inc."
true
"general"
"ACME Plumbing Inc."
true
[{"label":"Office","phone":"(555) 123-4567"}]"jane.smith@example.com"
"216-240 - Unit:Plumbing Repairs"
"Plumbing"
{
"appfolioId": "466",
"name": "Smith, Jane",
"firstName": "Jane",
"lastName": "Smith",
"companyName": "ACME Plumbing Inc.",
"useCompanyNameAsDisplayName": true,
"vendorType": "general",
"taxpayerName": "ACME Plumbing Inc.",
"send1099": true,
"address": {
"street": "1234 Warm Weather Rd.",
"street2": null,
"city": "Los Angeles",
"state": "CA",
"zip": "90001",
"country": "US"
},
"phoneNumbers": [
{
"label": "Office",
"phone": "(555) 123-4567"
}
],
"email": "jane.smith@example.com",
"defaultGLAccount": "216-240 - Unit:Plumbing Repairs",
"vendorTrades": "Plumbing"
}