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

Required Parameters

ParameterTypeDescription
customer_idintegerCustomer ID
totalnumberOrder total amount
subtotalnumberOrder subtotal

Optional Parameters

ParameterTypeDescription
tax_totalnumberTax amount
discount_totalnumberDiscount amount
coupon_codestringApplied coupon code
statusstringOrder status
payment_methodstringPayment method used
notesstringOrder notes
coupon_discountnumberDiscount amount from coupon
ip_addressstringIP address of the customer
source_idstringSource identifier for tracking
source_urlstringSource URL for tracking
confirmation_codestringCustom confirmation code (auto-generated if not provided)

Example Request

POST /wp-json/latepoint-api/v1/orders
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

{
  "customer_id": 8,
  "total": 50.00,
  "subtotal": 45.00,
  "tax_total": 5.00,
  "status": "open",
  "payment_status": "not_paid",
  "fulfillment_status": "not_fulfilled",
  "customer_comment": "Test order creation"
}

Example Response

{
  "id": 39,
  "confirmation_code": "LP39CONF",
  "subtotal": "45.00",
  "total": "50.00",
  "status": "open",
  "fulfillment_status": "not_fulfilled",
  "payment_status": "not_paid",
  "customer_id": 8,
  "coupon_code": null,
  "tax_total": "5.00",
  "customer_comment": "Test order creation",
  "created_at": "2024-12-21 18:15:45",
  "updated_at": "2024-12-21 18:15:45"
}