### Bling API GET Request Example (REST) Source: https://developer.bling.com.br/index Demonstrates a GET request to retrieve product data from the Bling API. This example illustrates the URI structure and the expected JSON response format. It assumes a RESTful architecture where resources are accessed via specific endpoints. ```HTTP GET https://api.bling.com.br/Api/v3/produtos ``` ```JSON { "data": { "id": 1, "nome": ‘Caderno universitário, 100 Folhas’ } } ``` -------------------------------- ### GET /api/v3/produtos Source: https://developer.bling.com.br/index Retrieves a list of products from the Bling system. ```APIDOC ## GET /api/v3/produtos ### Description This endpoint allows you to retrieve a list of all products available in the Bling system. ### Method GET ### Endpoint /api/v3/produtos ### Parameters #### Query Parameters - **token** (string) - Required - Your Bling API authentication token. - **apikey** (string) - Required - Your Bling API key. ### Request Example ``` GET https://api.bling.com.br/Api/v3/produtos?token=YOUR_TOKEN&apikey=YOUR_API_KEY ``` ### Response #### Success Response (200) - **data** (array) - An array of product objects, each containing product details. - **id** (integer) - The unique identifier for the product. - **nome** (string) - The name of the product. #### Response Example ```json { "data": [ { "id": 1, "nome": "Caderno universitário, 100 Folhas" } ] } ``` ``` -------------------------------- ### Bling API Overview Source: https://developer.bling.com.br/index General information about the Bling API, its purpose, architecture, and usage. ```APIDOC ## Bling API Overview ### Description Welcome to Bling Developers! This repository contains all the necessary documentation to integrate with Bling. Our API allows you to consume Bling resources to meet your company/client needs. Structured in the REST standard, you can use GET, POST, PUT, PATCH, and DELETE methods, with OAuth 2.0 authentication. ### About Bling Bling is an ERP that facilitates the issuance of fiscal notes and payment slips, in addition to performing native integrations with e-commerce platforms, marketplaces, and logistics providers, such as via API. With Bling, it's possible to manage the entire product purchase and sales process easily, as well as have reports that assist in business analysis and management. ### What is an API API (Application Programming Interface) is a set of protocols and tools that facilitate integration between software and allow one solution to communicate with other products and services without needing to access the solution's graphical interface directly, all through what we call an interface. The purpose of an API is to exchange data between systems implemented in different technologies that use the same communication protocol. At Bling, we use the API to integrate our solutions with our partners, making it possible to create automation, update, or analysis processes for records, create new applications, and a wide range of solutions can be created to make our clients' lives easier. ### Target Audience for the API The API is public and available for anyone who wishes to extend the existing functionalities in Bling, being able to create plugins or components in their own systems. Using the API allows operations to be performed independently, as Bling resources will be controlled by the API client, who can use the API to implement their own solutions. ### REST Standard At Bling, we use an architectural pattern for the API called REST (Representational State Transfer). REST ignores the component implementation details and protocol syntax, focusing on component roles, constraints on their interaction, and their interpretation of significant data elements. In other words, the user must make an HTTP request to an available endpoint to request, send, or modify system data. The API endpoint then transfers resource state information to the requester. This information is delivered via HTTP using a JSON message format. ### HTTP Methods Each request consists of an HTTP method, a Header, a URI, and a Body, which are explained below: The HTTP method differentiates the action the user wishes to perform via the API, which are: * **GET**: Action to obtain one or more entities * **POST**: Action to create an entity or execute an action * **PUT**: Action to update all data of an entity * **PATCH**: Action to partially update data of an entity * **DELETE**: Action to remove an entity ### Header The header is the request header; the information sent in the header can be used by the server to interpret the request. Example: `Content-Type: application/json` ### URI Defines the path where the request will occur. For example, in a request to obtain product data, the URI would be: `/Api/v3/produtos`. ### Body The body is the request body; it contains the data to be sent to the system and also returns the response information of a request. ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.