Performing Payouts
A payout is a "proactive" transfer of funds from your merchant account to a customer's card, without the need for a previous transaction to occur. Payouts are often used for rewards, prize distribution, or other scenarios where you need to send money to a customer's card.
Keep in mind that a payout can only be made to a card that has been previously used in your terminal — there's no way to perform a payout to a completely new card.
If you're looking to return funds from a previous purchase, you should make a refund instead.
How to make a payout
Before you can make a payout, you'll need to handle two things:
Get a credit password. You'll need to pass this as the
zPassparameter in your request. To get one, reach out to Hyp support by phone (*6488, extension 3) or via WhatsApp. This multiple-use password will be sent to the mobile number registered to the terminal owner's account.Get a card token. You'll need a token for the card you want to make a payout to. Make sure you save both the token (
Token) and the card's expiration date (Tokef).
Once you've got those ready, make a GET request to https://pay.hyp.co.il/p/ that looks something like this:
https://pay.hyp.co.il/p/?action=soft&Masof=0010345518&PassP=your-api-password&zPass=8179&Amount=10&CC=4724478937284730772&Tmonth=05&Tyear=31&Token=True&UserId=203269535&ClientName=Jenny&Info=payoutThe request includes these parameters:
action: Set this tosoft.Masof: Your terminal number.PassP: Your API password.zPass: Your credit password.Amount: The amount to be credited to the customer. This should be a positive number, just like in a regular charge. The system knows to treat it as a credit because of thezPassparameter.CC: The card token you previously saved asToken.Tmonth: The card's expiration month. Use the two-digit month part fromTokef.Tyear: The card's expiration year. Use the two-digit year part fromTokef.Token: Set this toTrueto indicate that the request uses a card token.UserId: 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 to000000000.ClientName: The customer's name.Info: Any extra info you want to include with the transaction.
Here's an example of a successful payout response:
In the response, CCode=0 means the payout was successful. If there's an issue, you'll receive a different status code indicating the error.
The Id is the unique transaction ID for the payout.
Last updated
Was this helpful?