cURL
curl --request POST \ --url https://gateway.3xpay.co/exchange/bank-accounts \ --header 'Content-Type: application/json' \ --header 'api_key: <api-key>' \ --header 'api_secret: <api-key>' \ --data ' { "name": "<string>", "pix_key": "<string>" } '
{ "success": true, "message": "<string>", "data": { "id": 123, "userId": 123, "type": "<string>", "name": "<string>", "pix_key": "<string>", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" } }
Cria uma conta bancária PIX usando chave e nome
X-API-Key
Show CreateBankAccountDto
curl --request POST \ --url https://api.seudominio.com/bank-accounts \ --header 'X-API-Key: sua-api-key-aqui' \ --header 'Content-Type: application/json' \ --data '{ "name": "Minha Conta PIX", "pix_key": "12345678900" }'
{ "name": "Minha Conta PIX", "pix_key": "12345678900" }
{ "success": true, "message": "Bank account created successfully", "data": { "id": 1, "userId": 123, "type": "pix", "name": "Minha Conta PIX", "pix_key": "12345678900", "created_at": "2025-12-23T10:00:00.000Z", "updated_at": "2025-12-23T10:00:00.000Z" } }
{ "statusCode": 409, "message": "Já existe uma conta bancária com esta chave PIX" }
{ "statusCode": 409, "message": "Já existe uma conta bancária com este nome" }
Nome identificador da conta PIX
Chave PIX
Conta bancária criada com sucesso
Indica se a operação foi bem-sucedida
Mensagem descritiva da operação
Show child attributes