Skip to content

Remove IBAN from a customer

POST
/api/v4/partner/customer/remove-iban

Remove a previously registered IBAN from a customer. Any in-flight settlements targeting this IBAN continue; new settlements can no longer reference the removed ibanId.

Authorizations

ApiKeyAuth
Type
API Key (header: X-Api-Key)

Request Body

application/json
JSON
{
"customerId": "customer_a1b2c3d4",
"ibanId": "iban_01HXYZ123456"
}

Responses

OK

application/json
JSON
{
"status": "ok"
}

Playground

Authorization
Body

Samples

Powered by VitePress OpenAPI

Code examples

bash
curl -X POST https://api.brrr.network/api/v4/partner/customer/remove-iban \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "customerId": "cust_a1b2c3d4",
    "ibanId": "iban_01HXYZ123456"
  }'
javascript
const response = await fetch('https://api.brrr.network/api/v4/partner/customer/remove-iban', {
  method: 'POST',
  headers: {
    'X-Api-Key': process.env.BRRR_API_KEY,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    customerId: 'cust_a1b2c3d4',
    ibanId: 'iban_01HXYZ123456',
  }),
});

if (!response.ok) {
  const error = await response.json();
  throw new Error(`Failed to remove IBAN: ${error.errorCode}`);
}
python
import os
import httpx

response = httpx.post(
    'https://api.brrr.network/api/v4/partner/customer/remove-iban',
    headers={
        'X-Api-Key': os.environ['BRRR_API_KEY'],
        'Content-Type': 'application/json',
    },
    json={
        'customerId': 'cust_a1b2c3d4',
        'ibanId': 'iban_01HXYZ123456',
    },
)
response.raise_for_status()