Create a new foreign exchange operation
curl --request POST \
--url https://fxaas-dev.acorianacorretora.com.br/corporate/operation \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"currency_amount": 11.32,
"operation_purpose": "EFX",
"currency_pair": "USDBRL",
"counterparty_id": "5be479ff-03b9-4b14-8cb4-3bf0e5c3ae28"
}
'import requests
url = "https://fxaas-dev.acorianacorretora.com.br/corporate/operation"
payload = {
"currency_amount": 11.32,
"operation_purpose": "EFX",
"currency_pair": "USDBRL",
"counterparty_id": "5be479ff-03b9-4b14-8cb4-3bf0e5c3ae28"
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<authorization>', 'Content-Type': 'application/json'},
body: JSON.stringify({
currency_amount: 11.32,
operation_purpose: 'EFX',
currency_pair: 'USDBRL',
counterparty_id: '5be479ff-03b9-4b14-8cb4-3bf0e5c3ae28'
})
};
fetch('https://fxaas-dev.acorianacorretora.com.br/corporate/operation', 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://fxaas-dev.acorianacorretora.com.br/corporate/operation",
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([
'currency_amount' => 11.32,
'operation_purpose' => 'EFX',
'currency_pair' => 'USDBRL',
'counterparty_id' => '5be479ff-03b9-4b14-8cb4-3bf0e5c3ae28'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"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://fxaas-dev.acorianacorretora.com.br/corporate/operation"
payload := strings.NewReader("{\n \"currency_amount\": 11.32,\n \"operation_purpose\": \"EFX\",\n \"currency_pair\": \"USDBRL\",\n \"counterparty_id\": \"5be479ff-03b9-4b14-8cb4-3bf0e5c3ae28\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
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://fxaas-dev.acorianacorretora.com.br/corporate/operation")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"currency_amount\": 11.32,\n \"operation_purpose\": \"EFX\",\n \"currency_pair\": \"USDBRL\",\n \"counterparty_id\": \"5be479ff-03b9-4b14-8cb4-3bf0e5c3ae28\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://fxaas-dev.acorianacorretora.com.br/corporate/operation")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"currency_amount\": 11.32,\n \"operation_purpose\": \"EFX\",\n \"currency_pair\": \"USDBRL\",\n \"counterparty_id\": \"5be479ff-03b9-4b14-8cb4-3bf0e5c3ae28\"\n}"
response = http.request(request)
puts response.read_body{
"operation_id": "aac055ac-8b88-46a8-a878-43cae6cd4bfe",
"operation_purpose": "EFX",
"foreign_currency_amount": 11.32,
"currency_pair": "USDBRL",
"status": "pending_quote",
"customer_id": "e73eee2f-9643-4fe5-b4c1-4d98cb324bf6",
"counterparty_id": "5be479ff-03b9-4b14-8cb4-3bf0e5c3ae28",
"bank_account": {
"bank_name": "First National Bank",
"swift_code": "FNBAUS33XXX",
"bank_country": "United States of America",
"account_number": "1234567890",
"iban": "US45999999999999",
"aba_routing_number": "121000248"
},
"intermediary_bank": {
"bank_name": "International Transfer Bank",
"swift_code": "INTLUS44XXX",
"bank_country": "United States of America"
},
"batch_id": null,
"created_at": "2025-03-25T14:27:20.095886Z"
}{
"message": "<string>"
}{
"message": "<string>"
}Corporate
Create Operation
Creates a new foreign exchange operation for corporate clients
POST
/
corporate
/
operation
Create a new foreign exchange operation
curl --request POST \
--url https://fxaas-dev.acorianacorretora.com.br/corporate/operation \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"currency_amount": 11.32,
"operation_purpose": "EFX",
"currency_pair": "USDBRL",
"counterparty_id": "5be479ff-03b9-4b14-8cb4-3bf0e5c3ae28"
}
'import requests
url = "https://fxaas-dev.acorianacorretora.com.br/corporate/operation"
payload = {
"currency_amount": 11.32,
"operation_purpose": "EFX",
"currency_pair": "USDBRL",
"counterparty_id": "5be479ff-03b9-4b14-8cb4-3bf0e5c3ae28"
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<authorization>', 'Content-Type': 'application/json'},
body: JSON.stringify({
currency_amount: 11.32,
operation_purpose: 'EFX',
currency_pair: 'USDBRL',
counterparty_id: '5be479ff-03b9-4b14-8cb4-3bf0e5c3ae28'
})
};
fetch('https://fxaas-dev.acorianacorretora.com.br/corporate/operation', 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://fxaas-dev.acorianacorretora.com.br/corporate/operation",
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([
'currency_amount' => 11.32,
'operation_purpose' => 'EFX',
'currency_pair' => 'USDBRL',
'counterparty_id' => '5be479ff-03b9-4b14-8cb4-3bf0e5c3ae28'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"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://fxaas-dev.acorianacorretora.com.br/corporate/operation"
payload := strings.NewReader("{\n \"currency_amount\": 11.32,\n \"operation_purpose\": \"EFX\",\n \"currency_pair\": \"USDBRL\",\n \"counterparty_id\": \"5be479ff-03b9-4b14-8cb4-3bf0e5c3ae28\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
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://fxaas-dev.acorianacorretora.com.br/corporate/operation")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"currency_amount\": 11.32,\n \"operation_purpose\": \"EFX\",\n \"currency_pair\": \"USDBRL\",\n \"counterparty_id\": \"5be479ff-03b9-4b14-8cb4-3bf0e5c3ae28\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://fxaas-dev.acorianacorretora.com.br/corporate/operation")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"currency_amount\": 11.32,\n \"operation_purpose\": \"EFX\",\n \"currency_pair\": \"USDBRL\",\n \"counterparty_id\": \"5be479ff-03b9-4b14-8cb4-3bf0e5c3ae28\"\n}"
response = http.request(request)
puts response.read_body{
"operation_id": "aac055ac-8b88-46a8-a878-43cae6cd4bfe",
"operation_purpose": "EFX",
"foreign_currency_amount": 11.32,
"currency_pair": "USDBRL",
"status": "pending_quote",
"customer_id": "e73eee2f-9643-4fe5-b4c1-4d98cb324bf6",
"counterparty_id": "5be479ff-03b9-4b14-8cb4-3bf0e5c3ae28",
"bank_account": {
"bank_name": "First National Bank",
"swift_code": "FNBAUS33XXX",
"bank_country": "United States of America",
"account_number": "1234567890",
"iban": "US45999999999999",
"aba_routing_number": "121000248"
},
"intermediary_bank": {
"bank_name": "International Transfer Bank",
"swift_code": "INTLUS44XXX",
"bank_country": "United States of America"
},
"batch_id": null,
"created_at": "2025-03-25T14:27:20.095886Z"
}{
"message": "<string>"
}{
"message": "<string>"
}Headers
Authorization header
Example:
"Bearer Token"
Body
application/json
Response
Operation created successfully
Unique identifier of the operation
Purpose of the operation
Amount of foreign currency to exchange
Currency pair for the exchange
Current status of the operation
ID of the customer for this operation
ID of the counterparty for this operation
Show child attributes
Show child attributes
Show child attributes
Show child attributes
ID of the batch if the operation is part of a batch
Timestamp when the operation was created

