EstateHub

Administrator Bank Transfer Integration API

Base URL: http://localhost:8000/api/v1
Prefix: /admins/platform-settings/integrations
Auth: Administrator JWT required
Headers: Content-Type: application/json

1. Get Bank Transfer Configuration

Retrieve the saved integration state and sanitized configuration.

GET/admins/platform-settings/integrations/bank_transfer/

Auth: Required

Headers

HTTP
Authorization: Bearer {{admin_access_token}}
Content-Type: application/json

Success Example

JSON
{
  "success": true,
  "message": "Integration retrieved successfully.",
  "data": {
    "integration": {
      "type": "bank_transfer",
      "is_enabled": true,
      "configured": true,
      "config": {
        "bank_name": "Demo Bank",
        "account_holder_name": "EstateHub",
        "branch_name": "Demo Main Branch",
        "account_type": "Business Account",
        "currency": "USD",
        "payment_instructions": "Demo account. Do not send real money.",
        "has_account_number": true,
        "account_number_last4": "0000"
      },
      "updated_at": "2026-11-24T10:00:00Z"
    }
  }
}

Notes

Sensitive values are returned as has_* flags. configured means encrypted configuration exists; it does not verify provider credentials. A missing integration record is created disabled.

Applicable errors: 401 missing/invalid JWT; 403 administrator access required; 406 unsupported response format.

Unauthorized - HTTP 401

JSON
{
  "success": false,
  "message": "Authentication credentials were not provided.",
  "errors": {}
}

Forbidden - HTTP 403

JSON
{
  "success": false,
  "message": "You do not have permission to perform this action.",
  "errors": {}
}

2. Update Bank Transfer Configuration

Save provider configuration and optionally enable or disable the integration.

PATCH/admins/platform-settings/integrations/bank_transfer/

Auth: Required

Headers

HTTP
Authorization: Bearer {{admin_access_token}}
Content-Type: application/json

Request Body

FieldTypeRequirement
is_enabledbooleanOptional; preserves the saved state when omitted.
configobjectOptional; merges the submitted fields with saved configuration.
JSON
{
  "is_enabled": true,
  "config": {
    "bank_name": "Demo Bank",
    "account_holder_name": "EstateHub",
    "account_number": "0000000000",
    "branch_name": "Demo Main Branch",
    "account_type": "Business Account",
    "currency": "USD",
    "payment_instructions": "Demo account. Do not send real money."
  }
}

Success Example

JSON
{
  "success": true,
  "message": "Integration updated successfully.",
  "data": {
    "integration": {
      "type": "bank_transfer",
      "is_enabled": true,
      "configured": true,
      "config": {
        "bank_name": "Demo Bank",
        "account_holder_name": "EstateHub",
        "branch_name": "Demo Main Branch",
        "account_type": "Business Account",
        "currency": "USD",
        "payment_instructions": "Demo account. Do not send real money.",
        "has_account_number": true,
        "account_number_last4": "0000"
      },
      "updated_at": "2026-11-24T10:00:00Z"
    }
  }
}

Notes

Both is_enabled and config are optional. PATCH merges with saved configuration; omit unchanged secrets to retain them. Required values must exist in the merged configuration when enabled. Saving does not verify provider connectivity. Disable with { "is_enabled": false }; re-enable with { "is_enabled": true } when configuration is complete.

Required when enabled: bank_name, account_holder_name, account_number. Optional: branch_name, account_type, currency, payment_instructions. Currency: USD, BDT, EUR, GBP. Responses omit the account number and return has_account_number and account_number_last4.

Configuration fields

FieldTypeDetails
bank_namestringMaximum length: 255
account_holder_namestringMaximum length: 255
account_numberstringMaximum length: 100; blank allowed; write-only
branch_namestringMaximum length: 255; blank allowed
account_typestringMaximum length: 100; blank allowed
currencyenumOptional in a partial update
payment_instructionsstringblank allowed

Disable without deleting configuration

JSON
{
  "is_enabled": false
}

Re-enable with complete saved configuration

JSON
{
  "is_enabled": true
}

When enabling without saved bank details - HTTP 400

JSON
{
  "success": false,
  "message": "Validation failed.",
  "errors": {
    "config": {
      "bank_name": "This field is required when enabling the integration.",
      "account_holder_name": "This field is required when enabling the integration.",
      "account_number": "This field is required when enabling the integration."
    }
  }
}

Applicable errors: 400 invalid/missing configuration or malformed JSON; 401 missing/invalid JWT; 403 administrator access required; 406 unsupported response format; 415 unsupported content type.

Unauthorized - HTTP 401

JSON
{
  "success": false,
  "message": "Authentication credentials were not provided.",
  "errors": {}
}

Forbidden - HTTP 403

JSON
{
  "success": false,
  "message": "You do not have permission to perform this action.",
  "errors": {}
}

Integrations Overview | Product Integration Guide