Skip to main content
Question

Instant Invoice Migration Job

  • November 26, 2025
  • 1 reply
  • 5 views

Forum|alt.badge.img+11

Problem:

I have a lot of instant invoices to make. So I made a few migration jobs to assist with this. I can create a header, add lines, add tax lines, this all goes well.

There are 2 problems

  1. The account isn't set when creating the line
  2. There's also supposed to be postings created in the background, these are not created and I can't really find a way to create them. There's a Create_postings function in the INSTANT_INVOICE_API, but it's private, so you can't use it outside it's intended purpose. 

I've looked past many INSTANT_INVOICE related API packages, but I can't find how to trigger the create posting method. Does anyone have experience with this specific topic?

1 reply

Forum|alt.badge.img+17
  • Superhero (Employee)
  • November 26, 2025

Hi ​@JoDe,

I don’t have experience with migration of instant invoices, and I’m not even technician, but I guess that, whenever you migrate data, the invoice record is created in Preliminary status. Then, in order to post the invoice, you will probably need to emulate the Print Invoice option:
 

 

Please, check if there is a public related method to call this process.

Regarding the Account, if you are not providing this data in the migration job, then you will need to fetch it from the sales object. I guess there is a get method to retrieve this info.

Hope this helps!

Regards,

Pilar