order – How to order results. Accepts 'ASC' (ascending) or 'DESC' (descending).

orderby – Which field to order the response results by. Default is 'date'

fields – Specific fields to return for each affiliate in the response. Default '*' (all). Accepts 'ids' or any valid column

Additional arguments:

user – If user is passed as true, custom user objects will be retrieved on the fly for each affiliate in the response. Care should be taken when using this option due to the 1:1 increase in database queries associated with each affiliate

meta – If passed as true, an array of affiliate meta will be retrieved on the fly for each affiliate in the response. Just as with user, care should be taken due to the decreased performance impact.

All valid arguments can also be derived by sending an OPTIONS request to the either endpoint.

The affiliates/{ID} endpoint accepts any valid affiliate ID. Additionally, if user and/or meta are passed as true, a custom user object and/or array of affiliate meta will respectively be retrieved on the fly to include with the response.

Visibility

All endpoints require the API key and token except for the main affwp/v1 endpoint.