Adding "Delayed Charge" to Customer via QBO API v3 - intuit-partner-platform

In QB Online we have the ability to add a "Delayed Charge" to a customer, and then assign selected charges to an invoice later. But I can't find anything in the API doc that tells me how to insert these charges programmatically. Am I missing something, or is it just not there yet?

This delayed charge when assigned to an Invoice from UI comes up as StatementCharge in Invoice Linked Txn if you query the API explorer.
This entity- StatementCharge is not yet supported by our service.

Related

Integrating Paypal Payment and Invoicing APIs

I have been manually issuing invoices to charge my clients for services using Paypal.
Now I am creating an interface to allow them to purchase the services automatically on my website.
I also want to show them a history of their purchases. However, I cannot show a history of paid invoices using the Transaction Search API; I need to use the Invoicing > Search Invoices API.
I have used the Paypal Payments API to manage the payment side of new products, which now correctly produces an itemised transaction and allows the customer to checkout. But this does not produce an invoice.
How can I simultaneously produce an invoice (i.e which can be retrieved by the Invoicing API to show previous payments) and allow the customer to pay it? It seems like the Invoicing API works around the idea of sending an invoice to client by email, but this is unnecessary. I want them to pay it immediately (and already have the Payment API setup for this).
So what would a useful workflow be?: Use my Paypal Payment API to receive and authorise the payment, and on authorisation, use the Invoicing API to produce an invoice which reflects this and then updates the invoice status to paid? Or am I missing something easier here?
The Invoicing API is not meant to be mixed or used with any other API. It is for generating invoices to be sent by email or in link form.
General ecommerce payment processing (without invoice links) is entirely separate, there is no crossover. You should ensure you are using the current v2/checkout/orders API to receive new payments, not older v1 APIs.
As far as displaying a list of previous purchases to your customers, you shouldn't reply on PayPal for this (except perhaps in the case of invoices since this is part of the point of offloading invoice management to PayPal). But for normal web purchases, PayPal is not a database -- it is a payment processing service. Keep track of all your own order information, and simply store PayPal transaction IDs when they complete for your own accounting records -- but the ID you reference with the customer should be your own unique order ID, which you can pass to PayPal in your purchase_units[0].invoice_id when you create an order for checkout approval.

PayPal REST Subscriptions API not showing price in order summary

I am testing the PayPal REST API for subscriptions in the sandbox environment, and have noticed that, when going to the approval URL returned after creating an agreement, no price is shown under the order summary pane on the left of the page. A description is shown but no price/tax etc.
The plan id is passed to the call to create an agreement, which contains the information that I would expect to see as a user when approving the payment. Is this a bug or is there something that I am supposed to enable in the merchant account, or perhaps something additional that needs to be sent when creating the agreement? I've read other posts regarding this on stack overflow (although they predate the creation of the subscriptions REST API) talking about passing a transaction field, but this isn't valid in the subscriptions create agreement schema.
Your observations are (currently) correct. As REST API based Billing Plans are based on Express Checkout Recurring Payments, you're going to see a similar behavior.
Right now, there are two options:
You populate the description with more agreement details.
You pass a regular description and make sure the customer is aware of the billing terms before your execute the agreement.
Going forward, we're likely going to include this info in some later updates. I'm following up with that to make sure a user story is filed for this.

Are recurring invoices and other items available via the Quickbooks Online API

I'm looking to automate the creation of invoices and the quantities for line items. I would like to have an invoices for a customer act as a template for the next time the invoice is created so that the line items and their corresponding prices are kept for that company, but the quantity for the item would be changed by the API.
Recurring templates seem like the best solution for this to create a template for that company's invoice, but I don't see a way to query for existing recurring items. Is this possible via the Quickbooks Online API?
The supported entities are listed on Intuit's website right here:
https://developer.intuit.com/docs/0025_quickbooksapi/0050_data_services
If it's not on the list, it's not supported.
Unfortunately, recurring templates are not on the list, which means they are not supported.
With that said... recurring templates are the wrong way to approach this - that's an incredibly over-complicated and error prone way to do this since you'd have to generate them and then query for what was generated and then modify it.
Why don't you just use the API to actually create the invoices? That should be super simple to do...
Better yet, if your task is to do basically metered/usage-based billing, why not use a QuickBooks integrated recurring billing platform to do the work for you?

Get transaction by invoiceId in paypal api

I'm looking for the correct endpoint to use in the Paypal API for looking up a transaction by invoice id. We submit the invoice id to paypal when redirecting customers to PayPal for payment on their site. In order for us to resolve abandoned carts correctly, I need to look these invoice ids back up in paypal to see if there are completed transactions or not. Thanks.
You can use the TransactionSearch API, and use the INVNUM as the criteria to search by. The API Endpoint will depend on if you are trying this on live or sandbox, what type of format you are using, and what type of authentication you are using. You can find a list of the endpoints here.

How to get inventory items from a PayPal API?

I'm building inventory management software for Square and PayPal. After reviewing PayPal's RESTful API documentation, its not clear how I can retrieve inventory items from a merchant on their behalf.
For example, before a transaction is made or an invoice is created, I'd like to get their inventory items to beging improving the inventory management experience.
Does anyone know how I can retrieve inventory items from a PayPal API?
Thanks in advance - Royce
PayPal doesn't provide an inventory management system/service for merchants. The item list you see in the Restful API, is how a merchant can indicate what items the buyer is purchasing so PayPal can display that on the Payment confirmation page. If you are talking about how to obtain that information then you can do a GET on the payment resource id, which will include the items info that was originally provided by the merchant.