Coinbase Prime API
cURL
curl --request GET \ --url https://api.prime.coinbase.com/v1/entities/{entity_id}/payment-methods/{payment_method_id}
{ "details": { "id": "<string>", "symbol": "<string>", "payment_method_type": "UNKNOWN_PAYMENT_METHOD_TYPE", "name": "<string>", "account_number": "<string>", "bank_code": "<string>" } }
Get payment method details by id for a given entity.
PaymentMethodsService paymentMethodsService = PrimeServiceFactory.createPaymentMethodsService(client); GetEntityPaymentMethodRequest request = new GetEntityPaymentMethodRequest.Builder() .entityId("ENTITY_ID_HERE") .paymentMethodId("PAYMENT_METHOD_ID_HERE") .build(); GetEntityPaymentMethodResponse response = paymentMethodsService.getEntityPaymentMethod(request);
A successful response.
The response is of type object.
object
Was this page helpful?