v1
latestOpenAPI 3.0.02026-08-04880393.1 KBReceipt.New
post/online/RivhitOnlineAPI.svc/Receipt.New
Request body
Example request
{
"api_token": "DECD03E5-E35C-41E8-84F7-FBA2FB483928",
"receipt_type": 1,
"last_name": "Israeli",
"first_name": "Moshe",
"address": "Ben Yehuda 1",
"city": "Tel Aviv",
"zipcode": 6329302,
"phone": "054-4444444",
"acc_ref": "Ab1234567",
"id_number": 123456790,
"issue_date": "01-01-2025",
"issue_time": "10:30",
"reference": 12345,
"comments": "Comments will be here",
"currency_id": 1,
"crm_user_id": 5,
"language": "he",
"email_to": "a@a.com",
"email_bcc": "a@a.com\"",
"digital_signature": true,
"signature_pin": "Ab123",
"payments": [
{
"payment_type": 2,
"amount_nis": 100.5,
"due_date": "08-01-2025",
"check_number": 100000028,
"bank_code": 11,
"branch_number": 118,
"bank_account_number": "300111",
"amount_mtc": 25,
"description": "Cash Payment",
"number_of_payments": 1
},
{
"payment_type": 5,
"amount_nis": 200.75,
"due_date": "10-01-2025",
"check_number": 100000029,
"bank_code": 1,
"branch_number": 119,
"bank_account_number": "300112",
"amount_mtc": 50,
"description": "Visa Payment",
"number_of_payments": 3
}
],
"check_only": true,
"request_reference": "abcdefg-&123456789",
"prevent_duplicates": true,
"create_customer": true,
"send_mail": true,
"find_by_mail": true,
"find_by_id": true,
"find_by_acc_ref": true,
"find_by_phone": true,
"receipt_number": 1000,
"closed_document_type": 1,
"closed_document_number": 115,
"country": "Israel",
"state": "Texas",
"foreign_zipcode": "ab123456",
"logo_url": "https://www.rivhit.co.il/wp-content/uploads/2023/01/logo-main.svg ",
"items": [
{
"item_id": 0,
"catalog_number": "abc123",
"description": "item test"
}
]
}Response
Success - Receipt Created
Example response
{
"data": {
"document_type": 1,
"document_number": 16402,
"document_identity": "54e17b1f-3842-459b-a5cf-3d2a3682a2e5",
"document_link": "https://api.rivhit.co.il/pdf/FileService.svc/GetDocument/000008888/54e17b1f-3842-459b-a5cf-3d2a3682a2e5/true/01_016402",
"amount": 10
}
}