cart-shoppingEcommerce API

API for Sample ECommerce products and their Details

Ecommerce API Documentation

An e-commerce API is like a toolbox for building online stores, letting you manage products, orders, customers, and even integrate marketing tools. Think of it as the backbone for creating a smooth and efficient online shopping experience.

Base URL

The base URL for the Ecommerce API is:

https://santechapi.vercel.app

Authentication

headers : {
"token" : {YOUR API KEY}
}

Endpoint: /ecommerce/

The response includes the product's ID, title, price, description, category, and image.

HTTP Method: Get

Example Request:

GET /ecommerce/

Example Response:

200

Endpoint: /ecommerce/title

HTTP Method: Get

Example Request:

Example Response:

200

Endpoint: /ecommerce/images

HTTP Method: Get

Example Request:

Example Response:

200

Endpoint: /ecommerce/category

HTTP Method: Get

Example Request:

Example Response:

200

Error Handling

In case of an error, the API will respond with an appropriate HTTP status code and an error message in the response body.

Example Error Response:

400

Last updated

Was this helpful?