Skip to content

Deel: Create equity or token tax event

Deel equityTokens.createEquityOrTokenTaxEvent: arguments, response, policy and SDK examples.

← Equity tokens operations · Get started

Operation deel.equitytokens_createequityortokentaxevent_v2026_01_01

Provider route: POST /equities-tokens/tax-events. 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["equityTokens"]["createEquityOrTokenTaxEvent"]>[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.equityTokens.createEquityOrTokenTaxEvent(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.equity_tokens.create_equity_or_token_tax_event(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
bodyobjectOptional
body.dataModelOptionalExpand Create equity or token tax event — request body — body data

Referenced models: Create equity or token tax event — 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 equity or token tax event — 201 response body

Referenced models: Create equity or token tax event — 201 response body

Create equity or token tax event — request body — body data
FieldTypePresenceDescription and constraints
$objectRoot
benefit_in_kind_local_currencystringRequired within parentThe benefit-in-kind (BIK) value reported to payroll, expressed in the worker's local payroll currency
contract_idstringRequired within parentThe Deel contract ID of the EOR worker the tax event applies to
equity_grant_idstringOptionalThe unique identifier of the equity/token grant. Omit this property if the grant ID is not known.
event_datestringOptionalThe date the equity or token event occurred (e.g. vest date, exercise date)
Format: date
exercise_pricestringOptionalThe price at which the equity/token was exercised
fx_ratestringRequired within parentThe exchange rate used to convert the local currency to the payroll currency. Must be greater than 0.
gross_valuestringOptionalThe gross value of the equity event, calculated as unit FMV multiplied by quantity exercised or released
method_of_tax_coverageModelRequired within parentExpand Create equity or token tax event — request body — body data method of tax coverage
How the benefit-in-kind (BIK) tax on this equity event is collected. BIK_WITHHOLDING_* values indicate the employer withholds tax from payroll; the suffix identifies the mechanism (e.g. at-source deduction, salary deduction, net settlement, grossed-up bonus). BIK_REPORTING_ONLY reports the BIK without withholding. NO_BIK_NO_WITHHOLDING applies when no taxable benefit arises. AD_HOC covers special cases outside the standard methods. Note: cashout methods (CASHOUT_WITH_TAXES_WITHHELD_AT_SOURCE, CASHOUT_THROUGH_PAYROLL) are handled via internal processes and are not accepted through this endpoint.
payroll_currencystringRequired within parentThe ISO 4217 currency code in which the payroll is processed. Case-insensitive; stored in upper case.
plan_currencystringRequired within parentThe ISO 4217 currency code in which the equity/token grant was issued. Case-insensitive; stored in upper case.
quantity_exercised_or_releasedstringOptionalThe number of shares or units exercised or released in this event
quantity_remainingstringOptionalThe number of shares or units remaining after the event
quantity_withheld_or_soldstringOptionalThe number of shares or units withheld (for cashless exercise) or sold to cover taxes
sale_pricestringOptionalThe price at which the equity/token was sold
settlement_datestringRequired within parentThe date the equity event was settled (i.e. when shares were transferred or cash was received)
Format: date
tax_jurisdictionstringRequired within parentThe ISO 3166-1 alpha-2 country code of the worker's contract jurisdiction, used to determine applicable tax rules. Case-insensitive; stored in upper case.
tax_ratestringOptionalThe tax rate applied to the benefit in kind
taxable_gain_or_lossstringRequired within parentThe taxable gain or loss on the event, typically gross value minus the total exercise price
total_exercise_pricestringOptionalThe total exercise price paid for the equity, calculated as exercise price per unit multiplied by quantity exercised
total_taxes_withheldstringRequired within parentThe total amount of income tax and social contributions withheld on behalf of the worker. Must be 0 when method_of_tax_coverage is BIK_WITHHOLDING_SALARY_DEDUCTION or NO_BIK_NO_WITHHOLDING.
transaction_feesstringOptionalBrokerage or transaction fees associated with the equity event, in plan currency
unit_fmvstringOptionalThe fair market value of the equity/token grant at the time of the event
withheld_tax_local_currencystringRequired within parentThe income tax and social contributions withheld, expressed in the worker's local payroll currency. Must be 0 when method_of_tax_coverage is BIK_WITHHOLDING_SALARY_DEDUCTION or NO_BIK_NO_WITHHOLDING.

Referenced models: Create equity or token tax event — request body — body data method of tax coverage

Create equity or token tax event — 201 response body
FieldTypePresenceDescription and constraints
$objectRoot
dataModelOptionalExpand Create equity or token tax event — 201 response body — data

Referenced models: Create equity or token tax event — 201 response body — data

Create equity or token tax event — request body — body data method of tax coverage
FieldTypePresenceDescription and constraints
$stringRootHow the benefit-in-kind (BIK) tax on this equity event is collected. BIK_WITHHOLDING_* values indicate the employer withholds tax from payroll; the suffix identifies the mechanism (e.g. at-source deduction, salary deduction, net settlement, grossed-up bonus). BIK_REPORTING_ONLY reports the BIK without withholding. NO_BIK_NO_WITHHOLDING applies when no taxable benefit arises. AD_HOC covers special cases outside the standard methods. Note: cashout methods (CASHOUT_WITH_TAXES_WITHHELD_AT_SOURCE, CASHOUT_THROUGH_PAYROLL) are handled via internal processes and are not accepted through this endpoint.
One of: AD_HOC, BIK_REPORTING_ONLY, BIK_WITHHOLDING_AT_SOURCE_CLIENT, BIK_WITHHOLDING_AT_SOURCE_CLIENT_REVERSE, BIK_WITHHOLDING_GROSSED_UP_BONUS, BIK_WITHHOLDING_NET_SETTLEMENT, BIK_WITHHOLDING_SALARY_DEDUCTION, BIK_WITHHOLDING_WORKER, NO_BIK_NO_WITHHOLDING
Create equity or token tax event — 201 response body — data
FieldTypePresenceDescription and constraints
$objectRoot
created_atstringOptionalThe date and time the equity/token tax event was created
Format: date-time
idstringOptionalThe unique identifier of the equity/token tax event created
Format: uuid

SDK function policy ID: deel.equitytokens_createequityortokentaxevent_v2026_01_01. Catalog operation: equitytokens_createequityortokentaxevent_v2026_01_01. 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: ["equities:write"]

Pinned headers: {"X-Version": "2026-01-01"}

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.