get last orders
GET
/v1/orders/last-orders
metrics
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/v1/orders/last-orders'
Response Response Example
200 - Success
{
"orders": [
{
"id": 1,
"raffleId": 1,
"userId": 1,
"status": "PAID",
"quotaQuantity": 10,
"priceByQuota": "50",
"referral": null,
"paymentMethod": "PIX",
"paymentProviderName": "pay2m",
"totalValue": "500",
"paidAt": null,
"createdAt": "2025-02-14T18:54:03.625Z",
"updatedAt": "2025-02-14T18:54:03.625Z",
"raffle": {
"id": 1,
"raffleCategoryId": 99,
"userId": 1,
"title": "Luxury Car Giveaway",
"subtitle": "News!",
"description": "Win a luxury car!",
"slug": "luxury-car-giveaway",
"statusText": "Open for reservations",
"privacy": "PUBLIC",
"reservationType": "AUTO",
"photoUrl": "https://example.com/photo.jpg",
"status": "ACTIVE",
"startsAt": "2025-02-14T18:54:03.613Z",
"endsAt": "2025-02-21T18:54:03.613Z",
"reservationFields": [
"name",
"email",
"phone",
"cpf"
],
"isHighlighted": false,
"certificateCode": null,
"enableNotification": false,
"showEndsAt": true,
"quotaPrice": "50",
"quotaQuantity": 100,
"quotaQuantityAvailable": 90,
"freeCampaign": false,
"affiliate": false,
"minReservationQuantity": 1,
"maxReservationQuantity": 100,
"reservationTimeLimit": 30,
"maxBuyerQuantity": 100,
"fastSelectionCards": [],
"popularSelectionCard": 1,
"showProgressBar": true,
"showRank": true,
"showPrices": true,
"enableQuotaPrizes": false,
"automaticQuotaPrizeDistribution": false,
"enablePromotions": false,
"cumulative": false,
"promotionType": "BY_QUOTA_QUANTITY",
"enableAntiSpam": false,
"antiSpamMaxQuota": 3,
"antiSpamTimeout": 60,
"whatsapp": null,
"whatsappGroup": null,
"telegram": null,
"email": null,
"createdAt": "2025-02-14T18:54:03.615Z",
"updatedAt": "2025-02-14T18:55:00.017Z"
},
"user": {
"name": "Admin User",
"phone": "11111111111"
}
}
]
}
Request
Query Params
take
string
optional
Example:
5