Toggle Sidebar
Find purchase list
Retrieve a list of purchases made by the user. This endpoint allows you to fetch all purchases associated with a specific user account.
Requirements
- Authentication is typically required to access a user’s purchase list.
Usage
Request
- Method:
GET - Path:
/purchases
Example
curl -X GET "https://api.example.com/purchases" \
-H "Authorization: Bearer <token>"
Response
200 OK
Returns a standard API envelope with the purchase list available under data.data.
Example:
{
"status": true,
"path": "string",
"statusCode": 0,
"message": "string",
"data": {
"data": [
{
"id": "string",
"order_id": "string",
"product_name": "string",
"seller_id": "string",
"seller_name": "string",
"thumbnail_images": "string",
"product_preview_file": "string"
}
]
}
}
Notes
- The purchase list is returned inside
data.data(nesteddataobject). order_idcan be used to group items belonging to the same purchase/order.product_preview_filemay be used to provide download/preview access (as returned by the API).