Skip to main content
POST
/
validators
Create a validator
curl --request POST \
  --url https://api.market.iventou.com.br/validators \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Main gate",
  "event_name": "Halloween",
  "validatable_origin": {
    "batches": [
      "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    ],
    "books": [
      "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    ]
  },
  "start_date": "2023-11-07T05:31:56Z",
  "end_date": "2023-11-07T05:31:56Z"
}
'
{
  "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:

"Main gate"

event_name
string
required
Minimum length: 3
Example:

"Halloween"

validatable_origin
object
required
start_date
string<date-time>
required
end_date
string<date-time>
required

Response

201 - application/json

Validator created successfully

id
string<uuid>
required