GET
/
wp-json
/
latepoint-api
/
v1
/
orders
/
{id}

Path Parameters

id
integer
required
The ID of the order to retrieve

Example Request

GET /wp-json/latepoint-api/v1/orders/38
Authorization: Bearer YOUR_API_KEY

Example Response

{
  "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"
    }
  ]
}
Once you have an order ID, you can access related resources:

Order Invoices

# 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}

Order Transactions

# 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}

Example Usage

# 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