> ## Documentation Index
> Fetch the complete documentation index at: https://docs.commerce.thecanbrand.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Api endpoints

# API Endpoint Documentation Guide

This guide helps you understand how to interact with the API endpoint section, how to use the available modules and methods, and how to leverage the code samples effectively.

***

## Module & Method Selection

You can **select a module and its corresponding method** based on your requirement.

* After selecting the desired **module**, a list of **available methods** will appear.
* Each method provides access to its corresponding **API references**.

Once a method is selected, you can easily implement it into your code using the available documentation and code snippets.

***

<img src="https://mintcdn.com/nepalcan/7iypnXb7att4Iqts/images/vendor/api.png?fit=max&auto=format&n=7iypnXb7att4Iqts&q=85&s=ae14a951999ea7b77fd60e54f122a2dd" alt="Favicon Image" width="1918" height="943" data-path="images/vendor/api.png" />

<img src="https://mintcdn.com/nepalcan/7iypnXb7att4Iqts/images/vendor/api1.png?fit=max&auto=format&n=7iypnXb7att4Iqts&q=85&s=f7a48d34e8da82a0f83f64854657b1d0" alt="Favicon Image" width="1918" height="954" data-path="images/vendor/api1.png" />

## Code Samples

When you **scroll down a bit**, you'll see the **code sample section**.

* On the **right side**, there is a dropdown to switch between different programming languages:
  * `cURL`
  * `JavaScript`
  * `Python`

Select the language of your choice to view the relevant code sample automatically.

<img src="https://mintcdn.com/nepalcan/7iypnXb7att4Iqts/images/vendor/codesample.png?fit=max&auto=format&n=7iypnXb7att4Iqts&q=85&s=57a0480c50b46ffc7edfa63b83069bf3" alt="Favicon Image" width="1905" height="943" data-path="images/vendor/codesample.png" />

***

<img src="https://mintcdn.com/nepalcan/7iypnXb7att4Iqts/images/vendor/errortype.png?fit=max&auto=format&n=7iypnXb7att4Iqts&q=85&s=15e75c9168dff3ffa7813f4e13bbeea4" alt="Favicon Image" width="1911" height="937" data-path="images/vendor/errortype.png" />

## Error Reference Cards

There are two **error reference cards** displayed:

1. **If there's an error in your website**, these cards help you:

   * Identify the error type.
   * Understand the error code.
   * Get a brief description of the issue.

2. Use these references to debug and **resolve errors efficiently** based on the information provided.

***

## Quick Tips

* Make sure to match the module and method accurately before copying the sample code.
* Use the **language selector** to view implementation in your preferred coding language.
* Refer to the **error cards** to identify and fix common API issues.
