How can I get transaction fee through Coinbase API? - bitcoin

How to get a transaction fee before sending transaction through coinbase API?
Or how to set a transaction fee for a transaction through coinbase API?

The Coinbase "fee" is the difference between the buy and the sell rate. At the moment It works out to about 1.8%. This is the overall fee, with the miner fees included.
You can query the difference between https://api.coinbase.com/v2/prices/BTC-USD/buy and https://api.coinbase.com/v2/prices/BTC-USD/sell

Related

What is the distinction between a payment and transaction in the Xero API?

What is the distinction between a payment and transaction in the Xero API? Does a payment create a transaction? Or are transactions only created when they are manually added? Are all organic transactions coming in as payments, rather than transactions?
A Journal entry is created for every type of transaction in Xero. So for the most comprehensive endpoint of the API I'd start there. However the greater level of detail will exist in the supplementary endpoints like invoices, bills, spent money, receive money.
There are other threads on here talking about the difference between "Bank Transactions" and the other API endpoints, as this actually excludes transactions that show in Xero but are not accessible through this specific endpoint.

Get recurring charges and fees from Yodlee API

How can i get reocurring charges and fees from Yodlee API?
Can i know which API to get the details and field name to fetch the above details from Yodlee.
And also for available credits.
Thanks in advance.
How can i get reocurring charges and fees from Yodlee API?
There is no specific API to return these data points. You will have to look at the transactions and identify these.
And also for available credits.
This value will be present in the account level or statement level information retrieved from this Data service for a card account.

Invoice API: How to get payment fee?

I am currently using the PayPal Invoice API to create, send, and get status of PayPal invoices.
I am getting Sent/Paid/Error status using the GetInvoiceDetails API.
See https://developer.paypal.com/docs/classic/api/invoicing/GetInvoiceDetails_API_Operation/
I am attempting to get the PayPal fee charged from a Paid invoice, but I cannot find it anywhere in the documentation.
How can I get the PayPal fee from a paid invoice using the Invoice API?
Regarding your query, Once you get the PaypalPaymentid in GetInvoiceDetails API call then you can make a further API call ( GetTransactionDetails) with that transaction id . This will give you the fee details charged for that invoice. I have tried at my end and it worked for me and should work for you as well.

Current PayPal Fees in web API?

Does anyone know if there is a publicly available PayPal resource that would allow me to calculate transaction fees in my Magento code?
For example, if someone buys something for $1.00, I'd like to know if $0.15 of that is a PayPal fee.
If there were a resource, like paypal.com/currentfees.xml or something that I could readout in my PHP code, I could that. Does it exist? I know there are different fees for different payment methods (e.g., AMEX) and fees could change at any time -> So it'd be good to have a dynamic way to calculate how much of Magento's order totals are really PayPal fees.
EDIT: To clarify, I'm not interested in charging customers more, just in knowing how much of my price is going to fees. For bookkeeping.
Thanks!
PayPal fees are not the same across accounts or even by transaction; there are different fees for cross-border transactions, PayPal Here transactions, large-merchant discounts, et cetera.
Have a look at https://www.paypal.com/webapps/mpp/paypal-fees for more detail.
So no, unfortunately you can't pull a resource to find the current fee.
However, PayPal does return the fees paid for each transaction in the API response.
For example, if you're integrated with PayPal Express Checkout, the DoExpressCheckoutPayment API (doc) is used to finalize a transaction. This API call returns a 'PAYMENTINFO_0_FEEAMT' parameter which contains the total fee amount paid for the transaction.
Should you wish to retrieve this information after the transaction has been completed; PayPal also offers the GetTransactionDetails API call (doc). This API call also returns 'FEEAMT' as a parameter.
Simply submit the TRANSACTIONID and read out the FEEAMT.
Note: Fees are only calculated on completed transactions. You won't get a FEEAMT back for any order or authorization-ID's (e.g. those starting with O-xxxxxxxx).

Parallel credit card payments (akin to Paypal Adaptive payments)

I'm not sure this is the right place to ask but anyway:
I have an e-commerce platform that I want to monetize based on a percentage of revenue made (eg. a store that uses my platform has an order for $100, so I get 1% or $1, while they get $99).
Currently I offer paypal and credit card payments (via my merchant bank) to all stores on the platform (ie. all payments made, regardless of the store, are through the same paypal and merchant account). I then pay these stores per month which is ok for the moment because there are only a few stores using the platform.
Moving forward I want to automate this process and ideally have it operate in real time.
Paypal have an "Adaptive Payments" API that allows chained or parallel payments on a single transaction processed in real time. This means I can skim my 1% and pass the rest of the money along my customer in real time.
I was wondering if there is a similar real-time service for Credit Card processing*? If not, is there a bank/merchant that allow API payment access so I can automate payments per day or week? OR should I just transfer all money from my bank to paypal and use this to pay my customers?
*I realise you can process credit card payments through Paypal without having to sign up, but this is less than ideal. I want the credit card processing to happen on my page as at the moment I'm seeing about 70% of orders using this over paypal.
I was wondering if there is a similar real-time service for Credit Card processing?
No there isn't. True merchant accounts do not allow for split payments. Only one entity can receive a payment and it must be the business the merchant account has been set up for. Receiving the payment for someone else is called factoring and is against all of the major credit card issuers' rules. If a merchant account is found to be factoring it will be closed and the merchant who owns the account will be blacklist. This will prevent them from ever having a true merchant account again. Additionally, there is no way to send money with a merchant account other then issuing a refund for prior purchases.
If not, is there a bank/merchant that allow API payment access so I can automate payments per day or week? OR should I just transfer all money from my bank to paypal and use this to pay my customers?
Other then using adaptive payments, this is definitely the easiest and most straight forward way to accomplish this.