This returns the job benchtops PDF.
GET https://cabinetry.online/api/job/{jobid}/pdf/benchtop
The PDF will be generated asynchronously in the future and when that's implemented it may not be available immediately after any change to the job including editing items in the job or submitting it. In this case this endpoint will return a 429 status code and should be polled no more than once every minute until it returns a 200 status code.
| Field | Type | Default | Description |
|---|---|---|---|
| jobid | integer | ID of the job who's PDF is to be retrieved |
The response is either:
Retry-After header indicating how long to wait before requesting the PDF again| HTTP status code | Meaning |
|---|---|
| 200 | Success, data was retrieved successfully |
| 400 | Invalid request |
| 403 | UnAuthorized Access, Record is not accessible by this user |
| 429 | PDF is not available yet, please try again later |
If the PDF is not ready yet:
GET https://cabinetry.online/api/job/1234567/pdf/benchtops
HTTP/1.1 429 Too Many Requests
Retry-After: 60
Your PDF is currently being generated. Please refresh the page shortly to view your document.