Skip to main content

Close Asset Insertion

Closes the asset insertion of a batch in pending_assets_insertion. The batch must have at least one non-discarded asset.

Available on
ProfileHostRequired permission
Managermanager-apiWrite
Consultantconsultant-apiGranted by the integration team
Assignorassignor-apiWrite

Base URL for each host: Environments (Hosts).

Request​

ENDPOINT
/trade_resolve/fund_class/FUND_CLASS_KEY/assignment/ASSIGNMENT_EXTERNAL_ID
METHOD
PUT
Request Body
{
"assignment_status": "completed_assets_insertion",
"number_of_assets": 2,
"total_value": 2469.12
}

Body Params​

FieldTypeDescription
assignment_status *stringOnly accepted value: completed_assets_insertion
number_of_assetsnumberNumber of non-discarded assets you expect in the batch. If sent and it diverges, the API rejects the closing (TRR000067).
total_valuenumberSum of the sale_value of the non-discarded assets you expect in the batch. If sent and it diverges, the API rejects the closing (TRR000066).

Response​

STATUS
200
Response Body
{
"assignment_key": "41d6ff41-1dac-4df7-9e50-d15210ec57f3",
"assignment_status": "completed_assets_insertion"
}

In batches with an external term, assignment_status comes back as pending_signed_term_submission. See Repurchase Term.

Errors​

StatusCodeWhen it happens
400QIT000001Body outside the contract: missing assignment_status or unknown field
400TRR000033The batch is not in pending_assets_insertion
400TRR000021assignment_status other than completed_assets_insertion
400TRR000034The batch has no non-discarded asset
400TRR000067number_of_assets different from the number of assets in the batch
400TRR000066total_value different from the sum of the assets in the batch
403TRR000049The agent does not have access to this fund or this batch
404TRR000006There is no fund with this fund_class_key
404TRR000020Batch not found with this external_id. Through assignor-api, the same case returns TRR000013.

Authentication, permission and host errors: see API errors.