uphold / docs

Uphold API Reference
https://uphold.com/en/developer/api/documentation/
48 stars 39 forks source link

Get Card Details by bitcoin address #13

Closed naps62 closed 9 years ago

naps62 commented 9 years ago

It seems this endpoint accepts not only a card id, but also a bitcoin address id. I tested it with the following values:

And for both of them I get the same result:

@address={"bitcoin"=>"1LbHhVFjLeC3hVhW4FXrwu7MNUCkoGTwA5"},
 @addresses=[{"id"=>"1LbHhVFjLeC3hVhW4FXrwu7MNUCkoGTwA5", "network"=>"bitcoin"}],
 @available="0.001",
 @balance="0.001",
 @currency="XAU",
 @id="2daa59e8-89c5-4cbe-99fc-f66435024bcf",
 @label="XAU card",
 @last_transaction_at="2014-12-02T00:29:45.507Z",
 @position=7>

I realize this is probably intended, but shouldn't it be documented as well?

ruimarinho commented 9 years ago

@naps62 thanks for the report. We've submitted a PR to add a clarification about the card lookup flexibility.