Definir Taxa de Câmbio
curl --request POST \
--url https://production.api.noodle.cx/external/split/{split_id}/update_exchange_rate \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"currency": "<string>",
"rate": 123,
"showExchangeData": true,
"orderId": "<string>"
}
'import requests
url = "https://production.api.noodle.cx/external/split/{split_id}/update_exchange_rate"
payload = {
"currency": "<string>",
"rate": 123,
"showExchangeData": True,
"orderId": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({currency: '<string>', rate: 123, showExchangeData: true, orderId: '<string>'})
};
fetch('https://production.api.noodle.cx/external/split/{split_id}/update_exchange_rate', 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://production.api.noodle.cx/external/split/{split_id}/update_exchange_rate",
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([
'currency' => '<string>',
'rate' => 123,
'showExchangeData' => true,
'orderId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$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://production.api.noodle.cx/external/split/{split_id}/update_exchange_rate"
payload := strings.NewReader("{\n \"currency\": \"<string>\",\n \"rate\": 123,\n \"showExchangeData\": true,\n \"orderId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://production.api.noodle.cx/external/split/{split_id}/update_exchange_rate")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"currency\": \"<string>\",\n \"rate\": 123,\n \"showExchangeData\": true,\n \"orderId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://production.api.noodle.cx/external/split/{split_id}/update_exchange_rate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"currency\": \"<string>\",\n \"rate\": 123,\n \"showExchangeData\": true,\n \"orderId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"_id": "<string>",
"paymentBatchName": "<string>",
"splitDate": "<string>",
"fee": 123,
"feeAmount": 123,
"feePaid": true,
"taxId": "<string>",
"batchId": "<string>",
"reportId": "<string>",
"bubbleId": "<string>",
"status": "<string>",
"logo": "<string>",
"origin": "<string>",
"currency": "<string>",
"exchangeOrderId": "<string>",
"pixQrCodeId": "<string>",
"pixQrCodePayload": "<string>",
"exchangeRate": 123,
"showExchangeData": true,
"date": "<string>",
"pendingPayments": 123,
"withholdPayments": 123,
"donePayments": 123,
"pendingAmount": 123,
"withholdAmount": 123,
"irAmount": 123,
"paidAmount": 123,
"totalAmount": 123
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Lotes
Definir Taxa de Câmbio
Use este endpoint para atualizar a taxa de câmbio de um relatório de split. Isso é necessário quando o lote contém pagamentos em moeda estrangeira.
POST
/
split
/
{split_id}
/
update_exchange_rate
Definir Taxa de Câmbio
curl --request POST \
--url https://production.api.noodle.cx/external/split/{split_id}/update_exchange_rate \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"currency": "<string>",
"rate": 123,
"showExchangeData": true,
"orderId": "<string>"
}
'import requests
url = "https://production.api.noodle.cx/external/split/{split_id}/update_exchange_rate"
payload = {
"currency": "<string>",
"rate": 123,
"showExchangeData": True,
"orderId": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({currency: '<string>', rate: 123, showExchangeData: true, orderId: '<string>'})
};
fetch('https://production.api.noodle.cx/external/split/{split_id}/update_exchange_rate', 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://production.api.noodle.cx/external/split/{split_id}/update_exchange_rate",
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([
'currency' => '<string>',
'rate' => 123,
'showExchangeData' => true,
'orderId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$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://production.api.noodle.cx/external/split/{split_id}/update_exchange_rate"
payload := strings.NewReader("{\n \"currency\": \"<string>\",\n \"rate\": 123,\n \"showExchangeData\": true,\n \"orderId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://production.api.noodle.cx/external/split/{split_id}/update_exchange_rate")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"currency\": \"<string>\",\n \"rate\": 123,\n \"showExchangeData\": true,\n \"orderId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://production.api.noodle.cx/external/split/{split_id}/update_exchange_rate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"currency\": \"<string>\",\n \"rate\": 123,\n \"showExchangeData\": true,\n \"orderId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"_id": "<string>",
"paymentBatchName": "<string>",
"splitDate": "<string>",
"fee": 123,
"feeAmount": 123,
"feePaid": true,
"taxId": "<string>",
"batchId": "<string>",
"reportId": "<string>",
"bubbleId": "<string>",
"status": "<string>",
"logo": "<string>",
"origin": "<string>",
"currency": "<string>",
"exchangeOrderId": "<string>",
"pixQrCodeId": "<string>",
"pixQrCodePayload": "<string>",
"exchangeRate": 123,
"showExchangeData": true,
"date": "<string>",
"pendingPayments": 123,
"withholdPayments": 123,
"donePayments": 123,
"pendingAmount": 123,
"withholdAmount": 123,
"irAmount": 123,
"paidAmount": 123,
"totalAmount": 123
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Body
application/json
Response
Successful Response
Representa os dados de um relatório de divisão.
Atributos:
- id (str, opcional): ID do relatório de divisão.
- payment_batch_name (str, opcional): Nome do lote de pagamentos associado ao relatório.
- split_date (str, opcional): Data de criação do relatório de divisão (formato ISO 8601).
- fee (float, opcional): Taxa aplicada ao relatório.
- fee_amount (float, opcional): Valor da taxa aplicada.
- fee_paid (bool, opcional): Indica se a taxa foi paga.
- tax_id (str, opcional): CPF ou CNPJ do responsável pelo relatório.
- batch_id (str, opcional): ID do lote associado ao relatório.
- report_id (str, opcional): ID do relatório associado.
- bubble_id (str, opcional): ID do relatório no sistema Bubble.
- status (str, opcional): Status atual do relatório de divisão.
- logo (str, opcional): URL do logo associado ao relatório.
- origin (str, opcional): Origem do relatório.
- currency (str, opcional): Moeda utilizada no relatório (ex.: BRL, USD, EUR).
- exchange_order_id (str, opcional): ID da ordem de câmbio associada.
- pix_qr_code_id (str, opcional): ID do QR Code Pix associado.
- pix_qr_code_payload (str, opcional): Payload do QR Code Pix associado.
- exchange_rate (float, opcional): Taxa de câmbio aplicada.
- show_exchange_data (bool, opcional): Indica se os dados de câmbio devem ser exibidos.
- date (str, opcional): Data do relatório (formato ISO 8601).
- pending_payments (int, opcional): Número de pagamentos pendentes.
- withhold_payments (int, opcional): Número de pagamentos retidos.
- done_payments (int, opcional): Número de pagamentos concluídos.
- pending_amount (float, opcional): Valor total pendente.
- withhold_amount (float, opcional): Valor total retido.
- ir_amount (float, opcional): Valor total de imposto retido.
- paid_amount (float, opcional): Valor total pago.
- total_amount (float, opcional): Valor total do relatório.