Direct Deposit Switches Webhooks

Sent when a deposit switch flow in Link has completed.

#Completed

post/v2/webhooks

The direct_deposit_switches.completed webhook is sent when a deposit switch flow in Link has completed and Argyle has successfully updated the user's deposit settings on their payroll platform.

Request body
  • #
    eventsarray of strings
    required

    direct_deposit_switches.completed

  • #
    namestring
    required

    Your name for the webhook subscription.

  • #
    urlstring
    required

    Where you want to receive webhook delivery. This can be either a backend URL that you manage, or a URL provided by a webhook management service.

  • #
    secretstring
    optional

    Optional secret used to verify webhooks.

Webhook message
  • #
    eventstring

    direct_deposit_switches.completed

  • #
    namestring

    Name used for the webhook subscription.

  • #
    dataobject

  • #
    accountstring (uuid)

    ID of the account.

  • #
    userstring (uuid)

    ID of the user.

  • #
    deposit_destinationstring (uuid)

    ID of the deposit destination.

    If an exact match to an existing deposit destination cannot be found, a null value is returned and the details property will provide additional information.

  • #
    direct_deposit_changedboolean

    true if the deposit switch resulted in any changes to the account's current deposit destinations, including additions, removals, or changes to existing allocations.

  • #
    typestring (enum)

    Type of bank account deposit switch.

  • #
    flowstring (enum)

    Indicates whether the deposit switch was a removal of an existing deposit destination.

  • #
    detailsstring (enum)

    Additional details when a one-to-one match between the update and an existing deposit destination cannot be determined.

  • #
    resourceobject
    optional

Example Subscription
1curl --request POST \
2     --url https://api.argyle.com/v2/webhooks \
3     --header 'accept: application/json' \
4     --header 'content-type: application/json' \
5     --data '{
6        "events": ["direct_deposit_switches.completed"],
7        "name": "name-for-the-webhook-subscription",
8        "url": "https://your-webhook-backend.com",
9        "secret": "optional-secret"
10     }'
Example Webhook
1{
2  "event": "direct_deposit_switches.completed",
3  "name": "name-for-the-webhook-subscription",
4  "data": {
5    "account": "0187c66e-e7e5-811c-b006-2232f00f426a",
6    "user": "018051aa-f7a9-a0db-2f38-6cfa325e9d69",
7    "deposit_destination": "0176e1ea-60ca-c561-eb8e-6dcdb33b1b55",
8    "direct_deposit_changed": true,
9    "type": "ach_deposit_account",
10    "flow": "update",
11    "details": null
12  }
13}

#Failed

post/v2/webhooks

The direct_deposit_switches.failed webhook is sent when a deposit switch flow in Link could not be completed.

Request body
  • #
    eventsarray of strings
    required

    direct_deposit_switches.failed

  • #
    namestring
    required

    Your name for the webhook subscription.

  • #
    urlstring
    required

    Where you want to receive webhook delivery. This can be either a backend URL that you manage, or a URL provided by a webhook management service.

  • #
    secretstring
    optional

    Optional secret used to verify webhooks.

Webhook message
  • #
    eventstring

    direct_deposit_switches.failed

  • #
    namestring

    Name used for the webhook subscription.

  • #
    dataobject

  • #
    accountstring (uuid)

    ID of the account.

  • #
    userstring (uuid)

    ID of the user.

  • #
    error_codestring (enum)

    The deposit switch error that occurred.

  • #
    error_messagestring

    The deposit switch error message.

  • #
    resourceobject
    optional

Example Subscription
1curl --request POST \
2     --url https://api.argyle.com/v2/webhooks \
3     --header 'accept: application/json' \
4     --header 'content-type: application/json' \
5     --data '{
6        "events": ["direct_deposit_switches.failed"],
7        "name": "name-for-the-webhook-subscription",
8        "url": "https://your-webhook-backend.com",
9        "secret": "optional-secret"
10     }'
Example Webhook
1{
2  "event": "direct_deposit_switches.failed",
3  "name": "name-for-the-webhook-subscription",
4  "data": {
5    "account": "0187c66e-e7e5-811c-b006-2232f00f426a",
6    "user": "018051aa-f7a9-a0db-2f38-6cfa325e9d69",
7    "error_code": "confirmation_timeout",
8    "error_message": "The user did not finish confirming the direct deposit switch."
9  }
10}
Updating Argyle status...
© 2024 Argyle Systems Inc.argyle.com