Skip to main content
POST
/
batches
Create a new Operation Batch
curl --request POST \
  --url https://fxaas-dev.acorianacorretora.com.br/batches \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "message": "Invalid authorization header"
}
'
{
  "id": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "currency_pair": "<string>",
  "status": "<string>",
  "operation_count": 123,
  "operations": [
    {
      "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"

Body

application/json

Batch to be created

currency_pair
string
required

Currency pair for the batch

Response

Created

id
string
required

Unique identifier of the batch

created_at
string<date-time>
required

Timestamp when the batch was created

currency_pair
string
required

Currency pair for the batch

status
string
required

Current status of the batch

operation_count
integer
required

Number of SWIFT operations in the batch

operations
object[]

List of operations in the batch