Query Parameters
Page number for pagination
Number of payments per page
Filter payments by customer ID
Filter payments by order ID
Filter payments by status (succeeded, processing, failed)
Filter payments by payment method
Example Request
GET /wp-json/latepoint-api/v1/payments?page=1&per_page=10&status=completed
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Example Response
{
"success": true,
"data": [
{
"id": "1",
"token": "TXN123456",
"invoice_id": "5",
"order_id": "10",
"customer_id": "3",
"processor": "stripe",
"payment_method": "credit_card",
"payment_portion": "full",
"kind": "capture",
"amount": "150.00",
"status": "completed",
"notes": "Payment processed successfully",
"receipt_number": "RCP12345",
"access_key": "ak_1234567890abcdef",
"created_at": "2024-01-15 10:30:00",
"updated_at": "2024-01-15 10:30:00"
},
{
"id": "2",
"token": "TXN789012",
"invoice_id": "6",
"order_id": "11",
"customer_id": "4",
"processor": "paypal",
"payment_method": "paypal",
"payment_portion": "deposit",
"kind": "capture",
"amount": "50.00",
"status": "completed",
"notes": "Deposit payment",
"receipt_number": "RCP67890",
"access_key": "ak_0987654321fedcba",
"created_at": "2024-01-15 11:15:00",
"updated_at": "2024-01-15 11:15:00"
}
],
"pagination": {
"current_page": 1,
"per_page": 10,
"total_pages": 1,
"total_records": 2
}
}