Hi Kevin,
Do you have a specific example from a deployment where this is not returning both company and contact ID. In my test, the following request returns the linked company and contact ID for affiliation 16.
{{url}}/api/v0/affiliations/16?_fields=company,contact
Regards,