Cancel a linked bank account
/v1/linked_bank_accounts/{linked_bank_account_id}/cancel
Cancels an existing linked bank account. This can be used to cancel a linked bank account before it has been reviewed. The linked bank account must be in 'created' status.
Path Parameters
linked_bank_account_id: string
Header Parameters
"correlation-id": optional string
"idempotency-key": optional string
"request-id": optional string
Returns
Cancel a linked bank account
curl https://sandbox.straddle.com/v1/linked_bank_accounts/$LINKED_BANK_ACCOUNT_ID/cancel \
-X PATCH \
-H "Authorization: Bearer $STRADDLE_API_KEY"
{
"data": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"account_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"bank_account": {
"account_holder": "account_holder",
"account_mask": "account_mask",
"institution_name": "institution_name",
"routing_number": "routing_number"
},
"created_at": "2019-12-27T18:11:19.117Z",
"purposes": [
"charges"
],
"status": "created",
"status_detail": {
"code": "code",
"message": "message",
"reason": "unverified",
"source": "watchtower"
},
"updated_at": "2019-12-27T18:11:19.117Z",
"description": "description",
"metadata": {
"foo": "string"
},
"platform_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
},
"meta": {
"api_request_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"api_request_timestamp": "2019-12-27T18:11:19.117Z"
},
"response_type": "object"
}Returns Examples
{
"data": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"account_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"bank_account": {
"account_holder": "account_holder",
"account_mask": "account_mask",
"institution_name": "institution_name",
"routing_number": "routing_number"
},
"created_at": "2019-12-27T18:11:19.117Z",
"purposes": [
"charges"
],
"status": "created",
"status_detail": {
"code": "code",
"message": "message",
"reason": "unverified",
"source": "watchtower"
},
"updated_at": "2019-12-27T18:11:19.117Z",
"description": "description",
"metadata": {
"foo": "string"
},
"platform_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
},
"meta": {
"api_request_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"api_request_timestamp": "2019-12-27T18:11:19.117Z"
},
"response_type": "object"
}