Deel: Update a child organization bank account
Deel organizations.setDefaultChildOrganizationPaymentMethod: arguments, response, policy and SDK examples.
← Organizations operations · Get started
Operation deel.organizations_setdefaultchildorganizationpaymentmethod_v2026_11_12
Provider route: PATCH /organizations/children/{child_id}/payment-methods/{payment_method_id}. Alter supplies the connection’s credentials and routing.
Call through Alter
Section titled “Call through Alter”Install @alter-ai/sdk @alter-ai/deel with npm, or alter-sdk-deel with pip. Supply your connected customer’s grant ID and the arguments described below.
import { App } from "@alter-ai/sdk";import { DeelIntegration } from "@alter-ai/deel";
async function execute(input: Parameters<DeelIntegration["organizations"]["setDefaultChildOrganizationPaymentMethod"]>[0]) { const app = new App({ apiKey: process.env.ALTER_API_KEY! }); try { const provider = new DeelIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! }); const call = await provider.organizations.setDefaultChildOrganizationPaymentMethod(input); const result = await call.wait(); return result.bodyJson(); } finally { await app.close(); }}import osfrom alter_sdk import Appfrom alter_sdk_deel import DeelIntegration
async def execute(arguments): async with App(api_key=os.environ["ALTER_API_KEY"]) as app: provider = DeelIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]}) call = await provider.organizations.set_default_child_organization_payment_method(arguments) result = await call.wait() return result.body_json()| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: not allowed |
path | object | Required within parent | Additional keys: not allowed |
path.child_id | string | Required within parent | Format: uuid |
path.payment_method_id | integer | Required within parent | Minimum: 1 |
headers | object | Required within parent | Additional keys: not allowed |
headers.X-Beta | string | Required within parent | Default: true One of: true |
body | object | Optional | |
body.data | Model | Required within parent | Expand Update a child organization bank account — request body — body data The request payload. |
Referenced models: Update a child organization bank account — request body — body data
Response
Section titled “Response”Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | Model | Root | Expand Create a child organization bank account — 201 response body |
Referenced models: Create a child organization bank account — 201 response body
Schemas
Section titled “Schemas”Update a child organization bank account — request body — body data
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The request payload. |
is_default | boolean | Required within parent | Must be true: make this account the one Deel debits. Unsetting is not supported; set another account instead. |
notification_emails | array | Optional | Addresses Deel emails before each debit. Used only when the automatic payment is created by this call; later calls keep the existing addresses. Without it no email is sent. |
notification_emails[] | string | Each item | Format: email Maximum length: 254 |
Create a child organization bank account — 201 response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
data | Model | Required within parent | Expand Create a child organization bank account — 201 response body — data The bank account as stored by Deel. The full account and routing numbers are never returned. |
Referenced models: Create a child organization bank account — 201 response body — data
Create a child organization bank account — 201 response body — data
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The bank account as stored by Deel. The full account and routing numbers are never returned. |
account_holder_name | string | Required within parent | Name on the bank account, as submitted. |
account_type | string | Required within parent | Checking or savings. Known values: CHECKING, SAVINGS |
attempts_remaining | JSON | Required within parent | |
attempts_remaining (anyOf 1) | integer | Alternative | Micro-deposit confirmation attempts left before the method needs a bank statement. |
attempts_remaining (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
bank_name | JSON | Optional | |
bank_name (anyOf 1) | string | Alternative | Name of the bank. Not available in this version; always null. |
bank_name (anyOf 2) | null | Alternative | Name of the bank. Not available in this version; always null. |
created_at | string | Required within parent | When the method was added. Format: date-time |
id | JSON | Required within parent | |
id (anyOf 1) | integer | Alternative | Id of the payment method. Use it in the verify, update and remove calls. |
id (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
is_default | boolean | Required within parent | Whether Deel debits this account for the child organization’s invoices. |
is_deletable | boolean | Required within parent | Whether a remove call would succeed right now. |
last4 | string | Required within parent | Last four digits of the account number. |
not_deletable_reason | JSON | Optional | Why the method cannot be deleted, when it cannot. Null otherwise. |
not_deletable_reason (anyOf 1) | string | Alternative | Why the method cannot be deleted, when it cannot. Null otherwise. Known values: USED_IN_AUTOMATIC_PAYMENT, USED_AS_BACKUP |
not_deletable_reason (anyOf 2) | null | Alternative | |
status | Model | Required within parent | Expand Create a child organization bank account — 201 response body — data status PENDING_VERIFICATION until the two micro-deposit amounts are confirmed; VERIFIED once they are; ON_HOLD when the account is verified but the child organization has not completed its own verification yet; VERIFICATION_FAILED after three wrong attempts (it stays so while Deel reviews a bank statement, and becomes VERIFIED on approval); REMOVED after deletion. |
status_reason | JSON | Optional | Why the method is on hold, when it is. Null otherwise. |
status_reason (anyOf 1) | string | Alternative | Why the method is on hold, when it is. Null otherwise. Known values: NO_US_LEGAL_ENTITY, ORGANIZATION_NOT_VERIFIED, ACH_DISABLED |
status_reason (anyOf 2) | null | Alternative | |
type | string | Required within parent | Payment rail of the method. Only ACH in this version. Known values: ACH |
verification_method | string | Required within parent | How the account is verified. Only micro-deposits in this version. Known values: MICRO_DEPOSITS |
Referenced models: Create a child organization bank account — 201 response body — data status
Create a child organization bank account — 201 response body — data status
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | string | Root | PENDING_VERIFICATION until the two micro-deposit amounts are confirmed; VERIFIED once they are; ON_HOLD when the account is verified but the child organization has not completed its own verification yet; VERIFICATION_FAILED after three wrong attempts (it stays so while Deel reviews a bank statement, and becomes VERIFIED on approval); REMOVED after deletion. Known values: PENDING_VERIFICATION, VERIFIED, ON_HOLD, VERIFICATION_FAILED, REMOVED |
Policy, approvals and errors
Section titled “Policy, approvals and errors”SDK function policy ID: deel.organizations_setdefaultchildorganizationpaymentmethod_v2026_11_12. Catalog operation: organizations_setdefaultchildorganizationpaymentmethod_v2026_11_12. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.
Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.
Required provider scopes: ["organizations:write"]
Pinned headers: {"X-Version": "2026-11-12"}