> For the complete documentation index, see [llms.txt](https://selenium-4.gitbook.io/nexus-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://selenium-4.gitbook.io/nexus-docs/documentation/trade-settlement/operations/main.md).

# Initiate Trade Settlement

## Initiate Trade Settlement

> Initiates a trade settlement procedure (e.g. delivery-versus-payment) for a market trade, linking procedure, settlement option, instruction and transaction details.

```json
{"openapi":"3.0.3","info":{"title":"NEXUS Banking Services API","version":"1.0.0"},"tags":[{"name":"trade-settlement"}],"servers":[{"url":"https://sandbox.nexus.selenium.ao","description":"Sandbox"},{"url":"https://api-mock.selenium.ao","description":"Mock"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Bearer Token (OAuth2 / OIDC or JWT) passed in the `Authorization` header."}},"schemas":{"IdentificationWithIssuer":{"type":"object","description":"BIAN identifier pattern that carries a reference to the party/involvement that issued it.","properties":{"identifierValue":{"type":"string","description":"Value of the identifier."},"identifierIssuerReference":{"type":"object","description":"Reference to the party/involvement that issued the identifier.","properties":{"partyReference":{"type":"string","description":"Party that issued the identifier."},"involvementReference":{"type":"string","description":"Role of the party in issuing the identifier."}}}}},"TypedDateTime":{"type":"object","description":"Date/time paired with a timezone and a type/role describing what it represents.","properties":{"dateTimeContent":{"type":"string","format":"date-time","description":"The date/time value."},"timeZoneCode":{"type":"string","description":"Timezone code of the date/time value."},"dateTimeType":{"type":"string","description":"Role of the date/time (e.g. `EffectiveDate`, `ExpiryDate`)."}}},"ErrorEnvelope":{"type":"object","properties":{"error":{"$ref":"#/components/schemas/Error"}}},"Error":{"type":"object","required":["status","reason","message","path"],"properties":{"status":{"type":"integer","description":"HTTP status code of the error."},"reason":{"type":"string","description":"High-level error category code."},"message":{"type":"string","description":"Human-readable description of the problem."},"path":{"type":"string","description":"HTTP method and endpoint path that originated the error."},"errordetail":{"type":"array","description":"Detailed error list. May be absent for generic errors (e.g. 500).","items":{"$ref":"#/components/schemas/ErrorDetail"}}}},"ErrorDetail":{"type":"object","properties":{"code":{"type":"string","description":"Domain-specific error code."},"reason":{"type":"string","description":"Textual identifier of the specific cause."},"message":{"type":"string","description":"Detailed message, with concrete values where applicable."}}}},"responses":{"BadRequest":{"description":"The request payload is invalid — inconsistent dates, an amount ≤ 0, an invalid currency, or missing required fields.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"Unauthorized":{"description":"Missing, expired or invalid Bearer Token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"Forbidden":{"description":"Authenticated, but missing the scope required for this operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"NotFound":{"description":"The requested resource could not be found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"Conflict":{"description":"The resource already exists, or is in a terminal/incompatible state for this operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"InternalServerError":{"description":"Unexpected internal error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"paths":{"/v1/trade-settlement/TradeSettlementProcedure/Initiate":{"post":{"summary":"Initiate Trade Settlement","description":"Initiates a trade settlement procedure (e.g. delivery-versus-payment) for a market trade, linking procedure, settlement option, instruction and transaction details.","tags":["trade-settlement"],"operationId":"initiateTradeSettlement","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tradeSettlementProcedure":{"type":"object","properties":{"tradeSettlementProcedureReference":{"allOf":[{"$ref":"#/components/schemas/IdentificationWithIssuer"}],"description":"Reference of the trade settlement procedure."},"procedureType":{"type":"string","description":"Type of procedure."},"selectedSettlementOption":{"type":"object","description":"Settlement option selected for the procedure.","properties":{"featureType":{"type":"string","description":"Type of feature."},"featureIdentification":{"allOf":[{"$ref":"#/components/schemas/IdentificationWithIssuer"},{"type":"object","properties":{"identifierStartDate":{"allOf":[{"$ref":"#/components/schemas/TypedDateTime"}],"description":"Start of validity of the feature."},"identifierEndDate":{"allOf":[{"$ref":"#/components/schemas/TypedDateTime"}],"description":"End of validity of the feature."}}}],"description":"Identifier of the settlement feature/option."},"featureName":{"type":"object","properties":{"name":{"type":"string","description":"Name of the feature."}}},"featureDescription":{"type":"string","description":"Description of the feature."}}},"settlementInstruction":{"type":"object","description":"Settlement instruction for the procedure.","properties":{"instructionIdentification":{"allOf":[{"$ref":"#/components/schemas/IdentificationWithIssuer"},{"type":"object","properties":{"instructionIdentificationType":{"type":"string","description":"Type of the instruction identifier."}}}],"description":"Identifier of the settlement instruction."},"instructionType":{"type":"string","description":"Type of instruction."},"instructionDate":{"allOf":[{"$ref":"#/components/schemas/TypedDateTime"}],"description":"Date of the instruction."},"instructionStatusType":{"type":"string","description":"Status of the instruction."},"instructionDescription":{"type":"string","description":"Description of the instruction."}}},"transactionDetails":{"type":"object","description":"Details of the underlying transaction.","properties":{"transactionIdentification":{"allOf":[{"$ref":"#/components/schemas/IdentificationWithIssuer"}],"description":"Identifier of the transaction."},"transactionDate":{"allOf":[{"$ref":"#/components/schemas/TypedDateTime"}],"description":"Execution date of the transaction."},"transactionType":{"type":"string","description":"Type of transaction."},"transactionDescription":{"type":"string","description":"Description of the transaction."},"transactionStatusType":{"type":"string","enum":["Initiated","Pending","Settled","Failed"],"description":"Status of the transaction."},"transactionAmount":{"type":"number","format":"double","description":"Amount of the transaction."},"transactionCurrency":{"type":"string","description":"ISO 4217 currency code of the transaction."},"transactionMissingAmount":{"type":"number","format":"double","description":"Amount still missing to complete the transaction."},"accountIdentification":{"type":"object","description":"Account associated with the transaction.","properties":{"accountIdentificationType":{"type":"string","description":"Type of account identification."},"accountIdentification":{"type":"object","properties":{"value":{"type":"string","description":"Account number."}}},"accountType":{"type":"string","description":"Role of the account in the transaction."},"accountCurrency":{"type":"object","properties":{"currencyCode":{"type":"string","description":"ISO 4217 currency code."}}}}},"settlementDate":{"allOf":[{"$ref":"#/components/schemas/TypedDateTime"}],"description":"Date the settlement is due to occur."},"settlementStatus":{"type":"string","enum":["Initiated","Pending","Settled","Failed"],"description":"Status of the settlement."}}}}}}}}}},"responses":{"200":{"description":"Trade settlement initiated successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"tradeSettlementProcedureReference":{"type":"string","description":"Reference of the trade settlement procedure."},"settlementStatus":{"type":"string","enum":["Initiated","Pending","Settled","Failed"],"description":"Status of the settlement."}}}}}},"201":{"description":"Trade settlement procedure created."},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"500":{"$ref":"#/components/responses/InternalServerError"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://selenium-4.gitbook.io/nexus-docs/documentation/trade-settlement/operations/main.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
