List all purchases paginated
Authorization
bearerAuth Query Parameters
user_id?string
product_id?string
Response Body
application/json
application/json
curl -X GET "http://localhost:8000/api/purchases"{
"data": [
{
"id": 0,
"order_id": 0,
"product_id": 0,
"quantity": 0,
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"unit_price": 0,
"unit_price_currency_id": 0,
"original_currency_id": 0,
"original_unit_price": 0,
"currency_rate": 0,
"formatted_price": "string"
}
],
"links": {
"first": "string",
"last": "string",
"prev": "string",
"next": "string"
},
"meta": {
"current_page": 1,
"from": 1,
"path": "string",
"per_page": 0,
"to": 1
}
}{
"message": "string"
}