List Orders
curl --request GET \
--url https://api.example.com/wp-json/latepoint-api/v1/ordersimport requests
url = "https://api.example.com/wp-json/latepoint-api/v1/orders"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/wp-json/latepoint-api/v1/orders', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/wp-json/latepoint-api/v1/orders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/wp-json/latepoint-api/v1/orders"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/wp-json/latepoint-api/v1/orders")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/wp-json/latepoint-api/v1/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyOrders
List Orders
Retrieve a list of orders with pagination and filtering options.
GET
/
wp-json
/
latepoint-api
/
v1
/
orders
List Orders
curl --request GET \
--url https://api.example.com/wp-json/latepoint-api/v1/ordersimport requests
url = "https://api.example.com/wp-json/latepoint-api/v1/orders"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/wp-json/latepoint-api/v1/orders', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/wp-json/latepoint-api/v1/orders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/wp-json/latepoint-api/v1/orders"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/wp-json/latepoint-api/v1/orders")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/wp-json/latepoint-api/v1/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyQuery Parameters
integer
default:"1"
Page number for pagination
integer
default:"10"
Number of orders per page (max 100)
integer
Filter orders by customer ID
string
Filter orders by status. Valid values:
open, cancelled, completedstring
Filter orders by payment status. Valid values:
not_paid, partially_paid, fully_paid, processing, refunded, partially_refundedstring
Filter orders by fulfillment status. Valid values:
not_fulfilled, partially_fulfilled, fulfilledstring
Filter orders that used a specific coupon code (exact match)
number
Filter orders with a total amount greater than or equal to this value
number
Filter orders with a total amount less than or equal to this value
string
Filter orders created on or after this date (YYYY-MM-DD)
string
Filter orders created on or before this date (YYYY-MM-DD)
string
Search across confirmation code, customer comment, and coupon code
string
default:"created_at"
Field to sort results by. Valid values:
id, total, created_at, statusstring
default:"DESC"
Sort direction. Valid values:
ASC, DESCExample 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
{
"success": true,
"data": [
{
"id": "74",
"confirmation_code": "277E2MW",
"subtotal": "23.0000",
"total": "23.0000",
"status": "open",
"fulfillment_status": "not_fulfilled",
"payment_status": "not_paid",
"customer_id": "30",
"customer_comment": null,
"coupon_code": "",
"coupon_discount": "0.0000",
"tax_total": "0.0000",
"ip_address": null,
"source_id": null,
"source_url": "https://your-site.com/booking",
"created_at": "2026-01-27 22:23:23",
"updated_at": "2026-01-27 22:23:23"
}
],
"pagination": {
"page": 1,
"per_page": 5,
"total": 51,
"total_pages": 11,
"has_next_page": true,
"has_previous_page": false
}
}
Related Endpoints
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
