Quote the price of a given shift
POST/api/v2/public/marketplace/shifts/quote
General Information
Although a price quoting is calculated when creating shifts, we provide a price quotation without creating a shift.
This will not create a shift, but you can create one from the quote. The shift quote is calculated based on the from
, to
, and breakTime
parameters.
Note: The quote is temporarily stored for 15 minutes. After that, it can no longer be used.
Request
- application/json
Body
required
Id of the Facility
shift objectrequired
License Type of the shift
Description of the shift, you can provide detailed information about the shift, it can include any relevant details that would help nurses understand the nature and requirements of the shift.
Shift start date
Shift end date, must be less than 24 hours after from field
Break Time for the shift
Responses
- 201
- 400
- 401
- 403
- application/json
- Schema
- Example (from schema)
Schema
data object
Shift QuoteId
Price per hour
Total price
Quote expiration date
Break Time for the shift
{
"data": {
"quoteId": "b89c6062-b198-40e5-a89d-9e6144d75ffb",
"billRatePerHour": 47.5,
"totalAmount": 178.8,
"expiresAt": "2024-10-04T18:30:10.065Z",
"breakTime": "PT45M"
}
}
Bad request
- application/json
- Schema
- Example (from schema)
- Request Validation
Schema
Error description
The type of error
Status code of the error
{
"message": [
"Property must be a string"
],
"error": "Bad Request",
"statusCode": 400
}
Request Validation Error
{
"message": [
"facilityId must be a string",
"licenseType should not be empty",
"licenseType must be a string",
"description should not be empty",
"description must be a string",
"from must be RFC 3339 date",
"from must be a valid ISO 8601 date string",
"from should not be empty",
"to must be RFC 3339 date",
"to must be less than 24 hours after from field",
"to must be a valid ISO 8601 date string",
"to should not be empty"
],
"error": "Bad Request",
"statusCode": 400
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
Error description
Status code of the error
{
"message": "Unauthorized",
"statusCode": 401
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
Error description
The type of error
Status code of the error
{
"message": "Forbidden Resource",
"error": "Forbidden",
"statusCode": 403
}