curl --request POST \
--url https://apicorp.algartelecom.com.br/telecom/product-Inventory-management/management/v1/report/inventory \
--header 'Content-Type: <content-type>' \
--header 'access_token: <access_token>' \
--header 'client_id: <client_id>' \
--data '
{
"email": "teste@gmail.com",
"locale": "pt",
"id": 0,
"contractAssetNumber": "string",
"showContracted": true,
"operator": "ALGAR TELECOM",
"connectedOperator": "TIM",
"subOperator": "ALGAR 3OP",
"nickname": "Device nickname",
"observation": "Observation about device",
"msisdn": [
"5516981818181"
],
"iccid": [
"89553203000003920000"
],
"imsi": [
"724373198034943"
],
"status": "ACTIVE",
"stock": true,
"franchise": 20,
"customerName": "Customer name",
"customerDocumentNumber": "351316040684",
"customerId": 15010,
"online": true,
"city": "string",
"state": "string",
"postalCode": "string",
"lastConnectionFrom": "2025-08-11T17:33:27.358Z",
"lastConnectionTo": "2025-08-11T17:33:27.358Z",
"consumptionPercentFrom": 18.5,
"consumptionPercentTo": 83.5,
"consumptionFrom": 18151355,
"consumptionTo": 83344468486,
"automaticBlocking": true,
"networkBlockStatus": "NONE",
"blockedByDefault": true,
"accountId": 0,
"accountDesc": "string",
"loyaltyType": 0,
"loyaltyTime": 0,
"cancellationFeeFrom": 0,
"cancellationFeeTo": 0,
"activationPriceFrom": 0,
"activationPriceTo": 0,
"priceFrom": 0,
"priceTo": 0,
"megabyteExcPriceFrom": 0,
"megabyteExcPriceTo": 0,
"simcardCreditFrom": 0,
"simcardCreditTo": 0,
"tradeInMonths": 0,
"preActivationDays": 0,
"preActivationEndDateFrom": "2025-08-11T17:33:27.358Z",
"preActivationEndDateTo": "2025-08-11T17:33:27.358Z",
"sharingType": "NONE",
"brokerContractId": 131351,
"brokerContractDesc": "Shared contract ACDUEB123",
"sharedContractCreditFrom": 5,
"sharedContractCreditTo": 20,
"sharedContractFranchiseFrom": 10,
"sharedContractFranchiseTo": 20,
"apn": "example.br",
"hostname": "172.217. 22.14",
"technology": "5G",
"imei": "516761813114869",
"imeiLocked": true,
"activationDateFrom": "2025-08-11T17:33:27.358Z",
"activationDateTo": "2025-08-11T17:33:27.358Z",
"cancellationDateFrom": "2025-08-11T17:33:27.358Z",
"cancellationDateTo": "2025-08-11T17:33:27.358Z",
"suspensionEligibility": true,
"suspensionStartDateFrom": "2025-08-11T17:33:27.358Z",
"suspensionStartDateTo": "2025-08-11T17:33:27.358Z",
"suspensionEndDateFrom": "2025-08-11T17:33:27.358Z",
"suspensionEndDateTo": "2025-08-11T17:33:27.359Z"
}
'import requests
url = "https://apicorp.algartelecom.com.br/telecom/product-Inventory-management/management/v1/report/inventory"
payload = {
"email": "teste@gmail.com",
"locale": "pt",
"id": 0,
"contractAssetNumber": "string",
"showContracted": True,
"operator": "ALGAR TELECOM",
"connectedOperator": "TIM",
"subOperator": "ALGAR 3OP",
"nickname": "Device nickname",
"observation": "Observation about device",
"msisdn": ["5516981818181"],
"iccid": ["89553203000003920000"],
"imsi": ["724373198034943"],
"status": "ACTIVE",
"stock": True,
"franchise": 20,
"customerName": "Customer name",
"customerDocumentNumber": "351316040684",
"customerId": 15010,
"online": True,
"city": "string",
"state": "string",
"postalCode": "string",
"lastConnectionFrom": "2025-08-11T17:33:27.358Z",
"lastConnectionTo": "2025-08-11T17:33:27.358Z",
"consumptionPercentFrom": 18.5,
"consumptionPercentTo": 83.5,
"consumptionFrom": 18151355,
"consumptionTo": 83344468486,
"automaticBlocking": True,
"networkBlockStatus": "NONE",
"blockedByDefault": True,
"accountId": 0,
"accountDesc": "string",
"loyaltyType": 0,
"loyaltyTime": 0,
"cancellationFeeFrom": 0,
"cancellationFeeTo": 0,
"activationPriceFrom": 0,
"activationPriceTo": 0,
"priceFrom": 0,
"priceTo": 0,
"megabyteExcPriceFrom": 0,
"megabyteExcPriceTo": 0,
"simcardCreditFrom": 0,
"simcardCreditTo": 0,
"tradeInMonths": 0,
"preActivationDays": 0,
"preActivationEndDateFrom": "2025-08-11T17:33:27.358Z",
"preActivationEndDateTo": "2025-08-11T17:33:27.358Z",
"sharingType": "NONE",
"brokerContractId": 131351,
"brokerContractDesc": "Shared contract ACDUEB123",
"sharedContractCreditFrom": 5,
"sharedContractCreditTo": 20,
"sharedContractFranchiseFrom": 10,
"sharedContractFranchiseTo": 20,
"apn": "example.br",
"hostname": "172.217. 22.14",
"technology": "5G",
"imei": "516761813114869",
"imeiLocked": True,
"activationDateFrom": "2025-08-11T17:33:27.358Z",
"activationDateTo": "2025-08-11T17:33:27.358Z",
"cancellationDateFrom": "2025-08-11T17:33:27.358Z",
"cancellationDateTo": "2025-08-11T17:33:27.358Z",
"suspensionEligibility": True,
"suspensionStartDateFrom": "2025-08-11T17:33:27.358Z",
"suspensionStartDateTo": "2025-08-11T17:33:27.358Z",
"suspensionEndDateFrom": "2025-08-11T17:33:27.358Z",
"suspensionEndDateTo": "2025-08-11T17:33:27.359Z"
}
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({
email: 'teste@gmail.com',
locale: 'pt',
id: 0,
contractAssetNumber: 'string',
showContracted: true,
operator: 'ALGAR TELECOM',
connectedOperator: 'TIM',
subOperator: 'ALGAR 3OP',
nickname: 'Device nickname',
observation: 'Observation about device',
msisdn: ['5516981818181'],
iccid: ['89553203000003920000'],
imsi: ['724373198034943'],
status: 'ACTIVE',
stock: true,
franchise: 20,
customerName: 'Customer name',
customerDocumentNumber: '351316040684',
customerId: 15010,
online: true,
city: 'string',
state: 'string',
postalCode: 'string',
lastConnectionFrom: '2025-08-11T17:33:27.358Z',
lastConnectionTo: '2025-08-11T17:33:27.358Z',
consumptionPercentFrom: 18.5,
consumptionPercentTo: 83.5,
consumptionFrom: 18151355,
consumptionTo: 83344468486,
automaticBlocking: true,
networkBlockStatus: 'NONE',
blockedByDefault: true,
accountId: 0,
accountDesc: 'string',
loyaltyType: 0,
loyaltyTime: 0,
cancellationFeeFrom: 0,
cancellationFeeTo: 0,
activationPriceFrom: 0,
activationPriceTo: 0,
priceFrom: 0,
priceTo: 0,
megabyteExcPriceFrom: 0,
megabyteExcPriceTo: 0,
simcardCreditFrom: 0,
simcardCreditTo: 0,
tradeInMonths: 0,
preActivationDays: 0,
preActivationEndDateFrom: '2025-08-11T17:33:27.358Z',
preActivationEndDateTo: '2025-08-11T17:33:27.358Z',
sharingType: 'NONE',
brokerContractId: 131351,
brokerContractDesc: 'Shared contract ACDUEB123',
sharedContractCreditFrom: 5,
sharedContractCreditTo: 20,
sharedContractFranchiseFrom: 10,
sharedContractFranchiseTo: 20,
apn: 'example.br',
hostname: '172.217. 22.14',
technology: '5G',
imei: '516761813114869',
imeiLocked: true,
activationDateFrom: '2025-08-11T17:33:27.358Z',
activationDateTo: '2025-08-11T17:33:27.358Z',
cancellationDateFrom: '2025-08-11T17:33:27.358Z',
cancellationDateTo: '2025-08-11T17:33:27.358Z',
suspensionEligibility: true,
suspensionStartDateFrom: '2025-08-11T17:33:27.358Z',
suspensionStartDateTo: '2025-08-11T17:33:27.358Z',
suspensionEndDateFrom: '2025-08-11T17:33:27.358Z',
suspensionEndDateTo: '2025-08-11T17:33:27.359Z'
})
};
fetch('https://apicorp.algartelecom.com.br/telecom/product-Inventory-management/management/v1/report/inventory', 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/report/inventory",
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([
'email' => 'teste@gmail.com',
'locale' => 'pt',
'id' => 0,
'contractAssetNumber' => 'string',
'showContracted' => true,
'operator' => 'ALGAR TELECOM',
'connectedOperator' => 'TIM',
'subOperator' => 'ALGAR 3OP',
'nickname' => 'Device nickname',
'observation' => 'Observation about device',
'msisdn' => [
'5516981818181'
],
'iccid' => [
'89553203000003920000'
],
'imsi' => [
'724373198034943'
],
'status' => 'ACTIVE',
'stock' => true,
'franchise' => 20,
'customerName' => 'Customer name',
'customerDocumentNumber' => '351316040684',
'customerId' => 15010,
'online' => true,
'city' => 'string',
'state' => 'string',
'postalCode' => 'string',
'lastConnectionFrom' => '2025-08-11T17:33:27.358Z',
'lastConnectionTo' => '2025-08-11T17:33:27.358Z',
'consumptionPercentFrom' => 18.5,
'consumptionPercentTo' => 83.5,
'consumptionFrom' => 18151355,
'consumptionTo' => 83344468486,
'automaticBlocking' => true,
'networkBlockStatus' => 'NONE',
'blockedByDefault' => true,
'accountId' => 0,
'accountDesc' => 'string',
'loyaltyType' => 0,
'loyaltyTime' => 0,
'cancellationFeeFrom' => 0,
'cancellationFeeTo' => 0,
'activationPriceFrom' => 0,
'activationPriceTo' => 0,
'priceFrom' => 0,
'priceTo' => 0,
'megabyteExcPriceFrom' => 0,
'megabyteExcPriceTo' => 0,
'simcardCreditFrom' => 0,
'simcardCreditTo' => 0,
'tradeInMonths' => 0,
'preActivationDays' => 0,
'preActivationEndDateFrom' => '2025-08-11T17:33:27.358Z',
'preActivationEndDateTo' => '2025-08-11T17:33:27.358Z',
'sharingType' => 'NONE',
'brokerContractId' => 131351,
'brokerContractDesc' => 'Shared contract ACDUEB123',
'sharedContractCreditFrom' => 5,
'sharedContractCreditTo' => 20,
'sharedContractFranchiseFrom' => 10,
'sharedContractFranchiseTo' => 20,
'apn' => 'example.br',
'hostname' => '172.217. 22.14',
'technology' => '5G',
'imei' => '516761813114869',
'imeiLocked' => true,
'activationDateFrom' => '2025-08-11T17:33:27.358Z',
'activationDateTo' => '2025-08-11T17:33:27.358Z',
'cancellationDateFrom' => '2025-08-11T17:33:27.358Z',
'cancellationDateTo' => '2025-08-11T17:33:27.358Z',
'suspensionEligibility' => true,
'suspensionStartDateFrom' => '2025-08-11T17:33:27.358Z',
'suspensionStartDateTo' => '2025-08-11T17:33:27.358Z',
'suspensionEndDateFrom' => '2025-08-11T17:33:27.358Z',
'suspensionEndDateTo' => '2025-08-11T17:33:27.359Z'
]),
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/report/inventory"
payload := strings.NewReader("{\n \"email\": \"teste@gmail.com\",\n \"locale\": \"pt\",\n \"id\": 0,\n \"contractAssetNumber\": \"string\",\n \"showContracted\": true,\n \"operator\": \"ALGAR TELECOM\",\n \"connectedOperator\": \"TIM\",\n \"subOperator\": \"ALGAR 3OP\",\n \"nickname\": \"Device nickname\",\n \"observation\": \"Observation about device\",\n \"msisdn\": [\n \"5516981818181\"\n ],\n \"iccid\": [\n \"89553203000003920000\"\n ],\n \"imsi\": [\n \"724373198034943\"\n ],\n \"status\": \"ACTIVE\",\n \"stock\": true,\n \"franchise\": 20,\n \"customerName\": \"Customer name\",\n \"customerDocumentNumber\": \"351316040684\",\n \"customerId\": 15010,\n \"online\": true,\n \"city\": \"string\",\n \"state\": \"string\",\n \"postalCode\": \"string\",\n \"lastConnectionFrom\": \"2025-08-11T17:33:27.358Z\",\n \"lastConnectionTo\": \"2025-08-11T17:33:27.358Z\",\n \"consumptionPercentFrom\": 18.5,\n \"consumptionPercentTo\": 83.5,\n \"consumptionFrom\": 18151355,\n \"consumptionTo\": 83344468486,\n \"automaticBlocking\": true,\n \"networkBlockStatus\": \"NONE\",\n \"blockedByDefault\": true,\n \"accountId\": 0,\n \"accountDesc\": \"string\",\n \"loyaltyType\": 0,\n \"loyaltyTime\": 0,\n \"cancellationFeeFrom\": 0,\n \"cancellationFeeTo\": 0,\n \"activationPriceFrom\": 0,\n \"activationPriceTo\": 0,\n \"priceFrom\": 0,\n \"priceTo\": 0,\n \"megabyteExcPriceFrom\": 0,\n \"megabyteExcPriceTo\": 0,\n \"simcardCreditFrom\": 0,\n \"simcardCreditTo\": 0,\n \"tradeInMonths\": 0,\n \"preActivationDays\": 0,\n \"preActivationEndDateFrom\": \"2025-08-11T17:33:27.358Z\",\n \"preActivationEndDateTo\": \"2025-08-11T17:33:27.358Z\",\n \"sharingType\": \"NONE\",\n \"brokerContractId\": 131351,\n \"brokerContractDesc\": \"Shared contract ACDUEB123\",\n \"sharedContractCreditFrom\": 5,\n \"sharedContractCreditTo\": 20,\n \"sharedContractFranchiseFrom\": 10,\n \"sharedContractFranchiseTo\": 20,\n \"apn\": \"example.br\",\n \"hostname\": \"172.217. 22.14\",\n \"technology\": \"5G\",\n \"imei\": \"516761813114869\",\n \"imeiLocked\": true,\n \"activationDateFrom\": \"2025-08-11T17:33:27.358Z\",\n \"activationDateTo\": \"2025-08-11T17:33:27.358Z\",\n \"cancellationDateFrom\": \"2025-08-11T17:33:27.358Z\",\n \"cancellationDateTo\": \"2025-08-11T17:33:27.358Z\",\n \"suspensionEligibility\": true,\n \"suspensionStartDateFrom\": \"2025-08-11T17:33:27.358Z\",\n \"suspensionStartDateTo\": \"2025-08-11T17:33:27.358Z\",\n \"suspensionEndDateFrom\": \"2025-08-11T17:33:27.358Z\",\n \"suspensionEndDateTo\": \"2025-08-11T17:33:27.359Z\"\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/report/inventory")
.header("Content-Type", "<content-type>")
.header("client_id", "<client_id>")
.header("access_token", "<access_token>")
.body("{\n \"email\": \"teste@gmail.com\",\n \"locale\": \"pt\",\n \"id\": 0,\n \"contractAssetNumber\": \"string\",\n \"showContracted\": true,\n \"operator\": \"ALGAR TELECOM\",\n \"connectedOperator\": \"TIM\",\n \"subOperator\": \"ALGAR 3OP\",\n \"nickname\": \"Device nickname\",\n \"observation\": \"Observation about device\",\n \"msisdn\": [\n \"5516981818181\"\n ],\n \"iccid\": [\n \"89553203000003920000\"\n ],\n \"imsi\": [\n \"724373198034943\"\n ],\n \"status\": \"ACTIVE\",\n \"stock\": true,\n \"franchise\": 20,\n \"customerName\": \"Customer name\",\n \"customerDocumentNumber\": \"351316040684\",\n \"customerId\": 15010,\n \"online\": true,\n \"city\": \"string\",\n \"state\": \"string\",\n \"postalCode\": \"string\",\n \"lastConnectionFrom\": \"2025-08-11T17:33:27.358Z\",\n \"lastConnectionTo\": \"2025-08-11T17:33:27.358Z\",\n \"consumptionPercentFrom\": 18.5,\n \"consumptionPercentTo\": 83.5,\n \"consumptionFrom\": 18151355,\n \"consumptionTo\": 83344468486,\n \"automaticBlocking\": true,\n \"networkBlockStatus\": \"NONE\",\n \"blockedByDefault\": true,\n \"accountId\": 0,\n \"accountDesc\": \"string\",\n \"loyaltyType\": 0,\n \"loyaltyTime\": 0,\n \"cancellationFeeFrom\": 0,\n \"cancellationFeeTo\": 0,\n \"activationPriceFrom\": 0,\n \"activationPriceTo\": 0,\n \"priceFrom\": 0,\n \"priceTo\": 0,\n \"megabyteExcPriceFrom\": 0,\n \"megabyteExcPriceTo\": 0,\n \"simcardCreditFrom\": 0,\n \"simcardCreditTo\": 0,\n \"tradeInMonths\": 0,\n \"preActivationDays\": 0,\n \"preActivationEndDateFrom\": \"2025-08-11T17:33:27.358Z\",\n \"preActivationEndDateTo\": \"2025-08-11T17:33:27.358Z\",\n \"sharingType\": \"NONE\",\n \"brokerContractId\": 131351,\n \"brokerContractDesc\": \"Shared contract ACDUEB123\",\n \"sharedContractCreditFrom\": 5,\n \"sharedContractCreditTo\": 20,\n \"sharedContractFranchiseFrom\": 10,\n \"sharedContractFranchiseTo\": 20,\n \"apn\": \"example.br\",\n \"hostname\": \"172.217. 22.14\",\n \"technology\": \"5G\",\n \"imei\": \"516761813114869\",\n \"imeiLocked\": true,\n \"activationDateFrom\": \"2025-08-11T17:33:27.358Z\",\n \"activationDateTo\": \"2025-08-11T17:33:27.358Z\",\n \"cancellationDateFrom\": \"2025-08-11T17:33:27.358Z\",\n \"cancellationDateTo\": \"2025-08-11T17:33:27.358Z\",\n \"suspensionEligibility\": true,\n \"suspensionStartDateFrom\": \"2025-08-11T17:33:27.358Z\",\n \"suspensionStartDateTo\": \"2025-08-11T17:33:27.358Z\",\n \"suspensionEndDateFrom\": \"2025-08-11T17:33:27.358Z\",\n \"suspensionEndDateTo\": \"2025-08-11T17:33:27.359Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://apicorp.algartelecom.com.br/telecom/product-Inventory-management/management/v1/report/inventory")
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 \"email\": \"teste@gmail.com\",\n \"locale\": \"pt\",\n \"id\": 0,\n \"contractAssetNumber\": \"string\",\n \"showContracted\": true,\n \"operator\": \"ALGAR TELECOM\",\n \"connectedOperator\": \"TIM\",\n \"subOperator\": \"ALGAR 3OP\",\n \"nickname\": \"Device nickname\",\n \"observation\": \"Observation about device\",\n \"msisdn\": [\n \"5516981818181\"\n ],\n \"iccid\": [\n \"89553203000003920000\"\n ],\n \"imsi\": [\n \"724373198034943\"\n ],\n \"status\": \"ACTIVE\",\n \"stock\": true,\n \"franchise\": 20,\n \"customerName\": \"Customer name\",\n \"customerDocumentNumber\": \"351316040684\",\n \"customerId\": 15010,\n \"online\": true,\n \"city\": \"string\",\n \"state\": \"string\",\n \"postalCode\": \"string\",\n \"lastConnectionFrom\": \"2025-08-11T17:33:27.358Z\",\n \"lastConnectionTo\": \"2025-08-11T17:33:27.358Z\",\n \"consumptionPercentFrom\": 18.5,\n \"consumptionPercentTo\": 83.5,\n \"consumptionFrom\": 18151355,\n \"consumptionTo\": 83344468486,\n \"automaticBlocking\": true,\n \"networkBlockStatus\": \"NONE\",\n \"blockedByDefault\": true,\n \"accountId\": 0,\n \"accountDesc\": \"string\",\n \"loyaltyType\": 0,\n \"loyaltyTime\": 0,\n \"cancellationFeeFrom\": 0,\n \"cancellationFeeTo\": 0,\n \"activationPriceFrom\": 0,\n \"activationPriceTo\": 0,\n \"priceFrom\": 0,\n \"priceTo\": 0,\n \"megabyteExcPriceFrom\": 0,\n \"megabyteExcPriceTo\": 0,\n \"simcardCreditFrom\": 0,\n \"simcardCreditTo\": 0,\n \"tradeInMonths\": 0,\n \"preActivationDays\": 0,\n \"preActivationEndDateFrom\": \"2025-08-11T17:33:27.358Z\",\n \"preActivationEndDateTo\": \"2025-08-11T17:33:27.358Z\",\n \"sharingType\": \"NONE\",\n \"brokerContractId\": 131351,\n \"brokerContractDesc\": \"Shared contract ACDUEB123\",\n \"sharedContractCreditFrom\": 5,\n \"sharedContractCreditTo\": 20,\n \"sharedContractFranchiseFrom\": 10,\n \"sharedContractFranchiseTo\": 20,\n \"apn\": \"example.br\",\n \"hostname\": \"172.217. 22.14\",\n \"technology\": \"5G\",\n \"imei\": \"516761813114869\",\n \"imeiLocked\": true,\n \"activationDateFrom\": \"2025-08-11T17:33:27.358Z\",\n \"activationDateTo\": \"2025-08-11T17:33:27.358Z\",\n \"cancellationDateFrom\": \"2025-08-11T17:33:27.358Z\",\n \"cancellationDateTo\": \"2025-08-11T17:33:27.358Z\",\n \"suspensionEligibility\": true,\n \"suspensionStartDateFrom\": \"2025-08-11T17:33:27.358Z\",\n \"suspensionStartDateTo\": \"2025-08-11T17:33:27.358Z\",\n \"suspensionEndDateFrom\": \"2025-08-11T17:33:27.358Z\",\n \"suspensionEndDateTo\": \"2025-08-11T17:33:27.359Z\"\n}"
response = http.request(request)
puts response.read_body{
"id": 56865,
"message": "Request created successfully! An email will be sent to: thiago.moreira@eticasolucoes.com.br with the download link"
}{
"error": "Requisição mal formada."
}{
"error": "Requisição requer autenticação."
}{
"error": "O acesso ao recurso foi negado."
}{
"error": "URI de API/Recurso inexiste para processamento."
}{
"errors": "Parameter not found"
}Solicitar a geração do relatório do inventário
Solicita a geração de um relatório do inventário
curl --request POST \
--url https://apicorp.algartelecom.com.br/telecom/product-Inventory-management/management/v1/report/inventory \
--header 'Content-Type: <content-type>' \
--header 'access_token: <access_token>' \
--header 'client_id: <client_id>' \
--data '
{
"email": "teste@gmail.com",
"locale": "pt",
"id": 0,
"contractAssetNumber": "string",
"showContracted": true,
"operator": "ALGAR TELECOM",
"connectedOperator": "TIM",
"subOperator": "ALGAR 3OP",
"nickname": "Device nickname",
"observation": "Observation about device",
"msisdn": [
"5516981818181"
],
"iccid": [
"89553203000003920000"
],
"imsi": [
"724373198034943"
],
"status": "ACTIVE",
"stock": true,
"franchise": 20,
"customerName": "Customer name",
"customerDocumentNumber": "351316040684",
"customerId": 15010,
"online": true,
"city": "string",
"state": "string",
"postalCode": "string",
"lastConnectionFrom": "2025-08-11T17:33:27.358Z",
"lastConnectionTo": "2025-08-11T17:33:27.358Z",
"consumptionPercentFrom": 18.5,
"consumptionPercentTo": 83.5,
"consumptionFrom": 18151355,
"consumptionTo": 83344468486,
"automaticBlocking": true,
"networkBlockStatus": "NONE",
"blockedByDefault": true,
"accountId": 0,
"accountDesc": "string",
"loyaltyType": 0,
"loyaltyTime": 0,
"cancellationFeeFrom": 0,
"cancellationFeeTo": 0,
"activationPriceFrom": 0,
"activationPriceTo": 0,
"priceFrom": 0,
"priceTo": 0,
"megabyteExcPriceFrom": 0,
"megabyteExcPriceTo": 0,
"simcardCreditFrom": 0,
"simcardCreditTo": 0,
"tradeInMonths": 0,
"preActivationDays": 0,
"preActivationEndDateFrom": "2025-08-11T17:33:27.358Z",
"preActivationEndDateTo": "2025-08-11T17:33:27.358Z",
"sharingType": "NONE",
"brokerContractId": 131351,
"brokerContractDesc": "Shared contract ACDUEB123",
"sharedContractCreditFrom": 5,
"sharedContractCreditTo": 20,
"sharedContractFranchiseFrom": 10,
"sharedContractFranchiseTo": 20,
"apn": "example.br",
"hostname": "172.217. 22.14",
"technology": "5G",
"imei": "516761813114869",
"imeiLocked": true,
"activationDateFrom": "2025-08-11T17:33:27.358Z",
"activationDateTo": "2025-08-11T17:33:27.358Z",
"cancellationDateFrom": "2025-08-11T17:33:27.358Z",
"cancellationDateTo": "2025-08-11T17:33:27.358Z",
"suspensionEligibility": true,
"suspensionStartDateFrom": "2025-08-11T17:33:27.358Z",
"suspensionStartDateTo": "2025-08-11T17:33:27.358Z",
"suspensionEndDateFrom": "2025-08-11T17:33:27.358Z",
"suspensionEndDateTo": "2025-08-11T17:33:27.359Z"
}
'import requests
url = "https://apicorp.algartelecom.com.br/telecom/product-Inventory-management/management/v1/report/inventory"
payload = {
"email": "teste@gmail.com",
"locale": "pt",
"id": 0,
"contractAssetNumber": "string",
"showContracted": True,
"operator": "ALGAR TELECOM",
"connectedOperator": "TIM",
"subOperator": "ALGAR 3OP",
"nickname": "Device nickname",
"observation": "Observation about device",
"msisdn": ["5516981818181"],
"iccid": ["89553203000003920000"],
"imsi": ["724373198034943"],
"status": "ACTIVE",
"stock": True,
"franchise": 20,
"customerName": "Customer name",
"customerDocumentNumber": "351316040684",
"customerId": 15010,
"online": True,
"city": "string",
"state": "string",
"postalCode": "string",
"lastConnectionFrom": "2025-08-11T17:33:27.358Z",
"lastConnectionTo": "2025-08-11T17:33:27.358Z",
"consumptionPercentFrom": 18.5,
"consumptionPercentTo": 83.5,
"consumptionFrom": 18151355,
"consumptionTo": 83344468486,
"automaticBlocking": True,
"networkBlockStatus": "NONE",
"blockedByDefault": True,
"accountId": 0,
"accountDesc": "string",
"loyaltyType": 0,
"loyaltyTime": 0,
"cancellationFeeFrom": 0,
"cancellationFeeTo": 0,
"activationPriceFrom": 0,
"activationPriceTo": 0,
"priceFrom": 0,
"priceTo": 0,
"megabyteExcPriceFrom": 0,
"megabyteExcPriceTo": 0,
"simcardCreditFrom": 0,
"simcardCreditTo": 0,
"tradeInMonths": 0,
"preActivationDays": 0,
"preActivationEndDateFrom": "2025-08-11T17:33:27.358Z",
"preActivationEndDateTo": "2025-08-11T17:33:27.358Z",
"sharingType": "NONE",
"brokerContractId": 131351,
"brokerContractDesc": "Shared contract ACDUEB123",
"sharedContractCreditFrom": 5,
"sharedContractCreditTo": 20,
"sharedContractFranchiseFrom": 10,
"sharedContractFranchiseTo": 20,
"apn": "example.br",
"hostname": "172.217. 22.14",
"technology": "5G",
"imei": "516761813114869",
"imeiLocked": True,
"activationDateFrom": "2025-08-11T17:33:27.358Z",
"activationDateTo": "2025-08-11T17:33:27.358Z",
"cancellationDateFrom": "2025-08-11T17:33:27.358Z",
"cancellationDateTo": "2025-08-11T17:33:27.358Z",
"suspensionEligibility": True,
"suspensionStartDateFrom": "2025-08-11T17:33:27.358Z",
"suspensionStartDateTo": "2025-08-11T17:33:27.358Z",
"suspensionEndDateFrom": "2025-08-11T17:33:27.358Z",
"suspensionEndDateTo": "2025-08-11T17:33:27.359Z"
}
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({
email: 'teste@gmail.com',
locale: 'pt',
id: 0,
contractAssetNumber: 'string',
showContracted: true,
operator: 'ALGAR TELECOM',
connectedOperator: 'TIM',
subOperator: 'ALGAR 3OP',
nickname: 'Device nickname',
observation: 'Observation about device',
msisdn: ['5516981818181'],
iccid: ['89553203000003920000'],
imsi: ['724373198034943'],
status: 'ACTIVE',
stock: true,
franchise: 20,
customerName: 'Customer name',
customerDocumentNumber: '351316040684',
customerId: 15010,
online: true,
city: 'string',
state: 'string',
postalCode: 'string',
lastConnectionFrom: '2025-08-11T17:33:27.358Z',
lastConnectionTo: '2025-08-11T17:33:27.358Z',
consumptionPercentFrom: 18.5,
consumptionPercentTo: 83.5,
consumptionFrom: 18151355,
consumptionTo: 83344468486,
automaticBlocking: true,
networkBlockStatus: 'NONE',
blockedByDefault: true,
accountId: 0,
accountDesc: 'string',
loyaltyType: 0,
loyaltyTime: 0,
cancellationFeeFrom: 0,
cancellationFeeTo: 0,
activationPriceFrom: 0,
activationPriceTo: 0,
priceFrom: 0,
priceTo: 0,
megabyteExcPriceFrom: 0,
megabyteExcPriceTo: 0,
simcardCreditFrom: 0,
simcardCreditTo: 0,
tradeInMonths: 0,
preActivationDays: 0,
preActivationEndDateFrom: '2025-08-11T17:33:27.358Z',
preActivationEndDateTo: '2025-08-11T17:33:27.358Z',
sharingType: 'NONE',
brokerContractId: 131351,
brokerContractDesc: 'Shared contract ACDUEB123',
sharedContractCreditFrom: 5,
sharedContractCreditTo: 20,
sharedContractFranchiseFrom: 10,
sharedContractFranchiseTo: 20,
apn: 'example.br',
hostname: '172.217. 22.14',
technology: '5G',
imei: '516761813114869',
imeiLocked: true,
activationDateFrom: '2025-08-11T17:33:27.358Z',
activationDateTo: '2025-08-11T17:33:27.358Z',
cancellationDateFrom: '2025-08-11T17:33:27.358Z',
cancellationDateTo: '2025-08-11T17:33:27.358Z',
suspensionEligibility: true,
suspensionStartDateFrom: '2025-08-11T17:33:27.358Z',
suspensionStartDateTo: '2025-08-11T17:33:27.358Z',
suspensionEndDateFrom: '2025-08-11T17:33:27.358Z',
suspensionEndDateTo: '2025-08-11T17:33:27.359Z'
})
};
fetch('https://apicorp.algartelecom.com.br/telecom/product-Inventory-management/management/v1/report/inventory', 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/report/inventory",
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([
'email' => 'teste@gmail.com',
'locale' => 'pt',
'id' => 0,
'contractAssetNumber' => 'string',
'showContracted' => true,
'operator' => 'ALGAR TELECOM',
'connectedOperator' => 'TIM',
'subOperator' => 'ALGAR 3OP',
'nickname' => 'Device nickname',
'observation' => 'Observation about device',
'msisdn' => [
'5516981818181'
],
'iccid' => [
'89553203000003920000'
],
'imsi' => [
'724373198034943'
],
'status' => 'ACTIVE',
'stock' => true,
'franchise' => 20,
'customerName' => 'Customer name',
'customerDocumentNumber' => '351316040684',
'customerId' => 15010,
'online' => true,
'city' => 'string',
'state' => 'string',
'postalCode' => 'string',
'lastConnectionFrom' => '2025-08-11T17:33:27.358Z',
'lastConnectionTo' => '2025-08-11T17:33:27.358Z',
'consumptionPercentFrom' => 18.5,
'consumptionPercentTo' => 83.5,
'consumptionFrom' => 18151355,
'consumptionTo' => 83344468486,
'automaticBlocking' => true,
'networkBlockStatus' => 'NONE',
'blockedByDefault' => true,
'accountId' => 0,
'accountDesc' => 'string',
'loyaltyType' => 0,
'loyaltyTime' => 0,
'cancellationFeeFrom' => 0,
'cancellationFeeTo' => 0,
'activationPriceFrom' => 0,
'activationPriceTo' => 0,
'priceFrom' => 0,
'priceTo' => 0,
'megabyteExcPriceFrom' => 0,
'megabyteExcPriceTo' => 0,
'simcardCreditFrom' => 0,
'simcardCreditTo' => 0,
'tradeInMonths' => 0,
'preActivationDays' => 0,
'preActivationEndDateFrom' => '2025-08-11T17:33:27.358Z',
'preActivationEndDateTo' => '2025-08-11T17:33:27.358Z',
'sharingType' => 'NONE',
'brokerContractId' => 131351,
'brokerContractDesc' => 'Shared contract ACDUEB123',
'sharedContractCreditFrom' => 5,
'sharedContractCreditTo' => 20,
'sharedContractFranchiseFrom' => 10,
'sharedContractFranchiseTo' => 20,
'apn' => 'example.br',
'hostname' => '172.217. 22.14',
'technology' => '5G',
'imei' => '516761813114869',
'imeiLocked' => true,
'activationDateFrom' => '2025-08-11T17:33:27.358Z',
'activationDateTo' => '2025-08-11T17:33:27.358Z',
'cancellationDateFrom' => '2025-08-11T17:33:27.358Z',
'cancellationDateTo' => '2025-08-11T17:33:27.358Z',
'suspensionEligibility' => true,
'suspensionStartDateFrom' => '2025-08-11T17:33:27.358Z',
'suspensionStartDateTo' => '2025-08-11T17:33:27.358Z',
'suspensionEndDateFrom' => '2025-08-11T17:33:27.358Z',
'suspensionEndDateTo' => '2025-08-11T17:33:27.359Z'
]),
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/report/inventory"
payload := strings.NewReader("{\n \"email\": \"teste@gmail.com\",\n \"locale\": \"pt\",\n \"id\": 0,\n \"contractAssetNumber\": \"string\",\n \"showContracted\": true,\n \"operator\": \"ALGAR TELECOM\",\n \"connectedOperator\": \"TIM\",\n \"subOperator\": \"ALGAR 3OP\",\n \"nickname\": \"Device nickname\",\n \"observation\": \"Observation about device\",\n \"msisdn\": [\n \"5516981818181\"\n ],\n \"iccid\": [\n \"89553203000003920000\"\n ],\n \"imsi\": [\n \"724373198034943\"\n ],\n \"status\": \"ACTIVE\",\n \"stock\": true,\n \"franchise\": 20,\n \"customerName\": \"Customer name\",\n \"customerDocumentNumber\": \"351316040684\",\n \"customerId\": 15010,\n \"online\": true,\n \"city\": \"string\",\n \"state\": \"string\",\n \"postalCode\": \"string\",\n \"lastConnectionFrom\": \"2025-08-11T17:33:27.358Z\",\n \"lastConnectionTo\": \"2025-08-11T17:33:27.358Z\",\n \"consumptionPercentFrom\": 18.5,\n \"consumptionPercentTo\": 83.5,\n \"consumptionFrom\": 18151355,\n \"consumptionTo\": 83344468486,\n \"automaticBlocking\": true,\n \"networkBlockStatus\": \"NONE\",\n \"blockedByDefault\": true,\n \"accountId\": 0,\n \"accountDesc\": \"string\",\n \"loyaltyType\": 0,\n \"loyaltyTime\": 0,\n \"cancellationFeeFrom\": 0,\n \"cancellationFeeTo\": 0,\n \"activationPriceFrom\": 0,\n \"activationPriceTo\": 0,\n \"priceFrom\": 0,\n \"priceTo\": 0,\n \"megabyteExcPriceFrom\": 0,\n \"megabyteExcPriceTo\": 0,\n \"simcardCreditFrom\": 0,\n \"simcardCreditTo\": 0,\n \"tradeInMonths\": 0,\n \"preActivationDays\": 0,\n \"preActivationEndDateFrom\": \"2025-08-11T17:33:27.358Z\",\n \"preActivationEndDateTo\": \"2025-08-11T17:33:27.358Z\",\n \"sharingType\": \"NONE\",\n \"brokerContractId\": 131351,\n \"brokerContractDesc\": \"Shared contract ACDUEB123\",\n \"sharedContractCreditFrom\": 5,\n \"sharedContractCreditTo\": 20,\n \"sharedContractFranchiseFrom\": 10,\n \"sharedContractFranchiseTo\": 20,\n \"apn\": \"example.br\",\n \"hostname\": \"172.217. 22.14\",\n \"technology\": \"5G\",\n \"imei\": \"516761813114869\",\n \"imeiLocked\": true,\n \"activationDateFrom\": \"2025-08-11T17:33:27.358Z\",\n \"activationDateTo\": \"2025-08-11T17:33:27.358Z\",\n \"cancellationDateFrom\": \"2025-08-11T17:33:27.358Z\",\n \"cancellationDateTo\": \"2025-08-11T17:33:27.358Z\",\n \"suspensionEligibility\": true,\n \"suspensionStartDateFrom\": \"2025-08-11T17:33:27.358Z\",\n \"suspensionStartDateTo\": \"2025-08-11T17:33:27.358Z\",\n \"suspensionEndDateFrom\": \"2025-08-11T17:33:27.358Z\",\n \"suspensionEndDateTo\": \"2025-08-11T17:33:27.359Z\"\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/report/inventory")
.header("Content-Type", "<content-type>")
.header("client_id", "<client_id>")
.header("access_token", "<access_token>")
.body("{\n \"email\": \"teste@gmail.com\",\n \"locale\": \"pt\",\n \"id\": 0,\n \"contractAssetNumber\": \"string\",\n \"showContracted\": true,\n \"operator\": \"ALGAR TELECOM\",\n \"connectedOperator\": \"TIM\",\n \"subOperator\": \"ALGAR 3OP\",\n \"nickname\": \"Device nickname\",\n \"observation\": \"Observation about device\",\n \"msisdn\": [\n \"5516981818181\"\n ],\n \"iccid\": [\n \"89553203000003920000\"\n ],\n \"imsi\": [\n \"724373198034943\"\n ],\n \"status\": \"ACTIVE\",\n \"stock\": true,\n \"franchise\": 20,\n \"customerName\": \"Customer name\",\n \"customerDocumentNumber\": \"351316040684\",\n \"customerId\": 15010,\n \"online\": true,\n \"city\": \"string\",\n \"state\": \"string\",\n \"postalCode\": \"string\",\n \"lastConnectionFrom\": \"2025-08-11T17:33:27.358Z\",\n \"lastConnectionTo\": \"2025-08-11T17:33:27.358Z\",\n \"consumptionPercentFrom\": 18.5,\n \"consumptionPercentTo\": 83.5,\n \"consumptionFrom\": 18151355,\n \"consumptionTo\": 83344468486,\n \"automaticBlocking\": true,\n \"networkBlockStatus\": \"NONE\",\n \"blockedByDefault\": true,\n \"accountId\": 0,\n \"accountDesc\": \"string\",\n \"loyaltyType\": 0,\n \"loyaltyTime\": 0,\n \"cancellationFeeFrom\": 0,\n \"cancellationFeeTo\": 0,\n \"activationPriceFrom\": 0,\n \"activationPriceTo\": 0,\n \"priceFrom\": 0,\n \"priceTo\": 0,\n \"megabyteExcPriceFrom\": 0,\n \"megabyteExcPriceTo\": 0,\n \"simcardCreditFrom\": 0,\n \"simcardCreditTo\": 0,\n \"tradeInMonths\": 0,\n \"preActivationDays\": 0,\n \"preActivationEndDateFrom\": \"2025-08-11T17:33:27.358Z\",\n \"preActivationEndDateTo\": \"2025-08-11T17:33:27.358Z\",\n \"sharingType\": \"NONE\",\n \"brokerContractId\": 131351,\n \"brokerContractDesc\": \"Shared contract ACDUEB123\",\n \"sharedContractCreditFrom\": 5,\n \"sharedContractCreditTo\": 20,\n \"sharedContractFranchiseFrom\": 10,\n \"sharedContractFranchiseTo\": 20,\n \"apn\": \"example.br\",\n \"hostname\": \"172.217. 22.14\",\n \"technology\": \"5G\",\n \"imei\": \"516761813114869\",\n \"imeiLocked\": true,\n \"activationDateFrom\": \"2025-08-11T17:33:27.358Z\",\n \"activationDateTo\": \"2025-08-11T17:33:27.358Z\",\n \"cancellationDateFrom\": \"2025-08-11T17:33:27.358Z\",\n \"cancellationDateTo\": \"2025-08-11T17:33:27.358Z\",\n \"suspensionEligibility\": true,\n \"suspensionStartDateFrom\": \"2025-08-11T17:33:27.358Z\",\n \"suspensionStartDateTo\": \"2025-08-11T17:33:27.358Z\",\n \"suspensionEndDateFrom\": \"2025-08-11T17:33:27.358Z\",\n \"suspensionEndDateTo\": \"2025-08-11T17:33:27.359Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://apicorp.algartelecom.com.br/telecom/product-Inventory-management/management/v1/report/inventory")
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 \"email\": \"teste@gmail.com\",\n \"locale\": \"pt\",\n \"id\": 0,\n \"contractAssetNumber\": \"string\",\n \"showContracted\": true,\n \"operator\": \"ALGAR TELECOM\",\n \"connectedOperator\": \"TIM\",\n \"subOperator\": \"ALGAR 3OP\",\n \"nickname\": \"Device nickname\",\n \"observation\": \"Observation about device\",\n \"msisdn\": [\n \"5516981818181\"\n ],\n \"iccid\": [\n \"89553203000003920000\"\n ],\n \"imsi\": [\n \"724373198034943\"\n ],\n \"status\": \"ACTIVE\",\n \"stock\": true,\n \"franchise\": 20,\n \"customerName\": \"Customer name\",\n \"customerDocumentNumber\": \"351316040684\",\n \"customerId\": 15010,\n \"online\": true,\n \"city\": \"string\",\n \"state\": \"string\",\n \"postalCode\": \"string\",\n \"lastConnectionFrom\": \"2025-08-11T17:33:27.358Z\",\n \"lastConnectionTo\": \"2025-08-11T17:33:27.358Z\",\n \"consumptionPercentFrom\": 18.5,\n \"consumptionPercentTo\": 83.5,\n \"consumptionFrom\": 18151355,\n \"consumptionTo\": 83344468486,\n \"automaticBlocking\": true,\n \"networkBlockStatus\": \"NONE\",\n \"blockedByDefault\": true,\n \"accountId\": 0,\n \"accountDesc\": \"string\",\n \"loyaltyType\": 0,\n \"loyaltyTime\": 0,\n \"cancellationFeeFrom\": 0,\n \"cancellationFeeTo\": 0,\n \"activationPriceFrom\": 0,\n \"activationPriceTo\": 0,\n \"priceFrom\": 0,\n \"priceTo\": 0,\n \"megabyteExcPriceFrom\": 0,\n \"megabyteExcPriceTo\": 0,\n \"simcardCreditFrom\": 0,\n \"simcardCreditTo\": 0,\n \"tradeInMonths\": 0,\n \"preActivationDays\": 0,\n \"preActivationEndDateFrom\": \"2025-08-11T17:33:27.358Z\",\n \"preActivationEndDateTo\": \"2025-08-11T17:33:27.358Z\",\n \"sharingType\": \"NONE\",\n \"brokerContractId\": 131351,\n \"brokerContractDesc\": \"Shared contract ACDUEB123\",\n \"sharedContractCreditFrom\": 5,\n \"sharedContractCreditTo\": 20,\n \"sharedContractFranchiseFrom\": 10,\n \"sharedContractFranchiseTo\": 20,\n \"apn\": \"example.br\",\n \"hostname\": \"172.217. 22.14\",\n \"technology\": \"5G\",\n \"imei\": \"516761813114869\",\n \"imeiLocked\": true,\n \"activationDateFrom\": \"2025-08-11T17:33:27.358Z\",\n \"activationDateTo\": \"2025-08-11T17:33:27.358Z\",\n \"cancellationDateFrom\": \"2025-08-11T17:33:27.358Z\",\n \"cancellationDateTo\": \"2025-08-11T17:33:27.358Z\",\n \"suspensionEligibility\": true,\n \"suspensionStartDateFrom\": \"2025-08-11T17:33:27.358Z\",\n \"suspensionStartDateTo\": \"2025-08-11T17:33:27.358Z\",\n \"suspensionEndDateFrom\": \"2025-08-11T17:33:27.358Z\",\n \"suspensionEndDateTo\": \"2025-08-11T17:33:27.359Z\"\n}"
response = http.request(request)
puts response.read_body{
"id": 56865,
"message": "Request created successfully! An email will be sent to: thiago.moreira@eticasolucoes.com.br with the download link"
}{
"error": "Requisição mal formada."
}{
"error": "Requisição requer autenticação."
}{
"error": "O acesso ao recurso foi negado."
}{
"error": "URI de API/Recurso inexiste para processamento."
}{
"errors": "Parameter not found"
}Headers
Define o formato da requisição.
🔹 Valor padrão:
application/json
📌 Dica: Copie e cole esse valor no campo Content-Type.
"application/json"
Identificador do client id do sensedia
"123"
Token gerado
"Basic MzQ4OSozNDMyLTMOMzItMTIz"
Body
Informações necessárias para fazer a solicitação do relatório.
"teste@gmail.com"
"pt"
0
"string"
true
"ALGAR TELECOM"
"TIM"
"ALGAR 3OP"
"Device nickname"
"Observation about device"
["5516981818181"]
["89553203000003920000"]
["724373198034943"]
"ACTIVE"
true
20
"Customer name"
"351316040684"
15010
true
"string"
"string"
"string"
"2025-08-11T17:33:27.358Z"
"2025-08-11T17:33:27.358Z"
18.5
83.5
18151355
83344468486
true
"NONE"
true
0
"string"
0
0
0
0
0
0
0
0
0
0
0
0
0
0
"2025-08-11T17:33:27.358Z"
"2025-08-11T17:33:27.358Z"
"NONE"
131351
"Shared contract ACDUEB123"
5
20
10
20
"example.br"
"172.217. 22.14"
"5G"
"516761813114869"
true
"2025-08-11T17:33:27.358Z"
"2025-08-11T17:33:27.358Z"
"2025-08-11T17:33:27.358Z"
"2025-08-11T17:33:27.358Z"
true
"2025-08-11T17:33:27.358Z"
"2025-08-11T17:33:27.358Z"
"2025-08-11T17:33:27.358Z"
"2025-08-11T17:33:27.359Z"
Response
Request created successfully
{
"id": 56865,
"message": "Request created successfully! An email will be sent to: thiago.moreira@eticasolucoes.com.br with the download link"
}

