Skip to content

Create Basis Assignment

POST
/api/v1/manual-entries/basis-assignments
curl --request POST \
--url https://api.qeychain.xyz/api/v1/manual-entries/basis-assignments \
--header 'Content-Type: application/json' \
--data '{ "lot_id": "example", "transaction_id": "example", "acquisition_cost_usd": 1, "acquisition_date": "2026-04-15T12:00:00Z", "method": "user_provided", "source_doc_ref": "example", "note": "example" }'

Create a manual cost basis assignment for a lot or transaction.

Media typeapplication/json
BasisAssignmentCreate

Create a manual cost basis assignment.

object
lot_id
Any of:
string
transaction_id
Any of:
string
acquisition_cost_usd
required
Acquisition Cost Usd

Total acquisition cost in USD

number
> 0
acquisition_date
Any of:
string format: date-time
method
Method

How value was determined

string
default: user_provided
source_doc_ref
Any of:
string
<= 500 characters
note
Any of:
string
<= 2000 characters

Successful Response

Media typeapplication/json
Examplegenerated
example

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}