Skip to main content
Version: 2021-07-28

Mark Payout Method As Primary

PATCH 

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

Make this payout method the one payouts default to. Any other method stops being primary.

Request

Version stringrequired

API Version

Available options2021-07-28
locationId stringrequired

Location Id

affiliateId stringrequired

Affiliate Id

payoutMethodId stringrequired

Payout Method 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