Solicitar antecipação
curl --request POST \
--url https://api.korbit.com.br/v1/advance/requests \
--header 'Content-Type: application/json' \
--header 'idempotency-key: <idempotency-key>' \
--data '
{
"quoteId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "https://api.korbit.com.br/v1/advance/requests"
payload = { "quoteId": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
headers = {
"idempotency-key": "<idempotency-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'idempotency-key': '<idempotency-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({quoteId: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};
fetch('https://api.korbit.com.br/v1/advance/requests', 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.korbit.com.br/v1/advance/requests",
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([
'quoteId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"idempotency-key: <idempotency-key>"
],
]);
$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://api.korbit.com.br/v1/advance/requests"
payload := strings.NewReader("{\n \"quoteId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("idempotency-key", "<idempotency-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://api.korbit.com.br/v1/advance/requests")
.header("idempotency-key", "<idempotency-key>")
.header("Content-Type", "application/json")
.body("{\n \"quoteId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.korbit.com.br/v1/advance/requests")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["idempotency-key"] = '<idempotency-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"quoteId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"quoteId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"scheduleId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 4503599627370496,
"feeAmount": 4503599627370496,
"netAmount": 4503599627370496,
"status": "PENDING_REVIEW",
"requestedAt": "2023-11-07T05:31:56Z",
"reviewedAt": "2023-11-07T05:31:56Z",
"reviewReason": "<string>",
"releasedAt": "2023-11-07T05:31:56Z"
}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"quoteId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"scheduleId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 4503599627370496,
"feeAmount": 4503599627370496,
"netAmount": 4503599627370496,
"status": "PENDING_REVIEW",
"requestedAt": "2023-11-07T05:31:56Z",
"reviewedAt": "2023-11-07T05:31:56Z",
"reviewReason": "<string>",
"releasedAt": "2023-11-07T05:31:56Z"
}{
"detail": "<string>",
"instance": "<string>",
"requestId": "<string>",
"status": 499,
"title": "<string>",
"type": "<string>",
"code": "<string>"
}{
"detail": "<string>",
"instance": "<string>",
"requestId": "<string>",
"status": 499,
"title": "<string>",
"type": "<string>",
"code": "<string>"
}{
"detail": "<string>",
"instance": "<string>",
"requestId": "<string>",
"status": 499,
"title": "<string>",
"type": "<string>",
"code": "<string>"
}{
"detail": "<string>",
"instance": "<string>",
"requestId": "<string>",
"status": 499,
"title": "<string>",
"type": "<string>",
"code": "<string>"
}{
"detail": "<string>",
"instance": "<string>",
"requestId": "<string>",
"status": 499,
"title": "<string>",
"type": "<string>",
"code": "<string>"
}{
"detail": "<string>",
"instance": "<string>",
"requestId": "<string>",
"status": 499,
"title": "<string>",
"type": "<string>",
"code": "<string>"
}Antecipações
Solicitar antecipação
Vincula a cotação e cria a solicitação, que passa por revisão da Korbit antes da liberação do líquido ao saldo. O recebível fica reservado como garantia — não pode sustentar outra antecipação.
POST
/
v1
/
advance
/
requests
Solicitar antecipação
curl --request POST \
--url https://api.korbit.com.br/v1/advance/requests \
--header 'Content-Type: application/json' \
--header 'idempotency-key: <idempotency-key>' \
--data '
{
"quoteId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "https://api.korbit.com.br/v1/advance/requests"
payload = { "quoteId": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
headers = {
"idempotency-key": "<idempotency-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'idempotency-key': '<idempotency-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({quoteId: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};
fetch('https://api.korbit.com.br/v1/advance/requests', 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.korbit.com.br/v1/advance/requests",
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([
'quoteId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"idempotency-key: <idempotency-key>"
],
]);
$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://api.korbit.com.br/v1/advance/requests"
payload := strings.NewReader("{\n \"quoteId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("idempotency-key", "<idempotency-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://api.korbit.com.br/v1/advance/requests")
.header("idempotency-key", "<idempotency-key>")
.header("Content-Type", "application/json")
.body("{\n \"quoteId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.korbit.com.br/v1/advance/requests")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["idempotency-key"] = '<idempotency-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"quoteId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"quoteId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"scheduleId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 4503599627370496,
"feeAmount": 4503599627370496,
"netAmount": 4503599627370496,
"status": "PENDING_REVIEW",
"requestedAt": "2023-11-07T05:31:56Z",
"reviewedAt": "2023-11-07T05:31:56Z",
"reviewReason": "<string>",
"releasedAt": "2023-11-07T05:31:56Z"
}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"quoteId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"scheduleId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 4503599627370496,
"feeAmount": 4503599627370496,
"netAmount": 4503599627370496,
"status": "PENDING_REVIEW",
"requestedAt": "2023-11-07T05:31:56Z",
"reviewedAt": "2023-11-07T05:31:56Z",
"reviewReason": "<string>",
"releasedAt": "2023-11-07T05:31:56Z"
}{
"detail": "<string>",
"instance": "<string>",
"requestId": "<string>",
"status": 499,
"title": "<string>",
"type": "<string>",
"code": "<string>"
}{
"detail": "<string>",
"instance": "<string>",
"requestId": "<string>",
"status": 499,
"title": "<string>",
"type": "<string>",
"code": "<string>"
}{
"detail": "<string>",
"instance": "<string>",
"requestId": "<string>",
"status": 499,
"title": "<string>",
"type": "<string>",
"code": "<string>"
}{
"detail": "<string>",
"instance": "<string>",
"requestId": "<string>",
"status": 499,
"title": "<string>",
"type": "<string>",
"code": "<string>"
}{
"detail": "<string>",
"instance": "<string>",
"requestId": "<string>",
"status": 499,
"title": "<string>",
"type": "<string>",
"code": "<string>"
}{
"detail": "<string>",
"instance": "<string>",
"requestId": "<string>",
"status": 499,
"title": "<string>",
"type": "<string>",
"code": "<string>"
}Headers
Required string length:
1 - 255Pattern:
^[A-Za-z0-9_-]{43}$Body
application/json
Response
Default Response
Required range:
1 <= x <= 9007199254740991Required range:
1 <= x <= 9007199254740991Required range:
1 <= x <= 9007199254740991Available options:
PENDING_REVIEW, APPROVED, REJECTED, RELEASED Maximum string length:
1000Was this page helpful?