Skip to main content
Version: v4New

Mark Payout Method Primary

PATCH 

/affiliate-manager/affiliate/:affiliateId/payout-method/:payoutMethodId/primary

Make a stored payout method the primary one for an affiliate.

Request​

Version stringrequired

API Version

Available optionsv4
affiliateId stringrequired

Affiliate Id

payoutMethodId stringrequired

Payout Method Id

locationId stringrequired

Location Id

application/json

Successful response

Schema
    _idstringrequired

    Payout method id

    locationIdstringrequired

    Location the payout method belongs to

    affiliateIdstringrequired

    Affiliate the payout method belongs to

    methodstringrequired

    Payout method type

    Available optionsPAYPALBANK
    paypalEmailstring

    PayPal email, when the method is PAYPAL

    bankDetailsobject

    Bank details, when the method is BANK

    isPrimarybooleanrequired

    Whether payouts default to this method

    createdAtstringrequired

    Created at timestamp

    updatedAtstringrequired

    Updated at timestamp