def METHOD_NAME(client, db, jwt):
    response = client.post(
        '/v1/orders/create-order',
        content_type='application/json',
        headers=jwt,
        data=json.dumps({'tickets': []}),
    )
    assert response.status_code == 422
    assert json.loads(response.data) == {
        "errors": [
            {
                "status": 422,
                "source": {"source": "tickets"},
                "title": "Unprocessable Entity",
                "detail": "Tickets missing in Order request",
            }
        ],
        "jsonapi": {"version": "1.0"},
    }