GET
/
wp-json
/
latepoint-api
/
v1
/
orders

Query Parameters

page
integer
default:"1"
Page number for pagination
per_page
integer
default:"10"
Number of orders per page (max 100)
customer_id
integer
Filter orders by customer ID
status
string
Filter orders by status. Valid values: open, cancelled, completed
payment_status
string
Filter orders by payment status. Valid values: not_paid, partially_paid, fully_paid, processing, refunded, partially_refunded

Example Requests

Basic pagination

GET /wp-json/latepoint-api/v1/orders?page=1&per_page=5
Authorization: Bearer YOUR_API_KEY

Filter by customer

GET /wp-json/latepoint-api/v1/orders?customer_id=8
Authorization: Bearer YOUR_API_KEY

Filter by status

GET /wp-json/latepoint-api/v1/orders?status=open
Authorization: Bearer YOUR_API_KEY

Filter by payment status

GET /wp-json/latepoint-api/v1/orders?payment_status=not_paid
Authorization: Bearer YOUR_API_KEY

Example Response

{
  "data": [
    {
      "id": 38,
      "confirmation_code": "LP38CONF",
      "subtotal": "45.00",
      "total": "45.00",
      "status": "open",
      "fulfillment_status": "not_fulfilled",
      "payment_status": "not_paid",
      "customer_id": 8,
      "created_at": "2024-12-21 17:45:32",
      "updated_at": "2024-12-21 17:45:32"
    }
  ],
  "pagination": {
    "page": 1,
    "per_page": 5,
    "total": 1,
    "total_pages": 1
  }
}
Once you have an order ID from the list, 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