cURL
curl --request POST \
--url https://apicorp.algartelecom.com.br/telecom/product-Inventory-management/management/v1/satellite/invoices/details/report \
--header 'Content-Type: <content-type>' \
--header 'access_token: <access_token>' \
--header 'client_id: <client_id>' \
--data '
{
"planDesc": "Plano Satélite Gold",
"customerId": 47926,
"externalId": "EXT-123",
"sharingType": "INDIVIDUAL",
"price": "1.00",
"franchise": "1024",
"activationPrice": "1.50",
"kilobyteExcPrice": "0.25",
"loyaltyType": "2",
"loyaltyTime": "12",
"penalty": "50.00",
"email": "teste@gmail.com"
}
'import requests
url = "https://apicorp.algartelecom.com.br/telecom/product-Inventory-management/management/v1/satellite/invoices/details/report"
payload = {
"planDesc": "Plano Satélite Gold",
"customerId": 47926,
"externalId": "EXT-123",
"sharingType": "INDIVIDUAL",
"price": "1.00",
"franchise": "1024",
"activationPrice": "1.50",
"kilobyteExcPrice": "0.25",
"loyaltyType": "2",
"loyaltyTime": "12",
"penalty": "50.00",
"email": "teste@gmail.com"
}
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({
planDesc: 'Plano Satélite Gold',
customerId: 47926,
externalId: 'EXT-123',
sharingType: 'INDIVIDUAL',
price: '1.00',
franchise: '1024',
activationPrice: '1.50',
kilobyteExcPrice: '0.25',
loyaltyType: '2',
loyaltyTime: '12',
penalty: '50.00',
email: 'teste@gmail.com'
})
};
fetch('https://apicorp.algartelecom.com.br/telecom/product-Inventory-management/management/v1/satellite/invoices/details/report', 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/satellite/invoices/details/report",
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([
'planDesc' => 'Plano Satélite Gold',
'customerId' => 47926,
'externalId' => 'EXT-123',
'sharingType' => 'INDIVIDUAL',
'price' => '1.00',
'franchise' => '1024',
'activationPrice' => '1.50',
'kilobyteExcPrice' => '0.25',
'loyaltyType' => '2',
'loyaltyTime' => '12',
'penalty' => '50.00',
'email' => 'teste@gmail.com'
]),
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/satellite/invoices/details/report"
payload := strings.NewReader("{\n \"planDesc\": \"Plano Satélite Gold\",\n \"customerId\": 47926,\n \"externalId\": \"EXT-123\",\n \"sharingType\": \"INDIVIDUAL\",\n \"price\": \"1.00\",\n \"franchise\": \"1024\",\n \"activationPrice\": \"1.50\",\n \"kilobyteExcPrice\": \"0.25\",\n \"loyaltyType\": \"2\",\n \"loyaltyTime\": \"12\",\n \"penalty\": \"50.00\",\n \"email\": \"teste@gmail.com\"\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/satellite/invoices/details/report")
.header("Content-Type", "<content-type>")
.header("client_id", "<client_id>")
.header("access_token", "<access_token>")
.body("{\n \"planDesc\": \"Plano Satélite Gold\",\n \"customerId\": 47926,\n \"externalId\": \"EXT-123\",\n \"sharingType\": \"INDIVIDUAL\",\n \"price\": \"1.00\",\n \"franchise\": \"1024\",\n \"activationPrice\": \"1.50\",\n \"kilobyteExcPrice\": \"0.25\",\n \"loyaltyType\": \"2\",\n \"loyaltyTime\": \"12\",\n \"penalty\": \"50.00\",\n \"email\": \"teste@gmail.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://apicorp.algartelecom.com.br/telecom/product-Inventory-management/management/v1/satellite/invoices/details/report")
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 \"planDesc\": \"Plano Satélite Gold\",\n \"customerId\": 47926,\n \"externalId\": \"EXT-123\",\n \"sharingType\": \"INDIVIDUAL\",\n \"price\": \"1.00\",\n \"franchise\": \"1024\",\n \"activationPrice\": \"1.50\",\n \"kilobyteExcPrice\": \"0.25\",\n \"loyaltyType\": \"2\",\n \"loyaltyTime\": \"12\",\n \"penalty\": \"50.00\",\n \"email\": \"teste@gmail.com\"\n}"
response = http.request(request)
puts response.read_body{
"id": 77614,
"message": "Request report created successfully!"
}{
"errors": "Parameter not found"
}{
"valueInBytes": 1235
}{
"errors": "O acesso ao recurso foi negado."
}{
"errors": "URI de API/Recurso inexistente para processamento."
}{
"errors": "Parameter not found"
}Satellital
Solicita relatório de fatura detalhada satelital
Requisição para solicitar relatório de fatura detalhada satelital
POST
/
satellite
/
invoices
/
details
/
report
cURL
curl --request POST \
--url https://apicorp.algartelecom.com.br/telecom/product-Inventory-management/management/v1/satellite/invoices/details/report \
--header 'Content-Type: <content-type>' \
--header 'access_token: <access_token>' \
--header 'client_id: <client_id>' \
--data '
{
"planDesc": "Plano Satélite Gold",
"customerId": 47926,
"externalId": "EXT-123",
"sharingType": "INDIVIDUAL",
"price": "1.00",
"franchise": "1024",
"activationPrice": "1.50",
"kilobyteExcPrice": "0.25",
"loyaltyType": "2",
"loyaltyTime": "12",
"penalty": "50.00",
"email": "teste@gmail.com"
}
'import requests
url = "https://apicorp.algartelecom.com.br/telecom/product-Inventory-management/management/v1/satellite/invoices/details/report"
payload = {
"planDesc": "Plano Satélite Gold",
"customerId": 47926,
"externalId": "EXT-123",
"sharingType": "INDIVIDUAL",
"price": "1.00",
"franchise": "1024",
"activationPrice": "1.50",
"kilobyteExcPrice": "0.25",
"loyaltyType": "2",
"loyaltyTime": "12",
"penalty": "50.00",
"email": "teste@gmail.com"
}
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({
planDesc: 'Plano Satélite Gold',
customerId: 47926,
externalId: 'EXT-123',
sharingType: 'INDIVIDUAL',
price: '1.00',
franchise: '1024',
activationPrice: '1.50',
kilobyteExcPrice: '0.25',
loyaltyType: '2',
loyaltyTime: '12',
penalty: '50.00',
email: 'teste@gmail.com'
})
};
fetch('https://apicorp.algartelecom.com.br/telecom/product-Inventory-management/management/v1/satellite/invoices/details/report', 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/satellite/invoices/details/report",
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([
'planDesc' => 'Plano Satélite Gold',
'customerId' => 47926,
'externalId' => 'EXT-123',
'sharingType' => 'INDIVIDUAL',
'price' => '1.00',
'franchise' => '1024',
'activationPrice' => '1.50',
'kilobyteExcPrice' => '0.25',
'loyaltyType' => '2',
'loyaltyTime' => '12',
'penalty' => '50.00',
'email' => 'teste@gmail.com'
]),
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/satellite/invoices/details/report"
payload := strings.NewReader("{\n \"planDesc\": \"Plano Satélite Gold\",\n \"customerId\": 47926,\n \"externalId\": \"EXT-123\",\n \"sharingType\": \"INDIVIDUAL\",\n \"price\": \"1.00\",\n \"franchise\": \"1024\",\n \"activationPrice\": \"1.50\",\n \"kilobyteExcPrice\": \"0.25\",\n \"loyaltyType\": \"2\",\n \"loyaltyTime\": \"12\",\n \"penalty\": \"50.00\",\n \"email\": \"teste@gmail.com\"\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/satellite/invoices/details/report")
.header("Content-Type", "<content-type>")
.header("client_id", "<client_id>")
.header("access_token", "<access_token>")
.body("{\n \"planDesc\": \"Plano Satélite Gold\",\n \"customerId\": 47926,\n \"externalId\": \"EXT-123\",\n \"sharingType\": \"INDIVIDUAL\",\n \"price\": \"1.00\",\n \"franchise\": \"1024\",\n \"activationPrice\": \"1.50\",\n \"kilobyteExcPrice\": \"0.25\",\n \"loyaltyType\": \"2\",\n \"loyaltyTime\": \"12\",\n \"penalty\": \"50.00\",\n \"email\": \"teste@gmail.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://apicorp.algartelecom.com.br/telecom/product-Inventory-management/management/v1/satellite/invoices/details/report")
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 \"planDesc\": \"Plano Satélite Gold\",\n \"customerId\": 47926,\n \"externalId\": \"EXT-123\",\n \"sharingType\": \"INDIVIDUAL\",\n \"price\": \"1.00\",\n \"franchise\": \"1024\",\n \"activationPrice\": \"1.50\",\n \"kilobyteExcPrice\": \"0.25\",\n \"loyaltyType\": \"2\",\n \"loyaltyTime\": \"12\",\n \"penalty\": \"50.00\",\n \"email\": \"teste@gmail.com\"\n}"
response = http.request(request)
puts response.read_body{
"id": 77614,
"message": "Request report created successfully!"
}{
"errors": "Parameter not found"
}{
"valueInBytes": 1235
}{
"errors": "O acesso ao recurso foi negado."
}{
"errors": "URI de API/Recurso inexistente 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.
Example:
"application/json"
Example:
"client_id"
Token gerado.
Example:
"access_token"
Body
application/json
Informações para solicitar o relatório
Example:
"Plano Satélite Gold"
Example:
47926
Example:
"EXT-123"
Example:
"INDIVIDUAL"
Example:
"1.00"
Example:
"1024"
Example:
"1.50"
Example:
"0.25"
Example:
"2"
Example:
"12"
Example:
"50.00"
Example:
"teste@gmail.com"
Response
OK

