Get All Orders

URL: GET https://backend.buildex.com/api/ticketing/getAllOrders?page=1&limit=5

Description:

  • The URL supports pagination.

  • page parameter specifies the page number.

  • limit parameter specifies the number of orders per page.

Use Case for Pagination:

  • To fetch the first page of orders with a limit of 5 orders per page, use page=1&limit=5.

  • Adjust the page and limit parameters as needed to retrieve different pages or change the number of orders per page.

Expected Output:

{
  "status": "success",
  "data": [
    {
      "_id": "66aa0fc06617a982210c6d81",
      "userId": "6661c603fb334348474d624d",
      "orderId": "0e5ffa0a-d37a-4e3f-9564-240c4e505dc8",
      "amount": 3,
      "currency": "USD",
      "blockchain": "ETH-SEPOLIA",
      "amountInUSD": 3.09,
      "metadata": {
        "buyername": "test",
        "buyerphone": 123456789
      },
      "allotedWalletAddress": "0xed6db7d883ec8748d6a47a579b076b3f61eec958",
      "status": "initiated",
      "createdAt": "2024-07-31T10:19:44.745Z",
      "updatedAt": "2024-07-31T10:19:44.745Z",
      "__v": 0
    },
    // ... more orders ...
  ],
  "totalPages": 1,
  "currentPage": 1,
  "totalOrders": 3
}

Last updated