Mercoa, a startup I interviewed for Summer 2025

Bugs in API

Entity

https://docs.mercoa.com/api-reference/entity/create

In the business property in the typescript SDK no taxIDProvided param exists.

Client initialization

/Users/ash/Documents/mercoa-takehome/backend/node_modules/@mercoa/javascript/api/resources/entity/client/Client.js:287
                        throw new errors.MercoaError({
                              ^
Error: Status code: 401
Body: "Unauthorized"
    at Entity.<anonymous> (/Users/ash/Documents/mercoa-takehome/backend/node_modules/@mercoa/javascript/api/resources/entity/client/Client.js:287:31)
    at Generator.next (<anonymous>)
    at fulfilled (/Users/ash/Documents/mercoa-takehome/backend/node_modules/@mercoa/javascript/api/resources/entity/client/Client.js:41:58)
    at processTicksAndRejections (node:internal/process/task_queues:105:5)

better error catching? Doesn’t tell me its an invalid API key

EIN

Unnecessary nesting