Cancel Invitation
Request and response reference for POST /v1/console/invitations/{invitation}/cancel.
/v1/console/invitations/{invitation}/cancelRequest
This interface uses an approved institutional session, not a financial API key. Session writes also need Origin and CSRF protection. Use the JavaScript sample within an authorized browser integration.
curl -X POST "$OSAI_CONSOLE_BASE_URL/v1/console/invitations/$INVITATION_ID/cancel" \
-H "Content-Type: application/json" \
-H "Origin: $OSAI_APP_ORIGIN" \
-H "X-CSRF-Token: $OSAI_CSRF_TOKEN" \
--cookie "$OSAI_SESSION_COOKIE_FILE" \
--data '{
"expected_version": "1",
"reason": "<reason>"
}'Parameters
| Name | Location | Requirement | Description |
|---|---|---|---|
invitation | path · string | Required | Use the value defined for this resource. |
Origin | header · string | Required | Use the value defined for this resource. |
X-CSRF-Token | header · string | Required | Use the value defined for this resource. |
Request body
Send JSON with Content-Type: application/json. Nested field names identify their parent object; required markers apply within that object. Replace template values using the relevant resource and configured instrument rules.
| Field | Type | Description & constraints |
|---|---|---|
expected_versionRequired in parent object | string | Exact nonnegative base-10 integer; never a JSON number.Pattern: ^(0|[1-9][0-9]*)$ |
reasonRequired in parent object | string | Defined by the resource contract. |
Responses
Inspect HTTP status before parsing a body. These tables describe client response fields rather than invented successful transaction payloads.
200 · HTTP 200 response
| Field | Type | Description & constraints |
|---|---|---|
invitation_idRequired in parent object | string | Defined by the resource contract. |
institution_idRequired in parent object | string | Defined by the resource contract. |
masked_emailRequired in parent object | string | Defined by the resource contract. |
role_idsRequired in parent object | array | Defined by the resource contract. |
statusRequired in parent object | string | Defined by the resource contract. |
versionRequired in parent object | string | Exact nonnegative base-10 integer; never a JSON number.Pattern: ^(0|[1-9][0-9]*)$ |
created_atRequired in parent object | stringdate-time | Defined by the resource contract. |
expires_atRequired in parent object | stringdate-time | Defined by the resource contract. |
delivery_statusRequired in parent object | string | Defined by the resource contract. |
400 · Invalid bounded instruction
No client body fields are defined for this response.
401 · Authentication required
No client body fields are defined for this response.
403 · Permission, recent verified MFA or CSRF denied
No client body fields are defined for this response.
409 · Version, preview, instruction or capacity conflict
No client body fields are defined for this response.
503 · Unavailable or unknown commit outcome; query the original command before retrying
No client body fields are defined for this response.
Retries & recovery
Keep the original request identifiers and any required idempotency key. A timeout does not establish failure. Read the original resource or command before another financial write; use expected versions for concurrent changes.