Get History

This API retrieves the history of completed orders for a given user, including details such as order ID, order status, gig name, price, and delivery time.

Endpoint #

The Voomerr Get History endpoint is POST https://admin.voomerr.com/api/get_history.php

Request Parameters #

Parameter Required Description
user_id Yes The ID of the user whose order history is to be retrieved.
currency No The currency to be used for pricing. If not specified, the default currency will be used.

Response Parameters #

Parameter Description
status A boolean value indicating whether the request was successful or not. True if successful, false otherwise.
message A string containing a message regarding the status of the request. If the request was successful, this parameter will contain a success message, otherwise, an error message.
orders A JSON array containing information about the completed orders, including their IDs, names, descriptions, prices, currencies, delivery times, and statuses.

Request Example #

json
{
"user_id": 1234,
"currency": "USD"
}

Response Example #

json
{
"status": true,
"message": "Order history retrieved successfully",
"orders": [
{
"order_id": "ODR-123456",
"gig_name": "Grocery Delivery",
"gig_description": "Get your groceries delivered to your doorstep",
"price": 50,
"currency": "USD",
"delivery_time": "2022-05-01 10:00:00",
"status": "completed"
},
{
"order_id": "ODR-789012",
"gig_name": "Errand Runner",
"gig_description": "Get your errands done quickly and efficiently",
"price": 25,
"currency": "USD",
"delivery_time": "2022-04-25 14:00:00",
"status": "completed"
}
]
}

Powered by BetterDocs