Order

Retrieve order transaction history

Fetches a list of past orders for a given customer, filtered by date range, status, and pagination options. Both start_date and end_date are required. The date format must be YYYY-MM-DD.

post/order/transaction_history

Request

  • Base URL: https://moogold.com/wp-json/v1/api
  • URL: https://moogold.com/wp-json/v1/api/order/transaction_history
  • Auth: HTTP basic

Request body

pathstring required
start_datestring date required

Start date in YYYY-MM-DD format

end_datestring date required

End date in YYYY-MM-DD format

status'processing' | 'completed' | 'refunded'

Optional order status filter

pageinteger

Page number (default = 1)

limitinteger

Max results per page (default = 20, max = 100)

Example request

{
  "path": "order/transaction_history",
  "start_date": "2025-07-01",
  "end_date": "2025-07-15",
  "status": "completed",
  "page": 1,
  "limit": 20
}

Response

Transaction history retrieved successfully

statusstring
pageinteger
limitinteger

Example response

{
  "status": "success",
  "page": 1,
  "limit": 20,
  "orders": [
    {
      "order_id": 12345,
      "date_created": "2025-07-10 14:23:00",
      "status": "completed",
      "total": "10.00",
      "currency": "USD",
      "items": [
        {
          "product": "PUBG Mobile UC",
          "quantity": 1,
          "price": "10.00"
        }
      ]
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.