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", "first_name": "John", "last_name": "Doe" } '
{ "data": { "payment_type": "paypal", "masked_value": "jo****@gmail.com", "first_name": "John", "last_name": "Doe" } }

Documentation Index

Fetch the complete documentation index at: https://docs.getreditus.com/llms.txt

Use this file to discover all available pages before exploring further.

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'.

first_name
string

The advocate's first name. Optional.

last_name
string

The advocate's last name. Optional.

Response

Payment method saved successfully

data
object