{
  "environment": "Boxsti local sandbox CRM with fictional data",
  "write_endpoint": "POST /contacts",
  "read_endpoint": "GET /contacts",
  "requests": [
    {
      "case": "First inquiry",
      "inquiry": {
        "contact_email": "Maya@north.example",
        "name": "Maya Chen",
        "company": "North Supply"
      },
      "api_request": {
        "email": "Maya@north.example",
        "full_name": "Maya Chen",
        "organization": "North Supply"
      },
      "http_status": 201,
      "response": {
        "outcome": "created",
        "contact_id": 1
      }
    },
    {
      "case": "Same inquiry delivered again",
      "inquiry": {
        "contact_email": " maya@north.example ",
        "name": "Maya Chen",
        "company": "North Supply"
      },
      "api_request": {
        "email": " maya@north.example ",
        "full_name": "Maya Chen",
        "organization": "North Supply"
      },
      "http_status": 200,
      "response": {
        "outcome": "unchanged",
        "contact_id": 1
      }
    },
    {
      "case": "Company name corrected",
      "inquiry": {
        "contact_email": "Maya@north.example",
        "name": "Maya Chen",
        "company": "North Supply Co."
      },
      "api_request": {
        "email": "Maya@north.example",
        "full_name": "Maya Chen",
        "organization": "North Supply Co."
      },
      "http_status": 200,
      "response": {
        "outcome": "updated",
        "contact_id": 1
      }
    },
    {
      "case": "Inquiry missing an email",
      "inquiry": {
        "name": "Sam Lee",
        "company": "Cedar Parts"
      },
      "api_request": {
        "email": null,
        "full_name": "Sam Lee",
        "organization": "Cedar Parts"
      },
      "http_status": 422,
      "response": {
        "outcome": "rejected",
        "reason": "Email, name and organization are required"
      }
    },
    {
      "case": "Second valid inquiry",
      "inquiry": {
        "contact_email": "sam@cedar.example",
        "name": "Sam Lee",
        "company": "Cedar Parts"
      },
      "api_request": {
        "email": "sam@cedar.example",
        "full_name": "Sam Lee",
        "organization": "Cedar Parts"
      },
      "http_status": 201,
      "response": {
        "outcome": "created",
        "contact_id": 2
      }
    }
  ],
  "read_back": [
    {
      "id": 1,
      "email": "maya@north.example",
      "full_name": "Maya Chen",
      "organization": "North Supply Co."
    },
    {
      "id": 2,
      "email": "sam@cedar.example",
      "full_name": "Sam Lee",
      "organization": "Cedar Parts"
    }
  ]
}
