Set payout method
Creates or replaces the affiliate’s details for one payout method. The body is a flat object keyed by that method’s field ids in snake_case (for example paypal_address). The field ids can be found by exporting payouts as .csv on the payouts page. The stored details are replaced as a whole, so send every field each time.
Values are validated against the payout method’s field definitions. An unknown field returns 400 with Not a valid property '...' in message_raw, naming the field in camelCase, and a missing or malformed required value returns 400 with a message for that field. The call does not change which payout method is the affiliate’s primary one: for a payout method the affiliate did not have before, primary is null. Affiliate prospects and external-network affiliates return 403. Team members’ API keys need the Manage programs permission.