Skip to content

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

StatusCodeNotes
401NOT_AUTHENTICATEDLogin required.
409AFFILIATE_TERMS_DISABLEDTerms feature disabled or no terms content configured.
422VALIDATION_FAILEDInvalid version or unknown fields.
500CONFIG_INVALID_AFFILIATE_TERMS_VERSIONCurrent terms version is misconfigured.