diff --git a/docs/index.html b/docs/index.html
index 2962dabc..6c9cee6f 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -12,367 +12,354 @@
margin: 0;
}
-
-
+ " fill="currentColor">
Booking Shopify Api (1.0.0)
Download OpenAPI specification:Download
GET Get user
This endpoint gets user object
+
https://booking-shopify-api.azurewebsites.net/api/user/{username}
Response samples
Content typeapplication/json
{"success": true,
"payload":
{"customerId": 0,
"yearsExperience": "string",
"username": "string",
"aboutMe": "string",
"shortDescription": "string",
"gender": "string",
"social":
{"youtube": "string",
"twitter": "string",
"instagram": "string"
}, "fullname": "string",
"active": true,
"email": "user@example.com",
"phone": "string",
"schedules":
[{"_id": "string",
"name": "string",
"customerId": 0,
"slots":
[{"day": "monday",
"intervals":
[{"from": "string",
"to": "string"
}
]
}
],
}
]
}
}
GET Get all users professions with total count
This endpoint get all users
+
https://booking-shopify-api.azurewebsites.net/api/users/professions
Response samples
Content typeapplication/json
{"success": true,
"payload":
{"property1": 0,
"property2": 0
}
}
GET Get all users
This endpoint get all users
+
query Parameters
nextCursor | |
limit | string limit items (default 10)
+ |
profession | string profession like makeup_artist
+ |
sortOrder | |
https://booking-shopify-api.azurewebsites.net/api/users
Response samples
Content typeapplication/json
{"success": true,
"payload":
{"nextCursor": "string",
"results":
[{"customerId": 0,
"yearsExperience": "string",
"username": "string",
"aboutMe": "string",
"shortDescription": "string",
"gender": "string",
"social":
{"youtube": "string",
"twitter": "string",
"instagram": "string"
}, "fullname": "string",
"active": true,
"email": "user@example.com",
"phone": "string"
}
]
}
}
GET Get user schedule
This endpoint gets user schedule object
+
path Parameters
username required | |
scheduleId required | |
locationId required | |
https://booking-shopify-api.azurewebsites.net/api/user/{username}/schedule/{scheduleId}/location/{locationId}
Response samples
Content typeapplication/json
{"success": true,
"payload":
{"_id": "string",
"name": "string",
"customerId": 0,
"slots":
[{"day": "monday",
"intervals":
[{"from": "string",
"to": "string"
}
]
}
], "products":
[{"productId": 0,
"variantId": 0,
"description": "string",
"duration": "string",
"breakTime": "string",
"noticePeriod":
{"value": "string",
"unit": "hours"
}, "bookingPeriod":
{"value": "string",
"unit": "weeks"
},
}
]
}
}
PUT Create or Update user (restricted fields)
This endpoint creates new or updates user
+
Request Body schema: application/json
required
required | Array of strings or string |
required | Array of strings or string |
username required | |
aboutMe required | |
shortDescription required | |
| |
| Array of strings or string |
https://booking-shopify-api.azurewebsites.net/api/customer/{customerId}
Request samples
Content typeapplication/json
Response samples
Content typeapplication/json
{"success": true,
"payload":
{"customerId": 0,
"yearsExperience": "string",
"username": "string",
"aboutMe": "string",
"shortDescription": "string",
"gender": "string",
"social":
{"youtube": "string",
"twitter": "string",
"instagram": "string"
}, "fullname": "string",
"active": true,
"email": "user@example.com",
"phone": "string"
}
}
GET Get customer
This endpoint gets customer object
+
https://booking-shopify-api.azurewebsites.net/api/customer/{customerId}
Response samples
Content typeapplication/json
{"success": true,
"payload":
{"customerId": 0,
"yearsExperience": "string",
"username": "string",
"aboutMe": "string",
"shortDescription": "string",
"gender": "string",
"social":
{"youtube": "string",
"twitter": "string",
"instagram": "string"
}, "fullname": "string",
"active": true,
"email": "user@example.com",
"phone": "string"
}
}
GET Get customer status
This endpoint gets customer status
+
https://booking-shopify-api.azurewebsites.net/api/customer/{customerId}/status
Response samples
Content typeapplication/json
{"success": true,
"payload":
{"profile": true,
"locations": true,
"schedules": true,
"services": true,
"profileImage": true
}
}
PUT Create or Update user (all fields allowed)
This endpoint creates new or updates user
+
Request Body schema: application/json
required
customerId | |
yearsExperience | |
| Array of strings or string |
| Array of strings or string |
username | |
aboutMe | |
shortDescription | |
gender | |
| |
| |
| Array of strings or string |
fullname | |
active | |
email | |
phone | |
https://booking-shopify-api.azurewebsites.net/api/customer/{customerId}/update
Request samples
Content typeapplication/json
{"customerId": 0,
"yearsExperience": "string",
"username": "string",
"aboutMe": "string",
"shortDescription": "string",
"gender": "string",
"social":
{"youtube": "string",
"twitter": "string",
"instagram": "string"
}, "fullname": "string",
"active": true,
"email": "user@example.com",
"phone": "string"
}
Response samples
Content typeapplication/json
{"success": true,
"payload":
{"customerId": 0,
"yearsExperience": "string",
"username": "string",
"aboutMe": "string",
"shortDescription": "string",
"gender": "string",
"social":
{"youtube": "string",
"twitter": "string",
"instagram": "string"
}, "fullname": "string",
"active": true,
"email": "user@example.com",
"phone": "string"
}
}
GET Get customer is business
This endpoint return if customer is business or not
+
path Parameters
customerId required | string CustomerId from shopify
+ |
https://booking-shopify-api.azurewebsites.net/api/customer/{customerId}/isBusiness
Response samples
Content typeapplication/json
GET Get products for customer
This endpoint get products for customer
+
https://booking-shopify-api.azurewebsites.net/api/customer/{customerId}/products
Response samples
Content typeapplication/json
{"success": true,
"payload":
[{"productId": 0,
"variantId": 0,
"description": "string",
"duration": "string",
"breakTime": "string",
"noticePeriod":
{"value": "string",
"unit": "hours"
}, "bookingPeriod":
{"value": "string",
"unit": "weeks"
}, "locations":
[{"location": "string",
"locationType": "origin"
}
], "scheduleId": "string",
"scheduleName": "string"
}
]
}
GET Get product ids for customer
This endpoint get product ids for customer
+
https://booking-shopify-api.azurewebsites.net/api/customer/{customerId}/products/ids
Response samples
Content typeapplication/json
GET Get product that exist in one of the schedules for customer
This endpoint get product for customer
+
path Parameters
customerId required | |
productId required | |
https://booking-shopify-api.azurewebsites.net/api/customer/{customerId}/product/{productId}
Response samples
Content typeapplication/json
{"success": true,
"payload":
{"productId": 0,
"variantId": 0,
"description": "string",
"duration": "string",
"breakTime": "string",
"noticePeriod":
{"value": "string",
"unit": "hours"
}, "bookingPeriod":
{"value": "string",
"unit": "weeks"
}, "locations":
[{"location": "string",
"locationType": "origin"
}
], "scheduleId": "string",
"scheduleName": "string"
}
}
PUT Upsert product to schedule
This endpoint update product that exist in schedule
+
path Parameters
customerId required | |
productId required | |
Request Body schema: application/json
required
scheduleId required | |
required | |
required | |
required | |
required | object (CustomerProductNoticePeriod) |
required | object (CustomerProductBookingPeriod) |
required | Array of objects (CustomerProductLocations) |
Responses
https://booking-shopify-api.azurewebsites.net/api/customer/{customerId}/product/{productId}
Request samples
Content typeapplication/json
{"scheduleId": "string",
"variantId": "string",
"duration": "string",
"breakTime": "string",
"noticePeriod":
{"value": "string",
"unit": "hours"
}, "bookingPeriod":
{"value": "string",
"unit": "weeks"
}, "locations":
[{"location": "string",
"locationType": "origin"
}
]
}
Response samples
Content typeapplication/json
{"success": true,
"payload":
{"productId": 0,
"variantId": 0,
"description": "string",
"duration": "string",
"breakTime": "string",
"noticePeriod":
{"value": "string",
"unit": "hours"
}, "bookingPeriod":
{"value": "string",
"unit": "weeks"
}, "locations":
[{"location": "string",
"locationType": "origin"
}
], "scheduleId": "string",
"scheduleName": "string"
}
}
DEL destroy product
This endpoint remove product from schedule for customer
+
path Parameters
customerId required | |
productId required | |
https://booking-shopify-api.azurewebsites.net/api/customer/{customerId}/product/{productId}
Response samples
Content typeapplication/json
{"success": true,
"payload":
{"matchedCount": 0,
"modifiedCount": 0,
"upsertedCount": 0
}
}
POST get availabilty for customer
This availabilty for customer
+
path Parameters
customerId required | string This field for customerId
+ |
locationId required | string This field for locationId
+ |
Request Body schema: application/json
required
startDate required | |
productIds required | |
| |
https://booking-shopify-api.azurewebsites.net/api/customer/{customerId}/availability/{locationId}/get
Request samples
Content typeapplication/json
{"startDate": "string",
"destination":
{"name": "string",
"fullAddress": "string",
"originType": "home"
}
}
Response samples
Content typeapplication/json
{"success": true,
"payload":
[{"date": "string",
"customer":
{"customerId": "string",
"fullname": "string"
}, "lookup":
{"_id": "string",
"origin":
{"customerId": "string",
"name": "string",
"fullAddress": "string",
"minDistanceForFree": "string",
"distanceHourlyRate": "string",
"fixedRatePerKm": "string"
}, "destination":
{"name": "string",
"fullAddress": "string"
}, "duration":
{"text": "string",
"value": 0
}, "distance":
{"text": "string",
"value": 0
}
}, "slots":
[{"from": "string",
"to": "string",
"products":
[{"productId": 0,
"variantId": 0,
"from": "string",
"to": "string",
"breakTime": 0,
"duration": 0
}
]
}
]
}
]
}
GET Get booking
This endpoint gets booking object
+
path Parameters
customerId required | string customerId for the customer
+ |
orderId required | |
query Parameters
date required | string date for the lineItem (2014-12-12)
+ |
https://booking-shopify-api.azurewebsites.net/api/customer/{customerId}/booking/{orderId}
Response samples
Content typeapplication/json
GET Get all bookings for customer
This endpoint get all bookings
+
path Parameters
customerId required | string customerId for the customer
+ |
query Parameters
mode required | string Enum: "completed" "upcoming" either "upcoming", "completed"
+ |
https://booking-shopify-api.azurewebsites.net/api/customer/{customerId}/bookings
Response samples
Content typeapplication/json
POST Create schedule
This endpoint create new schedule
+
path Parameters
customerId required | string The ID of the customerId
+ |
Request Body schema: application/json
required
Responses
https://booking-shopify-api.azurewebsites.net/api/customer/{customerId}/schedule
Request samples
Content typeapplication/json
Response samples
Content typeapplication/json
{"success": true,
"payload":
{"_id": "string",
"name": "string",
"customerId": 0,
"slots":
[{"day": "monday",
"intervals":
[{"from": "string",
"to": "string"
}
]
}
], "products":
[{"productId": 0,
"variantId": 0,
"description": "string",
"duration": "string",
"breakTime": "string",
"noticePeriod":
{"value": "string",
"unit": "hours"
}, "bookingPeriod":
{"value": "string",
"unit": "weeks"
}, "locations":
[{"location": "string",
"locationType": "origin"
}
]
}
]
}
}
GET Get all schedule for customer
This endpoint get all schedule for customer
+
path Parameters
customerId required | string The ID of the customerId
+ |
https://booking-shopify-api.azurewebsites.net/api/customer/{customerId}/schedules
Response samples
Content typeapplication/json
{"success": true,
"payload":
[{"_id": "string",
"name": "string",
"customerId": 0,
"slots":
[{"day": "monday",
"intervals":
[{"from": "string",
"to": "string"
}
]
}
], "products":
[{"productId": 0,
"variantId": 0,
"description": "string",
"duration": "string",
"breakTime": "string",
"noticePeriod":
{"value": "string",
"unit": "hours"
}, "bookingPeriod":
{"value": "string",
"unit": "weeks"
}, "locations":
[{"location": "string",
"locationType": "origin"
}
]
}
]
}
]
}
GET Get schedule for customer
This endpoint get schedule for customer
+
path Parameters
customerId required | string The ID of the customerId
+ |
scheduleId required | string The ID of the scheduleId
+ |
https://booking-shopify-api.azurewebsites.net/api/customer/{customerId}/schedule/{scheduleId}
Response samples
Content typeapplication/json
{"success": true,
"payload":
{"_id": "string",
"name": "string",
"customerId": 0,
"slots":
[{"day": "monday",
"intervals":
[{"from": "string",
"to": "string"
}
]
}
], "products":
[{"productId": 0,
"variantId": 0,
"description": "string",
"duration": "string",
"breakTime": "string",
"noticePeriod":
{"value": "string",
"unit": "hours"
}, "bookingPeriod":
{"value": "string",
"unit": "weeks"
}, "locations":
[{"location": "string",
"locationType": "origin"
}
]
}
]
}
}
PUT Update schedule
This endpoint update schedule
+
path Parameters
customerId required | string The ID of the customerId
+ |
scheduleId required | string The ID of the scheduleId
+ |
Request Body schema: application/json
required
Responses
https://booking-shopify-api.azurewebsites.net/api/customer/{customerId}/schedule/{scheduleId}
Request samples
Content typeapplication/json
Response samples
Content typeapplication/json
{"success": true,
"payload":
{"_id": "string",
"name": "string",
"customerId": 0,
"slots":
[{"day": "monday",
"intervals":
[{"from": "string",
"to": "string"
}
]
}
], "products":
[{"productId": 0,
"variantId": 0,
"description": "string",
"duration": "string",
"breakTime": "string",
"noticePeriod":
{"value": "string",
"unit": "hours"
}, "bookingPeriod":
{"value": "string",
"unit": "weeks"
}, "locations":
[{"location": "string",
"locationType": "origin"
}
]
}
]
}
}
DEL destroy schedule
This endpoint destroy schedule for customer
+
path Parameters
customerId required | string The ID of the customerId
+ |
scheduleId required | string The ID of the scheduleId
+ |
https://booking-shopify-api.azurewebsites.net/api/customer/{customerId}/schedule/{scheduleId}
Response samples
Content typeapplication/json
{"success": true,
"payload":
{"deletedCount": 0,
"acknowledged": true
}
}
PUT Update schedule slot
This endpoint update schedule slot
+
path Parameters
customerId required | string The ID of the customerId
+ |
scheduleId required | string The ID of the scheduleId
+ |
Request Body schema: application/json
required
Array
day required | string (CustomerScheduleSlotDay) Enum: "monday" "tuesday" "wednesday" "thursday" "friday" "saturday" "sunday" |
required | Array of objects (CustomerScheduleSlotInterval) |
Responses
https://booking-shopify-api.azurewebsites.net/api/customer/{customerId}/schedule/{scheduleId}/slots
Request samples
Content typeapplication/json
[{"day": "monday",
"intervals":
[{"from": "string",
"to": "string"
}
]
}
]
Response samples
Content typeapplication/json
{"success": true,
"payload":
{"_id": "string",
"name": "string",
"customerId": 0,
"slots":
[{"day": "monday",
"intervals":
[{"from": "string",
"to": "string"
}
]
}
], "products":
[{"productId": 0,
"variantId": 0,
"description": "string",
"duration": "string",
"breakTime": "string",
"noticePeriod":
{"value": "string",
"unit": "hours"
}, "bookingPeriod":
{"value": "string",
"unit": "weeks"
}, "locations":
[{"location": "string",
"locationType": "origin"
}
]
}
]
}
}
GET Get all origin locations
This endpoint get all origin locations
+
https://booking-shopify-api.azurewebsites.net/api/customer/{customerId}/locations/get-all-origins
Response samples
Content typeapplication/json
POST Set new default location for user
This endpoint set new default location for user
+
path Parameters
customerId required | |
locationId required | |
https://booking-shopify-api.azurewebsites.net/api/customer/{customerId}/location/{locationId}/setDefault
Response samples
Content typeapplication/json
{"success": true,
"payload":
{"customerId": 0,
"yearsExperience": "string",
"username": "string",
"aboutMe": "string",
"shortDescription": "string",
"gender": "string",
"social":
{"youtube": "string",
"twitter": "string",
"instagram": "string"
}, "fullname": "string",
"active": true,
"email": "user@example.com",
"phone": "string"
}
}
GET Get one location from user
This endpoint get one location for user
+
path Parameters
customerId required | |
locationId required | |
https://booking-shopify-api.azurewebsites.net/api/customer/{customerId}/location/{locationId}
Response samples
Content typeapplication/json
POST Remove location from user
This endpoint remove location but does not delete location from db
+
path Parameters
customerId required | |
locationId required | |
https://booking-shopify-api.azurewebsites.net/api/customer/{customerId}/location/{locationId}
Response samples
Content typeapplication/json
{"success": true,
"payload":
{"customerId": 0,
"yearsExperience": "string",
"username": "string",
"aboutMe": "string",
"shortDescription": "string",
"gender": "string",
"social":
{"youtube": "string",
"twitter": "string",
"instagram": "string"
}, "fullname": "string",
"active": true,
"email": "user@example.com",
"phone": "string"
}
}
POST Add location to user
This endpoint add new location
+
path Parameters
customerId required | |
locationId required | |
https://booking-shopify-api.azurewebsites.net/api/customer/{customerId}/location/{locationId}
Response samples
Content typeapplication/json
{"success": true,
"payload":
{"customerId": 0,
"yearsExperience": "string",
"username": "string",
"aboutMe": "string",
"shortDescription": "string",
"gender": "string",
"social":
{"youtube": "string",
"twitter": "string",
"instagram": "string"
}, "fullname": "string",
"active": true,
"email": "user@example.com",
"phone": "string"
}
}
PUT Update location
This endpoint update existing location
+
path Parameters
customerId required | |
locationId required | |
Request Body schema: application/json
required
name | |
fullAddress | |
originType | string Enum: "home" "commercial" |
| |
| |
| |
https://booking-shopify-api.azurewebsites.net/api/customer/{customerId}/location/{locationId}
Request samples
Content typeapplication/json
{"name": "string",
"fullAddress": "string",
"originType": "home",
"minDistanceForFree": 0,
"distanceHourlyRate": 0,
"fixedRatePerKm": 0
}
Response samples
Content typeapplication/json
POST Create location origin or destination
This endpoint creates new location
+
Request Body schema: application/json
required
name required | |
fullAddress required | |
locationType required | string Enum: "origin" "destination" |
originType required | string Enum: "home" "commercial" |
required | |
required | |
required | |
https://booking-shopify-api.azurewebsites.net/api/customer/{customerId}/locations
Request samples
Content typeapplication/json
Response samples
Content typeapplication/json
GET Get all locations for user
This endpoint get all locations for user
+
https://booking-shopify-api.azurewebsites.net/api/customer/{customerId}/locations
Response samples
Content typeapplication/json
GET location coordinates
This endpoint get coordinates object
+
https://booking-shopify-api.azurewebsites.net/api/location/get-coordinates
Response samples
Content typeapplication/json
{"success": true,
"payload":
{"longitude": 0,
"latitude": 0,
"fullAddress": "string"
}
}
GET location validate address
This endpoint validate address
+
https://booking-shopify-api.azurewebsites.net/api/location/validate-address
Response samples
Content typeapplication/json
{"success": true,
"payload":
{"longitude": 0,
"latitude": 0,
"fullAddress": "string"
}
}
GET location travel time
This endpoint gets traval time object
+
https://booking-shopify-api.azurewebsites.net/api/location/get-travel-time
Response samples
Content typeapplication/json
{"success": true,
"payload":
{"duration":
{"text": "string",
"value": 0
}, "distance":
{"text": "string",
"value": 0
}
}
}
POST get shipping calculate
Request Body schema: application/json
required
locationId required | |
required | |
https://booking-shopify-api.azurewebsites.net/api/shipping/calculate
Request samples
Content typeapplication/json
Response samples
Content typeapplication/json
{"success": true,
"payload":
{"duration":
{"text": "string",
"value": 0
}, "distance":
{"text": "string",
"value": 0
}, "cost":
{"currency": "string",
"value": 0
}
}
}