Complete a test booking
/developer/v1/test-helper/booking/{booking_id}/complete/documentbooking:writeBAA requiredSandbox only. There are no real visits in the sandbox, so nothing ever produces a signed
report. This route finishes a test booking for you: it marks the visit meeting_completed and signs a
sample report, so you can try the report.signed event and the report routes from start to
end. The content of the sample report is invented.
It works only with a test key (nk-test-). A prod key (nk-prod-) answers
403 test_mode_only and nothing happens.
The report.signed event follows shortly after this route answers. The booking must be one
your company made with a test key: otherwise the answer is 404. A booking that was canceled,
or is already completed, answers 409 booking_not_completable.
Needs the booking:write scope.
Path parameters
booking_idstringrequiredThe ID of the test booking.
Min length 1 · Max length 200 · Pattern ^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$
Response 200
booking_idstringrequiredThe ID of the booking that was completed.
report_idstringrequiredThe ID of the sample report that was signed. Its content is invented.
statusstringrequiredThe status of the booking, always
meeting_completed.
Errors
Every error has this shape. Branch on code, not on message. request_id equals the X-Request-Id response header.
{
"error": {
"code": "not_found",
"message": "The object does not exist.",
"request_id": "req_0123456789abcdef0123456789abcdef"
}
}| Status | Code | Meaning |
|---|---|---|
401 | invalid_api_key | The API key is missing or not valid. |
403 | company_archived | This company is archived. |
403 | company_not_live | The company must be live to use prod keys. |
403 | company_suspended | This company is suspended. |
403 | scope_not_granted | This API key does not have the booking:write scope. |
403 | test_mode_only | This route works only with a test key. |
404 | not_found | The requested resource was not found. |
409 | booking_not_completable | This booking cannot be completed. |
422 | validation_error | path.booking_id: String should match pattern '^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$' |
429 | rate_limited | Too many requests. Wait before calling again. |
500 | internal_error | Something went wrong on our side. Please try again later. |
502 | upstream_error | A Nurish'd service could not complete the request. |
503 | upstream_unavailable | A Nurish'd service is unavailable. Please try again later. |
504 | upstream_timeout | A Nurish'd service did not answer in time. Please try again. |