cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Get unlimited expert tax help and powerful accounting in one place. Check out QuickBooks Online + Live Expert Tax.
hutch_illumination_labs
Level 2

Payments URL via API

I am using a third party CRM to generate my invoices and add new products. I then sync that information to QBO to create a corresponding invoice with the same products/services. Today, we use QB Payments to capture the payments. However, I don't want to use the QBO invoices, I'd rather use my CRM's invoices. I'm using API's to move the data between the systems. 

 

Here's my problem: I need the URL that gets generated whenever I specify that an invoice should include ACH and CC payment options. I simply want to bypass the QBO invoice and go straight from CRM invoice to payment gateway through QB Payments. I need to get the URL from QB API's and insert it into my invoice. I'm not seeing anywhere int he documentation that allows this. How do I do this? What am I missing? 

Solved
Best answer July 06, 2023

Best Answers
Maybelle_S
QuickBooks Team

Payments URL via API

I can help you move data between the systems, hutch_illumination_labs.

 

Let me route you to the best support to assist you with this QuickBooks Online API concern.

 

While the QuickBooks Community can provide answers and troubleshooting solutions to specific questions, there are some things about which only our Intuit Developers can provide specific information about your concern.

 

We have a separate forum where you can interact with fellow developers, product experts, and engineers about software, QuickBooks API concerns, or developer license-related questions. That said, I encourage posting this question to our Intuit Developer Community. They have the tools and resources available to assist you with your concern.

 

Here's how:

 

  1. In your browser, enter this link: https://help.developer.intuit.com/s/
  2. Choose your QuickBooks product.
  3. Select the Ask a Question option.
  4. Press Sign In.
  5. Use your Intuit login credentials.

 

Additionally, I’m adding this resource where you can access our self-help articles: QuickBooks Online guide. These resources contain topics that will guide you in efficiently handling your taxes, payroll, account information, banking tasks, sales or expenses related-activities, and so on.

 

Keep me posted if you need a hand with other QuickBooks-related concerns. I'll be around to provide further assistance.

View solution in original post

9 Comments 9
Maybelle_S
QuickBooks Team

Payments URL via API

I can help you move data between the systems, hutch_illumination_labs.

 

Let me route you to the best support to assist you with this QuickBooks Online API concern.

 

While the QuickBooks Community can provide answers and troubleshooting solutions to specific questions, there are some things about which only our Intuit Developers can provide specific information about your concern.

 

We have a separate forum where you can interact with fellow developers, product experts, and engineers about software, QuickBooks API concerns, or developer license-related questions. That said, I encourage posting this question to our Intuit Developer Community. They have the tools and resources available to assist you with your concern.

 

Here's how:

 

  1. In your browser, enter this link: https://help.developer.intuit.com/s/
  2. Choose your QuickBooks product.
  3. Select the Ask a Question option.
  4. Press Sign In.
  5. Use your Intuit login credentials.

 

Additionally, I’m adding this resource where you can access our self-help articles: QuickBooks Online guide. These resources contain topics that will guide you in efficiently handling your taxes, payroll, account information, banking tasks, sales or expenses related-activities, and so on.

 

Keep me posted if you need a hand with other QuickBooks-related concerns. I'll be around to provide further assistance.

markroot
Level 2

Payments URL via API

Did you ever find a solution for this?  We're needing to do the same thing.

hutch_illumination_labs
Level 2

Payments URL via API

Yeah, I eventually figured it out. In short, I created a field in the invoice called Quickbooks_Invoice_URL that holds the URL. I then make a call out after the invoice is created where the parameter include=invoiceLink is in the URL. That will send you back a value under the invoice object called invoiceLink. Then add that field into your invoice template as an action and anytime any clicks your button in your template, they are taken to that link to pay the invoice.  

 

"https://quickbooks.api.intuit.com/v3/company/{qboInvoiceId}/invoice/{qboInvoiceId}?minorversion=65&i..."

 

Reach out to me if you get stuck, happy to help you continue to figure it out. 

 

markroot
Level 2

Payments URL via API

Perfect.  Thanks so much.  Exactly what I needed.

markroot
Level 2

Payments URL via API

Perfect.  Thanks so much.  Exactly what I needed.

markroot
Level 2

Payments URL via API

Thank you for your help.

 

I have some question on this

I am sending the POST request after creating the invoice as below

 

Endpoint=callout:QuickBook_Online3/v3/company/913034[removed]/invoice/41539?minorversion=65&include=invoiceLink, Method=POST

 

I am getting Response as 200 but within this response its showing error as

 

{"Fault":{"Error":[{"Message":"An application error has occurred while processing your request","Detail":"System Failure Error: java.lang.NullPointerException","code":"10000","element":"SystemFailureError"}],"type":"SystemFault"},"time":"2024-02-21T03:09:47.148-08:00"}

 

But what Request Body do we need to send in the POST Request, could you please help me with this, that would be great help.

 

Thanks again

Awaiting your reply.

hutch_illumination_labs
Level 2

Payments URL via API

Try a GET and not a POST

markroot
Level 2

Payments URL via API

Thank you for your quick reply.

 

I tried sending GET request, it gives me 200 response but within response body it give me the same error message as shown below.

 

GET

[Endpoint=callout:QuickBook_Online3/v3/company/9130XXXXXXXXXXXX/invoice/41556?minorversion=65&include=invoiceLink, Method=GET]

 

Response

{"Fault":{"Error":[{"Message":"An application error has occurred while processing your request","Detail":"System Failure Error: java.lang.NullPointerException","code":"10000","element":"SystemFailureError"}],"type":"SystemFault"},"time":"2024-02-22T04:36:14.617-08:00"}

 

Also I would like to ask do we need to turn on the Accept Credit Cards in Account and Settings for this to work?

 

Thank you for your help.

markroot
Level 2

Payments URL via API

This error was overcome by populating the Email address field on the Invoice and setting "Accept Credit Cards" to true.  Once that was done, we were able to get the Payment Link.

Get answers fast!
Log in and ask our experts your toughest QuickBooks questions today.

Need to get in touch?

Contact us
Sign in for the best experience
Ask questions, get answers, and join our large community of QuickBooks users.
Sign In / Sign Up