curl --request POST \
--url http://localhost/mogl/mogl-backend/api/agent/stripe/payment-methods \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"payment_type": "C",
"card_number": "4242424242424242",
"exp_month": "12",
"exp_year": "2028",
"cvc": "123",
"card_name": "Jane Doe",
"account_holder_name": "Jane Doe",
"account_holder_type": "individual",
"routing_number": "110000000",
"account_number": "000123456789"
}
'Add a card or bank account payment method. Use payment_type=‘C’ for card (default), any other value for bank account. Provide raw card or bank details — the backend tokenizes them via Stripe.
curl --request POST \
--url http://localhost/mogl/mogl-backend/api/agent/stripe/payment-methods \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"payment_type": "C",
"card_number": "4242424242424242",
"exp_month": "12",
"exp_year": "2028",
"cvc": "123",
"card_name": "Jane Doe",
"account_holder_name": "Jane Doe",
"account_holder_type": "individual",
"routing_number": "110000000",
"account_number": "000123456789"
}
'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.
JWT Bearer token authentication. Use the /api/login endpoint to obtain a token.
'C' for card (default), any other value for bank account
"C"
Card number (required for card)
"4242424242424242"
Card expiry month (required for card)
"12"
Card expiry year (required for card)
"2028"
Card CVC (required for card)
"123"
Name on card (required for card)
"Jane Doe"
Bank account holder name (required for bank)
"Jane Doe"
Bank account type (required for bank)
individual, company "individual"
Bank routing number (required for bank)
"110000000"
Bank account number (required for bank)
"000123456789"
Payment method added