Path Parameters
The ID of the order to retrieve
Retrieve a specific order by ID.
GET /wp-json/latepoint-api/v1/orders/38
Authorization: Bearer YOUR_API_KEY
{
"id": 38,
"confirmation_code": "LP38CONF",
"subtotal": "45.00",
"total": "45.00",
"status": "open",
"fulfillment_status": "not_fulfilled",
"payment_status": "not_paid",
"customer_id": 8,
"coupon_code": null,
"tax_total": "0.00",
"customer_comment": null,
"created_at": "2024-12-21 17:45:32",
"updated_at": "2024-12-21 17:45:32",
"items": [
{
"id": 38,
"variant": "booking",
"item_data": "{\"booking_id\":38}",
"quantity": 1,
"subtotal": "45.00",
"total": "45.00"
}
]
}
# Get all invoices for an order
GET /wp-json/latepoint-api/v1/orders/{order_id}/invoices
# Get a specific invoice
GET /wp-json/latepoint-api/v1/orders/{order_id}/invoices/{invoice_id}
# Update an invoice
PUT /wp-json/latepoint-api/v1/orders/{order_id}/invoices/{invoice_id}
# Get all transactions for an order
GET /wp-json/latepoint-api/v1/orders/{order_id}/transactions
# Get a specific transaction
GET /wp-json/latepoint-api/v1/orders/{order_id}/transactions/{transaction_id}
# Get invoices for order 56
GET /wp-json/latepoint-api/v1/orders/56/invoices
Authorization: Bearer YOUR_API_KEY
# Get transactions for order 56
GET /wp-json/latepoint-api/v1/orders/56/transactions
Authorization: Bearer YOUR_API_KEY