Realiza uma nova ação de ativação com dispositivos
curl --request POST \
--url https://apicorp.algartelecom.com.br/telecom/product-Inventory-management/management/v1/lorawan/broker/order \
--header 'Content-Type: <content-type>' \
--header 'access_token: <access_token>' \
--header 'client_id: <client_id>' \
--data '
{
"name": "Pedido_API_Tranfer",
"uplinkCount": 0,
"excessUplinkPrice": "0",
"downlinkCount": 0,
"excessDownlinkPrice": "0",
"monthlyFee": "0",
"activationPrice": "0",
"virtualPlanId": 384,
"parentIdMOT": "29623",
"parentIdLorawan": "29345"
}
'import requests
url = "https://apicorp.algartelecom.com.br/telecom/product-Inventory-management/management/v1/lorawan/broker/order"
payload = {
"name": "Pedido_API_Tranfer",
"uplinkCount": 0,
"excessUplinkPrice": "0",
"downlinkCount": 0,
"excessDownlinkPrice": "0",
"monthlyFee": "0",
"activationPrice": "0",
"virtualPlanId": 384,
"parentIdMOT": "29623",
"parentIdLorawan": "29345"
}
headers = {
"Content-Type": "<content-type>",
"client_id": "<client_id>",
"access_token": "<access_token>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Content-Type': '<content-type>',
client_id: '<client_id>',
access_token: '<access_token>'
},
body: JSON.stringify({
name: 'Pedido_API_Tranfer',
uplinkCount: 0,
excessUplinkPrice: '0',
downlinkCount: 0,
excessDownlinkPrice: '0',
monthlyFee: '0',
activationPrice: '0',
virtualPlanId: 384,
parentIdMOT: '29623',
parentIdLorawan: '29345'
})
};
fetch('https://apicorp.algartelecom.com.br/telecom/product-Inventory-management/management/v1/lorawan/broker/order', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://apicorp.algartelecom.com.br/telecom/product-Inventory-management/management/v1/lorawan/broker/order",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Pedido_API_Tranfer',
'uplinkCount' => 0,
'excessUplinkPrice' => '0',
'downlinkCount' => 0,
'excessDownlinkPrice' => '0',
'monthlyFee' => '0',
'activationPrice' => '0',
'virtualPlanId' => 384,
'parentIdMOT' => '29623',
'parentIdLorawan' => '29345'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: <content-type>",
"access_token: <access_token>",
"client_id: <client_id>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://apicorp.algartelecom.com.br/telecom/product-Inventory-management/management/v1/lorawan/broker/order"
payload := strings.NewReader("{\n \"name\": \"Pedido_API_Tranfer\",\n \"uplinkCount\": 0,\n \"excessUplinkPrice\": \"0\",\n \"downlinkCount\": 0,\n \"excessDownlinkPrice\": \"0\",\n \"monthlyFee\": \"0\",\n \"activationPrice\": \"0\",\n \"virtualPlanId\": 384,\n \"parentIdMOT\": \"29623\",\n \"parentIdLorawan\": \"29345\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "<content-type>")
req.Header.Add("client_id", "<client_id>")
req.Header.Add("access_token", "<access_token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://apicorp.algartelecom.com.br/telecom/product-Inventory-management/management/v1/lorawan/broker/order")
.header("Content-Type", "<content-type>")
.header("client_id", "<client_id>")
.header("access_token", "<access_token>")
.body("{\n \"name\": \"Pedido_API_Tranfer\",\n \"uplinkCount\": 0,\n \"excessUplinkPrice\": \"0\",\n \"downlinkCount\": 0,\n \"excessDownlinkPrice\": \"0\",\n \"monthlyFee\": \"0\",\n \"activationPrice\": \"0\",\n \"virtualPlanId\": 384,\n \"parentIdMOT\": \"29623\",\n \"parentIdLorawan\": \"29345\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://apicorp.algartelecom.com.br/telecom/product-Inventory-management/management/v1/lorawan/broker/order")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = '<content-type>'
request["client_id"] = '<client_id>'
request["access_token"] = '<access_token>'
request.body = "{\n \"name\": \"Pedido_API_Tranfer\",\n \"uplinkCount\": 0,\n \"excessUplinkPrice\": \"0\",\n \"downlinkCount\": 0,\n \"excessDownlinkPrice\": \"0\",\n \"monthlyFee\": \"0\",\n \"activationPrice\": \"0\",\n \"virtualPlanId\": 384,\n \"parentIdMOT\": \"29623\",\n \"parentIdLorawan\": \"29345\"\n}"
response = http.request(request)
puts response.read_body{
"message": "Ação criada com sucesso."
}Lorawan
API para Criação de Pedido LoRaWAN
Envia uma solicitação para realizar uma nova ação de ativação com dispositivos.
POST
/
lorawan
/
broker
/
order
Realiza uma nova ação de ativação com dispositivos
curl --request POST \
--url https://apicorp.algartelecom.com.br/telecom/product-Inventory-management/management/v1/lorawan/broker/order \
--header 'Content-Type: <content-type>' \
--header 'access_token: <access_token>' \
--header 'client_id: <client_id>' \
--data '
{
"name": "Pedido_API_Tranfer",
"uplinkCount": 0,
"excessUplinkPrice": "0",
"downlinkCount": 0,
"excessDownlinkPrice": "0",
"monthlyFee": "0",
"activationPrice": "0",
"virtualPlanId": 384,
"parentIdMOT": "29623",
"parentIdLorawan": "29345"
}
'import requests
url = "https://apicorp.algartelecom.com.br/telecom/product-Inventory-management/management/v1/lorawan/broker/order"
payload = {
"name": "Pedido_API_Tranfer",
"uplinkCount": 0,
"excessUplinkPrice": "0",
"downlinkCount": 0,
"excessDownlinkPrice": "0",
"monthlyFee": "0",
"activationPrice": "0",
"virtualPlanId": 384,
"parentIdMOT": "29623",
"parentIdLorawan": "29345"
}
headers = {
"Content-Type": "<content-type>",
"client_id": "<client_id>",
"access_token": "<access_token>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'Content-Type': '<content-type>',
client_id: '<client_id>',
access_token: '<access_token>'
},
body: JSON.stringify({
name: 'Pedido_API_Tranfer',
uplinkCount: 0,
excessUplinkPrice: '0',
downlinkCount: 0,
excessDownlinkPrice: '0',
monthlyFee: '0',
activationPrice: '0',
virtualPlanId: 384,
parentIdMOT: '29623',
parentIdLorawan: '29345'
})
};
fetch('https://apicorp.algartelecom.com.br/telecom/product-Inventory-management/management/v1/lorawan/broker/order', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://apicorp.algartelecom.com.br/telecom/product-Inventory-management/management/v1/lorawan/broker/order",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Pedido_API_Tranfer',
'uplinkCount' => 0,
'excessUplinkPrice' => '0',
'downlinkCount' => 0,
'excessDownlinkPrice' => '0',
'monthlyFee' => '0',
'activationPrice' => '0',
'virtualPlanId' => 384,
'parentIdMOT' => '29623',
'parentIdLorawan' => '29345'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: <content-type>",
"access_token: <access_token>",
"client_id: <client_id>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://apicorp.algartelecom.com.br/telecom/product-Inventory-management/management/v1/lorawan/broker/order"
payload := strings.NewReader("{\n \"name\": \"Pedido_API_Tranfer\",\n \"uplinkCount\": 0,\n \"excessUplinkPrice\": \"0\",\n \"downlinkCount\": 0,\n \"excessDownlinkPrice\": \"0\",\n \"monthlyFee\": \"0\",\n \"activationPrice\": \"0\",\n \"virtualPlanId\": 384,\n \"parentIdMOT\": \"29623\",\n \"parentIdLorawan\": \"29345\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "<content-type>")
req.Header.Add("client_id", "<client_id>")
req.Header.Add("access_token", "<access_token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://apicorp.algartelecom.com.br/telecom/product-Inventory-management/management/v1/lorawan/broker/order")
.header("Content-Type", "<content-type>")
.header("client_id", "<client_id>")
.header("access_token", "<access_token>")
.body("{\n \"name\": \"Pedido_API_Tranfer\",\n \"uplinkCount\": 0,\n \"excessUplinkPrice\": \"0\",\n \"downlinkCount\": 0,\n \"excessDownlinkPrice\": \"0\",\n \"monthlyFee\": \"0\",\n \"activationPrice\": \"0\",\n \"virtualPlanId\": 384,\n \"parentIdMOT\": \"29623\",\n \"parentIdLorawan\": \"29345\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://apicorp.algartelecom.com.br/telecom/product-Inventory-management/management/v1/lorawan/broker/order")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = '<content-type>'
request["client_id"] = '<client_id>'
request["access_token"] = '<access_token>'
request.body = "{\n \"name\": \"Pedido_API_Tranfer\",\n \"uplinkCount\": 0,\n \"excessUplinkPrice\": \"0\",\n \"downlinkCount\": 0,\n \"excessDownlinkPrice\": \"0\",\n \"monthlyFee\": \"0\",\n \"activationPrice\": \"0\",\n \"virtualPlanId\": 384,\n \"parentIdMOT\": \"29623\",\n \"parentIdLorawan\": \"29345\"\n}"
response = http.request(request)
puts response.read_body{
"message": "Ação criada com sucesso."
}Headers
Define o formato da requisição.
🔹 Valor padrão:
application/json
📌 Dica: Copie e cole esse valor no campo Content-Type.
Example:
"application/json"
Identificador do client id do sensedia
Example:
"client_id"
Token gerado.
Example:
"access_token"
Body
application/json
Dados necessários para criar um novo pedido LoRaWAN
Example:
"Pedido_API_Tranfer"
Example:
0
Example:
"0"
Example:
0
Example:
"0"
Example:
"0"
Example:
"0"
Example:
384
Example:
"29623"
Example:
"29345"
Response
201 - application/json
Ação criada com sucesso.

