Skip to main content
POST
/
submitStripePaymentsaved
Submit payment using saved default card (amount computed server-side, card auto-selected)
curl --request POST \
  --url http://localhost/mogl/mogl-backend/api/submitStripePaymentsaved \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": 1,
  "milestone_id": 1,
  "athlete_id": 123,
  "type": "job",
  "notes": "Payment for deliverable",
  "is_collective": "Y",
  "stripe_fee": 2.5,
  "fbc": null,
  "fbp": null
}
'

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
id
integer
required

Job ID (NOT job_id)

Example:

1

milestone_id
integer
required

Milestone/deliverable ID

Example:

1

athlete_id
integer
required

Athlete user ID

Example:

123

type
string
required

Payment type

Example:

"job"

notes
string | null

Payment notes

Example:

"Payment for deliverable"

is_collective
enum<string> | null

Collective payment flag

Available options:
Y,
N,
Yes,
No
Example:

"Y"

stripe_fee
number<float> | null

Optional Stripe fee override (server computes if omitted)

Example:

2.5

fbc
string | null

Facebook click ID (for pixel tracking)

Example:

null

fbp
string | null

Facebook browser ID (for pixel tracking)

Example:

null

Response

200

Payment submitted with saved card