curl --request PATCH \
--url https://ledger.sandbox.lerian.net/v1/organizations/{organization_id}/billing-packages/{billing_package_id} \
--header 'Content-Type: application/json' \
--data '
{
"createdAt": "2026-01-01T00:00:00Z",
"enable": true,
"id": "00000000-0000-0000-0000-000000000000",
"label": "Monthly Volume Billing",
"ledgerId": "00000000-0000-0000-0000-000000000000",
"organizationId": "00000000-0000-0000-0000-000000000000",
"type": "volume",
"updatedAt": "2026-01-01T00:00:00Z",
"accountTarget": {
"aliases": [
"account_alpha",
"account_beta"
],
"portfolioId": "00000000-0000-0000-0000-000000000000",
"segmentId": "00000000-0000-0000-0000-000000000000"
},
"assetCode": "BRL",
"countMode": "perRoute",
"creditAccountAlias": "account_fees_credit",
"debitAccountAlias": "account_fees_debit",
"deletedAt": "2026-06-01T00:00:00Z",
"description": "Charges per completed transaction route",
"discountTiers": [
{
"discountPercentage": "10.00",
"minQuantity": 1000
}
],
"feeAmount": "50.00",
"freeQuota": 100,
"maintenanceCreditAccount": "account_maintenance_credit",
"pricingModel": "tiered",
"tiers": [
{
"minQuantity": 0,
"unitPrice": "1.50",
"maxQuantity": 999
}
]
}
'import requests
url = "https://ledger.sandbox.lerian.net/v1/organizations/{organization_id}/billing-packages/{billing_package_id}"
payload = {
"createdAt": "2026-01-01T00:00:00Z",
"enable": True,
"id": "00000000-0000-0000-0000-000000000000",
"label": "Monthly Volume Billing",
"ledgerId": "00000000-0000-0000-0000-000000000000",
"organizationId": "00000000-0000-0000-0000-000000000000",
"type": "volume",
"updatedAt": "2026-01-01T00:00:00Z",
"accountTarget": {
"aliases": ["account_alpha", "account_beta"],
"portfolioId": "00000000-0000-0000-0000-000000000000",
"segmentId": "00000000-0000-0000-0000-000000000000"
},
"assetCode": "BRL",
"countMode": "perRoute",
"creditAccountAlias": "account_fees_credit",
"debitAccountAlias": "account_fees_debit",
"deletedAt": "2026-06-01T00:00:00Z",
"description": "Charges per completed transaction route",
"discountTiers": [
{
"discountPercentage": "10.00",
"minQuantity": 1000
}
],
"feeAmount": "50.00",
"freeQuota": 100,
"maintenanceCreditAccount": "account_maintenance_credit",
"pricingModel": "tiered",
"tiers": [
{
"minQuantity": 0,
"unitPrice": "1.50",
"maxQuantity": 999
}
]
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
createdAt: '2026-01-01T00:00:00Z',
enable: true,
id: '00000000-0000-0000-0000-000000000000',
label: 'Monthly Volume Billing',
ledgerId: '00000000-0000-0000-0000-000000000000',
organizationId: '00000000-0000-0000-0000-000000000000',
type: 'volume',
updatedAt: '2026-01-01T00:00:00Z',
accountTarget: {
aliases: ['account_alpha', 'account_beta'],
portfolioId: '00000000-0000-0000-0000-000000000000',
segmentId: '00000000-0000-0000-0000-000000000000'
},
assetCode: 'BRL',
countMode: 'perRoute',
creditAccountAlias: 'account_fees_credit',
debitAccountAlias: 'account_fees_debit',
deletedAt: '2026-06-01T00:00:00Z',
description: 'Charges per completed transaction route',
discountTiers: [{discountPercentage: '10.00', minQuantity: 1000}],
feeAmount: '50.00',
freeQuota: 100,
maintenanceCreditAccount: 'account_maintenance_credit',
pricingModel: 'tiered',
tiers: [{minQuantity: 0, unitPrice: '1.50', maxQuantity: 999}]
})
};
fetch('https://ledger.sandbox.lerian.net/v1/organizations/{organization_id}/billing-packages/{billing_package_id}', 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://ledger.sandbox.lerian.net/v1/organizations/{organization_id}/billing-packages/{billing_package_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'createdAt' => '2026-01-01T00:00:00Z',
'enable' => true,
'id' => '00000000-0000-0000-0000-000000000000',
'label' => 'Monthly Volume Billing',
'ledgerId' => '00000000-0000-0000-0000-000000000000',
'organizationId' => '00000000-0000-0000-0000-000000000000',
'type' => 'volume',
'updatedAt' => '2026-01-01T00:00:00Z',
'accountTarget' => [
'aliases' => [
'account_alpha',
'account_beta'
],
'portfolioId' => '00000000-0000-0000-0000-000000000000',
'segmentId' => '00000000-0000-0000-0000-000000000000'
],
'assetCode' => 'BRL',
'countMode' => 'perRoute',
'creditAccountAlias' => 'account_fees_credit',
'debitAccountAlias' => 'account_fees_debit',
'deletedAt' => '2026-06-01T00:00:00Z',
'description' => 'Charges per completed transaction route',
'discountTiers' => [
[
'discountPercentage' => '10.00',
'minQuantity' => 1000
]
],
'feeAmount' => '50.00',
'freeQuota' => 100,
'maintenanceCreditAccount' => 'account_maintenance_credit',
'pricingModel' => 'tiered',
'tiers' => [
[
'minQuantity' => 0,
'unitPrice' => '1.50',
'maxQuantity' => 999
]
]
]),
CURLOPT_HTTPHEADER => [
"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://ledger.sandbox.lerian.net/v1/organizations/{organization_id}/billing-packages/{billing_package_id}"
payload := strings.NewReader("{\n \"createdAt\": \"2026-01-01T00:00:00Z\",\n \"enable\": true,\n \"id\": \"00000000-0000-0000-0000-000000000000\",\n \"label\": \"Monthly Volume Billing\",\n \"ledgerId\": \"00000000-0000-0000-0000-000000000000\",\n \"organizationId\": \"00000000-0000-0000-0000-000000000000\",\n \"type\": \"volume\",\n \"updatedAt\": \"2026-01-01T00:00:00Z\",\n \"accountTarget\": {\n \"aliases\": [\n \"account_alpha\",\n \"account_beta\"\n ],\n \"portfolioId\": \"00000000-0000-0000-0000-000000000000\",\n \"segmentId\": \"00000000-0000-0000-0000-000000000000\"\n },\n \"assetCode\": \"BRL\",\n \"countMode\": \"perRoute\",\n \"creditAccountAlias\": \"account_fees_credit\",\n \"debitAccountAlias\": \"account_fees_debit\",\n \"deletedAt\": \"2026-06-01T00:00:00Z\",\n \"description\": \"Charges per completed transaction route\",\n \"discountTiers\": [\n {\n \"discountPercentage\": \"10.00\",\n \"minQuantity\": 1000\n }\n ],\n \"feeAmount\": \"50.00\",\n \"freeQuota\": 100,\n \"maintenanceCreditAccount\": \"account_maintenance_credit\",\n \"pricingModel\": \"tiered\",\n \"tiers\": [\n {\n \"minQuantity\": 0,\n \"unitPrice\": \"1.50\",\n \"maxQuantity\": 999\n }\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
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.patch("https://ledger.sandbox.lerian.net/v1/organizations/{organization_id}/billing-packages/{billing_package_id}")
.header("Content-Type", "application/json")
.body("{\n \"createdAt\": \"2026-01-01T00:00:00Z\",\n \"enable\": true,\n \"id\": \"00000000-0000-0000-0000-000000000000\",\n \"label\": \"Monthly Volume Billing\",\n \"ledgerId\": \"00000000-0000-0000-0000-000000000000\",\n \"organizationId\": \"00000000-0000-0000-0000-000000000000\",\n \"type\": \"volume\",\n \"updatedAt\": \"2026-01-01T00:00:00Z\",\n \"accountTarget\": {\n \"aliases\": [\n \"account_alpha\",\n \"account_beta\"\n ],\n \"portfolioId\": \"00000000-0000-0000-0000-000000000000\",\n \"segmentId\": \"00000000-0000-0000-0000-000000000000\"\n },\n \"assetCode\": \"BRL\",\n \"countMode\": \"perRoute\",\n \"creditAccountAlias\": \"account_fees_credit\",\n \"debitAccountAlias\": \"account_fees_debit\",\n \"deletedAt\": \"2026-06-01T00:00:00Z\",\n \"description\": \"Charges per completed transaction route\",\n \"discountTiers\": [\n {\n \"discountPercentage\": \"10.00\",\n \"minQuantity\": 1000\n }\n ],\n \"feeAmount\": \"50.00\",\n \"freeQuota\": 100,\n \"maintenanceCreditAccount\": \"account_maintenance_credit\",\n \"pricingModel\": \"tiered\",\n \"tiers\": [\n {\n \"minQuantity\": 0,\n \"unitPrice\": \"1.50\",\n \"maxQuantity\": 999\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://ledger.sandbox.lerian.net/v1/organizations/{organization_id}/billing-packages/{billing_package_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"createdAt\": \"2026-01-01T00:00:00Z\",\n \"enable\": true,\n \"id\": \"00000000-0000-0000-0000-000000000000\",\n \"label\": \"Monthly Volume Billing\",\n \"ledgerId\": \"00000000-0000-0000-0000-000000000000\",\n \"organizationId\": \"00000000-0000-0000-0000-000000000000\",\n \"type\": \"volume\",\n \"updatedAt\": \"2026-01-01T00:00:00Z\",\n \"accountTarget\": {\n \"aliases\": [\n \"account_alpha\",\n \"account_beta\"\n ],\n \"portfolioId\": \"00000000-0000-0000-0000-000000000000\",\n \"segmentId\": \"00000000-0000-0000-0000-000000000000\"\n },\n \"assetCode\": \"BRL\",\n \"countMode\": \"perRoute\",\n \"creditAccountAlias\": \"account_fees_credit\",\n \"debitAccountAlias\": \"account_fees_debit\",\n \"deletedAt\": \"2026-06-01T00:00:00Z\",\n \"description\": \"Charges per completed transaction route\",\n \"discountTiers\": [\n {\n \"discountPercentage\": \"10.00\",\n \"minQuantity\": 1000\n }\n ],\n \"feeAmount\": \"50.00\",\n \"freeQuota\": 100,\n \"maintenanceCreditAccount\": \"account_maintenance_credit\",\n \"pricingModel\": \"tiered\",\n \"tiers\": [\n {\n \"minQuantity\": 0,\n \"unitPrice\": \"1.50\",\n \"maxQuantity\": 999\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"createdAt": "2026-01-01T00:00:00Z",
"enable": true,
"id": "00000000-0000-0000-0000-000000000000",
"label": "Monthly Volume Billing",
"ledgerId": "00000000-0000-0000-0000-000000000000",
"organizationId": "00000000-0000-0000-0000-000000000000",
"type": "volume",
"updatedAt": "2026-01-01T00:00:00Z",
"accountTarget": {
"aliases": [
"account_alpha",
"account_beta"
],
"portfolioId": "00000000-0000-0000-0000-000000000000",
"segmentId": "00000000-0000-0000-0000-000000000000"
},
"assetCode": "BRL",
"countMode": "perRoute",
"creditAccountAlias": "account_fees_credit",
"debitAccountAlias": "account_fees_debit",
"deletedAt": "2026-06-01T00:00:00Z",
"description": "Charges per completed transaction route",
"discountTiers": [
{
"discountPercentage": "10.00",
"minQuantity": 1000
}
],
"eventFilter": {
"status": "APPROVED",
"transactionRoute": "payment_route"
},
"feeAmount": "50.00",
"freeQuota": 100,
"maintenanceCreditAccount": "account_maintenance_credit",
"pricingModel": "tiered",
"tiers": [
{
"minQuantity": 0,
"unitPrice": "1.50",
"maxQuantity": 999
}
]
}{
"code": "ERR-0001",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}Atualizar um pacote de cobrança
curl --request PATCH \
--url https://ledger.sandbox.lerian.net/v1/organizations/{organization_id}/billing-packages/{billing_package_id} \
--header 'Content-Type: application/json' \
--data '
{
"createdAt": "2026-01-01T00:00:00Z",
"enable": true,
"id": "00000000-0000-0000-0000-000000000000",
"label": "Monthly Volume Billing",
"ledgerId": "00000000-0000-0000-0000-000000000000",
"organizationId": "00000000-0000-0000-0000-000000000000",
"type": "volume",
"updatedAt": "2026-01-01T00:00:00Z",
"accountTarget": {
"aliases": [
"account_alpha",
"account_beta"
],
"portfolioId": "00000000-0000-0000-0000-000000000000",
"segmentId": "00000000-0000-0000-0000-000000000000"
},
"assetCode": "BRL",
"countMode": "perRoute",
"creditAccountAlias": "account_fees_credit",
"debitAccountAlias": "account_fees_debit",
"deletedAt": "2026-06-01T00:00:00Z",
"description": "Charges per completed transaction route",
"discountTiers": [
{
"discountPercentage": "10.00",
"minQuantity": 1000
}
],
"feeAmount": "50.00",
"freeQuota": 100,
"maintenanceCreditAccount": "account_maintenance_credit",
"pricingModel": "tiered",
"tiers": [
{
"minQuantity": 0,
"unitPrice": "1.50",
"maxQuantity": 999
}
]
}
'import requests
url = "https://ledger.sandbox.lerian.net/v1/organizations/{organization_id}/billing-packages/{billing_package_id}"
payload = {
"createdAt": "2026-01-01T00:00:00Z",
"enable": True,
"id": "00000000-0000-0000-0000-000000000000",
"label": "Monthly Volume Billing",
"ledgerId": "00000000-0000-0000-0000-000000000000",
"organizationId": "00000000-0000-0000-0000-000000000000",
"type": "volume",
"updatedAt": "2026-01-01T00:00:00Z",
"accountTarget": {
"aliases": ["account_alpha", "account_beta"],
"portfolioId": "00000000-0000-0000-0000-000000000000",
"segmentId": "00000000-0000-0000-0000-000000000000"
},
"assetCode": "BRL",
"countMode": "perRoute",
"creditAccountAlias": "account_fees_credit",
"debitAccountAlias": "account_fees_debit",
"deletedAt": "2026-06-01T00:00:00Z",
"description": "Charges per completed transaction route",
"discountTiers": [
{
"discountPercentage": "10.00",
"minQuantity": 1000
}
],
"feeAmount": "50.00",
"freeQuota": 100,
"maintenanceCreditAccount": "account_maintenance_credit",
"pricingModel": "tiered",
"tiers": [
{
"minQuantity": 0,
"unitPrice": "1.50",
"maxQuantity": 999
}
]
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
createdAt: '2026-01-01T00:00:00Z',
enable: true,
id: '00000000-0000-0000-0000-000000000000',
label: 'Monthly Volume Billing',
ledgerId: '00000000-0000-0000-0000-000000000000',
organizationId: '00000000-0000-0000-0000-000000000000',
type: 'volume',
updatedAt: '2026-01-01T00:00:00Z',
accountTarget: {
aliases: ['account_alpha', 'account_beta'],
portfolioId: '00000000-0000-0000-0000-000000000000',
segmentId: '00000000-0000-0000-0000-000000000000'
},
assetCode: 'BRL',
countMode: 'perRoute',
creditAccountAlias: 'account_fees_credit',
debitAccountAlias: 'account_fees_debit',
deletedAt: '2026-06-01T00:00:00Z',
description: 'Charges per completed transaction route',
discountTiers: [{discountPercentage: '10.00', minQuantity: 1000}],
feeAmount: '50.00',
freeQuota: 100,
maintenanceCreditAccount: 'account_maintenance_credit',
pricingModel: 'tiered',
tiers: [{minQuantity: 0, unitPrice: '1.50', maxQuantity: 999}]
})
};
fetch('https://ledger.sandbox.lerian.net/v1/organizations/{organization_id}/billing-packages/{billing_package_id}', 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://ledger.sandbox.lerian.net/v1/organizations/{organization_id}/billing-packages/{billing_package_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'createdAt' => '2026-01-01T00:00:00Z',
'enable' => true,
'id' => '00000000-0000-0000-0000-000000000000',
'label' => 'Monthly Volume Billing',
'ledgerId' => '00000000-0000-0000-0000-000000000000',
'organizationId' => '00000000-0000-0000-0000-000000000000',
'type' => 'volume',
'updatedAt' => '2026-01-01T00:00:00Z',
'accountTarget' => [
'aliases' => [
'account_alpha',
'account_beta'
],
'portfolioId' => '00000000-0000-0000-0000-000000000000',
'segmentId' => '00000000-0000-0000-0000-000000000000'
],
'assetCode' => 'BRL',
'countMode' => 'perRoute',
'creditAccountAlias' => 'account_fees_credit',
'debitAccountAlias' => 'account_fees_debit',
'deletedAt' => '2026-06-01T00:00:00Z',
'description' => 'Charges per completed transaction route',
'discountTiers' => [
[
'discountPercentage' => '10.00',
'minQuantity' => 1000
]
],
'feeAmount' => '50.00',
'freeQuota' => 100,
'maintenanceCreditAccount' => 'account_maintenance_credit',
'pricingModel' => 'tiered',
'tiers' => [
[
'minQuantity' => 0,
'unitPrice' => '1.50',
'maxQuantity' => 999
]
]
]),
CURLOPT_HTTPHEADER => [
"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://ledger.sandbox.lerian.net/v1/organizations/{organization_id}/billing-packages/{billing_package_id}"
payload := strings.NewReader("{\n \"createdAt\": \"2026-01-01T00:00:00Z\",\n \"enable\": true,\n \"id\": \"00000000-0000-0000-0000-000000000000\",\n \"label\": \"Monthly Volume Billing\",\n \"ledgerId\": \"00000000-0000-0000-0000-000000000000\",\n \"organizationId\": \"00000000-0000-0000-0000-000000000000\",\n \"type\": \"volume\",\n \"updatedAt\": \"2026-01-01T00:00:00Z\",\n \"accountTarget\": {\n \"aliases\": [\n \"account_alpha\",\n \"account_beta\"\n ],\n \"portfolioId\": \"00000000-0000-0000-0000-000000000000\",\n \"segmentId\": \"00000000-0000-0000-0000-000000000000\"\n },\n \"assetCode\": \"BRL\",\n \"countMode\": \"perRoute\",\n \"creditAccountAlias\": \"account_fees_credit\",\n \"debitAccountAlias\": \"account_fees_debit\",\n \"deletedAt\": \"2026-06-01T00:00:00Z\",\n \"description\": \"Charges per completed transaction route\",\n \"discountTiers\": [\n {\n \"discountPercentage\": \"10.00\",\n \"minQuantity\": 1000\n }\n ],\n \"feeAmount\": \"50.00\",\n \"freeQuota\": 100,\n \"maintenanceCreditAccount\": \"account_maintenance_credit\",\n \"pricingModel\": \"tiered\",\n \"tiers\": [\n {\n \"minQuantity\": 0,\n \"unitPrice\": \"1.50\",\n \"maxQuantity\": 999\n }\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
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.patch("https://ledger.sandbox.lerian.net/v1/organizations/{organization_id}/billing-packages/{billing_package_id}")
.header("Content-Type", "application/json")
.body("{\n \"createdAt\": \"2026-01-01T00:00:00Z\",\n \"enable\": true,\n \"id\": \"00000000-0000-0000-0000-000000000000\",\n \"label\": \"Monthly Volume Billing\",\n \"ledgerId\": \"00000000-0000-0000-0000-000000000000\",\n \"organizationId\": \"00000000-0000-0000-0000-000000000000\",\n \"type\": \"volume\",\n \"updatedAt\": \"2026-01-01T00:00:00Z\",\n \"accountTarget\": {\n \"aliases\": [\n \"account_alpha\",\n \"account_beta\"\n ],\n \"portfolioId\": \"00000000-0000-0000-0000-000000000000\",\n \"segmentId\": \"00000000-0000-0000-0000-000000000000\"\n },\n \"assetCode\": \"BRL\",\n \"countMode\": \"perRoute\",\n \"creditAccountAlias\": \"account_fees_credit\",\n \"debitAccountAlias\": \"account_fees_debit\",\n \"deletedAt\": \"2026-06-01T00:00:00Z\",\n \"description\": \"Charges per completed transaction route\",\n \"discountTiers\": [\n {\n \"discountPercentage\": \"10.00\",\n \"minQuantity\": 1000\n }\n ],\n \"feeAmount\": \"50.00\",\n \"freeQuota\": 100,\n \"maintenanceCreditAccount\": \"account_maintenance_credit\",\n \"pricingModel\": \"tiered\",\n \"tiers\": [\n {\n \"minQuantity\": 0,\n \"unitPrice\": \"1.50\",\n \"maxQuantity\": 999\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://ledger.sandbox.lerian.net/v1/organizations/{organization_id}/billing-packages/{billing_package_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"createdAt\": \"2026-01-01T00:00:00Z\",\n \"enable\": true,\n \"id\": \"00000000-0000-0000-0000-000000000000\",\n \"label\": \"Monthly Volume Billing\",\n \"ledgerId\": \"00000000-0000-0000-0000-000000000000\",\n \"organizationId\": \"00000000-0000-0000-0000-000000000000\",\n \"type\": \"volume\",\n \"updatedAt\": \"2026-01-01T00:00:00Z\",\n \"accountTarget\": {\n \"aliases\": [\n \"account_alpha\",\n \"account_beta\"\n ],\n \"portfolioId\": \"00000000-0000-0000-0000-000000000000\",\n \"segmentId\": \"00000000-0000-0000-0000-000000000000\"\n },\n \"assetCode\": \"BRL\",\n \"countMode\": \"perRoute\",\n \"creditAccountAlias\": \"account_fees_credit\",\n \"debitAccountAlias\": \"account_fees_debit\",\n \"deletedAt\": \"2026-06-01T00:00:00Z\",\n \"description\": \"Charges per completed transaction route\",\n \"discountTiers\": [\n {\n \"discountPercentage\": \"10.00\",\n \"minQuantity\": 1000\n }\n ],\n \"feeAmount\": \"50.00\",\n \"freeQuota\": 100,\n \"maintenanceCreditAccount\": \"account_maintenance_credit\",\n \"pricingModel\": \"tiered\",\n \"tiers\": [\n {\n \"minQuantity\": 0,\n \"unitPrice\": \"1.50\",\n \"maxQuantity\": 999\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"createdAt": "2026-01-01T00:00:00Z",
"enable": true,
"id": "00000000-0000-0000-0000-000000000000",
"label": "Monthly Volume Billing",
"ledgerId": "00000000-0000-0000-0000-000000000000",
"organizationId": "00000000-0000-0000-0000-000000000000",
"type": "volume",
"updatedAt": "2026-01-01T00:00:00Z",
"accountTarget": {
"aliases": [
"account_alpha",
"account_beta"
],
"portfolioId": "00000000-0000-0000-0000-000000000000",
"segmentId": "00000000-0000-0000-0000-000000000000"
},
"assetCode": "BRL",
"countMode": "perRoute",
"creditAccountAlias": "account_fees_credit",
"debitAccountAlias": "account_fees_debit",
"deletedAt": "2026-06-01T00:00:00Z",
"description": "Charges per completed transaction route",
"discountTiers": [
{
"discountPercentage": "10.00",
"minQuantity": 1000
}
],
"eventFilter": {
"status": "APPROVED",
"transactionRoute": "payment_route"
},
"feeAmount": "50.00",
"freeQuota": 100,
"maintenanceCreditAccount": "account_maintenance_credit",
"pricingModel": "tiered",
"tiers": [
{
"minQuantity": 0,
"unitPrice": "1.50",
"maxQuantity": 999
}
]
}{
"code": "ERR-0001",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}Cabeçalhos
O tipo de mídia do recurso. O valor recomendado é application/json.
Um identificador único utilizado para rastrear e acompanhar cada requisição.
Token JWT bearer para autenticação.
Obrigatório quando PLUGIN_AUTH_ENABLED=true (exigido em implantações multi-tenant).
Opcional no modo OSS single-tenant padrão.
Formato: Bearer <token>
Parâmetros de caminho
O identificador único da Organização associada ao Ledger.
ID do pacote de cobrança (UUID)
Corpo
"2026-01-01T00:00:00Z"
true
"00000000-0000-0000-0000-000000000000"
"Monthly Volume Billing"
"00000000-0000-0000-0000-000000000000"
"00000000-0000-0000-0000-000000000000"
"volume"
"2026-01-01T00:00:00Z"
Show child attributes
Show child attributes
"BRL"
"perRoute"
"account_fees_credit"
"account_fees_debit"
"2026-06-01T00:00:00Z"
"Charges per completed transaction route"
Show child attributes
Show child attributes
Show child attributes
Show child attributes
"50.00"
100
"account_maintenance_credit"
"tiered"
Show child attributes
Show child attributes
Resposta
OK
"2026-01-01T00:00:00Z"
true
"00000000-0000-0000-0000-000000000000"
"Monthly Volume Billing"
"00000000-0000-0000-0000-000000000000"
"00000000-0000-0000-0000-000000000000"
"volume"
"2026-01-01T00:00:00Z"
Show child attributes
Show child attributes
"BRL"
"perRoute"
"account_fees_credit"
"account_fees_debit"
"2026-06-01T00:00:00Z"
"Charges per completed transaction route"
Show child attributes
Show child attributes
Show child attributes
Show child attributes
"50.00"
100
"account_maintenance_credit"
"tiered"
Show child attributes
Show child attributes
Esta página foi útil?

