Hermos API

Approve Affiliate Request

Approves a pending request once. A join or more-programs approval makes the membership approved, activates a pending affiliate that has signed in, and links the affiliate's own customer record when exactly one active customer has their email. Refused (409) while the affiliate has a live ban or when the request was already decided. Cookie members require Hms-Company and Hms-Livemode; Idempotency-Key returns 400 invalid_request with idempotency_not_supported_for_member_routes. Bearer callers require Idempotency-Key. Agents cannot write affiliate records.

POST/affiliate_requests/{id}/approve

Approves a pending request once. A join or more-programs approval makes the membership approved, activates a pending affiliate that has signed in, and links the affiliate's own customer record when exactly one active customer has their email. Refused (409) while the affiliate has a live ban or when the request was already decided. Cookie members require Hms-Company and Hms-Livemode; Idempotency-Key returns 400 invalid_request with idempotency_not_supported_for_member_routes. Bearer callers require Idempotency-Key. Agents cannot write affiliate records.

Authorization

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Opaque affiliate request ID.

Match^arq_[0-7][0-9abcdefghjkmnpqrstvwxyz]{25}$(?![\s\S])

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/affiliate_requests/string/approve"
{  "data": {    "id": "string",    "livemode": true,    "affiliate_id": "string",    "program_id": "string",    "kind": "join",    "status": "pending",    "note": "string",    "decided_at": "string",    "created_at": "2019-08-24T14:15:22Z",    "updated_at": "2019-08-24T14:15:22Z"  },  "affiliate": {    "id": "string",    "livemode": true,    "handle": "string",    "status": "invited",    "display_name": "string",    "email": "string",    "notes": "string",    "identity_attached": true,    "listed_in_combined_view": true,    "customer": {      "id": "string",      "name": "string",      "email": "string"    },    "memberships": [      {        "program_id": "string",        "status": "pending",        "created_at": "2019-08-24T14:15:22Z",        "updated_at": "2019-08-24T14:15:22Z"      }    ],    "created_at": "2019-08-24T14:15:22Z",    "updated_at": "2019-08-24T14:15:22Z"  },  "request_id": "266ea41d-adf5-480b-af50-15b940c2b846"}