Cartify
Cartify is a powerful and flexible e-commerce API that empowers developers to build robust and scalable e-commerce applications. With a comprehensive set of endpoints, Cartify offers a wide range of features, including product management, shopping cart functionality, checkout processing, order management, user management, and more. The API is built with Node, Express Js, and MongoDB using…
Cartify endpoints
| Method | Endpoint | Description |
|---|---|---|
| User Management | ||
| POST |
usersSignUp /users |
It takes a post response of three required fields; email, password, and username. The username can't be less than 8 characters. |
| POST |
userLogin /users/api/login |
This API allows registered users to authenticate themselves by providing their email addresses and password. If the credentials provided are incorrect or the user does not exist,… |
| PUT |
updateUserbyId /users/api/v1/{id} |
For a valid response, the endpoint takes a path parameter which is the Id of the user you would want to update. There is also an authorization header that takes the bearer token… |
| POST |
userPayment /users/api/v1/orders/{email}/pay |
This uses a simple stripe authentication to make payments. The endpoint firstly checks if there is a user that has been created with their platform. The Stripe API is used to… |
| DELETE |
deleteUserById /users/{id} |
This endpoint deletes a user with the use of the path parameter of the userId So as to ensure that it is only an authenticated user that can delete his/her account, you would… |
| Admin Management | ||
| GET |
getAllUsers /users |
For a valid response, you would need to have an authorization header and set the role to *Bearer admin*. |
| POST |
addProduct /products |
This endpoint first verifies if the admin has permission to add a product by using a middleware function. You can do this by changing the permission of the authorization to… |
| PUT |
updateProductById /products/{productId} |
For a valid response, you would need to assign the id of the product in the path parameter. The endpoint also takes an authorization header to verify the admin. For the… |
| DELETE |
deleteProductById /products/{productId} |
For a valid response, you have to use the admin key to authenticate or authorize that you are an admin. The key is "Bearer admin". You would also need to put the id of the… |
| Product Managemnt | ||
| GET |
getProductByCategory /products/p/{category} |
Do you want to search for a product by category? Use the category of the product in the path parameter. For example, Are you looking for Phones? Use Phones in your path parameter |
| GET |
getProductByName /products/{brand} |
This endpoint filters through the products database and brings out results based on the preferences you want. For a valid response, it takes a path parameter which is required… |
| GET |
getProducts /products |
This endpoint gets all products in the database. A list of products in the store, with the following attributes: id (integer): The unique identifier for the product. title… |
| Order Management | ||
| GET |
getOrders /users/api/v1/admin/orders |
The endpoint retrieves all orders. Set the authorization to "Bearer admin" to authorize that the admin can check and confirm all orders. You should get a JSON object with the… |
| POST |
addOrderstoUsersCart /users/api/v1/{userId}/orders |
This endpoint basically adds orders to the users' cart by using the path parameter UserId which is the id of the user that has ordered. It has a middleware function that uses the… |
| GET |
getOrdersbyEmail /users/api/v1/{email} |
For a valid response, fill in the email of the user in the path parameter. This is helpful instead of looping from the userId since the users can't have or use the same email. To… |
| PUT |
updateOrdersfromUserCart /api/v1/{userId}/orders/{orderId} |
The endpoint takes a path parameter which is the id of the order you would want to update. It also takes an authorization header which is the logged-in user's token....It takes… |
| DELETE |
deleteOrderfromUserCart /users/api/v1/{userId}/orders/{orderId} |
This deletes an order from the user's cart by using the path parameter; userId(which is the id of the user) and the orderId( id of the user). Who can delete an order except for… |
Cartify pricing
| Plan | Price | Rate limit | Quotas |
|---|---|---|---|
| BASIC | Free | — |
|