Skip to content

Get Admin Payments

Get a paginated list of all payment records for admin.

Endpoint

GET /v1/products/payment/admin/

Authentication

Required (Admin role)

Query Parameters

Parameter Type Required Description
page integer Yes Page number (starts at 1)
count integer Yes Items per page (max 100)

Response

Success (200 OK)

{
  "count": 200,
  "data": [
    {
      "id": 1,
      "user_id": 5,
      "order_id": "ORDER123456",
      "amount": 150.00,
      "currency_name": "AZN",
      "status": "2",
      "transaction_id": "TRANS123",
      "card_number": "4111******1111",
      "json_request": "...",
      "json_response": "...",
      "user": {...},
      "created": "2025-01-15T10:30:00Z"
    }
  ]
}

Error Responses

Unauthorized (401)

{
  "error": "Missing token on header!"
}

Pagination Error (400)

{
  "error": "page cannot be zero or minus"
}

Example Request

curl -X GET "https://api.luxmart.site/v1/products/payment/admin/?page=1&count=20" \
  -H "Authorization: Token your_access_token"

Notes

  • Returns all payment records across all users and stores
  • Results are ordered by ID descending (newest first)
  • Includes user information for each payment
  • Payment statuses:
  • "1" = Pending
  • "2" = Success
  • "3" = Failed