> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://en.docs.api.corpx.com/baas/referencia/accounts/cancel-limit-request/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://en.docs.api.corpx.com/_mcp/server. # Cancel a limit increase request POST https://tenant.api.corpx.com/v1/accounts/{accountId}/limit-requests/{requestId}/cancel Cancels a request that is still `pending_review`. Any other status is `409 limit_request_closed`. Sends `limit_request.updated`. Reference: https://en.docs.api.corpx.com/baas/referencia/accounts/cancel-limit-request ## Authentication - `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer `, where token is your auth token. ## Request ### Path parameters - `accountId` (string, required) — Account identifier. - `requestId` (string, required) — Limit request id (`lr_` + ULID). ### Headers - `X-Tenant-Id` (string, required) — Tenant context used for authorization and routing. - `X-Acting-Document` (string, optional) — CPF of the human performing the operation. Required on cashout routes when the credential enforces a transaction PIN. - `X-Acting-Ip` (string, optional) — Real IP of the end user, for integrator credentials calling on their behalf. This is the IP evaluated against `cashoutSourceIps` — without it the check would see your server's IP. Ignored for delegated credentials, where the connection IP is already the right one. - `Idempotency-Key` (string, optional) — Optional client-generated idempotency token (recommended for safe retries). ## Response ### 200 The cancelled request. - `id` (string, required) - `status` (enum, required) - Allowed values: `pending_review`, `approved`, `refused`, `cancelled` - `operation` (enum, required) - Allowed values: `pix_out`, `ted_out`, `boleto`, `internal_out` - `window` (enum, required) - Allowed values: `single_transfer`, `daytime`, `nighttime`, `monthly` - `currentLimitBrl` (double, required) — Effective ceiling when the request was opened. 0 when the account had none. - `requestedLimitBrl` (double, required) - `justification` (string, required) - `identifier` (string, required) - `createdAt` (datetime, required) - `approvedLimitBrl` (double, optional, nullable) — Ceiling actually applied. Null until approval. May differ from `requestedLimitBrl` when the reviewer adjusts it. - `decisionMessage` (string, optional, nullable) - `effectiveAt` (datetime, optional, nullable) — When the new ceiling starts. Null means it was applied immediately. ## Errors ### 404 Not Found Error `limit_request_not_found`. - `errorCode` (string, required) — Stable machine-readable code. See `ErrorCode` for the known values. - `message` (string, required) — Human-readable explanation (pt-BR). Presentation only; may change. - `docs` (string, optional) — Link to this code in the public error catalogue. - `requestId` (string, optional) — Gateway request id. Quote it when contacting support. - `details` (map from string to any, optional) — Optional machine-readable context for the specific `errorCode` (for example `kind` on `identity_verification_monthly_limit_exceeded`, `maxBytes` on `payload_too_large`, `attemptsRemaining` on `facetec_attempts_exhausted`). Keys are documented per operation; absent when the code carries no extra context. - `partner` (ErrorResponsePartner, optional) — Raw error from the settlement bank, when the failure came from it. Diagnostic only. ### 409 Conflict Error `limit_request_closed`. - `errorCode` (string, required) — Stable machine-readable code. See `ErrorCode` for the known values. - `message` (string, required) — Human-readable explanation (pt-BR). Presentation only; may change. - `docs` (string, optional) — Link to this code in the public error catalogue. - `requestId` (string, optional) — Gateway request id. Quote it when contacting support. - `details` (map from string to any, optional) — Optional machine-readable context for the specific `errorCode` (for example `kind` on `identity_verification_monthly_limit_exceeded`, `maxBytes` on `payload_too_large`, `attemptsRemaining` on `facetec_attempts_exhausted`). Keys are documented per operation; absent when the code carries no extra context. - `partner` (ErrorResponsePartner, optional) — Raw error from the settlement bank, when the failure came from it. Diagnostic only. ## Types ### ErrorResponsePartner Raw error from the settlement bank, when the failure came from it. Diagnostic only. - `code` (string, optional) - `message` (string, optional) - `field` (string, optional) — Field the partner pointed at, when any. ## Examples **Response** ```json { "id": "8c1f6a2e-4d3b-4b9a-9f0e-1a2b3c4d5e6f", "status": "pending_review", "operation": "pix_out", "window": "single_transfer", "currentLimitBrl": 50, "requestedLimitBrl": 50, "justification": "string", "identifier": "order-12345", "createdAt": "2026-02-20T08:33:39Z", "approvedLimitBrl": 50, "decisionMessage": "Pagamento pedido #12345", "effectiveAt": "2026-02-20T08:33:39Z" } ``` **SDK Code** ```python Accounts_cancelLimitRequest_example import requests url = "https://tenant.api.corpx.com/v1/accounts/accountId/limit-requests/requestId/cancel" headers = { "X-Tenant-Id": "X-Tenant-Id", "Authorization": "Bearer " } response = requests.post(url, headers=headers) print(response.json()) ``` ```javascript Accounts_cancelLimitRequest_example const url = 'https://tenant.api.corpx.com/v1/accounts/accountId/limit-requests/requestId/cancel'; const options = { method: 'POST', headers: {'X-Tenant-Id': 'X-Tenant-Id', Authorization: 'Bearer '} }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go Accounts_cancelLimitRequest_example package main import ( "fmt" "net/http" "io" ) func main() { url := "https://tenant.api.corpx.com/v1/accounts/accountId/limit-requests/requestId/cancel" req, _ := http.NewRequest("POST", url, nil) req.Header.Add("X-Tenant-Id", "X-Tenant-Id") req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby Accounts_cancelLimitRequest_example require 'uri' require 'net/http' url = URI("https://tenant.api.corpx.com/v1/accounts/accountId/limit-requests/requestId/cancel") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["X-Tenant-Id"] = 'X-Tenant-Id' request["Authorization"] = 'Bearer ' response = http.request(request) puts response.read_body ``` ```java Accounts_cancelLimitRequest_example import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://tenant.api.corpx.com/v1/accounts/accountId/limit-requests/requestId/cancel") .header("X-Tenant-Id", "X-Tenant-Id") .header("Authorization", "Bearer ") .asString(); ``` ```php Accounts_cancelLimitRequest_example request('POST', 'https://tenant.api.corpx.com/v1/accounts/accountId/limit-requests/requestId/cancel', [ 'headers' => [ 'Authorization' => 'Bearer ', 'X-Tenant-Id' => 'X-Tenant-Id', ], ]); echo $response->getBody(); ``` ```csharp Accounts_cancelLimitRequest_example using RestSharp; var client = new RestClient("https://tenant.api.corpx.com/v1/accounts/accountId/limit-requests/requestId/cancel"); var request = new RestRequest(Method.POST); request.AddHeader("X-Tenant-Id", "X-Tenant-Id"); request.AddHeader("Authorization", "Bearer "); IRestResponse response = client.Execute(request); ``` ```swift Accounts_cancelLimitRequest_example import Foundation let headers = [ "X-Tenant-Id": "X-Tenant-Id", "Authorization": "Bearer " ] let request = NSMutableURLRequest(url: NSURL(string: "https://tenant.api.corpx.com/v1/accounts/accountId/limit-requests/requestId/cancel")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```