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.
/affiliate_requests/{id}/approveApproves 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.
In: header
Path Parameters
Opaque affiliate request ID.
^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"}Add a component of the subscription line’s existing plan POST
Flat per-unit licensed seats and plain per-unit metered components support renewal notices. Tiered, package, decimal and special-term components still return notice_unsupported_shape. Validates an active seat or metered price in the same plan and slot, on the subscription processor account. Currency and interval must match. The resulting composition requires the base and permits at most two seat components. Metered components omit quantity. Uses product proration settings without changing the billing date. Requires a merchant person or key; agent approvals and customer sessions are not supported.
Approve Approval POST
Next Page