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
| Profile | Host | Required permission |
|---|---|---|
| Manager | manager-api | Write |
| Consultant | consultant-api | Granted by the integration team |
| Assignor | assignor-api | Write |
Base URL for each host: Environments (Hosts).
Request
ENDPOINT
/trade_resolve/fund_class/FUND_CLASS_KEY/assignment/ASSIGNMENT_EXTERNAL_IDMETHOD
PUTRequest Body
{
"assignment_status": "completed_assets_insertion",
"number_of_assets": 2,
"total_value": 2469.12
}
Body Params
| Field | Type | Description |
|---|---|---|
assignment_status * | string | Only accepted value: completed_assets_insertion |
number_of_assets | number | Number of non-discarded assets you expect in the batch. If sent and it diverges, the API rejects the closing (TRR000067). |
total_value | number | Sum 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
200Response 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
| Status | Code | When it happens |
|---|---|---|
| 400 | QIT000001 | Body outside the contract: missing assignment_status or unknown field |
| 400 | TRR000033 | The batch is not in pending_assets_insertion |
| 400 | TRR000021 | assignment_status other than completed_assets_insertion |
| 400 | TRR000034 | The batch has no non-discarded asset |
| 400 | TRR000067 | number_of_assets different from the number of assets in the batch |
| 400 | TRR000066 | total_value different from the sum of the assets in the batch |
| 403 | TRR000049 | The agent does not have access to this fund or this batch |
| 404 | TRR000006 | There is no fund with this fund_class_key |
| 404 | TRR000020 | Batch not found with this external_id. Through assignor-api, the same case returns TRR000013. |
Authentication, permission and host errors: see API errors.