Retrieving Affiliate custom fields values

When I retrieve the affiliate model, it provides me an array of objects of the custom fields.

However, in that response, the “optional_properties” entry is blank.

When I go to list or retrieve an affiliate, none of the custom fields are returned.
I’ve tried passing both “optional_properties” (per the docs) and “fields” as URL parameters (as I do in retrieve contact).

For the values I’ve tried passing “custom_fields”, as well as the individual custom field field_names, and field ID’s.

I’ve tried both REST v1 and REST v2.

What am I missing?

Hi @David_Bullock, getting/listing custom fields for affiliates isn’t supported in REST v1, and in REST v2 this is a known issue. It’s listed in the known issues tracker(Item #11). The team is on it, and I’ll keep you in the loop when there’s any update.

1 Like