Invoice API: How to get payment fee? - api

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.

Related

Xero API - Bank transactions missing

The Xero API doesn't seem to return all bank transactions through the bank transactions endpoint. At least some transactions that are attached to payments and transfers don't seem to be returned. Is there a way around this?
I had the same problem and here is what I got from Xero support:
There are some differences between the BankTransactions API endpoint and the Bank >Transactions screen in the UI.
Most importantly the endpoint does not return payments applied to invoices, expense >claims or transfers between bank accounts. Most of these can be retrieved using other >endpoints.
So it seems that you should use Payments API instead.
The workaround I did was to download both Bank transactions and invoices and union all transactions (I only needed references anyway), but it might make more sense to use Payments API.

Shopify API - Payments

I have been reviewing the API documentation for Shopify and am trying to figure out if the cost of an item selected from the 'Store' can be passed in a Get command back to a different website so a different website can charge for the Item along with other charges from a website ...and then once the payment goes through on the website, send a POST to shopify that the sale was complete and proceed with fulfilling the order?
Our software is newspaper software so we provide newspapers with subscriber web portals were customers can sign up and pay for a newspaper subscription.
We would like to offer the ability to add Single Sales items to what a customer purchases and we want to be able to do it in one payment transaction
I have reviewed the various Shopify API documentation but it is not clear if the API supports getting cost info and posting a successful charge back to Shopify to complete the fulfillment step. We are looking to be able to GET the cost for a selected single sale item passed to us from the Shopify API so that we can add it to the Amount we pass to the Payment Gateway we integrate with and when the payment goes through, send Shopify a success on the payment.
The ultimate goal is to have a customer make one payment that can include single sales items as well as a newspaper subscription or day pass.
You should do a POST and create an Order using the Shopify API once (at your side) are sure the payment has gone through.

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.

Running balance amount from Paypal API

I would like to get the running balance of my PayPal account after each and every transaction.
I'm getting the same from the portal in a nice report format under "balance" column.
But I get no running balance when I'm using "TransactionSearch" and "GetTransactionDetails".
There is an API name "GetBalance", but it gives me the total balance which is what I don't required.
It would be really appreciated if you please help me getting this running balance after each and every transaction using the above two APIs.
Thanks much,
Arnab
The closest API to what you are looking for would be the GetBalance API. This should be the same balance that you see available in your PayPal account.

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).