Skip to main content
POST
/
v1
/
advocates
/
{advocate_id}
/
payment_method
curl --request POST \
  --url https://api.getreditus.com/api/v1/advocates/{advocate_id}/payment_method \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "payment_type": "paypal",
  "paypal_email": "johndoe@gmail.com"
}
'
{
  "data": {
    "payment_type": "paypal",
    "masked_value": "jo****@gmail.com"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

advocate_id
string
required

The advocate's Reditus ID (UUID) or your internal user ID (uid)

Body

application/json
payment_type
enum<string>
required

The type of payment method to set

Available options:
paypal,
iban
paypal_email
string

The PayPal email address. Required when payment_type is 'paypal'.

iban
string

The IBAN number. Required when payment_type is 'iban'.

Response

Payment method saved successfully

data
object