coinbase-commerce-node
coinbase-commerce-node copied to clipboard
Adding Additional Search Parameter to filter Charges By Code not working
I was trying to make this query to retrieve a Charge based on the Code
await Charges.list({ code:"SomeCode"});
This does not work even though a Internal request to following URL "https://api.commerce.coinbase.com/charges?code=SomeCode is send out to coin-base Endpoint, but rather than getting the specific charge Object based on code, all charges are being returned!
@privateblockchainsolutions List doesn't retrieve 1 charge unless that's all there is.
This is how you get a single charge https://api.commerce.coinbase.com/charges/{charge_code_or_charge_id}. The id looks like a GUID.
There has got to be a Charges.Show() or something?
Edit: Super late answer, I know. Hope you solved it!