https://sandbox-products.ddp.akoya.com/taxlots/{version}/{providerId}/{accountId}/{holdingId}
The taxlots API allows you to retrieve tax lots of consumer-permissioned accounts.
version*
stringdefault: v2Akoya major version number. Do not use minor version numbers. For instance, use v2 and not v2.2
providerId*
stringdefault: mikomoId of provider
accountId*
stringAccount Identifier
holdingId*
stringConsumer's holdingId under investments
x-akoya-interaction-type
stringOptional but recommended header to include with each data request. Allowed values are `user` or `batch`. `user` indicates a request is prompted by an end-user action. `batch` indicates the request is part of a batch process.
offset
stringThe number of items to skip before the first in the response. The default is 0
limit
stringThe maximum number of items to be returned in the response. The default is 50
200
OK
Response Body
accountId
string
holding
object
holdingId
string
securityId
string
securityIdType
string
taxLots
array of objects
object
originalPurchaseDate
string
quantity
integer
purchasedPrice
integer
costBasis
number
currentValue
integer
positionType
string
Headers
x-akoya-interaction-idstring
Akoya supplied interaction id used for logging and error tracking
401
602 - Customer not authorized
Response Body
code
integer
message
string
403
The `providerId` is wrong or your app doesn't have a subscription to the provider.
Response Body
code
integer
message
string
404
701 - Tax Lots not found. The `holdingId` may be wrong.
Response Body
code
integer
message
string
const options = {
"method": "GET",
"headers": {
"x-akoya-interaction-type": "batch"
}
}};
fetch('https://sandbox-products.ddp.akoya.com/taxlots/v2/mikomo//?offset=&limit=', options)
.then(response => response.json())
.catch(err => console.error(err));