Affiliate accept terms
id: affiliatewp-affiliates-acceptterms owner: affiliatewp method: POST path: /wp-json/headlesswp/v1/affiliates/accept-terms title: Affiliate accept terms usedBySite: true
POST /wp-json/headlesswp/v1/affiliates/accept-terms
Records acceptance of current affiliate terms.
Auth + CSRF
- Auth: cookie session required.
- Proxy nonce required: yes.
Request schema
{
"version": "string (optional)"
}
Unknown fields are rejected with 422 VALIDATION_FAILED.
Response schema
{
"data": {
"version": "string",
"acceptedAtUtc": "string",
"currentTermsVersion": "string",
"termsAcceptedVersion": "string | null",
"termsAcceptedAtUtc": "string | null"
}
}
Error codes
| Status | Code | Notes |
|---|---|---|
| 401 | NOT_AUTHENTICATED | Login required. |
| 409 | AFFILIATE_TERMS_DISABLED | Terms feature disabled or no terms content configured. |
| 422 | VALIDATION_FAILED | Invalid version or unknown fields. |
| 500 | CONFIG_INVALID_AFFILIATE_TERMS_VERSION | Current terms version is misconfigured. |