API Actions
The Hyp Pay API allows you to perform various financial operations through server-to-server requests.
When working with the API, keep the following technical requirements and error handling practices in mind:
GET requests: Every API call on this page is made using a standard HTTP GET request. Most calls can also be performed using equivalent HTTP POST requests.
Base URL: All requests are sent to the base URL
https://pay.hyp.co.il/p/, followed by specific URL parameters.Backend execution: For security purposes, you should always make these API calls from your application's backend. Never expose your API credentials by making calls from a browser or mobile app.
Error handling:
HTTP status codes: Hyp Pay returns a
200 OKstatus code for almost all requests, even when an error occurs. You should never rely on HTTP status codes to determine the success of an operation. Instead, always parse the response string for theCCodeparameter.Response format: Before parsing the response for a status code, check the content of the response. If the response contains HTML instead of a URL-encoded string or JSON, it indicates a system error.
This page is organized by the available values of the action parameter. If a single action value supports multiple scenarios, they are described in separate subsections.
Use the links below to jump to a specific operation:
Payment pages and validation (
action=APISign):Cancel a transaction (
action=CancelTrans)Finalize a postponed transaction (
action=commitTrans)Request a token (
action=getToken)Terminate or resume a recurring payment agreement (
action=hkstatus)Payment links (
action=payRequest):Direct charges and payouts (
action=soft):Perform a refund (
action=zikoyapi)
action=APISign
The APISign command is used to securely create a payment page or validate a transaction. It uses your API key and password to sign requests or verify responses from the Hyp Pay servers.
Create a payment page request
This is the first step in accepting credit cards. You send the transaction details to Hyp, and we return a signed response that you use to redirect the customer to our secure payment page.
Prerequisites
Before making this call, you need:
Your terminal number (
Masof), API key (KEY), and API password (PassP).To decide on the transaction amount and currency.
Parameters
The parameters for creating a payment page are grouped into several tables below based on their purpose. This makes it easier to find the specific options you need for different payment scenarios, such as invoicing, installments, or recurring payments.
Basic parameters
action
APISign
Yes
Must be set to APISign.
What
SIGN
Yes
Must be set to SIGN to request a new payment page.
Masof
10 digits
Yes
Your terminal number.
KEY
String
Yes
Your terminal API key.
PassP
String
Yes
Your terminal API password.
Amount
Decimal
Yes
The amount to charge. This can be a decimal number with up to two fractional digits (for example, 10.00, 10.5, or 10).
Sign
True / False
No
Set to True to receive a security signature that is required for transaction validation.
Customer information
UserId
9 digits
No
The customer's Israeli ID.
ClientName
String
No
The customer's first name.
ClientLName
String
No
The customer's last name.
street
String
No
The customer's street address.
city
String
No
The customer's city.
email
String
No
The customer's email address.
cell
String
No
The customer's mobile phone number.
Order
String
No
An internal order ID for your records.
Installments
Tash
Number
No
The maximum number of installments allowed.
FixTash
True / False
No
If set to True, the customer must use the exact number of installments specified in Tash.
tashType
1 / 6
No
The type of installments: 1 for regular (no interest, default) or 6 for credit (with interest).
ShowEngTashText
True / False
No
Set to True to show installment labels when PageLang is ENG.
Two-phase commits and postponing
J5
True / False / J2
No
Set to True to perform a two-phase commit (authorization without immediate charge) or J2 to perform card verification without charge.
MoreData
True / False
No
Set to True to receive additional parameters like UID and UserId in the redirect (required for two-phase commits).
If you set MoreData=True in the request, Hyp Pay will include additional transaction details in the payment completion redirect:
Bank
The name of the acquiring bank.
TransType
The type of transaction (for example, Internet-Secure, ApplePay, or GooglePay).
Payments
The number of installments used for the transaction.
UserId
The customer's Israeli ID.
Brand
The brand of the credit card used (for example, Visa or MasterCard).
Issuer
The entity that issued the card.
L4digit
The last four digits of the credit card.
street
The customer's street address.
city
The customer's city.
zip
The customer's zip code.
cell
The customer's mobile phone number.
Coin
The currency used for the transaction.
Tmonth
The expiration month of the card.
Tyear
The expiration year of the card.
Hesh
The invoice number, if an invoice was generated.
UID
A unique transaction identifier used for two-phase commits and other advanced flows.
spType
A code representing a special card type (for example, Tourist or Immediate).
bincard
The first six digits of the card (Bank Identification Number).
Recurring payments
freq
Number
No
The billing cycle in months for recurring payments.
Tash
Number
No
How many charges to make. If you want it to keep recurring indefinitely, set this to 999.
TashFirstPayment
Number
No
Use this if you want the very first payment to be a different amount than the rest.
FirstPaymentTash
Number
No
The number of installments applied specifically to the first payment.
OnlyOnApprove
True / False
No
Set to True if you only want the recurring agreement to kick in once the first payment is approved. False (the default) sets up the agreement even if that first payment is still pending or fails.
Invoicing
sendHeshSMS
True / False
No
Set to True to send a link to the invoice via SMS.
Pritim
True / False
No
Set to True to send a detailed list of items for the invoice and show it on the payment page.
heshDesc
String
No
A description of the purchase for the invoice, or a list of items if Pritim is True.
EZ.lang
he / en
No
The language for the invoice document. he (Hebrew) is the default.
EZ.comment
String
No
Additional text that will be added after the body of the invoice document.
EZ.description
String
No
Text that will be inserted as the subheader of the invoice.
EZ.cc_emails
Comma-delimited list of emails
No
You can provide a list of up to 10 additional email addresses to receive a copy of the invoice.
EZ.vat
Decimal
No
Overrides the default VAT rate for the invoice.
EZ.customer_crn
String
No
The customer's company number (BN) for the invoice.
Payment page UI customization
PageLang
HEB / ENG
No
The UI language for the payment page. HEB (Hebrew) is the default.
tmp
Number
No
The template number to use for the page's layout.
hideBtns
True / False
No
Set to True to hide the payment method selection buttons on the payment page.
Example request
Here's an example API request to create a payment page:
Example response
A successful request returns a URL-encoded string containing all parameters and a signature:
If the request fails, the response will contain a non-zero status code (CCode):
Response parameters
action
This changes to pay in the response.
signature
The security signature generated by Hyp Pay.
...
All other parameters passed in the request are returned as-is.
Common status codes
0
Success. The request was signed correctly.
902
Authentication failure: wrong PassP.
904
Missing What parameter.
For a full list of possible response codes, see Status Codes.
Validate a transaction
This is used to verify transaction details directly with Hyp Pay's servers after a customer is redirected back to your site. It ensures the data hasn't been tampered with.
Prerequisites
You must have included
Sign=Truein the initialAPISignrequest.You need the full set of parameters from the payment completion redirect.
Parameters
action
APISign
Yes
Must be set to APISign.
What
VERIFY
Yes
Must be set to VERIFY.
Masof
10 digits
Yes
Your terminal number.
KEY
String
Yes
Your terminal API key.
PassP
String
Yes
Your terminal API password.
...
Various
Yes
All parameters from the redirect URL, in their original order.
Example request
Here's an example API request to validate a transaction:
Example response
A successful validation request returns a simple confirmation:
If the request fails, the response will contain a non-zero status code (CCode):
Response parameters
CCode
The status code. 0 indicates the transaction is valid and authentic.
Common status codes
0
Success. The transaction is verified.
200
Missing one or more parameters from the payment completion redirect.
902
Authentication failure: wrong PassP.
904
Missing What parameter.
For a full list of possible response codes, see Status Codes.
Generate a link to an invoice
This is used to request a set of URL parameters that is then used to construct a URL to download an existing invoice.
Prerequisites
The transaction ID (
TransId) or the invoice ID (asm) of the document you want to link to.
Parameters
action
APISign
Yes
Must be set to APISign.
ACTION
PrintHesh
Yes
The operation to be signed.
Masof
10 digits
Yes
Your terminal number.
KEY
String
Yes
Your terminal API key.
PassP
String
Yes
Your terminal API password.
What
SIGN
Yes
Must be set to SIGN for the response to include a signature.
type
EZCOUNT
Yes
Must be set to EZCOUNT.
TransId
String
Yes
The unique ID of the transaction to generate an invoice link for.
asm
String
No
The unique ID of the invoice document to link to. This is not required if TransId is provided.
Example request
Here's an example API request to get a set of URL parameters to generate an invoice link:
Example response
A successful response returns a URL-encoded string:
If the request fails, you'll receive an error code:
Response parameters
Masof
Your terminal number.
TransId
The unique transaction ID.
action
The action being signed (PrintHesh).
type
The document type (EZCOUNT).
signature
The secure signature.
Common status codes
0
Success. The signature was generated.
902
Authentication failure: wrong PassP.
For a full list of codes, see the Status Codes page.
action=CancelTrans
The CancelTrans command is used to cancel a transaction before it has been transmitted to the card company for settlement.
Prerequisites
The transaction must not have been transmitted yet (typically before 22:00 Israel time on the same day).
You need the transaction
Id(passed asTransId).
Parameters
action
CancelTrans
Yes
Must be set to CancelTrans.
Masof
10 digits
Yes
Your terminal number.
PassP
String
Yes
Your terminal API password.
TransId
String
Yes
The unique Id of the transaction to cancel.
Example request
Here's an example API request to cancel a transaction:
Example response
A successful cancellation request returns a confirmation that looks like this:
If the request fails, the response will contain a non-zero status code (CCode):
Response parameters
TransId
The ID of the cancelled transaction.
CCode
The status code. 0 indicates success.
ReversalStatus
A code indicating the cancellation status (e.g., 777).
Common status codes
0
Success. The transaction was cancelled.
902
Authentication failure: wrong PassP.
920
Transaction cannot be cancelled (e.g., doesn't exist or was already transmitted).
For a full list of possible response codes, see Status Codes.
action=commitTrans
The commitTrans command is used to finalize a postponed transaction. This completes a payment that was previously authorized with the Postpone=True parameter.
Prerequisites
You must have a transaction that was initiated with
Postpone=Trueand received aCCode=800.You need the transaction
Id(passed asTransId).The finalization must occur within 72 hours of the original request.
Parameters
action
commitTrans
Yes
Must be set to commitTrans.
Masof
10 digits
Yes
Your terminal number.
PassP
String
Yes
Your terminal API password.
TransId
String
Yes
The unique Id of the postponed transaction.
Example request
Here's an example API request to finalize a postponed transaction:
Example response
A successful finalization request returns a URL-encoded string containing the unique transaction ID and other details:
If the request fails, the response will contain a non-zero status code (CCode):
Response parameters
Id
The unique transaction ID for the finalized charge.
CCode
The status code. 0 indicates the transaction was finalized successfully.
Common status codes
0
Success. The transaction was finalized and charged.
250
Transaction not found.
902
Authentication failure: wrong PassP.
For a full list of possible response codes, see Status Codes.
action=getToken
The getToken command is used to request a card token after a card transaction. This allows you to charge the same card later without handling raw card data.
Prerequisites
You must have the transaction ID (
Id) from a previous transaction.Your terminal must have tokenization permissions.
Parameters
action
getToken
Yes
Must be set to getToken.
Masof
10 digits
Yes
Your terminal number.
PassP
String
Yes
Your terminal API password.
TransId
String
Yes
The unique transaction ID (Id) from the original payment.
allowFalse
True / False
No
Set to True to get a token even if the original transaction wasn't successful.
Example request
Here's an example API request to request a token:
Example response
A successful request returns a URL-encoded string containing the token and its expiration date:
If the request fails, the response will contain a non-zero status code (CCode):
Response parameters
Token
The 19-digit card token.
Tokef
The card's expiration date in YYMM format.
CCode
The status code. 0 indicates success.
Common status codes
0
Success. The token was retrieved.
901
No permission for tokenization.
902
Authentication failure: wrong PassP.
910
Invalid transaction for tokenization (unless allowFalse=True is used).
For a full list of possible response codes, see Status Codes.
action=HKStatus
The HKStatus command is used to manage recurring payment agreements, specifically to terminate or resume them.
Prerequisites
You need the unique agreement ID (
HKId).You must decide whether to terminate or resume the agreement.
Parameters
action
HKStatus
Yes
Must be set to HKStatus.
Masof
10 digits
Yes
Your terminal number.
PassP
String
Yes
Your terminal API password.
HKId
String
Yes
The unique ID of the recurring agreement.
NewStat
1 / 2
Yes
The new status for the agreement: 1 (Terminate), 2 (Resume).
Example request
Here's an example API request to terminate a recurring payment agreement:
Example response
A successful request returns the agreement ID and a confirmation:
If the request fails, the response will contain a non-zero status code (CCode):
Response parameters
HKId
The ID of the updated agreement.
CCode
The status code. 0 indicates the update was successful.
Common status codes
0
Success. The agreement status was updated.
905
Unsupported payment agreement state: NewStat is missing or set to an incorrect value.
906
The agreement does not exist.
For a full list of possible response codes, see Status Codes.
action=payRequest
The payRequest command is used to manage payment links. It allows you to create, list, and cancel unique links that can be sent to customers via SMS or email.
Create and send a payment link
This creates a new payment link and sends it to the customer.
Prerequisites
You must enable the payment links feature in the Hyp Market section of your portal.
You need the customer's email or mobile number.
Parameters
action
payRequest
Yes
Must be set to payRequest.
iCommand
CREATE
Yes
Must be set to CREATE.
Masof
10 digits
Yes
Your terminal number.
PassP
String
Yes
Your terminal API password.
Amount
Decimal
Yes
The amount for the payment link. This can be a decimal number with up to two fractional digits (for example, 10.00, 10.5, or 10).
ClientName
String
Yes
The customer's first name.
email
String
No
The customer's email address. Required if sending via email.
cell
String
No
The customer's mobile phone number. Required if sending via SMS.
Info
String
No
A description for the transaction.
Example request
Here's an example API request to create and send a payment link:
Example response
A successful request returns the unique link ID and the payment URL:
If the request fails, the response will contain a non-zero status code (CCode):
Response parameters
payRequestId
The unique ID for this payment link. Save this to manage the link later.
paymentURL
The direct URL to the secure payment page.
Common status codes
0
Success. The link was created and sent.
16
Missing required fields.
902
Authentication failure: wrong PassP.
For a full list of possible response codes, see Status Codes.
Get a list of payment links
This returns a list of the most recent payment links created for your terminal.
Parameters
action
payRequest
Yes
Must be set to payRequest.
iCommand
LIST
Yes
Must be set to LIST.
Masof
10 digits
Yes
Your terminal number.
PassP
String
Yes
Your terminal API password.
Example request
Here's an example API request to get a list of payment links:
Example response
A successful request returns a JSON array of link objects:
If the request fails, the response will contain a non-zero status code (CCode):
Response parameters
payRequestId
The unique ID of the link.
status
The current status: 0 (Deleted), 1 (New), 2 (Sent), 3 (Paid).
Amount
The link amount.
paymentURL
The URL for the link.
Common status codes
0
Success. The list was retrieved successfully.
902
Authentication failure: wrong PassP.
For a full list of possible response codes, see Status Codes.
Cancel a payment link
This deactivates an existing payment link so it can no longer be used.
Prerequisites
You need the
payRequestIdof the link you want to cancel.The link must not have been paid yet.
Parameters
action
payRequest
Yes
Must be set to payRequest.
iCommand
DELETE
Yes
Must be set to DELETE.
Masof
10 digits
Yes
Your terminal number.
PassP
String
Yes
Your terminal API password.
PayRequest
String
Yes
The payRequestId of the link to cancel.
Example request
Here's an example API request to cancel a payment link:
Example response
A successful cancellation returns a confirmation:
If the request fails, the response will contain a non-zero status code (CCode):
Response parameters
CCode
The status code. 0 indicates success.
status
The new status of the link. 0 means deleted.
Common status codes
0
Success. The link was cancelled.
250
Link doesn't exist.
995
Link cannot be deleted because it has already been paid.
For a full list of possible response codes, see Status Codes.
action=soft
The soft command is the primary server-to-server execution engine for Hyp Pay. Unlike hosted pages, this action performs a direct financial operation and returns a raw response string, typically URL-encoded text, that contains the transaction result.
Because this command is multi-purpose, the required parameters and logic change based on the specific use case.
Charge a saved token
This is used for recurring billing or "one-click" payments where you already have a valid token from a previous transaction.
Prerequisites
To charge a saved token, you must have previously obtained:
A 19-digit
Tokenfor the customer's card.The card's expiration date (
Tokef) inYYMMformat.The customer's Israeli ID number (
UserId), if your terminal requires it.
Parameters
action
soft
Yes
Must be set to soft.
Masof
10 digits
Yes
Your terminal number.
PassP
String
Yes
Your terminal API password.
ClientName
String
Yes
The customer's first name.
Info
String
Yes
A description of the transaction for reporting purposes.
Token
True / False
Yes
Set to True to indicate the CC field contains a token.
CC
19-digit token
Yes
The saved token string that replaces the raw card number.
Amount
Decimal
Yes
The amount to charge. This can be a decimal number with up to two fractional digits (for example, 10.00, 10.5, or 10).
Tmonth
MM
Yes
The card expiry month in MM format.
Tyear
YY
Yes
The card expiry year in YY format.
UserId
9 digits or 000000000
Yes
The customer's Israeli ID. If your terminal doesn't require one, use 000000000.
ClientLName
String
No
The customer's last name.
street
String
No
The customer's street address.
city
String
No
The customer's city.
zip
String
No
The customer's zip code.
phone
String
No
The customer's landline phone number.
cell
String
No
The customer's mobile phone number.
email
String
No
The customer's email address.
Coin
1 / 2 / 3 / 4
No
The currency of the transaction: 1 for ILS (default), 2 for USD, 3 for EUR, 4 for GBP.
Tash
Number
No
The number of installments for the transaction.
TashFirstPayment
Decimal
No
A different amount for the first installment. This can be a decimal number with up to two fractional digits (for example, 10.00, 10.5, or 10).
tOwner
10 digits
No
In a multi-terminal setup, specifies the terminal number that obtained the card token when it's different from the terminal making the charge.
sendemail
True / False
No
Set to True to send a payment confirmation email to the customer.
MoreData
True / False
No
Set to True to receive additional transaction details in the response.
UTF8
True / False
No
Set to True if the request data is encoded in UTF-8.
UTF8out
True / False
No
Set to True to receive the response encoded in UTF-8.
Fild1
String
No
A custom field for your own use. This value is returned in the response but not saved by Hyp Pay.
Fild2
String
No
A custom field for your own use. This value is returned in the response but not saved by Hyp Pay.
Fild3
String
No
A custom field for your own use. This value is returned in the response but not saved by Hyp Pay.
If you set MoreData=True in the request, Hyp Pay will include additional transaction details in the payment completion redirect:
Bank
The name of the acquiring bank.
TransType
The type of transaction (for example, Internet-Secure, ApplePay, or GooglePay).
Payments
The number of installments used for the transaction.
UserId
The customer's Israeli ID.
Brand
The brand of the credit card used (for example, Visa or MasterCard).
Issuer
The entity that issued the card.
L4digit
The last four digits of the credit card.
street
The customer's street address.
city
The customer's city.
zip
The customer's zip code.
cell
The customer's mobile phone number.
Coin
The currency used for the transaction.
Tmonth
The expiration month of the card.
Tyear
The expiration year of the card.
Hesh
The invoice number, if an invoice was generated.
UID
A unique transaction identifier used for two-phase commits and other advanced flows.
spType
A code representing a special card type (for example, Tourist or Immediate).
bincard
The first six digits of the card (Bank Identification Number).
Example request
Here's an example API request to charge a saved token:
Example response
A successful charge returns a URL-encoded string containing the unique transaction ID and other details:
If the charge fails, the response will include a non-zero status code:
Response parameters
Id
The unique transaction ID for this charge.
CCode
The status code. A value of 0 indicates success.
Amount
The final amount charged.
ACode
The authorization code returned by the card company.
Hesh
The type of invoice or receipt generated.
Common status codes
0
Success. The transaction was approved and charged.
6
Transaction declined: incorrect CVV2. May also indicate a missing Israeli ID number.
401
First or last name is required but not provided.
402
Transaction information is required but not provided.
447
Incorrect card number or a missing Token=True parameter.
902
Authentication failure: wrong PassP.
901
No permission. Your terminal isn't authorized for tokenization.
997
Invalid token.
For a full list of possible response codes, see Status Codes.
Capture (J4) after J5 authorization
This is used to finalize a two-phase transaction. This moves the frozen funds from the authorization phase into the merchant's account.
Prerequisites
Before you can perform a capture, you must have already authorized a transaction (J5) and saved the following values from that authorization:
The transaction's
ACode.The transaction's unique
UID.The card
Tokenand its expiration date (Tokef).The original authorized amount.
The customer's Israeli ID number (
UserId).
Parameters
action
soft
Yes
Must be set to soft.
Masof
10 digits
Yes
Your terminal number.
PassP
String
Yes
Your terminal API password.
AuthNum
String
Yes
The authorization code received as ACode from the original J5 response.
inputObj.originalAmount
Integer (subunits)
Yes
The original amount authorized in the J5 step, in currency subunits (like agurot or cents).
inputObj.originalUid
String
Yes
The unique UID returned by the original J5 response.
inputObj.authorizationCodeManpik
7
Yes
A static value used for captures — always set this to 7.
Amount
Decimal
Yes
The final amount to capture. This must be less than or equal to the original authorized amount. This can be a decimal number with up to two fractional digits (for example, 15.00, 15.5, or 15).
Token
True / False
Yes
Must be set to True since you're using a card token.
CC
19-digit token
Yes
The saved token string from the original transaction.
Tmonth
MM
Yes
The card expiry month in MM format.
Tyear
YY
Yes
The card expiry year in YY format.
UserId
9 digits or 000000000
Yes
The Israeli ID you saved from the original transaction. If the customer didn't enter one, use 000000000.
ClientName
String
Yes
The customer's first name.
Info
String
Yes
Any extra info you want to include with the transaction.
Example request
Here's an example API request to capture a previously authorized transaction:
Example response
A successful capture returns a URL-encoded string with the charge details:
If the request fails, the response will contain a non-zero status code (CCode):
Response parameters
Id
The unique transaction ID for the capture.
CCode
The status code. 0 indicates the capture was successful.
Amount
The final amount captured.
ACode
The authorization code for the capture.
Common status codes
0
Success. The funds were captured and the transaction is complete.
401
First or last name is required but not provided.
402
Transaction information is required but not provided.
902
Authentication failure: wrong PassP.
For a full list of possible response codes, see Status Codes.
Perform a payout
This is used to push funds from the merchant account back to a customer's card. This requires a secondary security password.
Prerequisites
To perform a payout, you must:
Contact Hyp support to obtain a credit password (
zPass).Obtain a card
Tokenand its expiration date for the card receiving the funds.
Parameters
action
soft
Yes
Must be set to soft.
Masof
10 digits
Yes
Your terminal number.
PassP
String
Yes
Your terminal API password.
zPass
String
Yes
A secondary password specifically for payouts and refunds.
CC
19-digit token
Yes
The card token receiving the funds.
Amount
Decimal
Yes
The amount to send to the customer. This can be a decimal number with up to two fractional digits (for example, 10.00, 10.5, or 10).
Token
True / False
No
Set to True if you are using a token in the CC field.
Tmonth
MM
Yes
The card expiry month in MM format.
Tyear
YY
Yes
The card expiry year in YY format.
UserId
9 digits or 000000000
Yes
The customer's Israeli ID number. If you're making a payout to a non-Israeli card or you don't want to save the ID number, set this to 000000000.
ClientName
String
Yes
The customer's first name.
Info
String
Yes
Any extra info you want to include with the transaction.
Example request
Here's an example API request to perform a payout:
Example response
A successful payout returns a URL-encoded string confirming the operation:
If the request fails, the response will contain a non-zero status code (CCode):
Response parameters
Id
The unique transaction ID for the payout.
CCode
The status code. 0 indicates success.
Amount
The amount credited to the customer.
ACode
The authorization code for the payout.
Common status codes
0
Success. The funds were sent to the card.
401
First or last name is required but not provided.
402
Transaction information is required but not provided.
901
Wrong zPass.
902
Authentication failure: wrong PassP.
997
Invalid token.
For a full list of possible response codes, see Status Codes.
Create an invoice for an offline transaction
This is used to generate an invoice for an offline transaction.
Parameters
The parameters for creating an offline invoice are grouped into basic transaction details and payment type-specific fields.
Basic parameters
action
soft
Yes
Must be set to soft.
Masof
10 digits
Yes
Your terminal number.
PassP
String
Yes
Your terminal API password.
Amount
Decimal
Yes
The amount received. This can be a decimal number with up to two fractional digits (for example, 200.00, 200.5, or 200).
TransType
Cash / Check / Multi
Yes
The type of payment received. Use Multi for multiple checks.
SendHesh
True / False
No
Set to True if you want to email the invoice to the customer.
Pritim
True / False
No
Set to True to send a detailed list of items for the invoice and show it on the payment page.
heshDesc
String
No
A description of the purchase for the invoice, or a list of items if Pritim is True.
email
String
No
Your customer's email address.
ClientName
String
Yes
The customer's first name.
ClientLName
String
No
The customer's last name.
UserId
9 digits
Yes
Your customer's Israeli ID. If unknown or not applicable, use 000000000.
Info
String
Yes
A description of the transaction for your records.
UTF8
True
No
Set to True to ensure Hebrew characters in parameters are processed correctly.
UTF8out
True
No
Set to True to receive the response in UTF-8 encoding.
Payment type-specific parameters
Depending on the TransType, you may need to provide additional details:
For
Cash: No additional parameters are required.For
Check: ProvideBank(bank code),Snif(branch number),PAN(account number),CheckNum(check number), andDate(inYYYYMMDDformat).For
Multi: You can send details for multiple checks by providing comma-separated lists for the check parameters (e.g.,Amount=100,50&CheckNum=111,222).
Example request
Here's an example API request to record a cash payment of 200 ILS and generate an invoice:
Example response
A successful response contains CCode=0, which confirms that the transaction was recorded and the invoice was generated:
If the request fails, the response will contain a non-zero status code:
Response parameters
CCode
The status code of the operation. 0 indicates success.
Amount
The transaction amount.
Id
The unique ID assigned to this record in Hyp Pay.
ACode
The authorization code. Empty for offline transactions.
Hesh
The type of invoice or receipt generated.
Common status codes
0
Success. The transaction was recorded and the invoice was generated.
6
Transaction declined: incorrect CVV2. May also indicate a missing Israeli ID number.
400
Sum of items differs from transaction amount.
For a full list of codes, see the Status Codes page.
action=zikoyAPI
The zikoyAPI command is used to perform a refund for a transaction that has already been settled.
Prerequisites
The original transaction must have been transmitted and settled.
You need the transaction
Id(passed asTransId).You need to specify the amount to refund (can be partial).
Parameters
action
zikoyAPI
Yes
Must be set to zikoyAPI.
Masof
10 digits
Yes
Your terminal number.
PassP
String
Yes
Your terminal API password.
TransId
String
Yes
The unique Id of the original transaction.
Amount
Decimal
Yes
The amount to refund. This can be a decimal number with up to two fractional digits (for example, 10.00, 10.5, or 10).
Example request
Here's an example API request to perform a refund:
Example response
A successful request returns a URL-encoded string containing the new unique transaction ID for the refund:
If the request fails, the response will contain a non-zero status code (CCode):
Response parameters
Id
The new unique ID for the refund transaction.
CCode
The status code. 0 indicates success.
Common status codes
0
Success. The refund was processed.
33
Amount exceeds the original transaction value.
902
Authentication failure: wrong PassP.
For a full list of possible response codes, see Status Codes.
Last updated
Was this helpful?