CreateInvoice API does not allow multi-currency

Problem reported by Callum MacGregor 11 years ago

I need to be able to create an invoice in multiple currencies. The documentation does not mention it but there is a 'multicurrency' variable in Clearbooks_Soap_1_0_Invoice although I do not know what I should be setting it to as its not documented.

Aside from that I've tried a few things: -Setting bankPaymentId to a currency account (made no difference) -Prepending the unitPrice of the Clearbooks_Soap_1_0_Item with a '$' (actually made the invoice total 0.0

I can't think of anything else

1 Reply

Solved with the help of support.

The solution was to set multicurrency to the index of the currency you want, which is retrieved from ListEntities with a currency filter. You could hardcode the multicurrency but it could break if you add more currencies.

Reply to this problem

Attach images by dragging and dropping or upload
 

Your comments will be public and can be answered by anyone in the Clear Books community.

Find out what we do and who we are