---
title: "Extension: Tax IDs"
app: "Dynamic Ship"
section: "Developer"
last_updated: "2024-04-16"
url: "https://insight-works.com/kb/dynamic-ship/extension-tax-ids/"
---

# Extension: Tax IDs

The tax IDs for a company and customer are customized values due to the inconsistency of the source for these values. To control where this value is sourced depends on the Dynamic Ship version. Both require some technical knowledge as seen below.

### Dynamic Ship version 2.8 and newer

Dynamic Ship supports tax identifiers for the EasyPost integration. You can insert tax identifiers through the Shipment Options or populate them in advance through a template in the Customer Options. For more information, see [_Tax Identifiers_](/kb/dynamic-ship/tax-identifiers/).

### Dynamic Ship version 2.6 and newer

Use the native Business Central event subscriber to catch the Dynamic Ship address buffer after it has been set:

[Eventsubscriber(Codeunit::23044619, ‘OnAfterSetAddress’, …)]

OnAfterSetAddress(addressSource: RecordRef; var addressBuffer: Record “DSHIP Address Buffer” temporary; var isValidationRequired: Boolean; var isHandled: Boolean)

Set addressBuffer.”State Tax ID” and addressBuffer.”Federal Tax ID” and then set isHandled to true.

### Dynamic Ship version 2.5 and older

Use the Dynamic Ship extensibility codeunit to handle the following actions:

- Action::”Ship From Tax ID”
- Action::”Ship To Tax ID”

See _[Extending Dynamic Ship](/kb/dynamic-ship/extending-dynamic-ship/)_ to grab the extensibility codeunit skeleton that contains all available actions and example code to get you started. Once you have published the codeunit to your environment, the codeunit comes into effect after you enter the codeunit’s ID into the Dynamic Ship Setup Page’s _Shipment Extension_ field.
