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
| Status | Code | Notes |
|---|---|---|
| 500 | CONFIG_INVALID_AFFILIATE_TERMS_VERSION | Returned when terms are enabled and current terms version is misconfigured. |