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.
/admins/platform-settings/integrations/bank_transfer/Auth: Required
Headers
Authorization: Bearer {{admin_access_token}}
Content-Type: application/jsonSuccess Example
{
"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
{
"success": false,
"message": "Authentication credentials were not provided.",
"errors": {}
}Forbidden - HTTP 403
{
"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.
/admins/platform-settings/integrations/bank_transfer/Auth: Required
Headers
Authorization: Bearer {{admin_access_token}}
Content-Type: application/jsonRequest Body
| Field | Type | Requirement |
|---|---|---|
is_enabled | boolean | Optional; preserves the saved state when omitted. |
config | object | Optional; merges the submitted fields with saved configuration. |
{
"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
{
"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
| Field | Type | Details |
|---|---|---|
bank_name | string | Maximum length: 255 |
account_holder_name | string | Maximum length: 255 |
account_number | string | Maximum length: 100; blank allowed; write-only |
branch_name | string | Maximum length: 255; blank allowed |
account_type | string | Maximum length: 100; blank allowed |
currency | enum | Optional in a partial update |
payment_instructions | string | blank allowed |
Disable without deleting configuration
{
"is_enabled": false
}Re-enable with complete saved configuration
{
"is_enabled": true
}When enabling without saved bank details - HTTP 400
{
"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
{
"success": false,
"message": "Authentication credentials were not provided.",
"errors": {}
}Forbidden - HTTP 403
{
"success": false,
"message": "You do not have permission to perform this action.",
"errors": {}
}