Skip to main content
POST
/
agent
/
stripe
/
payment-methods
/
{paymentMethodId}
/
set-as-default
Set default payment method
curl --request POST \
  --url http://localhost/mogl/mogl-backend/api/agent/stripe/payment-methods/{paymentMethodId}/set-as-default \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'

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.

Path Parameters

paymentMethodId
string
required
Example:

"pm_1AbCdEfGhIjKlMnO"

Body

application/json

The body is of type object.

Response

200

Default payment method set