Using Python script, I want to create an invoice and everything mostly works.
payment_terms_in_days is mandatory. When set to any number it is reflected on the invoice but I want to use the default payment terms for the account the invoice is for.
Any suggestions?
Hi Georgi,
I’m Matt, an engineer at FreeAgent - sorry for the late reply, this one slipped through the cracks!
We don’t support default options for payment terms over the API currently. If you’re still struggling with this, a workaround would be to call the show endpoint for the invoice’s contact in your script - if the contact has a default_payment_terms_in_days
property, it will be returned in the response, and you can pass that value to the invoice create endpoint.
I hope that helps!
Thanks Matt,
I have moved on from that, at the time I managed to make it work somehow.
Will keep your suggestion in mind when I revisit it next time. I think it is elegant solution because it honors the already set terms for that customer/contact.
I will try to do an integration with an internal system (in development) and see how that will potentially work.