API - Lookup Lists (Statuses, Surfaces, Delivery Methods and More)

Lookup lists are the small lists you set up in your account settings: lead statuses, surfaces, delivery methods, customer types, payment types, referrals, worker positions and email templates. Use these endpoints to fill in dropdowns in your own forms, or to make sure a value you send (such as a status name) matches what your account uses.

All of them work the same way, so they are documented together.


Endpoints

ListURLEach item containsPackage
Lead statuses/api6/statuses_listid, href, nameWP/API
Surfaces/api6/surfaces_listid, href, titleWP/API
Delivery methods/api6/deliverymethods_listid, href, titleWP/API
Customer types/api6/customertypes_listid, href, nameWP/API
Payment types/api6/paymenttypes_listid, href, nameWP/API
Referrals/api6/referrals_listid, href, nameWP/API
Email templates/api6/emailtemplates_listid, href, title, subject, bodyWP/API
Worker positions/api6/positions_listid, href, nameWP/API and Workers

Base URL: https://rental.software/api6. All of these are GET requests and every request needs your apiKey.


Request

GET /api6/statuses_list?apiKey=YOUR_API_KEY
ParameterDefaultDescription
apiKeyRequired. Your API key
offset0Record number to start at. The first record is 0
limit25Count of records to return. If you have more than 25 of something, raise the limit or page through the list
_bodyfalseIf true, each item is the full record with all of its settings instead of the short version

Example using curl:

curl "https://rental.software/api6/statuses_list?apiKey=YOUR_API_KEY&limit=100"

Response

{
  "offset": 0,
  "limit": "100",
  "first": "https://rental.software/api6/statuses_list?offset=0&limit=100",
  "next": "https://rental.software/api6/statuses_list?offset=100&limit=100",
  "previous": "https://rental.software/api6/statuses_list?offset=0&limit=100",
  "items": [
    {
      "id": "2345",
      "href": "https://rental.software/api6/statuses/2345",
      "name": "Quote"
    },
    {
      "id": "2349",
      "href": "https://rental.software/api6/statuses/2349",
      "name": "Hold"
    },
    {
      "id": "2351",
      "href": "https://rental.software/api6/statuses/2351",
      "name": "Confirmed"
    }
  ],
  "request_time": 1760000000
}

The other lists have the same shape. Only the fields inside each item differ, as shown in the Endpoints table. The response can include a few extra keys not listed here. Your code should ignore keys it does not use.


Notes for Each List

  • Lead statuses: only active statuses are returned, in the order they are arranged in your settings. Use the name as the status when you create or update a lead, and the id in the status[] search parameter of the leads list. With _body=true each status also includes its settings, such as color and the flags confirmed, complete and cancel.
  • Surfaces and delivery methods: use the title as the surface or deliverytype when you create or update a lead.
  • Customer types: use the name as the customertype when you create or update a customer.
  • Payment types: use the name as the type when you record a payment.
  • Referrals: use the name as the referral when you create or update a lead.
  • Email templates: only active, customer facing templates are returned, sorted by title.
  • Worker positions: the id matches the positionid values in worker records.

If the API key is limited to certain locations, a list only includes the entries of those locations and the entries that are not tied to a location.

Tip: these lists change rarely. Fetch them once, store them on your side, and refresh them once a day. That keeps your transaction count low.


Errors

StatusMessageWhat to do
404No statuses found, No surfaces found, No delivery methods found, No paymenttypes found, No positions found, No items foundThe list is empty, or you paged past the end. An empty list is reported as a 404, not as an empty items array
405Only accepts GET requestsThese lists are read only. Use GET

See API - Errors and Rate Limits for errors that apply to every call.


Related Links

Is this article helpful?
0 0 0