Sync Account Status

When to use it? There is a user request to update the status of an account or the provider sends a notification updating the status of an account. You must manage this update and send the account details with the new status to Toqio.

You will notice the field oldId is required. You need to send this value mandatorily but this can be empty as only some integrations require it.

webhookType: SYNC_ACCOUNT_STATUS

model:

{
    "clientId": "uuid",
    "id": "uuid",
    "status": "CLOSED | ACTIVE | PENDING | HIDE | QUARANTINE | FAILED | SUSPENDED",
    "failureReason": "string",
    "oldId": "string",
    "balance": "number (double)",
    "assetType": "AUD | CHF | CAD | SEK | GOLDBLOC | USD | NOK | WHISKY | JPY | NZD | GOLD | GBP | EUR | CZK | DKK | HUF | PLN | RON | ILS | RUB | BHD | SAR | BGN | KES | SGD | KWD | ZAR | CNY | MYR | HRK | MXN | THB | TRY | OMR | UGX | HKD | PHP | AED | INR | QAR | IDR | POINTS",
    "iban": "string"
}

example

{
    "clientId": "c14a080d-7bd3-4bab-8e2f-1d71a0123e5f",
    "id": "60d7f7a3f163b41f94f89c24",
    "status": "ACTIVE",
    "failureReason": "",
    "oldId": "abc123",
    "balance": 1000.25,
    "assetType": "USD",
    "iban": "GB29NWBK60161331926819"
}