Skip to main content
POST
/
books
Create a book
curl --request POST \
  --url https://api.market.iventou.com.br/books \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Resale book for Halloween VIP",
  "event_name": "Halloween",
  "ticket_name": "VIP",
  "batch_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "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": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

Authorization
string
header
required

Token from partner authetnication

Body

application/json
name
string
required
Minimum length: 3
Example:

"Resale book for Halloween VIP"

event_name
string
required
Minimum length: 3
Example:

"Halloween"

ticket_name
string
required
Minimum length: 3
Example:

"VIP"

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
batch_id
string<uuid>

Response

201 - application/json

Book created successfully

id
string<uuid>
required