Reservation Plugin
The present document introduces the Ganje Reservation Plugin service and explains its technical, user, and operational utilization by online stores. This document explains the simplest solution in terms of the technical development required for an online store, which is why it is referred to as a general service.
User and Operational Processes
The Ganje public service is placed as a delivery method on the checkout page of online stores' shopping carts. When a customer places an order in the store, they will see this option. By selecting it, a window containing information about the Ganje service opens, allowing the user to submit their request without leaving the online store or navigating to a separate page.
Initially, to familiarize themselves with the service, its functionality, and its benefits, the user will view some introductory information. Then, they will see a list of lockers (along with their working hours and neighborhood). After selecting a locker, the available slots will be displayed, and the user can choose their preferred day from the available options to receive their order.
After confirming the information, a request is registered in the locker, and the user continues with the remaining steps of their purchase process in the online store.
On the specified day and date, the store's courier can visit the locker and scan the QR code on it to place the user's order inside the locker. After the locker door is closed, a text message is automatically sent to the user from Ganje, notifying them that their order has been placed. After receiving the message, the user can visit the locker, use the link provided in the SMS, and scan the QR code on the locker to open the door and retrieve their order.
Operational Notes
- Each customer can register only one request in the locker for each order.
- If the user does not retrieve their order within 24 hours, the order will be marked as "returned," and the store's courier must visit the locker to collect it.
- To expedite and simplify the connection between online stores and the lockers, order reports and related processes are handled through the Ganje user panel and the operations team.
- Operational issues are resolved by the Ganje support team.
Necessary Actions for Technical Development
- Adding the "Send via Ganje" option
- Sending a request to register a pre-order
- Redirecting the user to the link sent in the previous request's response (modal on the website)
APIs Used
All available APIs are authenticated via JWT token. You can obtain the token using your username and password from the following web service:
Request Body
{
"username": "username",
"password": "1234"
}
Response
{
"refresh": "string",
"access": "string",
"pk": 0,
"uuid": "string",
"expire_duration": 0,
"expires_at": "date-time"
}
API Response Codes
Status Code | Description |
---|---|
200 | return access and refresh tokens |
401 | Invalid username or password |
After receiving the token from the API above, include it in the header of the remaining APIs as follows to authenticate the requests:
headers: {
authorization: "Bearer <access_token>"
}
The only essential API required to use the public service is as follows: