Orders
List and view your store's orders, filtered by status, buyer and period.
List orders
GET
/api/v1/ordersAbilityorders.readReturns the store's orders, newest first, paginated. Combine filters freely.
Query parameters
statusstring- pending, paid, refunded, cancelled or expired.
emailstring- The buyer's e-mail (case-insensitive).
customer_idinteger- Only one customer account's orders.
numberstring- The short order number, as the buyer sees it.
created_fromdate- Created at or after this date/time (ISO 8601).
created_todate- Created at or before this date/time (ISO 8601).
per_pageinteger- Items per page, from 1 to 100. Default 20. A value outside that range returns 422.
pageinteger- Page number, from 1 to 10000. Default 1. A value outside that range returns 422.
curl "https://sellitex.com/api/v1/orders?status=paid&per_page=50" \
-H "Authorization: Bearer sk_live_..." \
-H "Accept: application/json"Response200
{
"data": [
{
"id": 123,
"number": "A1B2C3D4E5",
"status": "paid",
"payment_provider": "mercadopago",
"source": "storefront",
"customer_id": 42,
"coupon_id": null,
"buyer_email": "[email protected]",
"buyer_name": "Fulano de Tal",
"currency": "BRL",
"subtotal": 4990,
"discount": 0,
"total": 4990,
"balance_applied": 0,
"paid_at": "2026-08-19T14:32:00+00:00",
"refunded_at": null,
"created_at": "2026-08-19T14:30:00+00:00"
}
],
"links": {
"first": "…?page=1",
"last": "…?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"per_page": 50,
"to": 1,
"total": 1
}
}Retrieve an order
GET
/api/v1/orders/{order}Abilityorders.readReturns one order with its lines in items — which only come here, not in the listing. An order from another store answers 404.
Path parameters
orderintegerrequired- The order id.
curl "https://sellitex.com/api/v1/orders/123" \
-H "Authorization: Bearer sk_live_..." \
-H "Accept: application/json"Response200
{
"data": {
"id": 123,
"number": "A1B2C3D4E5",
"status": "paid",
"payment_provider": "mercadopago",
"source": "storefront",
"customer_id": 42,
"coupon_id": null,
"buyer_email": "[email protected]",
"buyer_name": "Fulano de Tal",
"currency": "BRL",
"subtotal": 4990,
"discount": 0,
"total": 4990,
"balance_applied": 0,
"paid_at": "2026-08-19T14:32:00+00:00",
"refunded_at": null,
"created_at": "2026-08-19T14:30:00+00:00",
"items": [
{
"id": 456,
"product_id": 12,
"name": "VIP Diamante — 30 dias",
"price": 4990,
"quantity": 1,
"expires_at": "2026-09-18T14:32:00+00:00"
}
]
}
}The object
The fields this resource's endpoints return. Money is an integer in cents and dates are ISO 8601, in UTC.
idinteger- The order identifier.
numberstring- Short reference shown to the buyer.
statusstring- pending, paid, refunded, cancelled or expired.
payment_providerstring- Gateway used for payment.
sourcestring- Where the purchase was made: storefront, discord or fivem.
customer_idinteger|null- The customer account that bought, or null for a guest purchase.
coupon_idinteger|null- The coupon applied, when there is one.
buyer_emailstring- The buyer's e-mail.
buyer_namestring|null- The buyer's name.
currencystring- Order currency, e.g. BRL.
subtotalinteger- Subtotal in cents, before the discount.
discountinteger- Discount applied, in cents.
totalinteger- Order total, in cents.
balance_appliedinteger- How much of the total was paid with the customer's wallet balance, in cents.
paid_atstring|null- When the payment was confirmed.
refunded_atstring|null- When it was refunded, if it was.
created_atstring- When the order was created.
itemsarray- The order's lines — only in the detail endpoint.