API REST

Our API follows REST principles, ensuring efficient and standardized communication.
We use HTTP verbs to define operations on resources and status codes to indicate the result of requests. All responses are formatted in JSON.

HTTP Verbs

The table below describes the main HTTP verbs used in our API.

AttributeDescriptionUsage Example
GETRetrieve information about a resourceSearch for a user
POSTCreate a new resourceCreate an order
PUTUpdate an existing resourceUpdate a product
DELETERemove a resourceDelete a client

Status Codes

Interactions between your application and our API can result in three scenarios:

CategoryDescription
2xx – Everything workedThe request was successful.
4xx – Something went wrongThe request contained invalid or incorrect information.
5xx – The API did something wrongAn internal error occurred on the server.

The following table presents the main status codes returned by the API, along with their error messages:

CodeMessage]DescriptionMeaning
200OKThe request was successful.-
201CreatedThe resource was successfully created.-
400Bad RequestThe request is malformed or incomplete.Required parameter is missing or invalid.
401UnauthorizedAuthentication failed.Invalid or missing access token.
403ForbiddenAccess to the resource is not allowed.You do not have permission to access this resource.
404Not FoundThe requested resource was not found.The requested item does not exist.
500Internal Server ErrorInternal error on the API server.An unexpected error occurred on the server, please try again later.

If a request fails, the API will return a 4xx or 5xx code, along with a JSON response.