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.

oldId (optional):
Used when the provider changes the account ID. In this case, the payload should include the new account ID in the id field and the previous ID in the oldId field. This allows us to remove the old account on our side and register the new one. If the account ID has not changed, you can ignore this field.

webhookType: SYNC_ACCOUNT_STATUS

model:

{
    "clientId": "String", // Mandatory - merchant Id in the Toqio DB. 
    "id": "String", // Mandatory - account ID in the Toqio database. It's the same ID on the provider side, and the format depends on the provider. 
    "status": "CLOSED | ACTIVE | PENDING | HIDE | QUARANTINE | FAILED| SUSPENDED", // Mandatory
    "oldId": "string", 
    "balance": "number (double)", // Mandatory
    "assetType": "aud | chf | cad | sek | usd | nok | jpy | nzd | 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 ", // Mandatory
    "iban": "string" // Mandatory
}

example

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