cURL
curl --request POST \ --url https://api.example.com/wp-json/latepoint-api/v1/payments \ --header 'Content-Type: application/json' \ --data ' { "order_id": 123, "amount": 123, "customer_id": 123, "processor": "<string>", "payment_method": "<string>", "payment_portion": "<string>", "kind": "<string>", "status": "<string>", "token": "<string>", "notes": "<string>" } '
{ "success": false, "error": "Missing required fields: booking_id, amount" }
Create a new payment transaction.
Documentation IndexFetch the complete documentation index at: https://docs-restapi.wplimit.com/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://docs-restapi.wplimit.com/llms.txt
Use this file to discover all available pages before exploring further.
POST /wp-json/latepoint-api/v1/payments X-API-Key: YOUR_API_KEY Content-Type: application/json { "order_id": 37, "amount": 50.00, "processor": "stripe", "payment_method": "credit_card", "payment_portion": "full", "kind": "capture", "status": "succeeded", "token": "pi_1234567890abcdef" }
{ "success": true, "message": "Payment created successfully", "data": { "id": "3", "booking_id": null, "customer_id": "0", "processor": "stripe", "payment_method": "credit_card", "payment_portion": "full", "kind": "capture", "amount": "50", "status": "succeeded", "token": null, "notes": null, "order_id": "37", "created_at": "2025-01-21 15:30:00", "updated_at": "2025-01-21 15:30:00" } }
{ "success": false, "error": "Invalid booking ID provided" }