Fiscalization
Panama: electronic invoicing
How Renteon issues Panamanian electronic invoices through WebPOS: what you need, where to enter it, what is sent when you save a document, and what the CUFE and QR code on your documents mean.
Last updated
In Panama, invoices are issued as electronic invoices (factura electrónica) that are authorised through the tax authority, the DGI. Renteon does this through WebPOS, an authorised provider: when you save a finance document, Renteon sends it to WebPOS, WebPOS has it authorised by the DGI, and Renteon stores what comes back: the CUFE (the unique code of the electronic invoice), the electronic invoice number, the authorisation number and a QR code.
In Panama, Renteon reports a document while you save it. Saving waits for the authorisation, and a document that WebPOS does not authorise is not saved at all. This way no invoice is issued without a CUFE, but it also means that saving a document takes longer than usual and needs a working connection to WebPOS.
This guide explains what you need from WebPOS, where you enter it, how Renteon fills in the invoice data, what appears on your documents and what to do when a document is refused.
What to prepare before you start
Renteon connects to WebPOS with your company's WebPOS account. Prepare the following:
- From WebPOS: your company licence code, your API key and the POS code of the point of sale Renteon should issue from (for example 001).
- The WebPOS branch code of each office (four digits, for example 0000 for the head office). You enter it as the office's Export code (see below).
- Your VAT rates: Renteon can send only the ITBMS rates 0 % (exempt), 7 %, 10 % and 15 %.
- Clean client data: company clients need a VAT ID (RUC), private clients an ID card or passport number, and addresses a postal code (see the section about client data).
If you want to try the connection first, WebPOS also runs a test environment; Renteon can use it with the Test mode option described below.
You need the role Application settings management to change Settings and Edit offices to change offices.
Turn on WebPOS
Go to Administration → Code book → Settings, click Edit and open the tab Fiscalization. The panel WebPOS Panama (Factura Electronica) is shown only to accounts whose country is Panama. Tick the checkbox in the panel header to switch the module on; the fields appear and all of them except Test mode are mandatory.
- Company License Code: your WebPOS company licence code.
- Api Key: your WebPOS API key.
- POS Code: the WebPOS point-of-sale code, for example 001.
- WebPOS Panama start finance document ID: documents whose ID is lower than this number are never sent, neither when they are saved, nor by the automatic retry, nor with the Fiscalize button. A new document gets its ID when it is saved, so the rule applies to new documents too. Use it when you switch the module on in an account that already has documents, so the old ones are left out. The ID of a document is in the ID column of the finance document list.
- Notifications E-mail: Renteon e-mails every rejection to this address, with the data that was sent and WebPOS's answer.
- Test mode: when ticked, Renteon sends documents to WebPOS's test environment instead of the live one.
Click Confirm to save.
Warning: Untick Test mode before you go live, and set WebPOS Panama start finance document ID to the ID of the first document you want sent or lower, never to a number in the future. Documents authorised in the test environment are not real electronic invoices, even though they get a CUFE and a QR code, and documents below the start ID are skipped without any message.
Several companies in one account
If your account issues documents for more than one company, each company has its own WebPOS settings. Open Administration → Code book → Companies (the entry is shown when the account has more than one company; you need the role Company editing), open the company and click Edit. The panel WebPOS Panama (Factura Electronica) has the same settings with shorter names: Company licence code, API key, POS code, Finance document (the start ID), Notifications (the notification address) and Test mode.
Click Confirm to save. Each document is sent with the settings of the company it belongs to.
The branch code of your offices
WebPOS needs to know which branch issued a document. Renteon sends the Export code of the document's office as the branch code. Open Administration → Locations → Offices, open the office, click Edit, fill in Export code in the Basic section of the Basic tab and click Confirm.
The branch code has four digits. If you enter fewer, Renteon adds leading zeros: 1 is sent as 0001, 12 as 0012. Enter the code exactly as WebPOS gave it to you.
The branch code is always taken from the office's own Export code field, also for documents of other companies; the export codes in the office's Companies tab are not used for WebPOS.
Warning: Fill in the Export code of every office that issues documents. Without it Renteon sends no branch code.
Client data on the invoice
Renteon fills in the customer part of the electronic invoice from the client of the document. Which identification is sent depends on the client:
- Company client: the client's VAT ID is sent as the RUC, as a taxpayer. A company without a VAT ID cannot be invoiced; the save stops with "WebPOS Panama - client '...' is a company/government entity without a VAT ID (RUC)."
- Public body (a company client with the company type Public company ticked in the section Type): the VAT ID is sent as the RUC, as a government entity. The VAT ID is required here too.
- Private person with the Foreigner box ticked: the passport number from the client's Documents section, as foreign identification. If the client has no passport, Renteon uses the ID card.
- Private person without Foreigner: the ID Card number from Documents, as a person with a local ID. If there is no ID card, Renteon uses the passport.
- Private person without an ID card or passport: sent as an end consumer, without identification.
If a client has several documents of the same type, Renteon uses the one with the latest issue date; a document without an issue date is taken first. Expired documents are still used, because only the number matters for the invoice.
Renteon also sends the client's name, the e-mail address, and from the client address selected on the document the Street and the Postal code. The postal code is sent as the customer location code, which in Panama is the township code (for example 8-8-9). When you create a document, Renteon selects the client's default address for you.
Example: a tourist from Canada rents a car. You record her in the address book as a private person, tick Foreigner and enter her passport under Documents. The invoice is issued to her passport number. A local client with only a driver's licence on file is invoiced as an end consumer.
Which documents are sent, and when
Renteon sends these finance document types: Invoice, Bill, Bill - payout, Advance payment invoice, Approval and Debit. A document is sent when it has at least one payment line (every payment type counts), belongs to a company with WebPOS switched on and has an ID equal to or higher than the start ID. Offer, Deposit and the other document types are not sent.
WebPOS receives each document as one of three electronic document types:
- Approvals and cancellations as credit notes;
- Debits as debit notes;
- all other documents as invoices.
Approvals and debits are sent with the Renteon number of the document they were created from.
Sending happens while you save. When you click Save on a new document, or cancel a document, Renteon sends it to WebPOS and waits until WebPOS has the DGI's answer. This can take noticeably longer than an ordinary save, sometimes close to a minute, so wait for the result instead of clicking again. When the answer is positive, the document is saved together with its CUFE. When it is not, the document is not saved and you see the reason (see the section about rejected documents).
Items, taxes and payments
Every item of the document becomes a line of the electronic invoice:
- the quantity and the unit net price in your domestic currency, before discount;
- the discount: as an amount if the item has a discount amount, otherwise as a percentage;
- the ITBMS rate: 0 % is sent as exempt, 7 %, 10 % and 15 % as the matching rates;
- the item name in the language of the user who saves the document (when the automatic retry sends it, in your domestic language), and an internal code of the service. An item that has no name in that language is sent with the name "unknown".
An item with any other VAT rate cannot be sent; the save stops with an error that contains "WebPOS Panama - unsupported ITBMS rate" and the rate.
Payments are sent in your domestic currency, converted with the document's exchange rate:
- Cash as cash and Checks as check;
- Credit card, Stripe, Monri, Windcave, PayPal and Adyen as credit card;
- Payment delay and Offset account as credit (no payment received yet);
- every other payment type, for example Bank transfer, as other.
Example: an invoice of 107.00 in your domestic currency, with one rental line of 100.00 at 7 % ITBMS, paid by Credit card. WebPOS receives one line with price 100.00 and the 7 % rate, and one credit card payment of 107.00.
CUFE, QR code and the WebPOS PDF
When WebPOS authorises a document, Renteon stores with the document the CUFE, the electronic invoice number, the authorisation number and date, the QR code and the signed electronic invoice.
The printed document (and the PDF you send to the client) shows:
- under the office name and address, the billing point (the branch and point-of-sale part of the electronic invoice number);
- the line CUFE: with the CUFE;
- the line Authorization number: with the authorisation number and date, when WebPOS returned an authorisation number;
- the QR code at the bottom. It contains the DGI's link for checking the invoice.
You can also get the official PDF of the electronic invoice from WebPOS: open the document and choose Download WebPos Panama PDF in the Actions menu (the item is there only for documents that were already sent). Renteon fetches the PDF from WebPOS and opens it in a new browser tab. If the document has no CUFE, you get the message "Finance document is not fiscalized (no CUFE)."; if WebPOS has no PDF for it, "WebPOS Panama PDF is not available for this document."
When a document is refused
Because the authorisation is part of saving, a problem stops the save. The document is not created and you see a message. The most common ones:
- "WebPOS Panama rejected finance document ...", followed by the DGI's reason: WebPOS received the document but it was not authorised. Renteon also e-mails the reason, the data sent and the answer to the Notifications E-mail address. Correct the cause (usually client data, an office code or a VAT rate) and save again.
- "WebPOS Panama timeout ..." or "WebPOS Panama communication error ...": WebPOS did not answer in time or could not be reached. Nothing is e-mailed. Try again a little later.
- "WebPOS Panama returned HTTP ...": WebPOS answered with an error, for example because of a wrong licence code or API key. Nothing is e-mailed. Check the settings.
- Messages about a missing VAT ID (RUC) or an unsupported ITBMS rate come from Renteon itself, before anything is sent.
If WebPOS answers that it has already processed the document (a duplicate), Renteon treats the document as authorised and stores the data WebPOS returns, instead of reporting an error.
Should a document ever be saved without a CUFE, the finance document list (Sales → Bills → Search) shows a red flag next to its amount with the tooltip Fiscalization required, and the search section Fiscalization / e-Invoice has a filter Fiscalization required to find such documents. Renteon's hourly fiscalization run tries them again (see Fiscalization and e-invoicing overview), and you can open the document and click Fiscalize at the bottom of the screen to send it at once.
Warning: While WebPOS cannot be reached, you cannot save documents that need fiscalization. Save them again once the connection is back.
Once WebPOS is set up, issuing invoices works as before: you save the document, wait for the authorisation and hand over a document that already carries its CUFE and QR code.
Related guides: