# Models

## The CreateJob object

```json
{"openapi":"3.0.1","info":{"title":"SEPA Export","version":"0.0.1"},"components":{"schemas":{"CreateJob":{"required":["siteCode"],"type":"object","properties":{"siteCode":{"minLength":1,"type":"string"}}}}}}
```

## The JobDetails object

```json
{"openapi":"3.0.1","info":{"title":"SEPA Export","version":"0.0.1"},"components":{"schemas":{"JobDetails":{"type":"object","properties":{"jobId":{"type":"string"},"status":{"type":"string"},"siteCode":{"type":"string"},"fileId":{"type":"string"},"active":{"type":"boolean"},"ordersExportedCount":{"type":"integer","format":"int32"},"createdAt":{"type":"string","format":"date-time"},"completedAt":{"type":"string","format":"date-time"}}}}}}
```

## The JobId object

```json
{"openapi":"3.0.1","info":{"title":"SEPA Export","version":"0.0.1"},"components":{"schemas":{"JobId":{"required":["id"],"type":"object","properties":{"id":{"type":"string"}}}}}}
```

## The ResponseMessage object

```json
{"openapi":"3.0.1","info":{"title":"SEPA Export","version":"0.0.1"},"components":{"schemas":{"ResponseMessage":{"required":["message"],"type":"object","properties":{"message":{"type":"string"}}}}}}
```

## The errorMessage object

```json
{"openapi":"3.0.1","info":{"title":"SEPA Export","version":"0.0.1"},"components":{"schemas":{"errorMessage":{"title":"Error","description":"Schema for specific API errors.","type":"object","properties":{"code":{"type":"integer","description":"HTTP status code.","minimum":100,"maximum":599},"status":{"description":"HTTP status.","type":"string"},"message":{"description":"Descriptive error message for debugging.","type":"string"},"details":{"description":"List of problems causing this error.","type":"array","items":{"title":"Error Detail","description":"Error details.","type":"string"}},"resourceId":{"description":"Id of the resource.","type":"string"}},"required":["status","code","message"]}}}}
```
