v1

latestOpenAPI 3.0.02026-08-04880393.1 KB

SaleChargeToken

post/API/PaymentPageRequest.svc/SaleChargeToken

Request body

GroupPrivateTokenstring uuid required

Payment Page Identifier.

Default: No

CreditcardTokenstring uuid required

Credit Card Token.

~ Requires a Tokenization service Default: No

IPNMethod1 | 2 nullable

IPN Method Type.

Options: (1=POST 2=GET) Default: Page settings

IPNURLstring url nullable

IPN URL - After Success Payment.

Length: 15 to 500 Default: Page settings

ExemptVATboolean nullable

The Payment Document VAT Settings.

Default: Page Rivhit settings

Referenceinteger nullable

The Reference Value - Will be Saved in the Invoice.

Range: 0 to 9999999999 Default: No

Orderstring nullable

The Sale Order Value.

Length: 1 to 15 Default: No

EmailAddressstring email nullable

Customer Email Address.

Length: 6 to 50 Default: Rivhit Customer@

CustomerLastNamestring required

Customer Last Name/Company Name.

Length:* 1 to 30 Default: No

CustomerFirstNamestring nullable

Customer First Name.

Length: 1 to 20 Default: Rivhit Customer@

Addressstring nullable

Customer Address.

Length: 1 to 30 Default: Rivhit Customer@

POBinteger nullable

Customer Post Office Box.

Range: 0 to 9999999 Default: No

Citystring nullable

Customer City.

Length: 1 to 20 Default: Rivhit Customer@

Zipcodestring nullable

Customer Zip Code (to print on invoice - send numbers).

Length: 1 to 7 Default: Rivhit Customer@

PhoneNumberstring nullable

Customer Phone Number.

Length: 1 to 15 Default: Rivhit Customer@

PhoneNumber2string nullable

Customer Second Phone Number.

Length: 1 to 15 Default: No

FaxNumberstring nullable

Customer Fax Number.

Length: 1 to 15 Default: Rivhit Customer@

IdNumberinteger nullable

Customer Israeli Id (by Custom Format).

Range: 8-9 digits Default: No

VatNumberinteger nullable

Customer VAT Number (by custom format).

Range: 8-9 digits Default: No

Custom1string nullable

Custom Open Field 1.

Length: 2GB Default: No

Custom2string nullable

Custom Open Field 2.

Length: 2GB Default: No

Custom3string nullable

Custom Open Field 3.

Length: 2GB Default: No

Custom4string nullable

Custom Open Field 4.

Length: 2GB Default: No

Custom5string nullable

Custom Open Field 5.

Length: 2GB Default: No

Custom6string nullable

Custom Open Field 6.

Length: 2GB Default: No

Custom7string nullable

Custom Open Field 7.

Length: 2GB Default: No

Custom8string nullable

Custom Open Field 8.

Length: 2GB Default: No

Custom9string nullable

Custom Open Field 9.

Length: 2GB Default: No

CustomerIdinteger nullable

Customer Id Serial Number (Rivhit system).

Range: 0 to 999999999 Default: Page Settings

AgentIdinteger nullable

Agent Id Serial Number (Rivhit system).

Range: 0 to 999999999 Default: Page Settings

Commentsstring nullable

The Customer Comments (to print on the invoice).

Length: 1 to 400 Default: Rivhit system settings

ProjectIdinteger nullable

Project Id Serial Number (Rivhit system).

Range: 0 to 999999999 Default: Page Settings

EmailBccstring email nullable

Bcc Email Address.

Length: 6 to 50 Default: Rivhit Customer@

DocumentLanguage'he' | 'en' nullable

Set the Automatic Invoice/Receipt Language.

Options: (he/en) Default: Page Rivhit settings

Discountnumber double nullable

Discount Amount - For Invoice/Receipt.

Range: Decimal limit (only positive) Default: No

Currency1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 nullable

The Charge Currency Type.

Options: (1 = NIS 2 = USD 3 = EURO 4 = GBP 5 = AUD 6 = CAD 7 = CHF 8 = SEK 9 = DKK 10 = NOK) Default: Page settings

SendMailboolean nullable

Send the Document/Receipt to the Customer.

Default: Page settings

CreateCustomerboolean nullable

Create a New Customer in Rivhit System.

~ When exsiting customer can't be found
Default: Page settings

FindByMailboolean nullable

Locate Customer by Email Address.

Default: Page settings

FindByIdboolean nullable

Locate Customer by Israeli Id/VAT Number.

Default: Page settings

FindByPhoneboolean nullable

Locate Customer by Phone Number.

Default: Page settings

ConvertToNISboolean nullable

Convert Items Price Currency to ILS.

Default: Page settings

ExchangeRatenumber double nullable

Fixed Currency Exchange Rate to ILS.

~ Combine with ConvertToNIS Range: Decimal limit (only positive) Default: Page Settings

CrmUserIdinteger nullable

Rivhit User Id (Document/Receipt producer).

Range: 0 to 99999 Default: Page Rivhit settings

AuthNumstring nullable

Transaction Approval Number Of Original J5.

~ Value returned givven by the Clearing Company ~ Use for J5 payment (On Hold) Length: 1 to 9 Default: No

CreditTermsinteger nullable

The Transaction Payments Settings.

Range: 1 to 99 Default: No

FirstAmountnumber double

The Amount of the First Payment (In Multiple Payments).

Range: Decimal limit (only positive) Default: No

NoCVVboolean nullable

Sending transaction without CVV.

Default: No

NumberOfPaymentsinteger nullable

Set a Fixed Number of Payments.

Range: 1 to 100 Default: No

CreateRecurringSaleboolean nullable

Turn On/Off Recurring Sale Creation.

~ Requires a recurring sale service Default: Page recurring settings

RecurringSaleCycle1 | 2 | 3 nullable

Set Time Phrase to Charge a Recurring Sale.

Options (1 = day 2 = week 3 = month) Default: Page recurring settings

RecurringSaleDay1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 nullable

Set the Charge Day of the month in a Recurring Sale.

Range: 1-28 Default: Page recurring settings

RecurringSaleStepinteger nullable

Set the Time Phrase to Charge a Recurring Sale.

~ Every X day/week/month Range: 1 to 999 Default: Page recurring settings

RecurringSaleCountinteger nullable

Limit Number of Charges for a Recurring Sale.

~ For non stop charge = 0 Range: 1 to 999 Default: Page recurring settings

RecurringSaleStartDatestring date nullable

Set Start Date for a Recurring Sale.

~ Date format DD-MM-YY Length: 10 characters Default: Page recurring settings

RecurringSaleAutoChargeboolean nullable

Activate Recurring Sale Automatic Charge.

Default: Page recurring settings

RecurringSaleProRataboolean nullable

Create Recurring Sale with Pro Rata First Charge.

Default: Page recurring settings

ReceiptTypeinteger nullable

Set the Automatic Receipt Type.

Range: 1 to 999 Default: Page settings

DocumentTypeinteger nullable

Set the Automatic Document Type.

Range: 1 to 999 Default: Page settings

PriceIncludeVATboolean nullable

Items Sent With or Without VAT.

Default: Page Rivhit settings

PreventDuplicatesboolean nullable

Activate Prevent Duplicates on Charge.

~ Combine with RequestReference Default: Page settings

SaleType1 | 2 | 3 nullable

The Sale Type.

Options: (1 = Immediate 2 = Pending 3 = Only token) Default: Page settings

J5CustomerTransactionIdstring uuid

Customer Transaction Id of the Original J5.

~ Use for J5 payment (On Hold) Default: No

IPNFailureURLstring url nullable

IPN URL - After Failure in Payment.

Length: 15 to 500 Default: No

RequestReferencestring nullable

The Transaction Request Reference.

~ Combine with PreventDuplicates ~ Should be unique value Length: 2GB Default: No

Countrystring nullable

Customer Country.

Length: 1 to 39 Default: Rivhit Customer@

TransactionType1 | 11 nullable

The Transaction Type.

~ Use only by API support instruction Options: (1 = Immediate 11 = recurring) Default: Page settings

Example request

{
  "GroupPrivateToken": "80283c37-1e16-4fe3-8977-203d5180d1fa",
  "CreditcardToken": "f48034b6-247e-4642-ba1e-6d72003bd7e9",
  "Items": [
    {
      "Id": 0,
      "CatalogNumber": "1a",
      "UnitPrice": 5,
      "Quantity": 1,
      "Description": "item1"
    },
    {
      "Id": 0,
      "CatalogNumber": "2a",
      "UnitPrice": 5,
      "Quantity": 1,
      "Description": "item2"
    }
  ],
  "IPNMethod": 1,
  "IPNURL": "http://9188dde0.ngrok.io/test/ipn_listener.php",
  "Reference": 12345,
  "Order": "ab12345",
  "EmailAddress": "a@a.com",
  "CustomerLastName": "Israeli",
  "CustomerFirstName": "Moshe",
  "Address": "Ben Yehuda 1",
  "POB": 12345,
  "City": "Tel Aviv",
  "PhoneNumber": "054-4444444",
  "PhoneNumber2": "054-4444444",
  "FaxNumber": "03-3333333",
  "IdNumber": 123456790,
  "VatNumber": 123456790,
  "Custom1": "Custom1 value",
  "Custom2": "Custom2 value",
  "Custom3": "Custom3 value",
  "Custom4": "Custom4 value",
  "Custom5": "Custom5 value",
  "Custom6": "Custom6 value",
  "Custom7": "Custom7 value",
  "Custom8": "Custom8 value",
  "Custom9": "Custom9 value",
  "Comments": "Comments will be here",
  "EmailBcc": "a@a.com",
  "DocumentLanguage": "en",
  "Discount": 10,
  "Currency": 1,
  "SendMail": true,
  "CreateCustomer": true,
  "FindByMail": true,
  "FindById": true,
  "FindByPhone": true,
  "ExchangeRate": 3.8,
  "CreditTerms": 1,
  "FirstAmount": 10,
  "NumberOfPayments": 1,
  "RecurringSaleCycle": 3,
  "RecurringSaleDay": 10,
  "RecurringSaleStep": 1,
  "RecurringSaleCount": 12,
  "RecurringSaleStartDate": "01-03-2025",
  "RecurringSaleAutoCharge": true,
  "DocumentType": 2,
  "PriceIncludeVAT": true,
  "PreventDuplicates": true,
  "SaleType": 1,
  "J5CustomerTransactionId": "a1408bfc-18da-49dc-aa77-d65870f7943e",
  "IPNFailureURL": "http://9188dde0.ngrok.io/test/ipn_listener.php",
  "RequestReference": "abcdefg-&123456789",
  "Country": "Israel",
  "TransactionType": 1
}

Response

Payment With Token was Successful

ChargeStatusinteger

The Response Status Number (0 = Success, From SHVA).

ClientMessagestring

The Response Client Message (From SHVA).

DebugMessagestring

The Response Error (Same as ChargeStatus).

DocumentIdentitystring uuid

The Document Identifier.

DocumentLinkstring url

The Document URL.

DocumentNumberinteger nullable

The Sale Produced Document Number.

DocumentTypeinteger nullable

The Sale Produced Document Type.

PrintStatusinteger

Digital Signature Production Status (0 = Success).

PrivateSaleTokenstring uuid

The Sale Private Identifier.

ReceiptIdentitystring uuid

The Receipt Identifier.

ReceiptLinkstring url

The Receipt URL.

ReceiptNumberinteger nullable

The Sale Produced Receipt Number.

ReceiptTypeinteger nullable

The Sale Produced Receipt Type.

SaleTokenstring uuid

The Sale Inner Identifier.

Statusinteger

iCredit Server Status Number (0 = Success).

Example response

{
  "DocumentIdentity": "3524c0e1-69eb-406b-a49b-fdbf261a65ff",
  "DocumentLink": "https://api.rivhit.co.il/pdf/test/FileService.svc/GetDocument/000008888/3524c0e1-69eb-406b-a49b-fdbf261a65ff/true/02_109855",
  "DocumentNumber": 109855,
  "DocumentType": 2,
  "PrivateSaleToken": "8e2f51dd-2eff-4c2c-96bb-a636d0f64da9",
  "ReceiptIdentity": "3524c0e1-69eb-406b-a49b-fdbf261a65ff",
  "ReceiptLink": "https://api.rivhit.co.il/pdf/test/FileService.svc/GetDocument/000008888/e3d7b93b-0d6a-4f9c-9719-bcddf4876b2b/true/01_016251",
  "ReceiptNumber": 16251,
  "ReceiptType": 1,
  "SaleToken": "4beac7fe-000e-4a0f-bb35-5605bcef3dfb"
}