Skip to content

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.

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 os
from alter_sdk import App
from 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()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.child_idstringRequired within parentFormat: uuid
path.payment_method_idintegerRequired within parentMinimum: 1
headersobjectRequired within parentAdditional keys: not allowed
headers.X-BetastringRequired within parentDefault: true
One of: true
bodyobjectOptional
body.dataModelRequired within parentExpand 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 media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$ModelRootExpand Create a child organization bank account — 201 response body

Referenced models: Create a child organization bank account — 201 response body

Update a child organization bank account — request body — body data
FieldTypePresenceDescription and constraints
$objectRootThe request payload.
is_defaultbooleanRequired within parentMust be true: make this account the one Deel debits. Unsetting is not supported; set another account instead.
notification_emailsarrayOptionalAddresses 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[]stringEach itemFormat: email
Maximum length: 254
Create a child organization bank account — 201 response body
FieldTypePresenceDescription and constraints
$objectRoot
dataModelRequired within parentExpand 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
FieldTypePresenceDescription and constraints
$objectRootThe bank account as stored by Deel. The full account and routing numbers are never returned.
account_holder_namestringRequired within parentName on the bank account, as submitted.
account_typestringRequired within parentChecking or savings.
Known values: CHECKING, SAVINGS
attempts_remainingJSONRequired within parent
attempts_remaining (anyOf 1)integerAlternativeMicro-deposit confirmation attempts left before the method needs a bank statement.
attempts_remaining (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
bank_nameJSONOptional
bank_name (anyOf 1)stringAlternativeName of the bank. Not available in this version; always null.
bank_name (anyOf 2)nullAlternativeName of the bank. Not available in this version; always null.
created_atstringRequired within parentWhen the method was added.
Format: date-time
idJSONRequired within parent
id (anyOf 1)integerAlternativeId of the payment method. Use it in the verify, update and remove calls.
id (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
is_defaultbooleanRequired within parentWhether Deel debits this account for the child organization’s invoices.
is_deletablebooleanRequired within parentWhether a remove call would succeed right now.
last4stringRequired within parentLast four digits of the account number.
not_deletable_reasonJSONOptionalWhy the method cannot be deleted, when it cannot. Null otherwise.
not_deletable_reason (anyOf 1)stringAlternativeWhy the method cannot be deleted, when it cannot. Null otherwise.
Known values: USED_IN_AUTOMATIC_PAYMENT, USED_AS_BACKUP
not_deletable_reason (anyOf 2)nullAlternative
statusModelRequired within parentExpand 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_reasonJSONOptionalWhy the method is on hold, when it is. Null otherwise.
status_reason (anyOf 1)stringAlternativeWhy 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)nullAlternative
typestringRequired within parentPayment rail of the method. Only ACH in this version.
Known values: ACH
verification_methodstringRequired within parentHow 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
FieldTypePresenceDescription and constraints
$stringRootPENDING_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

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"}

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand how our website, product, and documentation are used.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

Advertising

Shares visits and sign-ups with Meta, Reddit, and X so we can measure which of our ads work.

You can change these choices at any time from Cookie settings.