Skip to content

Affiliate terms


id: affiliatewp-affiliates-terms owner: affiliatewp method: GET path: /wp-json/headlesswp/v1/affiliates/terms title: Affiliate terms usedBySite: true

GET /wp-json/headlesswp/v1/affiliates/terms

Returns the current affiliate terms policy payload.

Auth + CSRF

  • Auth: none required by the plugin endpoint.
  • Proxy nonce required: yes.

Request schema

  • No request body.
  • No query params.

Response schema

{
  "data": {
    "termsEnabled": "boolean",
    "termsContentPresent": "boolean",
    "contentFormat": "html",
    "currentTermsVersion": "string | null",
    "termsContent": "string | null"
  }
}

Error codes

StatusCodeNotes
500CONFIG_INVALID_AFFILIATE_TERMS_VERSIONReturned when terms are enabled and current terms version is misconfigured.