GET
/
wp-json
/
latepoint-api
/
v1
/
payments
/
{id}
{
  "id": "<string>",
  "token": "<string>",
  "invoice_id": "<string>",
  "order_id": "<string>",
  "customer_id": "<string>",
  "processor": "<string>",
  "payment_method": "<string>",
  "payment_portion": "<string>",
  "kind": "<string>",
  "amount": "<string>",
  "status": "<string>",
  "notes": "<string>",
  "receipt_number": "<string>",
  "access_key": "<string>",
  "created_at": "<string>",
  "updated_at": "<string>"
}

Path Parameters

id
integer
required
The unique identifier of the payment

Example Request

GET /wp-json/latepoint-api/v1/payments/1
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"
  }
}

Response Fields

id
string
Unique identifier for the payment
token
string
Payment transaction token
invoice_id
string
Associated invoice ID
order_id
string
Associated order ID
customer_id
string
Customer who made the payment
processor
string
Payment processor used (stripe, paypal, etc.)
payment_method
string
Payment method used (credit_card, paypal, etc.)
payment_portion
string
Portion of payment (full, deposit, balance)
kind
string
Type of transaction (capture, refund, etc.)
amount
string
Payment amount
status
string
Payment status (succeeded, processing, failed)
notes
string
Additional notes about the payment
receipt_number
string
Receipt number for the payment
access_key
string
Access key for payment verification
created_at
string
Payment creation timestamp
updated_at
string
Payment last update timestamp