Invoice administration

When the invoice has been created, the next step is to activate it. This should not be done before you actually can deliver the goods the customer has ordered. The reason for this is that the number of due dates start ticking when the invoice is activated.

This section of the integration portal is divided into the following parts:

ActivateInvoice
If you can send everything at once, then you should use the ActivateInvoice function. This way, the whole invoice is activated and you’re done. Collector takes over to create the actual invoice and make sure it reaches the customer by e-mail or mail, all depending on the agreement. 

PartActivateInvoice
If you can't deliver all the goods at once, but only a part of the order, you should use the PartActivateInvoice function.  In this request, you set what goods is ready to be sent and the invoice is created for those specific rows. 

CancelInvoice
Let’s say that the customer cancels the order for any reason. Then you need to cancel the invoice as well. This is done by the CancelInvoice function as long as the invoice has not yet been activated. Once again, this is the reason why you should not activate the invoice before everything’s ready to be shipped! 

ReplaceInvoice
We also offer the ReplaceInvoice function. It’s used to change a pending invoice, meaning that you can add or remove invoice rows, change the number of articles or even the price. Please note that this function replaces the complete invoice with the new values. If you only want to update the price on one specific item, you will need to add all the other invoice rows as well.

SendInvoice
What if the customer hasn’t received the invoice by e-mail? Perhaps they wrote the wrong e-mail address in the checkout out or it got stuck in their spam filter. Then you can re-send it using the SendInvoice function.

ExtendDueDate
It’s also possible to extend the due date of the invoice using the ExtendDueDate function. This function should be used sparsely. One example when this could be used is if the customer has not received the original invoice. 

Please note that the StoreId parameter is mandatory to include in the request if you are selling to more than one country or having both consumers and companies as customers. This is used to distinguish between them.