Skip to main content
GET
/
batches
List all batches
curl --request GET \
  --url https://api.market.iventou.com.br/batches
[
  {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "First batch",
    "event_name": "Halloween",
    "ticket_name": "VIP",
    "quantity": 5000,
    "price": 15000,
    "ticket_type": "FULL",
    "start_date": "2023-11-07T05:31:56Z",
    "end_date": "2023-11-07T05:31:56Z",
    "purchase_approval_webhook_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "is_sold_out": false,
    "created_at": "2023-11-07T05:31:56Z"
  }
]

Query Parameters

page
number
default:1
Required range: x >= 1
take
number
default:10
Required range: 1 <= x <= 50
order
enum<string>
Available options:
asc,
desc

Response

200 - application/json

Batches listed successfully

id
string<uuid>
required
name
string
required
Minimum length: 3
Example:

"First batch"

event_name
string
required
Minimum length: 3
Example:

"Halloween"

ticket_name
string
required
Minimum length: 3
Example:

"VIP"

quantity
number
required
Required range: x >= 1
Example:

5000

price
number
required
Required range: x >= 1
Example:

15000

ticket_type
enum<string>
required
Available options:
FULL,
HALF,
COMPLIMENTARY
start_date
string<date-time>
required
end_date
string<date-time>
required
purchase_approval_webhook_id
string<uuid>
required
is_sold_out
boolean
required
Example:

false

created_at
string<date-time>
required