Validate Import
POST/import/validate
Validates the Import data.
Request
- application/json
Body
Input data
Content of an import CSV file. This is required when path
is not given in the request.
The URL path to an import CSV file. This is only used if the csv_string
is not given in the request. This is required when csv_string
is not given in the request.
Responses
- 200
- 403
- 404
- 406
- 500
Validation successful.
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
order
object
The guid of the Shop associated with the Order.
The first name of the Receiver.
The last name of the Receiver.
The email address of the Receiver.
The locale of the Receiver.
The time it was created.
tickets
object[]
The guid of the Ticket.
The barcode of the Ticket.
The time it was created.
metadata
object
The guid of the Metadata.
metadata
object
The guid of the Metadata.
[
{
"order": {
"shop_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"firstName": "string",
"lastName": "string",
"email": "user@example.com",
"locale": "string",
"created_at": "string",
"tickets": [
{
"ticket_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"ticket_number": "string",
"created_at": "string",
"metadata": {
"guid": "string"
}
}
],
"metadata": {
"guid": "string"
}
}
}
]
The user does not have the correct role(s), or the CSV data contained invalid Shops or Ticket Types.
- application/json
- Schema
- Example (from schema)
Schema
The general error code.
The exact reason of failure.
{
"error_code": "string",
"error_description": "string"
}
Company or Metadata not found.
- application/json
- Schema
- Example (from schema)
Schema
The general error code.
The exact reason of failure.
{
"error_code": "string",
"error_description": "string"
}
The request variables are invalid, the CSV data is invalid or the user is not allowed to make the operation on (one of) the shops and/or Ticket Types, the
-
import data is returned as JSON in the error message
- application/json
- Schema
- Example (from schema)
Schema
The general error code.
The exact reason of failure.
{
"error_code": "string",
"error_description": "string"
}
Internal server error. Something went wrong during the validation of the Import data.
- application/json
- Schema
- Example (from schema)
Schema
The general error code.
The exact reason of failure.
{
"error_code": "string",
"error_description": "string"
}