Skip to main content
POST
/
batches
/
{batch_id}
Register a new counterparty to a customer
curl --request POST \
  --url https://fxaas-dev.acorianacorretora.com.br/batches/{batch_id} \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "currency_amount": 123,
  "customer_id": "<string>",
  "counterparty_id": "<string>"
}
'
{
  "operation_id": "<string>",
  "foreign_currency_amount": 123,
  "currency_pair": "<string>",
  "status": "<string>",
  "customer_id": "<string>",
  "bank_account": {
    "bank_name": "<string>",
    "swift_code": "<string>",
    "bank_country": "<string>",
    "account_number": "<string>",
    "iban": "<string>",
    "aba_routing_number": "<string>"
  },
  "created_at": "2023-11-07T05:31:56Z",
  "counterparty_id": "<string>",
  "intermediary_bank": {
    "bank_name": "<string>",
    "swift_code": "<string>",
    "bank_country": "<string>"
  },
  "batch_id": "<string>"
}

Headers

Authorization
string
required

Authorization header

Example:

"Bearer Token"

Path Parameters

Body

application/json
currency_amount
number<double>
required

Amount in the specified currency

customer_id
string
required

Identifier of the customer

counterparty_id
string
required

Identifier of the counterparty

Response

Counterparty registered successfully

operation_id
string
required

Unique identifier of the operation

foreign_currency_amount
number<double>
required

Amount in foreign currency

currency_pair
string
required

Currency pair for the operation

status
string
required

Current status of the operation

customer_id
string
required

Identifier of the customer

bank_account
object
required
created_at
string<date-time>
required

Timestamp when the operation was created

counterparty_id
string | null

Identifier of the counterparty

intermediary_bank
object
batch_id
string | null

Identifier of the associated batch