Skip to main content
POST
/
paymentHistoryFan
Get fan payment history
curl --request POST \
  --url http://localhost/mogl/mogl-backend/api/paymentHistoryFan \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "category_required": "Yes",
  "sort_order_req": "desc",
  "search_keyword": "test",
  "category_id": 1,
  "min_amount": 10,
  "max_amount": 1000,
  "paymentDate": "2026-01-01",
  "page": 1,
  "limit": 10,
  "page_limit": 10
}
'

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
category_required
enum<string>

If Yes, loads service categories

Available options:
Yes,
No
Example:

"Yes"

sort_order_req
enum<string>
Available options:
new_to_old,
old_to_new,
high_to_low,
low_to_high
Example:

"desc"

search_keyword
string

LIKE on category name and athlete name

Example:

"test"

category_id
integer

Filter by service category

Example:

1

min_amount
number

= filter on total_amount

Example:

10

max_amount
number

<= filter on total_amount

Example:

1000

paymentDate
string

Date filter on payment_date_fan

Example:

"2026-01-01"

page
integer
Example:

1

limit
integer
Example:

10

page_limit
integer

Alias for limit

Example:

10

Response

200

Fan payment history