Skip to content

SDK does not URL-encode transaction code, breaks adjustTransaction when documentCode contains # #320

Description

@nishantjoshi-10

When using the AvaTax Node.js SDK, calling adjustTransaction fails silently if the transaction documentCode contains a # character. The SDK constructs the adjust URL without URL-encoding the transaction code, causing everything after # to be treated as a URL fragment and never sent to AvaTax.

I debugged the SDK internally and this is what failed-

Image

When the doc code doesn't have a #, works just fine-

Image

In my use case, we always use # in the doc code while creating transactions as I observed that unlike in case of adjustTransaction, SDK internally does not have doc code in URL for createTransaction.

Tested on versions - 25.11.0, 25.7.1

Tracking this with my primary account- @nishant-10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions