doDeal
Overview
The doDeal endpoint is the core gateway for payment operations in the Hyp Enterprise API. It provides a unified interface for processing various transaction types, with specific behavior controlled by the validation parameter.
Use cases
Direct Charge: Process immediate payment from a credit card via server-to-server integration (see Basic Integration Flow)
Pre-Authorization: Reserve funds without charging immediately - ideal for hotels, car rentals, e-commerce inventory verification (see Two-Phase Commits)
Capture Authorization: Finalize and collect funds that were previously reserved via pre-authorization (see Two-Phase Commits)
Tokenization: Store card details securely for future use without processing a transaction (see Tokenization Process)
Payment Page Initialization: Redirect customers to a hosted payment page for PCI-compliant processing (see Integrating Hyp's Payment Page)
Credit Payouts: Send funds to a customer or third party - refunds, marketplace payouts (see Payouts)
Hora'at Keva: Initialize and process standing orders for recurring billing (see Implementing Hora'at Keva)
Hold Operations: Temporarily delay transaction execution for manual review, fraud checks, or business approval
Release Operations: Release transactions from hold status to proceed with processing
Request structure
For a comprehensive overview of the API request format and authentication, see API Request & Response General Structure.
Endpoint
POST https://your-hyp-environment-url/xpo/Relay
Request parameters
The API uses HTTP POST with application/x-www-form-urlencoded content type. These parameters are sent as form data:
user
Yes
String
API username provided by Hyp
password
Yes
String
API password provided by Hyp
int_in
Yes
String
URL-encoded XML payload containing the actual API command and parameters
XML payload structure
The following XML structure is what gets URL-encoded and sent in the int_in parameter:
Command parameters
Required parameters
Card data parameters
Payment page parameters
Payment page data parameters
These parameters are used to customize the behavior and appearance of the payment page. They must be placed within the paymentPageData element inside the doDeal block.
Account to account (A2A) parameters
These parameters apply when initializing an A2A payment page.
Installments parameters
The first and subsequent payments are validated against the total based on the following formula:
3D-Secure parameters
You only need the following parameters when using the Direct API with an external MPI provider. If you're using the 3DS flow in payment page, no additional parameters are required.
Business logic parameters
ashraitEmvData parameters
Payment request parameters
These parameters apply when validation is set to apiPaymentLinkSetup. For a higher-level guide on this feature, see Payment Request.
Customer data parameters
Advanced control parameters
Validation types reference
AutoComm (J4)
A capture request that verifies a card locally or with the acquirer. A positive response results in immediate settlement.
(cardNo + cardExpiration) OR cardId
AutoCommHold (J9)
A capture request (J4) without settlement (transmission). Settlement requires issuing a separate request with validation set to AutoCommRelease.
(cardNo + cardExpiration) OR cardId
AutoCommRelease (J109)
Settlement for a transaction previously performed with AutoCommHold.
tranId (from held transaction)
SetAsHold
Places a transaction on hold for manual review.
tranId (from original transaction)
Token (J102)
Performs a validity check of the credit card number. If valid, generates and returns a credit card token that can be used for future transactions without storing the original credit card number. No charge is performed.
cardNo + cardExpiration, total=0
TxnSetup
A payment page request.
mpiValidation + mid + uniqueid + successUrl + cancelUrl + errorUrl
Verify (J5)
Performs an authorization request. Verifies that the credit card has sufficient funds. A separate request with validation set to AutoComm must be sent to capture the funds within the authorized amount.
(cardNo + cardExpiration) OR cardId
Transaction type & validation combinations
Debit
AutoComm
Immediate payment processing
Immediate payment from customer
Debit
Verify
Pre-authorization
Hold funds for later capture
Debit
AutoComm + authNo or cgUid
Capture
Finalize pre-authorized transaction
Debit
Token
Tokenization
Store card details for future use
Credit
AutoComm
Payout charge
Send money to customer immediately
Credit
Verify
Payout pre-auth
Reserve for future credit payout
Credit
AutoComm + authNo or cgUid
Payout capture
Finalize credit payout
Response structure
Success response
Error response
Response fields
status
Type: Numeric (3-5)
Description: Response result code. Successful transactions are marked with 000. For backward compatibility, Ashrait EMV error codes are mapped to unified 3-digit status codes along with a unified statusText. The extendedStatus, extendedStatusText, and extendedUserMessage fields provide a more specific status code and detailed message text for the transaction.
Supported values: For the full list of status codes, see Response codes.
statusText
Type: String
Description: Response text message. Returned according to the request language (ENG or HEB).
extendedStatus
Type: Numeric (4-5)
Description: A 4 to 5 digit specific status code. May be empty, as not all status codes have an extendedStatus.
extendedStatusText
Type: String
Description: Extended text message for the extendedStatus code. Returned according to the request language (ENG or HEB). Populated only when extendedStatus has a value.
extendedUserMessage
Type: String
Description: Extended text message intended for non-technical users. Returned according to the request language (ENG or HEB). Populated only when extendedStatus has a value.
authSource
Type: Enum
Description: Source of the authorization number.
Supported values: None, Shva (1), CreditCompany (2), VoiceMail (3)
cardAcquirer
Type: Enum
Description: Card acquirer.
Supported values: Isracard (1), Visa (2), Alphacard (6), MultiPass (11), A2A (aa)
cardBrand
Type: Enum
Description: Card brand. American Express and Diners cards have their own values but are also considered PrivateLabel.
Supported values: PrivateLabel (0), Mastercard (1), Visa (2), Maestro (3), Amex (4), Isracard (5), JCB (6), Discover (7), Diners (8)
cardId
Type: Numeric (16) or Numeric (36)
Description: Card identifier. Returned when a card-number transaction is performed and the Card ID module is purchased and configured to generate card IDs.
creditCompany
Type: Enum
Description: Card issuer. The following values are deprecated in Ashrait EMV (they appear instead in the cardBrand field): Diners (3), Amex (4), JCB (5).
Supported values: Foreign (0), Isracard (1), Visa (2), Alphacard (6), MultiPass (11), A2A (aa)
cvvStatus
Type: Enum
Description: CVV status. Populated only if the terminal is configured by Shva to validate CVV.
Supported values: Absent (0), Valid (1), Invalid (2), NotValidated (3)
idStatus
Type: Enum
Description: Status of the cardholder's Israeli ID number (Israeli cards only). Populated only if the terminal is configured by Shva to validate Israeli ID.
Supported values: Absent (0), Valid (1), Invalid (2), NotValidated (3)
cardNo
Type: Numeric (8-19)
Description: Credit card number, returned as sent in the request.
total
Type: Numeric (1-8)
Description: Returned as sent in the request.
transactionType
Type: Enum
Description: Card transaction type.
Supported values:
Cardholder is charged:
Blocked(00),RegularDebit(01),AuthDebit(02),ForcedDebit(03).Cardholder is credited:
RegularCredit(51),Refund(52),AuthCredit(53).Cardholder obligo is canceled:
Reversal(58).
creditType
Type: Enum
Description: Returned as sent in the request.
Supported values: AdHock (3) is returned when the card type is 'Hiyuv Miyadi'.
currency
Type: Enum
Description: Returned as sent in the request.
transactionCode
Type: Enum
Description: Returned as sent in the request.
authNumber
Type: Alphanumeric (3-7)
Description: Returned when a transaction is authorized. Allowed characters: 0-9, A-Z (uppercase only).
firstPayment
Type: Numeric (0-20)
Description: Returned as sent in the request.
periodicalPayment
Type: Numeric (0-20)
Description: Returned as sent in the request.
numberOfPayments
Type: Numeric (0-20)
Description: Returned as sent in the request.
slaveTerminalNumber
Type: Numeric (1-3)
Description: Sub-terminal (POS register or 'kupa') number as registered in Shva. Used when a merchant has multiple registers under the same terminal.
slaveTerminalSequence
Type: Numeric (1-3)
Description: Sequential transaction number generated by the sub-terminal (register). Together with slaveTerminalNumber and fileNumber, forms the unique transaction reference in the acquirer system.
validation
Type: Enum
Description: Returned as sent in the request, along with the value (code) also referred to as the 'J Code'.
cardExpiration
Type: Date (4)
Description: Returned as sent in the request.
user
Type: String (1-19)
Description: Returned as sent in the request.
addonData
Type: Numeric (2-8)
Description: Returned as sent in the request.
cavv
Type: Enum
Description: Field for merchants using 3-D Secure. Returned when the transaction is sent for authorization (Visa only).
Supported values: AuthenticationInvalid (0), FailedValidationAuthentication (1), PassedValidationAuthentication (2), PassedValidationAttempt (3), FailedValidationAttempt (4), NotUsed (5), NotValidated (6), FailedValidationAttemptByVisa (7), PassedValidationAttemptByVisa (8), FailedValidationAttemptAcsUnavailable (9), PassedValidationAttemptAcsUnavailable (A), PassedValidationInformationOnly (B), NotValidatedAttempt (C), NotValidatedAuthentication (D)
eci
Type: Numeric (1)
Description: Field for merchants using 3-D Secure. E-commerce indicator obtained from the 3DS MPI.
xid
Type: String (50)
Description: Field for merchants using 3-D Secure. Obtained from the 3DS MPI.
cardType
Type: Enum
Description: Extended card identification.
Supported values: Local (00), Foreign (99), Fuel (03), Debit (01), Rechargable (06), Dually (04), Dalkan (08), Club (70), FuelClub (73), DuallyClub (74), RechargeClub (76)
cardName
Type: String
Description: Card name. Empty when using the English protocol.
cardBin
Type: Numeric (2-6)
Description: Credit card BIN (first 2 or 6 digits of the card prefix).
cardMask
Type: String
Description: Masked card number (for example 123456XXXX1234).
cardLength
Type: Numeric (2)
Description: Card number length.
fileNumber
Type: Numeric (2)
Description: Next tentative transmit file number.
supplierNumber
Type: Numeric (7)
Description: Supplier number (MID).
extendedCardType
Type: String (1-100)
Description: Available only when installed. Custom card type determined by the merchant's BIN range linkage table.
lifeStyle
Type: Numeric (1)
Description: Available only when installed. Value 1 identifies a lifestyle sub-brand.
customCardType
Type: String (1-100)
Description: Available only when installed. Custom card type determined by the merchant's BIN range linkage table.
shiftId1
Type: Alphanumeric (1-32)
Description: Shift identifier associated with the transaction. Used for grouping transactions.
shiftId2
Type: Alphanumeric (1-32)
Description: Shift identifier associated with the transaction. Used for grouping transactions.
shiftId3
Type: Alphanumeric (1-32)
Description: Shift identifier associated with the transaction. Used for grouping transactions.
shiftTxnDate
Type: Date & time
Description: Current shift date associated with the transaction.
Example value: YYYY-MM-DD hh:mm:ss
routeCode
Type: Alphanumeric (1-32)
Description: Available only when installed. Custom identifier for routing transactions from a Hyp Enterprise (logical) terminal to a real acquiring terminal.
customerData
Description: Returned as sent in the request.
acquirerData
Description: See acquirerData fields below for nested fields.
ashraitEmvData
Description: See ashraitEmvData fields below for nested fields.
a2aData
Description: See a2aData fields below for nested fields.
acquirerData fields
acquirerResponseId
Type: Alphanumeric (12)
Description: RRN identifier returned by the authorizing party (when the transaction was sent to Shva for approval).
ashraitEmvData fields
authCodeAcquirer
Type: Enum
Supported values: NoAuthNumber (0), AcquirerAuthorized (1), AcquirerDeclined (2), ShvaAuthorized (3), ShvaDeclined (4), VoiceAuthorized (5), VoiceDeclined (6), AuthorizedOffline (7)
authCodeCreditCompany
Type: Enum
Supported values: NoAuthNumber (0), CreditCompanyAuthorized (1), CreditCompanyDeclined (2), ShvaAuthorized (3), ShvaDeclined (4), VoiceAuthorized (5), VoiceDeclined (6), CreditCompanyPreAuthorized (7), AuthorizedSmartCard (8)
authNoAcquirer
Type: Alphanumeric (7)
Description: In specific situations (for example, transactions with foreign credit cards), the response may contain both an acquirer authentication number and an issuer authentication number.
informativeTranCode
Type: Enum
Supported values: SmartCardRejected (1), CardInNeg (2), AuthNoRejected (3)
cvvFlag
Type: Numeric (1)
Description: Indicates whether CVV was entered. Can be empty.
Supported values: 0: CVV was not entered, 1: CVV was entered.
idFlag
Type: Numeric (1)
Description: Indicates whether the Israeli ID of the cardholder was entered.
Supported values: 0: Israeli ID was not entered, 1: Israeli ID was entered.
uid
Type: Numeric (23)
Description: Shva transaction identifier. In some cases, requests related to the same financial transaction share the same Shva uid. For example, in a two-phase sale (J5 followed by J4), both requests share the same uid. Position 1-12: transaction date in yymmddhhmmss format. Position 13-19: first 7 digits of the terminal number. Position 20-22: 3 unique digits. Position 23: check digit.
Example value: 20110310360108828046560
dspBalance
Type: Alphanumeric (35)
Description: Returned for BalanceEnquiry transactions. Contains the card balance as returned by the issuer. The value may include a Hebrew description suffix (for example, "סכום יתרת הכרטיס", meaning "card balance amount"). Returned exactly as provided, without conversion.
Example value: 100.00 סכום יתרת הכרטיס
ashReasonText
Type: Alphanumeric (256)
Description: Reason(s) the transaction was sent to Shva for authorization. A transaction may include one or more reasons.
Supported values: BAKASHA_YEZUMA, DRISHAT_KARTIS_CHACHAM, KARTIS_HASUM, KOD_SHERUT, KOD_BIZUA_DCODE, REQUEST_DCC_OFFER, TIKRA, RANDOM, SUG_ISKA, SUG_ASHRAY, EXPIRATION_DATE, TEUDAT_ZEHUT_SHGUYA, SCHUM_ISKAOT_MIZTABER, HAAVARA_MAGNETIT_KARTIS_C, HACHAM, BITUL_BAKASHA_LEISHUR_LEL, O_ISKA, IMUT_MISPAR_ISHUR_SHEHUKL, AD, ISKA_FROM_MOBILE_PHONE, BAKASHA_LEISHUR_LELO_ISKA, SUG_KARTIS_NOT_IN_VECTOR, KARTIS_NITAN, STOP_ACTIVITY, TASHLUM_TORAN_MEAL_TIKRA, ITCHUL_HORAAT_KEVA, KARTIS_MICHUTZ_LATCHUM, TIMEOUT, DRISHAT_MANPIK, TRACK2_LENGTH_LESS_THAN_3, 7_IN_MAGNETIC_TRAN, SUG_MATBEA, SUG_KARTIS_HASER_BEKOVETZ, _TKEFIM, KABALAT_MEIDA, ISKA_CHACHAMA_NIDCHATA_ON, LINE, OBLIGO_UPDATE, TNAEY_TASHLUM, ASHRAIT_DACHATA_ISHUR_MAN, PIK, ISKA_IM_HATAVA, PP_ERROR_DURING_ISKA, KARTIS_DACHA_ISHUR_MANPIK, SMARTCARD_TAKEN_OUT_OR_PI, NPAD_DISCONTINUED_TRAN, NETEK_BATIKSHORET, UNIDENTIFIED_PREFIX, CONTACTLESS_DEMAND
manufId
Type: Alphanumeric (3)
Description: Manufacturer identifier (SHVA YATZRAN). Hyp Enterprise uses CGD. When processing transactions via a pinpad, this value may contain the pinpad manufId.
Example value: CGD
manufUse
Type: Alphanumeric (6)
Description: Manufacturer (SHVA YATZRAN) software version.
Example value: 001101
ashVersion
Type: Alphanumeric (1)
Description: Ashrait operating system type.
Supported values: w (Windows), l (DLL), i (web service (SaaS)), a (Android), x (Linux), o (iOS), u (Unix), t (proprietary)
deviceStatus
Type: Numeric (10)
Description: Pinpad status. Relevant for card-present transactions only. Each of the 10 digits is 0 (NOT OK) or 1 (OK). 1st: magnetic reader. 2nd: contact EMV. 3rd: contactless magnetic. 4th: contactless EMV. 5-10: reserved.
Example value: 1111000000
emvResponseCode
Type: Alphanumeric (2)
Description: Authorization response code returned from the card issuer (known as "F39 response" in Shva). Relevant only for card-present transactions processed via an EMV reader.
Example values: 00 (success), 04 (declined)
recurringTotalNo
Type: Numeric (3)
Description: The total number of planned payments. 999 means an open-ended standing order.
recurringTotalSum
Type: Decimal
Description: The total sum of the standing order across all payments.
Example value: 1000.00
recurringNo
Type: Numeric (3)
Description: The sequence number of the current payment. 0 is set for the initial setup.
recurringFrequency
Type: Numeric (2)
Description: The frequency of charges for the standing order.
Supported values: 01: Weekly, 04: Monthly
addendum2
Type: Object
Description: Parent container for the specialAddData field (see below).
specialAddData
Type: Numeric (8)
Description: May be used by the acquirer to return KOD MOADON. The value must be pre-configured between the merchant and the acquirer. Nested inside the addendum2 field.
a2aData fields
These fields are returned for account to account (A2A) transactions.
debtorBank
Type: Numeric (2)
Description: Customer's bank code (as part of BBAN).
debtorBranch
Type: Numeric (3)
Description: Customer's bank branch code (as part of BBAN).
debtorAccountNumber
Type: Numeric (9)
Description: Customer's account number (as part of BBAN).
creditorName
Type: Alphanumeric (30)
Description: Merchant account name configured in Hyp.
creditorBank
Type: Numeric (2)
Description: Merchant's bank code.
creditorBranch
Type: Numeric (3)
Description: Merchant's bank branch code.
creditorAccount
Type: Numeric (9)
Description: Merchant's bank account number.
remittanceInformation
Type: String (28)
Description: The transfer reason as displayed in bank statements.
transferType
Type: String
Supported values: FP (Faster Payment), masav
BankMessage
Type: String
Description: Information returned by the bank. May be empty if the bank did not send the information or if the status is not final.
referenceNumber
Type: String
Description: Reference number from the bank. May be empty if the bank did not send the reference number or if the status is not final.
paymentRequestId
Type: String (36)
Description: Unique request identifier in Feezback systems.
Subscriber
Type: String (40)
Description: Customer identifier in Feezback systems.
Issuer
Type: String
Description: TPP account identifier in Feezback systems.
Code examples
cURL
Java
Python
Node.js
Response codes
Common response codes
Here are the most frequently encountered response codes:
000
Permitted transaction
Transaction approved successfully
003
Contact the credit company
Contact the acquirer
004
Refusal by credit company
Transaction declined by issuer
006
Incorrect CVV/ID
CVV or ID verification failed
033
Defective card
Card validation failed
036
Expired card
Card expiration date has passed
039
Incorrect control number
Card control number validation failed
All response codes
Related commands
cancelDeal - Cancel transaction before settlement
refundDeal - Refund transaction after settlement
inquireTransactions - Query transaction status and details
transmitTerminal - Manual settlement transmission
Notes
Amount Format: Always use cents/agorot (1000 = 10.00)
Card Requirements: cardNo must be accompanied by cardExpiration
Pre-auth Expiry: Pre-authorizations expire after 7-30 days (issuer-dependent)
Token Format: 16 digits with the last 4 matching the original card
Settlement: Transactions settle during nightly batch (typically 11:00 PM Israel time)
Last updated
Was this helpful?