• Multi Bank Virtual POS

Point Inquiry General Description

This is the request type that queries the available points on the card.

Points cannot be redeemed on debit cards with Reward Group Maximum, Bonus, Axess and CardFinans. Accordingly, points redemption should not be shown for the debit cards indicated on your checkout page. Credit cards with these reward groups do not have such a restriction.

Test/Prod Envirenement API User Information

You can access the Sandbox Test Portal at https://sandbox-portal.tami.com.tr. When you log in to the test portal using a test user account, you can view the transactions performed by the merchant associated with that user. These transactions can also be cancelled or refunded. To obtain the test user credentials, please contact TeknikDestek@tami.com.tr.

Hash Calculation

The request sent for many transaction types should include the PG-Auth-Token in the header information. The PG-Auth-Token consists of the values "MerchantNumber:TerminalNumber:Hash".

When calculating the hash here, the merchantNumber, terminalNumber, and secretKey information belonging to the merchant are hashed with sha256 and converted to a string.

public class SHA256Example {\n public static String sha256(Long merchantNumber, Long terminalNumber, String secretKey) {\n String text = merchantNumber.toString() + terminalNumber.toString() + secretKey;\n try {\n MessageDigest digest = MessageDigest.getInstance(\"SHA-256\");\n byte[] hash = digest.digest(text.getBytes(StandardCharsets.UTF_8));\n String sha256Hex = DatatypeConverter.printBase64Binary(hash);\n return sha256Hex;\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n return null;\n }\n }\n}

TAMİ Test Portal Information

You can access the Tami test portal at https://sandbox-portal.tami.com.tr. From this address, you can view the portal screen with the users specified above. 

For your production environment information you can become a member at https://portal.tami.com.tr or You can apply to the e-commerce support unit.

Point Inquiry API Information

In test environment, the "https://sandbox-paymentapi.tami.com.tr/vas/bonusQuery" URL will be used.  

In production environment, the "https://paymentapi.tami.com.tr/vas/bonusQuery" URL will be used.   

API Request Example

{\n \"ipAddress\" : \"1.1.111.111\",\n \"emailAddress\" : \"cem@cem.com\",\n \"cardNumber\" : \"4546711234567894\",\n \"expireMonth\" : 12,\n \"expireYear\" : 26,\n \"cvv\" : \"\",\n \"currencyCode\" : 949 ,\n \"amount\" : 10,\n \"securityHash\" : \"748dnskwo404040lel==\"\n}

Request Parameters and Descriptions

Field Format (O)ptional/(C)onditional/(M)andatory Description
ipAddress String M IP address of the recipient.
emailAddress String M Email information of the member business
cardNumber Number M Credit Card Number
expireMonth Number M Expiry date and month information of the card to be inquired about.
expireYear Number M Expiry date and year information of the card to be inquired about.
cvv Number O Security code information of the card from which payment will be taken.
currencyCode Number M Currency Type
amount Number M Amount
securityHash String M It is the value expected to be calculated and transmitted according to the fields specified in the document. If it is missing or incorrect, the transaction is not routed to the bank, an error is given.

API Response Example

{\n \"approved\": true,\n \"returnCode\": \"00\",\n \"reasonCode\": \"00\",\n \"retRefNum\": \"25223BLZC19728\",\n \"authCode\": \"374487\",\n \"rewardList\": [\n {\n \"type\": \"PARTIALPOINTS\",\n \"amount\": 82.40,\n \"name\": \"ODUL\"\n }\n ],\n \"success\": true,\n \"securityHash\": \"MwlKZhVFoUJH2AQcUQA3cEnqF800qWsO7pgCkV5rPO4=\"\n}

Response Parameters and Descriptions

Field Format Description
approved String Field indicating Transaction Approval status
orderId String order number
returnCode Number error code
errorMessage Number error message
retRefNum Number Referance Number
provisionDate DateTime Provision Date
type Char Card Type
amount Number Amount of Points Used
name Char Available Point Type
securityHash String The value to be used to determine that the result of the operation came from the correct source. The documentation specifies how it should be calculated.
bankAuthCode String Bank Confirmation Code
bankReferenceNumber String Retref number for the transaction
errorGroup  String Shows the group of the relevant error. Businesses can manage their own rules using error codes and error groups.
POST
Merchant ID
Terminal ID
Secret Key
{\n \"ipAddress\": \"1.1.111.111\",\n \"emailAddress\": \"cem@cem.com\",\n \"cardNumber\": \"4546711234567894\",\n \"expireMonth\": 12,\n \"expireYear\": 26,\n \"cvv\": \"\",\n \"currencyCode\": 949,\n \"amount\": 10\n}

Hata Oluştu

Başarılı

Security Hash Calculation

You can use the documentation here to calculate the securityHash field in service requests and incoming service responses. 

Error Codes

You can access the list of error codees on this page.

Test Cards

You can access the list of test cards on this page.

We are here for all your questions and support requests.

Ask a Question Ask a Question