Ngamia Invoice integration
Ngamia Invoice owns document creation, secure sharing, delivery, and customer records. Fupisha provides optional short redirect links for secure document URLs. If Fupisha is not configured or is temporarily unavailable, Invoice sends the original secure URL.
Create a production key
- Sign in to Fupisha and open API keys.
- Name the key
Ngamia Invoiceso it is easy to identify and revoke. - Select Create and delete links (
links:write). Invoice creates one redirect per document and supplies an idempotency key for safe retries. Choose an expiry period that matches your rotation policy. - Create the key, copy it once, and place it in Invoice’s server secret manager. Do not put it in browser code, a source file, or Git.
Configure Invoice
Set these server-only variables in Invoice’s protected runtime configuration. The API base remains api.fupisha.link; reference pages are hosted separately on docs.fupisha.link.
FUPISHA_API_URL=https://api.fupisha.link
FUPISHA_API_KEY=<the newly created key>Restart/redeploy Invoice after setting the values. The integration creates one redirect link per document send and uses a stable idempotency key for retries. It stores no client name, email address, or phone number in Fupisha metadata. The redirect points to the Invoice secure share URL.
Verify
Send a document using a non-sensitive test record. Confirm the recipient gets a fupisha.link URL, that opening it reaches the Invoice secure document page, and that the document remains protected by Invoice’s share-token behavior. If Fupisha is unavailable, the message should still use the original Invoice URL. Check Fupisha link analytics to confirm redirects.
Revoke the API key when Invoice no longer needs it, or rotate it by creating a replacement, updating Invoice’s secret, confirming delivery, then revoking the old key.