iCredit
iCredit (Rivhit's payment gateway) integration for creating payment links and checking whether they were paid
The iCredit integration lets your agents create payment links on an iCredit payment page and check whether a customer paid. iCredit is Rivhit's payment product: when a link is paid, iCredit can issue the receipt in Rivhit automatically (a payment page setting). Paired with the Rivhit integration, an agent can find what a customer owes, send a link for it, and confirm the payment.
Prerequisites
You need:
- Payment Page Token — the GroupPrivateToken of the iCredit payment page the links should use. In iCredit management, open Payment Pages (דפי תשלום) → Payment Page List (רשימת דפי תשלום), click Edit (ערוך) on the page, and copy מזהה דף תשלום from Payment Settings (הגדרות הדף). See iCredit's guide.
Links take their defaults from the payment page's settings: currency, installments, and whether a receipt is issued in Rivhit and emailed to the customer. Set those on the page first.
Setup
- Open Integrations from the sidebar
- Select iCredit from the catalog
- Click Add Integration Config
- Give the config a display name (e.g., "iCredit")
- Enter the payment page token
- Save the config
Using in Your Agent
- Open your agent in Agent Studio. Under Model & capabilities → Tools, click Add tool and add the iCredit tools you need
- On a tool's card, choose your config under Set default credentials. It applies to every iCredit tool in the agent; click Override on one tool's card to give it a different config
- Tools are referenced as
icredit.create_payment_linkandicredit.get_payment_status
Available Tools
| Tool | Description | Action Type |
|---|---|---|
create_payment_link | Create a payment link for an amount (VAT included). Optionally books the payment to a Rivhit customer and closes the open Rivhit document it pays. Nothing is sent to the customer: the agent shares the link | Reversible |
get_payment_status | Check whether a payment link was paid, and see the Rivhit receipt or document it produced | ReadOnly |
Trigger: Payment completed
The icredit.payment.completed event starts an agent when a customer pays on the payment page, so a collections agent can mark the debt paid without polling get_payment_status.
- In Fruxon, open the iCredit config and copy its inbound webhook URL
- In iCredit, open Payment Pages (דפי תשלום) → Payment Page List, click Edit (ערוך) on the same page the config's token belongs to, and paste the URL as the page's IPN URL. Keep the IPN method on POST
- Add a trigger of kind
INTEGRATION_EVENTwitheventTypeicredit.payment.completedand that config
iCredit signs nothing, so Fruxon checks each notification twice before an agent runs: it must carry the config's own payment page token, and iCredit's Verify must confirm the sale and amount. Every confirmed payment on the page fires the trigger, including payments not made through an agent's link. Pass order to create_payment_link to match a payment to the debt it settles: the trigger carries it back. The payload fields are listed below.
icredit.payment.completed
Payment completed. Fire when a customer pays on the iCredit payment page and iCredit confirms the charge. Typical use: mark the debt paid, thank the customer, or stop reminders. Declined charges, J5 holds and token-only sales do not fire it.
Needs a connection: set integrationConfigId to the config to listen on.
| Field | Type | Description | Example |
|---|---|---|---|
payload.message_attributes.sale_id | string | iCredit sale id. | 9ef4d39c-6fbd-4606-91a6-dc7a8d077b9e |
payload.message_attributes.amount | string | Amount paid. | 330.00 |
payload.message_attributes.currency | string | Currency of the payment (ISO 4217). | ILS |
payload.message_attributes.order | string | The order reference given to create_payment_link: match the payment to the debt with it. | INV-1042 |
payload.message_attributes.reference | string | The numeric reference saved on the invoice, when the sale had one. | 12345 |
payload.message_attributes.customer_id | string | The payer's customer id in Rivhit. | 402 |
payload.message_attributes.first_name | string | Payer's first name. | Dana |
payload.message_attributes.last_name | string | Payer's last name or company name. | Levi |
payload.message_attributes.email | string | Payer's email address. | dana@example.com |
payload.message_attributes.phone | string | Payer's phone number. | 054-0000000 |
payload.message_attributes.description | string | What the payment was for (the first line on the payment page). | Invoice 1042 |
payload.message_attributes.number_of_payments | string | Number of installments, when the customer split the payment. | 3 |
payload.message_attributes.auth_number | string | The card company's approval number. | 0012345 |
payload.message_attributes.transaction_time | string | When the card was charged, as iCredit reports it (DD.MM.YYYY HH:MM:SS, Israel time). | 24.05.2026 09:52:51 |
payload.message_attributes.receipt_type | string | Type of the Rivhit receipt iCredit issued, when the page issues receipts. | 1 |
payload.message_attributes.receipt_number | string | Number of the Rivhit receipt iCredit issued. | 13657 |
payload.message_attributes.receipt_url | string | Link to the receipt's PDF. | https://api.rivhit.co.il/pdf/FileService.svc/GetDocument/... |
payload.message_attributes.document_type | string | Type of the Rivhit document iCredit issued, when the page issues an invoice-receipt. | 2 |
payload.message_attributes.document_number | string | Number of the Rivhit document iCredit issued. | 66618 |
payload.message_attributes.document_url | string | Link to the document's PDF. | https://api.rivhit.co.il/pdf/FileService.svc/GetDocument/... |
payload.message_attributes.recurring_charge_number | string | The charge's number within a recurring sale; absent for a one-off payment. | 2 |
Every event also carries the fields common to all events. To use one, see Start when something happens in another app.