API Reference
Create counterparty
/api/v1/customer/{customerId}/counterpartyhttps://bloquo.mimicr.dev · provider: https://api.bloquo.ioCreates a new counterparty (external beneficiary) for the customer.
Lifecycle: Created as PendingApproval → compliance reviews the record → Approved (usable in FxPayments) or Rejected. A counterparty still in PendingApproval causes a 422 on any FxPayment that references it. Use GET /api/v1/customer/counterparty/{counterpartyId} to check status before submitting payment orders.
PIX keys: bankInformations[].accountNumber accepts any PIX key format for BRL payments, CNPJ, CPF, email address, phone number (+55...), or a random UUID key.
taxId uniqueness: taxId + taxIdCountry is unique across the platform. If a counterparty with the same combination already exists, the existing record is reused and linked to this customer, no duplicate is created. Use GET /api/v1/customer/counterparty/{counterpartyId} to inspect the existing record before creating.
Authorization
Bearer token in the Authorization: Bearer <token> header. See Authentication.
Path parameters
Body
application/jsonFull legal name of the counterparty.
"Maria Santos"Trade name or DBA (doing business as), if different from legal name.
Tax identification number.
"987.654.321-00"ISO 3166-1 alpha-2 country code for the tax ID.
"BR"Legal entity type of the counterparty.
IndividualCompanyFull address of the counterparty.
"Rua das Flores, 123, São Paulo, SP, 01310-100"Preferred currency code for payments to this counterparty.
"BRL"List of payment methods (PIX, TED, SWIFT, crypto) for this counterparty.
Show child attributes
ISO 4217 currency code or crypto ticker.
"BRL"ISO 3166-1 alpha-2 country code.
"BR"Payment rail type for this bank information entry.
PIXTEDCRYPTOWIRESEPAACHHuman-readable label for this payment method.
"PIX CPF"Whether this is the default payment method for this currency.
true"Maria Santos""987.654.321-00""BR""Itaú Unibanco"Bank ISPB or COMPE code.
"341""0001"Account number, PIX key, or wallet address depending on type.
"987.654.321-00"Account type (e.g. checking, savings).
Blockchain wallet address (CRYPTO type only).
Blockchain network (CRYPTO type only).
Tag or memo required by some blockchains (e.g. XRP, XLM).
Responses
201Counterparty created.
true201Show child attributes
5"Maria Santos""987.654.321-00""BR"Legal entity type of the counterparty.
IndividualCompanytrue"Rua das Flores, 123, São Paulo, SP, 01310-100"Risk classification assigned by compliance.
If this counterparty is also a Bloquo customer, their customer ID.
Show child attributes
1"Counterparty"5"BRL""BR"Payment rail type for this bank information entry.
PIXTEDCRYPTOWIRESEPAACH"PIX CPF"truetrue"Maria Santos""987.654.321-00""BR"Account number, PIX key, or wallet address.
"987.654.321-00""admin""admin""2024-01-15T10:30:00Z""2024-01-15T10:30:00Z"