This isn’t working for me. I am trying to query for Contacts with certain custom field values.
Here is the custom field definition as returned by https://api.infusionsoft.com/crm/rest/v2/contacts/model:
{
"id": "1033",
"label": "Market",
"options": [
{
"id": "Dallas",
"label": "Dallas",
"options": null
},
],
"record_type": "CONTACT",
"field_type": "LIST_BOX",
"default_value": null,
"group_id": "1",
"group_name": "Custom Fields",
"field_name": "Market"
},
Here is the query I am making:
GET https://api.infusionsoft.com/crm/rest/v2/contacts?filter=Market%3D%3DDallas
And the response:
{
"code": 400,
"message": "Field filter does not have a matching enum for value market. Valid values are: EMAIL, CONTACT_IDS, IDS, FAMILY_NAME, GIVEN_NAME, MIDDLE_NAME, COMPANY_ID, START_UPDATE_TIME, END_UPDATE_TIME, PHONE_NUMBER, PHONE_FIELDS, BILLING_ADDRESS_LINE1, BILLING_ADDRESS_LOCALITY, BILLING_ADDRESS_REGION, BILLING_ADDRESS_POSTAL_CODE, BILLING_ADDRESS_COUNTRY_CODE, SHIPPING_ADDRESS_LINE1, SHIPPING_ADDRESS_LOCALITY, SHIPPING_ADDRESS_REGION, SHIPPING_ADDRESS_POSTAL_CODE, SHIPPING_ADDRESS_COUNTRY_CODE, OTHER_ADDRESS_LINE1, OTHER_ADDRESS_LOCALITY, OTHER_ADDRESS_REGION, OTHER_ADDRESS_POSTAL_CODE, OTHER_ADDRESS_COUNTRY_CODE, WEBSITE, LEAD_SOURCE_NAME, CONTACT_ID.",
"status": "Bad Request",
"details": [
{
"domain": "contact",
"resource": "GET /rest/v2/contacts"
}
]
}
I am seeing the same for querying Orders by custom fields.