422 error on Qonto - Create an Invoice module

:bullseye: What is your goal?

Create a new Invoice in Qonto

:thinking: What is the problem & what have you tried?

Hello,

I have a 422 error on the Qonto - Create a Client Invoice module.
It is the last module of my scenario
It happens after a first Qonto module, Create a Client, that works perfectly fine: it creates the Client in my Qonto, so the Qonto integration works fine.

However, the Create a Client invoice does not work, as I get “[422] tin_number must have a value.” message error.
I have checked twice, no mandatory properties are missing on the module.

Do you have any tip to fix my scenario ?

Thank you so much for helping
Brendan

PS: the scenario will have several branches, that’s why I already set up a router. But I will improve it only if I fix this issue :smiling_face_with_tear:

:clipboard: Error messages or input/output bundles

[422] tin_number must have a value. Origin: Qonto.

:link: Create public scenario page

:camera_with_flash: Screenshots (scenario flow, module settings, errors)

Hey Brendan,

and does tin_number have a value? Can you show what the input looks like and what you are mapping inside the module?

This is important, because Qonto only operates in specific countries, and requires a paid account. Therefore we can’t simply create an account to take a look at the module’s fields before we can assist you.

To allow others to assist you, please provide the following:

1. All Relevant Screenshots

We need to see what you’re working with to give you the best advice. Screenshots are important because Make is a visual editor — a picture provides us with more context.

It would help us identify the issue by having screenshots of:

  • the full scenario, and the zoomed in parts of the scenario that you are referring to (if your scenario is huge),
  • a full scenario run/execution from the history (showing output “speech” bubbles),
  • relevant module fields (showing how you’ve used any built-in functions, and how you’ve mapped the variables),
  • relevant filters between modules (showing which operators and any built-in functions you’ve used, and how you’ve mapped the variables),
  • relevant module input/output bubbles,
  • if applicable, any error messages,
  • and if applicable, any external services (spreadsheet headers/ sample data/ regex101.com/ etc. to show the item/ record exists, and is set up correctly).
Need help❓View instructions ◀

We would appreciate it if you could directly upload screenshots here instead of linking to them outside of this forum. This allows us to zoom in on the image when clicked, and also having improved privacy from third-party sources.

Taking Screenshots

  • Microsoft Windows: Take screenshots using the “Windows Snipping Tool”, by pressing either PrtSc or WinShiftS keys on your keyboard.
  • MacOS: Take screenshots by pressing CommandShift4 keys on your keyboard.

Uploading Attachments

  • Drag image files directly into the rich-text editor, or
  • Click on the upload button in the editor toolbar to select files:

Sorry for the delay: actually, ‘tin_number’ does not match any property of the Qonto module, neither any property within Qonto invoices (in their interface). It looks like it’s a missing “mandatory” property in the module itself… I have attached some screnshots as suggested by @samliew :slight_smile:

I dunno if you can see the full scenario, but it goes like this:

  1. Custom webhook from a Notion database called “Devis”
  2. Find Notion page “Company” related to “Devis”
  3. Find Notion page “Contact” related to “Devis”
  4. Set variables (split Full name in First Name & Last Name)
  5. Router (as I intend to have several routes in the future)
  6. Create a new Client in Qonto
  7. Update Notion “Contact” and “Company” with Qonto ID generated in 6)
  8. Create Qonto invoice with data from webhook and related to created Qonto client in 6)

Steps from 1 to 7 works perfectly fine, so the Qonto integration is OK imho.

TIN is a tax reference, so it should most likely be a field under “Witholding tax”.

Please provide a screenshot of the module fields, not of the panel when you “Run this module only”.

Hope this helps! If you are still having trouble, please provide more details.

— @samliew

2 Likes

Sorry if the screens do not help. The module has many fields, I made a video screenshot.
I am referring to Qonto Developers doc, just to check the POST method that I believe the module is “reproducing”. It says that withholding tax is not mandatory. I have not found the “tin_number” anywhere in their documentation :frowning:

https://docs.qonto.com/api-reference/business-api/expense-management/client-quotes-notes/client-invoices/create-a-client-invoice#create-a-client-invoice

I found the solution thanks to your phrase “TIN is a tax reference”. The error comes from the previous module, Create a Client in Qonto: it has a property “Tax identification number”, not mandatory, that does not prevent Client creation in Qonto, but is asked (mandatory) in Qonto to create an Invoice !

I fixed it and now it works, so thank you guys for your answers & patience :slight_smile:

1 Like

Aha! Thanks for the update, and glad you got it resolved.

:tada:

1 Like