Payments Guide

Quick Summary

When generating a receipt or Document Type 2 (חשבונית מס קבלה), a payment object is required. Each payment method has specific mandatory fields in addition to the standard requirements for Receipt.New and Document.New .


Payment Method Schemas

Expand the sections below to see the specific fields required for each payment type.

the payment type can be pulled from the Rivhit payment settings .

✍️ Check (צ'ק)

Required Fields

FieldTypeDescriptionExample
payment_typeint1 - check payment type.1
bank_codeintThe check bank code.4
branch_numberintThe check bank branch number.881
bank_account_numberstringThe check bank account number."12345"
check_numberintThe check number.111111


JSON Example:

"payments": [
        {
            "payment_type": 1,
            "amount_nis": 10,
            "bank_code": 4,
            "branch_number": 881,
            "bank_account_number": 12345,
            "check_number": "111111",
            "due_date": "02-04-2021",
            "description": "צק1"
        }
    ]
💵 Cash (מזומן)

Required Fields

FieldTypeDescriptionExample
payment_typeint2 - cash payment type.2


JSON Example:

"payments": [
        {
            "payment_type": 2,
            "amount_nis": 10,
            "description": "תשלום במזומן"
        }
    ]
💳 Credit Cards (אשראי)

Required Fields

FieldTypeDescriptionExample
payment_typeint4 through 8 (rivhit payment settings).4
bank_account_numberintLast 4 digits of the card.3348
check_numberintVoucher number.123456


JSON Example:

"payments": [
      {
         "payment_type": 4,
         "bank_account_number":3348,
         "check_number":123456,
         "amount_nis": 10,
         "description": "תשלום באשראי",
         "number_of_payments":1  
      }
  ]
🏦 Bank Transfer (העברה בנקאית)

Required Fields

FieldTypeDescriptionExample
payment_typeint9 - bank transfer payment type.9
bank_account_numberintThe bank account number.12345
branch_numberintThe branch number.881
bank_codeintThe bank code.4
check_numberintThe bank transfer reference.1111


JSON Example:

"payments": [
      {
         "payment_type": 9,
         "bank_account_number":12345,
         "branch_number": 881,
         "check_number":1111,
         "amount_nis": 10,
         "description": "העברה בנקאית",
         "bank_code": 4
      }
  ]

Custom Payment Types

For custom payment types defined in Rivhit Online, the implementation follows the same logic as Type 2 (Cash). Only the payment_type, amount_nis, and description fields are required.


Multiple Payments Settings

When all payments are for the same amount, you only need to define the payment once. By setting the 'number_of_payments' parameter, the system handles the replication for you—including the generation of consecutive check numbers.

 {
    "api_token": "0279BF82-CD57-49BA-837C-930F0E2EB805",
    "receipt_type": 1,
    "customer_id": 0,
    "last_name": "בדיקה",
    "first_name": "בדיקה",
    "price_include_vat": true,
    "currency_id": 1,
    "digital_signature": true,
    "payments": [
        {
            "payment_type": 1,
            "amount_nis": 30,
            "bank_code": 4,
            "branch_number": 881,
            "bank_account_number": 12345,
            "check_number": 20000030,
            "description": "תשלום צ'ק",
            "number_of_payments": 5
        }
    ]
}

The response will look like this: