Recreate Square deposit report via API - square-connect

I would like to generate a Square deposit report via the API so I can import it as an invoice into Quickbooks desktop. I have tried ListTransactions and Settlements but each is missing some items.
What I'd like to see:
Gross Sales
Returns
Discounts
Tax collected
Tips collected
Gift card sales
Fees
Square capital payments
How do I pull all these together?

Have you tried out V1 ListPayments? It will return itemization, total money, tax, discounts, tips, card brand (which should show you if it's a gift card), refunds, and Square fees. Regarding Square capital payments, I believe you'll still need to utilize ListSettlements, as ListPayments focuses on payments made by your customers only.
Reference: https://docs.connect.squareup.com/api/connect/v1#get-payments

Related

Google Play Invoicing: Which entity should be the recipient of an Invoice for selling IAPs?

I'm from EU (not Ireland) and need to invoice one of the Google entities for all IAP transactions that were in my app in the last month but I just can't, for the love of me, find any info on any of my accounts as to whom should I invoice. I realize that I don't need to actually send the invoice anywhere if I'm from outside of Ireland but I still need to create the invoice for the sake of taxes in my country.
I found two Google entities that might be suitable but am still not sure which one will it be (as I didn't actually receive the payment yet):
GOOGLE IRELAND LIMITED vat number: IE 6388047 V
GOOGLE COMMERCE LIMITED vat number: IE 9825613 N
Does any one have any experience with that and could point me in the right direction?
Another question is about the Google commission. As far as I know, I can count this commission as income cost but I'm still not sure on how to do that properly yet. Will I get an Invoice for this amount from Google after the actual payment is done? Or do I have to calculate this value from the monthly reports available in Google Play Console?
Any help would be greatly appreciated.

Is it possible to complete payments by CASH instead of CARD?

I'm trying to create a payment by CASH on Square but I see there's only field source_id represents the card information.
So is there any way to charge the order by cash on Square?
Currently it is not possible to create cash transactions via our eCommerce APIs (Payments API). You can only create cash transactions using one of our in-person APIs or basic Square POS application.

Magento Order gets closed when doing a partial refund with adjustment fee in it

I have an issue in magento enterprise as follows
Place an order with 3 items in it
Redeem some money from the
customer's store credit when placing the order. For example if 200
is the total order amount, 50 should be paid from the customer's
store credit and 150 should be paid as normal payment.
Ship the order via backend
Create credit memo for any 1 item in the
order.
Add 1 in the adjustment fee field in the credit memo form
Save the credit memo.
The credit memo is created successfully, but the order status becomes closed. Due to this I am not able to raise another credit memo next time If I need to refund any or the remaining items in the order. This issue happens only if customer has redeemed his store creid in the order amount.
Could somebody please help me on this?

QB add sales tax to item

I am exporting invoices from my app to QB local version. I cannot find any way to add sales tax, which is calculated in my app, to the QB invoice.
I am exporting multiple items (in my case services), to a new QB invoice and nothing related to sales tax seems to work - like QBFC12.IInvoiceAdd SalesTaxLineAdd, etc. - all "not available in this edition of QB".
Does QB allow me to add the sales tax, or will it only use the tax that is set for each of my items in QB?
-Rick
What you're asking isn't really a programming question... it's more of an accounting question.
The QuickBooks API exactly mirrors the QuickBooks GUI. So, whatever you do in the GUI to add sales tax, you should do in the API. How do you do it in the GUI?
Soooo... let's talk about QuickBooks normally does sales tax in the GUI:
You mark each line item with a Sales Tax Code of either NON (for non-taxable) or TAX (for taxable)
At the bottom of the invoice, you choose a specific Sales Tax Item (e.g. "California Sales Tax")
QuickBooks then calculates tax for you by using the tax rate from the Sale Tax Item * (the sum of the TAXable line items)
It shouldn't be terribly surprising then you look at the QuickBooks OSR API documentation, and you see line item definitions like this:
<InvoiceLineAdd>
...
<Amount>29.95</Amount>
<SalesTaxCodeRef>
<FullName>Tax</FullName> <!-- valid values here are one of your Sales Tax Codes, usually "NON" or "TAX" -->
</SalesTaxCodeRef>
</InvoiceLineAdd>
And, at the bottom of the InvoiceAdd specification, an option for specifying a Sales Tax Item like this:
<ItemSalesTaxRef>
<FullName>California Sales Tax</FullName> <!-- valid values are any of your existing Sale Tax Items in QuickBooks -->
</ItemSalesTaxRef>
With all that said, we have to pay special attention to this portion of your question:
I cannot find any way to add sales tax, which is calculated in my app,
to the QB invoice.
The answer above let's QuickBooks calculate the tax amount from the tax rate vs. taking what you already calculated in your app. Sooooo... the rule still stands - the QuickBooks API mirrors the GUI. So, how do you do this in the GUI right now?
The correct answer is: ask your accountant how he wants you to do it.
More than likely, the answer is:
Create a new Sales Tax Item with a 0% tax rate named "Refer to Invoice"
Add a new line item to the invoice that uses ItemRef/FullName to refer to the correct Sales Tax Item (e.g. "California State Tax")
On that line item, specify the actual tax amount calculated in your app
If that's what he wants, then you should do exactly that in the GUI. Treat it just like any other invoice line item.

how can i decrease the product price on cart page?

If the user has an existing account balance, I'd like to give him the option to specify how much of his previous balance to apply to the item and sync this info with the cart and order. I have already implemented the user's account balance, both on the front and back end.
Would a coupon-like system work best, or should I try something else?
Thanks in advance.
I would let the customer decrease its cart total with the balance would be more simple / logic for the customer also (?)
What E-commerce solution do you use? Magento(?) If so there are coupon extensions that can handle this.
You could also build a simple balance system where users would see there balance in there account ( if such feature is implemented) or just mail them a message with a unique code that you save in DB + the value of balance then use this code as a coupon on checkout.
We have created quite a few e-commerce solutions up to date. Usually, when user balance is involved, then what you do is create two transactions referred to one invoice. In the first transaction specify the amount taken from balance, where as leave the other transaction for whatever checkout method you use. Upon callback from the checkout, see if the balance paid matches the invoice to mark it as paid respectfully.
Alternatively, you can use discount - decrease user balance and add "discount" to the order. It all depends on your accounting needs and preferences.
On Amazon they allow you to apply any unused balance to the existing order. Its when you checkout that they say you have $150 credit on your account, would you like to apply this to your order, it defaults to yes in a tick box.
Its quite neat and simple, it doesn't allow you to apply a part amount from what I've seen.
Then when you go to payment you pay $total - balance.
So if you have $200 total, the payment via credit card would be for the $50.

Resources