De-Link User

Method is used to disconnect a user in your application from Dapi by invalidating their access token.

Request

https://api.dapi.com/v2/users/DelinkUser

Request Example

{
    "appSecret": "00bae841ad979345fca2e2585c000da7eac420504d189cf63315e7a6234d45c68dbd6fff749167292cd1475622805dce7a2b979db3c16e25a2897158ee63845b1043930ff603e19deb1d2d54ad9afc3d52df241d3c4e7286244a2f98a10212e38b2e9f8b0e3a7592702fa4358fb9103b93a26dd6bb92c2be0327ac054f14becc",
    "userSecret": "R7bJbm8K06ky3OiGBe2QYJxlCiJay7b/Xgna2wsIwp6XBTpuXyJ8SdBY6VaXdsxvd/LJTpbiZDkvNMFQhrT/V0kgV62j9rgzgDqhBxdeKsQRpZ6oIp/6evrR67crnRdDuRF1HY+OJHAcSJ2vjo2yxJo4Y4uUAK0tpEV2IIKkifHgx1xlNuc/dDcvWlj42q0m9ai/bwwPKM/Q5CK3Upk8zJShzBcF7ms/xHev9quXxqtHjLiK0w5j0bGgc8+zX6W2gEhecmgWyj5D3G+5awDTTEnSIM596cr7YEquxh5l6spO+NgyAgp7xym73qz7HGfP5m32Dslqz/ylGG6juJHCc1ODQJrq4LnAKOCPwMnHF3NF9wA87cTWH1qXucwUGpi032cXjkfLJd2ITfcAZ0fBPlkpwYY+QIwVwkX7uWaGzCBKmyRNTj/UPgWVMUcJGE8SANhz0fGLbWWkUzrXLR8W6ml8vTsEWFT8sk3nwh8aRj422s+wsQ9VcM957SLlmoQl4dO8u90VJh7I8+i11GQp6mhvOHoHxO4O+ejZPQaz5MN6fAKoau8fHOPtyaPRZy+9XC3EVhGmvvsCS0gTXBtgUmiEFw2ZErYWqQGn4wryRqe38ThZs4+XZ6gUimBUVw+Bo19cRKkdRFEEHbMBJMyOkjgNfN1rZAGRkvPPio25x8s="
}

Request Headers

Parameter

Type

Description

Authorization
REQUIRED

String

Set type to bearer token and the value to the accessToken obtained using the Exchange Token request.

Body Parameters

Parameter

Type

Description

appSecret
REQUIRED

String

Private token generated at application creation.

userSecret
REQUIRED

String

User secret returned during the successful authentication in Connect Layer

Response

Response example

{
    "status": "done",
    "success": true
}

Response Paremeters

Parameter

Type

Description

success

Boolean

Returns true if request is successful and false for all else.

msg

String

Descriptive message based on success parameter.

type

Enum

Type of error encountered

Is only returned if the request was not successful

status

Enum

Status of the operation

done - Operation Completed
failed - Operation Failed

Examples

Successful

{
    "appSecret": "00bae841ad979345fca2e2585c000da7eac420504d189cf63315e7a6234d45c68dbd6fff749167292cd1475622805dce7a2b979db3c16e25a2897158ee63845b1043930ff603e19deb1d2d54ad9afc3d52df241d3c4e7286244a2f98a10212e38b2e9f8b0e3a7592702fa4358fb9103b93a26dd6bb92c2be0327ac054f14becc",
    "userSecret": "R7bJbm8K06ky3OiGBe2QYJxlCiJay7b/Xgna2wsIwp6XBTpuXyJ8SdBY6VaXdsxvd/LJTpbiZDkvNMFQhrT/V0kgV62j9rgzgDqhBxdeKsQRpZ6oIp/6evrR67crnRdDuRF1HY+OJHAcSJ2vjo2yxJo4Y4uUAK0tpEV2IIKkifHgx1xlNuc/dDcvWlj42q0m9ai/bwwPKM/Q5CK3Upk8zJShzBcF7ms/xHev9quXxqtHjLiK0w5j0bGgc8+zX6W2gEhecmgWyj5D3G+5awDTTEnSIM596cr7YEquxh5l6spO+NgyAgp7xym73qz7HGfP5m32Dslqz/ylGG6juJHCc1ODQJrq4LnAKOCPwMnHF3NF9wA87cTWH1qXucwUGpi032cXjkfLJd2ITfcAZ0fBPlkpwYY+QIwVwkX7uWaGzCBKmyRNTj/UPgWVMUcJGE8SANhz0fGLbWWkUzrXLR8W6ml8vTsEWFT8sk3nwh8aRj422s+wsQ9VcM957SLlmoQl4dO8u90VJh7I8+i11GQp6mhvOHoHxO4O+ejZPQaz5MN6fAKoau8fHOPtyaPRZy+9XC3EVhGmvvsCS0gTXBtgUmiEFw2ZErYWqQGn4wryRqe38ThZs4+XZ6gUimBUVw+Bo19cRKkdRFEEHbMBJMyOkjgNfN1rZAGRkvPPio25x8s="
}
{
    "status": "done",
    "success": true
}

Failed - already delinked user

{
    "appSecret": "00bae841ad979345fca2e2585c000da7eac420504d189cf63315e7a6234d45c68dbd6fff749167292cd1475622805dce7a2b979db3c16e25a2897158ee63845b1043930ff603e19deb1d2d54ad9afc3d52df241d3c4e7286244a2f98a10212e38b2e9f8b0e3a7592702fa4358fb9103b93a26dd6bb92c2be0327ac054f14becc",
    "userSecret": "R7bJbm8K06ky3OiGBe2QYJxlCiJay7b/Xgna2wsIwp6XBTpuXyJ8SdBY6VaXdsxvd/LJTpbiZDkvNMFQhrT/V0kgV62j9rgzgDqhBxdeKsQRpZ6oIp/6evrR67crnRdDuRF1HY+OJHAcSJ2vjo2yxJo4Y4uUAK0tpEV2IIKkifHgx1xlNuc/dDcvWlj42q0m9ai/bwwPKM/Q5CK3Upk8zJShzBcF7ms/xHev9quXxqtHjLiK0w5j0bGgc8+zX6W2gEhecmgWyj5D3G+5awDTTEnSIM596cr7YEquxh5l6spO+NgyAgp7xym73qz7HGfP5m32Dslqz/ylGG6juJHCc1ODQJrq4LnAKOCPwMnHF3NF9wA87cTWH1qXucwUGpi032cXjkfLJd2ITfcAZ0fBPlkpwYY+QIwVwkX7uWaGzCBKmyRNTj/UPgWVMUcJGE8SANhz0fGLbWWkUzrXLR8W6ml8vTsEWFT8sk3nwh8aRj422s+wsQ9VcM957SLlmoQl4dO8u90VJh7I8+i11GQp6mhvOHoHxO4O+ejZPQaz5MN6fAKoau8fHOPtyaPRZy+9XC3EVhGmvvsCS0gTXBtgUmiEFw2ZErYWqQGn4wryRqe38ThZs4+XZ6gUimBUVw+Bo19cRKkdRFEEHbMBJMyOkjgNfN1rZAGRkvPPio25x8s="
}
{
    "msg": "Token delinked",
    "type": "UNAUTHORIZED",
    "success": false,
    "status": "failed"
}

Failed - Invalid Token

{
    "appSecret": "invalid_token",
    "userSecret": "R7bJbm8K06ky3OiGBe2QYJxlCiJay7b/Xgna2wsIwp6XBTpuXyJ8SdBY6VaXdsxvd/LJTpbiZDkvNMFQhrT/V0kgV62j9rgzgDqhBxdeKsQRpZ6oIp/6evrR67crnRdDuRF1HY+OJHAcSJ2vjo2yxJo4Y4uUAK0tpEV2IIKkifHgx1xlNuc/dDcvWlj42q0m9ai/bwwPKM/Q5CK3Upk8zJShzBcF7ms/xHev9quXxqtHjLiK0w5j0bGgc8+zX6W2gEhecmgWyj5D3G+5awDTTEnSIM596cr7YEquxh5l6spO+NgyAgp7xym73qz7HGfP5m32Dslqz/ylGG6juJHCc1ODQJrq4LnAKOCPwMnHF3NF9wA87cTWH1qXucwUGpi032cXjkfLJd2ITfcAZ0fBPlkpwYY+QIwVwkX7uWaGzCBKmyRNTj/UPgWVMUcJGE8SANhz0fGLbWWkUzrXLR8W6ml8vTsEWFT8sk3nwh8aRj422s+wsQ9VcM957SLlmoQl4dO8u90VJh7I8+i11GQp6mhvOHoHxO4O+ejZPQaz5MN6fAKoau8fHOPtyaPRZy+9XC3EVhGmvvsCS0gTXBtgUmiEFw2ZErYWqQGn4wryRqe38ThZs4+XZ6gUimBUVw+Bo19cRKkdRFEEHbMBJMyOkjgNfN1rZAGRkvPPio25x8s="
}

Response - Invalid Token Specified In Request

{
    "msg": "Invalid access token",
    "type": "UNAUTHORIZED",
    "success": false,
    "status": "failed"
}

FAQ

Is it possible to undo de-linking?

Unfortunately it is not possible to undo this operation. You can re-link the bank account via the Connect Layer again.