Skip to main content
Payout MethodsVersion: v3

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.

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your access token.

Scope:affiliate-manager.write
Auth methods:OAuthPrivate Integration
Token type:Sub-Account Token

Request​

Headers

Versionstringrequired

API Version

Available optionsv3
Example:v3

Path Parameters

locationIdstringrequired

Location Id

Example:ve9EPM428h8vShlRW1KT
affiliateIdstringrequired

Affiliate Id

Example:63e35ac8b4dac93dfc2757c7
payoutMethodIdstringrequired

Payout Method Id

Example:63e35ac8b4dac93dfc2757c7

Response

Successful response

_idstringrequired

Payout method id

Example:63e35ac8b4dac93dfc2757c7
locationIdstringrequired

Location the payout method belongs to

Example:ve9EPM428h8vShlRW1KT
affiliateIdstringrequired

Affiliate the payout method belongs to

Example:6385d230f6d19db03eef6fb2
methodstringrequired

Payout method type

Available optionsPAYPALBANK
Example:PAYPAL
paypalEmailstring

PayPal email, when the method is PAYPAL

bankDetailsobject

Bank details, when the method is BANK

isPrimarybooleanrequired

Whether payouts default to this method

Example:true
createdAtstringrequired

Created at timestamp

Example:2024-06-16T00:00:00.000Z
updatedAtstringrequired

Updated at timestamp

Example:2024-06-16T00:00:00.000Z