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": "METHOD_WIRE", "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);
var paymentMethodsService = new PaymentMethodsService(client); var request = new GetEntityPaymentMethodRequest("ENTITY_ID_HERE", "PAYMENT_METHOD_ID_HERE"); var response = paymentMethodsService.GetEntityPaymentMethod(request);
paymentMethodsService := paymentmethods.NewPaymentMethodsService(client) request := &paymentmethods.GetEntityPaymentMethodRequest{ Id: "ENTITY_ID_HERE", PaymentMethodId: "PAYMENT_METHOD_ID_HERE", } response, err := paymentMethodsService.GetEntityPaymentMethod(context.Background(), request)
prime_client = PrimeClient(credentials) request = GetEntityPaymentMethodRequest( entity_id="ENTITY_ID_HERE", payment_method_id="PAYMENT_METHOD_ID_HERE", ) response = prime_client.get_entity_payment_method(request)
primectl get-entity-payment-method --help
const paymentMethodsService = new PaymentMethodsService(client); paymentMethodsService.getPaymentMethod({ entityId: 'ENTITY_ID_HERE', paymentMethodId: 'PAYMENT_METHOD_ID_HERE' }).then(async (response) => { console.log('Payment Methods: ', response); })
A successful response.
Show child attributes
METHOD_WIRE
METHOD_SEN
METHOD_SWIFT
Was this page helpful?