Skip to main content
POST
/
v1
/
orders
/
{orderId}
/
schedule-appointment
JavaScript
import BlueHive from '@bluehive/sdk';

const client = new BlueHive({
  apiKey: 'My API Key',
});

const response = await client.orders.scheduleAppointment('orderId', {
  appointment: { date: 'date', dateTime: '2019-12-27T18:11:19.117Z', time: 'time' },
});

console.log(response.message);
{
  "success": true,
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

API key for accessing BlueHive API endpoints. Format: "ApiKey <your-api-key>" or "Bearer <your-api-key>"

Path Parameters

orderId
string
required

The order ID

Body

application/json
appointment
object
required
  • Option 1
  • Option 2
orderAccessCode
string

Order access code for authorization

providerId
string

Provider ID for authorization

Response

Default Response

success
boolean
required
message
string
required
I