Skip to main content

Cancel a capital deposit case

Use the API to cancel a capital deposit case.

Prerequisites

All of the following conditions must be met:

  1. The capital deposit case status is WaitingForRequirements.
  2. Your shareholders can't have the shareholder status CapitalTransferred.
  3. The shareholder account's booked balance is zero (0).

Guide​

  1. Call the cancelCapitalDepositCase mutation.
  2. Add the capital deposit case ID.
  3. Add the success payload and any information you'd like to receive.
  4. Add rejections (not shown).

Mutation​

🔎 Open the mutation in API Explorer

mutation CancelCase {
cancelCapitalDepositCase(input: { id: "$CAPITAL_DEPOSIT_CASE_ID" }) {
... on CancelCapitalDepositCaseSuccessPayload {
__typename
capitalDepositCase {
status
}
}
}
}

Payload​

{
"data": {
"cancelCapitalDepositCase": {
"__typename": "CancelCapitalDepositCaseSuccessPayload",
"capitalDepositCase": {
"status": "Canceled"
}
}
}
}