Skip to main content
POST
/
updatePayment
Update athlete/agent payout preference
curl --request POST \
  --url http://localhost/mogl/mogl-backend/api/updatePayment \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "default_method": "S",
  "paypal_id": "paypal@example.com"
}
'

Documentation Index

Fetch the complete documentation index at: https://developer.mogl.online/llms.txt

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

Authorizations

Authorization
string
header
required

JWT Bearer token authentication. Use the /api/login endpoint to obtain a token.

Body

application/json
default_method
enum<string>

S=Stripe, P=PayPal (NOT payment_method_id)

Available options:
S,
P
Example:

"S"

paypal_id
string

PayPal email/ID (optional, for PayPal method)

Example:

"paypal@example.com"

Response

200

Payment settings updated