Pagar Lote
curl --request POST \
--url https://production.api.noodle.cx/external/split/{split_id}/pay \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"transaction_password": "<string>"
}
'import requests
url = "https://production.api.noodle.cx/external/split/{split_id}/pay"
payload = { "transaction_password": "<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({transaction_password: '<string>'})
};
fetch('https://production.api.noodle.cx/external/split/{split_id}/pay', 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}/pay",
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([
'transaction_password' => '<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}/pay"
payload := strings.NewReader("{\n \"transaction_password\": \"<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}/pay")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"transaction_password\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://production.api.noodle.cx/external/split/{split_id}/pay")
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 \"transaction_password\": \"<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
Pagar Lote
Use este endpoint para iniciar o processo de pagamento de um lote. É necessário fornecer a senha transacional do usuário.
POST
/
split
/
{split_id}
/
pay
Pagar Lote
curl --request POST \
--url https://production.api.noodle.cx/external/split/{split_id}/pay \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"transaction_password": "<string>"
}
'import requests
url = "https://production.api.noodle.cx/external/split/{split_id}/pay"
payload = { "transaction_password": "<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({transaction_password: '<string>'})
};
fetch('https://production.api.noodle.cx/external/split/{split_id}/pay', 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}/pay",
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([
'transaction_password' => '<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}/pay"
payload := strings.NewReader("{\n \"transaction_password\": \"<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}/pay")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"transaction_password\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://production.api.noodle.cx/external/split/{split_id}/pay")
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 \"transaction_password\": \"<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.