Skip to main content
POST
/
paymentHistoryAll
Get all payment history
curl --request POST \
  --url http://localhost/mogl/mogl-backend/api/paymentHistoryAll \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "athlete_id": 123,
  "sort_order_req": "desc",
  "status": "Success",
  "search_keyword": "test",
  "min_amount": 10,
  "max_amount": 1000,
  "job_id": 1,
  "deliverable_id": 1,
  "pay_type": "cash",
  "payment_mode": "C",
  "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
athlete_id
integer

For agent accessing athlete history

Example:

123

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

"desc"

status
enum<string>

Payment status filter

Available options:
Success,
Pending
Example:

"Success"

search_keyword
string

LIKE on sub_title, main_title, description, transaction_id

Example:

"test"

min_amount
number

= filter on amount

Example:

10

max_amount
number

<= filter on amount

Example:

1000

job_id
integer

Filter by job

Example:

1

deliverable_id
integer

Filter by deliverable

Example:

1

pay_type
string

Filter by type (skip if 'All')

Example:

"cash"

payment_mode
string

Filter by payment mode (skip if 'All')

Example:

"C"

paymentDate
string

Date filter on paid_on

Example:

"2026-01-01"

page
integer
Example:

1

limit
integer
Example:

10

page_limit
integer

Alias for limit

Example:

10

Response

200

All payment history