Skip to main content
POST
/
batches
Register a batch
curl --request POST \
  --url https://api.market.iventou.com.br/batches \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "First batch",
  "event_name": "Halloween",
  "ticket_name": "VIP",
  "quantity": 400,
  "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"
}
'
{
  "id": "<string>"
}

Body

application/json
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: 1 <= x <= 400
Example:

400

price
number
required

This number will be always integer, for example: 15,00 is 1500 and 0,15 is 15

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

Webhook Identifier

Response

201 - application/json

Batch registered successfully

id
string
required