Skip to content

Instantly share code, notes, and snippets.

@mahmoudimus
Created January 11, 2013 20:20
Show Gist options
  • Save mahmoudimus/4513653 to your computer and use it in GitHub Desktop.
Save mahmoudimus/4513653 to your computer and use it in GitHub Desktop.
/*
If you're using us for JUST payouts, the bank account is deleted (to you)
% curl -u xxxxx: https://api.balancedpayments.com/v1/bank_accounts/BA52MGqVN6x5KOoDAm2GPq64
*/
{
"status": "Not Found",
"category_code": "not-found",
"category_type": "request",
"description": "<p>The requested URL was not found on the server.</p><p>If you entered the URL manually please check your spelling and try again.</p> Your request id is OHMbc9509d45c2b11e29bcc026ba7c1aba6.",
"request_id": "OHMbc9509d45c2b11e29bcc026ba7c1aba6",
"status_code": 404
}
/*
However, every bank account is associated internally with a marketplace, which is what the dashboard is designed to use.
If that's the case, then the API has no concept of any type of deletion in a marketplace, it does soft deletes. In this case,
the view returns a 'is_valid' = False
% curl -u xxxxx: https://api.balancedpayments.com/v1/marketplaces/TEST-MP608NMuYQidvYpQVBBcqhqW/bank_accounts/BA52MGqVN6x5KOoDAm2GPq64
*/
{
"routing_number": "121140399",
"bank_name": "SILICON VALLEY BANK",
"account": null,
"name": "Test User Six Should really not see this",
"bank_code": "121140399",
"created_at": "2013-01-11T19:25:24.422761Z",
"uri": "/v1/marketplaces/TEST-MP608NMuYQidvYpQVBBcqhqW/bank_accounts/BA52MGqVN6x5KOoDAm2GPq64",
"is_valid": false, // THIS IS FALSE
"meta": {},
"account_number": "xxxx5678",
"last_four": "5678",
"fingerprint": "42M5YeTjUIAT5jtfIuBGEW",
"type": "checking",
"id": "BA52MGqVN6x5KOoDAm2GPq64",
"credits_uri": "/v1/bank_accounts/BA52MGqVN6x5KOoDAm2GPq64/credits"
}
@dogichow
Copy link

Very helpful, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment