curl --request POST \
--url https://api.scheduling.v2.portao3.com.br/realms/{realmId}/organizations/{organizationId}/accounts/{accountId}/wallets/{walletId}/schedules/{scheduleId}/cancelimport requests
url = "https://api.scheduling.v2.portao3.com.br/realms/{realmId}/organizations/{organizationId}/accounts/{accountId}/wallets/{walletId}/schedules/{scheduleId}/cancel"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.scheduling.v2.portao3.com.br/realms/{realmId}/organizations/{organizationId}/accounts/{accountId}/wallets/{walletId}/schedules/{scheduleId}/cancel', 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://api.scheduling.v2.portao3.com.br/realms/{realmId}/organizations/{organizationId}/accounts/{accountId}/wallets/{walletId}/schedules/{scheduleId}/cancel",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.scheduling.v2.portao3.com.br/realms/{realmId}/organizations/{organizationId}/accounts/{accountId}/wallets/{walletId}/schedules/{scheduleId}/cancel"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.scheduling.v2.portao3.com.br/realms/{realmId}/organizations/{organizationId}/accounts/{accountId}/wallets/{walletId}/schedules/{scheduleId}/cancel")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.scheduling.v2.portao3.com.br/realms/{realmId}/organizations/{organizationId}/accounts/{accountId}/wallets/{walletId}/schedules/{scheduleId}/cancel")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body{
"id": "3b9f7c2e-5d41-4e8a-9a6f-1c2d3e4f5a6b",
"amount": 150000,
"scheduledAt": "2026-11-05T03:00:00.000Z",
"type": "PIX_TRANSFER",
"status": "CANCELLED",
"organization": "c4bd3f21-dfbd-44e8-8055-68ba15bed410",
"realm": "f495ff0c-ab54-4f99-8e92-ca8682e4de9b",
"account": "6702b1e4a9c3d80012f4a7b1",
"wallet": "6702b1e4a9c3d80012f4a7b5",
"createdAt": "2026-10-20T14:32:10.512Z",
"updatedAt": "2026-10-22T11:05:41.207Z",
"createdBy": "e3553bc1-5e20-4e17-b22a-a796fda0aa99",
"updatedBy": "e3553bc1-5e20-4e17-b22a-a796fda0aa99",
"description": "Office rent — November",
"retryCount": null,
"category": "FLEX_NATIONAL",
"cancelledBy": "e3553bc1-5e20-4e17-b22a-a796fda0aa99",
"cancelledAt": "2026-10-22T11:05:41.207Z"
}{
"traceId": "1-68ee2a1b-3c4d5e6f7a8b9c0d1e2f3a4b",
"code": "SCHEDULING_ADMIN_REQUIRED",
"origin": "SCHEDULING",
"message": "Organization admin required"
}{
"traceId": "1-68ee2a1b-3c4d5e6f7a8b9c0d1e2f3a4b",
"code": "TRANSACTION_SCHEDULE_NOT_FOUND",
"origin": "SCHEDULING",
"message": "Transaction schedule not found"
}{
"traceId": "1-68ee2a1b-3c4d5e6f7a8b9c0d1e2f3a4b",
"code": "SCHEDULE_NOT_CANCELABLE",
"origin": "SCHEDULING",
"message": "The schedule can no longer be cancelled (already processing, done or failed)"
}{
"traceId": "1-68ee2a1b-3c4d5e6f7a8b9c0d1e2f3a4b",
"code": "BAD_REQUEST",
"origin": "SCHEDULING",
"message": "Bad Request: Your request is invalid or incomplete. Please make sure you are requesting with the right fields.",
"fields": [
{
"field": "scheduleId",
"message": "Invalid UUID",
"code": "SCHEDULEID_UUID"
}
]
}Cancel a schedule
Cancels a scheduled payment before it runs, and returns the schedule with status CANCELLED.
curl --request POST \
--url https://api.scheduling.v2.portao3.com.br/realms/{realmId}/organizations/{organizationId}/accounts/{accountId}/wallets/{walletId}/schedules/{scheduleId}/cancelimport requests
url = "https://api.scheduling.v2.portao3.com.br/realms/{realmId}/organizations/{organizationId}/accounts/{accountId}/wallets/{walletId}/schedules/{scheduleId}/cancel"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.scheduling.v2.portao3.com.br/realms/{realmId}/organizations/{organizationId}/accounts/{accountId}/wallets/{walletId}/schedules/{scheduleId}/cancel', 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://api.scheduling.v2.portao3.com.br/realms/{realmId}/organizations/{organizationId}/accounts/{accountId}/wallets/{walletId}/schedules/{scheduleId}/cancel",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.scheduling.v2.portao3.com.br/realms/{realmId}/organizations/{organizationId}/accounts/{accountId}/wallets/{walletId}/schedules/{scheduleId}/cancel"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.scheduling.v2.portao3.com.br/realms/{realmId}/organizations/{organizationId}/accounts/{accountId}/wallets/{walletId}/schedules/{scheduleId}/cancel")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.scheduling.v2.portao3.com.br/realms/{realmId}/organizations/{organizationId}/accounts/{accountId}/wallets/{walletId}/schedules/{scheduleId}/cancel")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body{
"id": "3b9f7c2e-5d41-4e8a-9a6f-1c2d3e4f5a6b",
"amount": 150000,
"scheduledAt": "2026-11-05T03:00:00.000Z",
"type": "PIX_TRANSFER",
"status": "CANCELLED",
"organization": "c4bd3f21-dfbd-44e8-8055-68ba15bed410",
"realm": "f495ff0c-ab54-4f99-8e92-ca8682e4de9b",
"account": "6702b1e4a9c3d80012f4a7b1",
"wallet": "6702b1e4a9c3d80012f4a7b5",
"createdAt": "2026-10-20T14:32:10.512Z",
"updatedAt": "2026-10-22T11:05:41.207Z",
"createdBy": "e3553bc1-5e20-4e17-b22a-a796fda0aa99",
"updatedBy": "e3553bc1-5e20-4e17-b22a-a796fda0aa99",
"description": "Office rent — November",
"retryCount": null,
"category": "FLEX_NATIONAL",
"cancelledBy": "e3553bc1-5e20-4e17-b22a-a796fda0aa99",
"cancelledAt": "2026-10-22T11:05:41.207Z"
}{
"traceId": "1-68ee2a1b-3c4d5e6f7a8b9c0d1e2f3a4b",
"code": "SCHEDULING_ADMIN_REQUIRED",
"origin": "SCHEDULING",
"message": "Organization admin required"
}{
"traceId": "1-68ee2a1b-3c4d5e6f7a8b9c0d1e2f3a4b",
"code": "TRANSACTION_SCHEDULE_NOT_FOUND",
"origin": "SCHEDULING",
"message": "Transaction schedule not found"
}{
"traceId": "1-68ee2a1b-3c4d5e6f7a8b9c0d1e2f3a4b",
"code": "SCHEDULE_NOT_CANCELABLE",
"origin": "SCHEDULING",
"message": "The schedule can no longer be cancelled (already processing, done or failed)"
}{
"traceId": "1-68ee2a1b-3c4d5e6f7a8b9c0d1e2f3a4b",
"code": "BAD_REQUEST",
"origin": "SCHEDULING",
"message": "Bad Request: Your request is invalid or incomplete. Please make sure you are requesting with the right fields.",
"fields": [
{
"field": "scheduleId",
"message": "Invalid UUID",
"code": "SCHEDULEID_UUID"
}
]
}SCHEDULED can be cancelled. Cancelling one that is already cancelled succeeds and changes nothing — the answer is the same cancelled schedule. The payment the schedule was going to make (the Pix, bank slip or transfer request) is cancelled right after; if that step fails, the schedule stays cancelled, will not run, and the answer is still a success — cancel it again to retry the payment’s cancellation. Only an organization admin can cancel it.Path Parameters
ID of your realm.
Format: UUID
ID of the organization the wallet belongs to.
Format: UUID
ID of the account (24 hexadecimal characters).
^[0-9a-fA-F]{24}$ID of the wallet the schedule pays from (24 hexadecimal characters).
^[0-9a-fA-F]{24}$ID of the schedule to cancel.
Format: UUID
Response
Successful response
A scheduled payment.
ID of the schedule.
"3b9f7c2e-5d41-4e8a-9a6f-1c2d3e4f5a6b"
Amount to pay, in cents (BRL).
150000
When the payment is due to run.
"2026-11-05T03:00:00.000Z"
What the schedule pays: a Pix to a key (PIX_TRANSFER), a Pix QR code (PIX_PAYMENT), a bank slip (BANK_SLIP_PAYMENT) or a transfer to another wallet of the same account (P2P_TRANSFER).
BANK_SLIP_PAYMENT, PIX_PAYMENT, P2P_TRANSFER, PIX_TRANSFER "PIX_TRANSFER"
Where the schedule is: waiting for its day (SCHEDULED), running (PROCESSING), paid (DONE), failed (FAILED) or cancelled (CANCELLED).
SCHEDULED, PROCESSING, CANCELLED, FAILED, DONE "CANCELLED"
ID of the organization the schedule belongs to.
"c4bd3f21-dfbd-44e8-8055-68ba15bed410"
ID of the realm the schedule belongs to.
"f495ff0c-ab54-4f99-8e92-ca8682e4de9b"
ID of the account that pays.
"6702b1e4a9c3d80012f4a7b1"
ID of the wallet that pays.
"6702b1e4a9c3d80012f4a7b5"
When the schedule was created.
"2026-10-20T14:32:10.512Z"
When the schedule was last changed.
"2026-10-22T11:05:41.207Z"
ID of the user who created the schedule.
"e3553bc1-5e20-4e17-b22a-a796fda0aa99"
ID of the user who last changed the schedule.
"e3553bc1-5e20-4e17-b22a-a796fda0aa99"
Description given when the schedule was created.
"Office rent — November"
Number of execution attempts that failed. Absent or null before any failure.
null
Balance category of the wallet the amount is taken from.
FLEX_NATIONAL, FLEX_INTERNATIONAL, FOOD, GAS, MOBILITY, TOLL, FLEX_NATIONAL_WITHOUT_WITHDRAWALS, ADS, SAAS, HOTEL, AIRLINES, TRAVEL, BLOCKED, CASHBACK "FLEX_NATIONAL"
ID of the user who cancelled the schedule. Present only on a cancelled schedule.
"e3553bc1-5e20-4e17-b22a-a796fda0aa99"
When the schedule was cancelled. Present only on a cancelled schedule.
"2026-10-22T11:05:41.207Z"