API reference
Introduction
API Reference Overview
The API enables client applications to communicate securely with YakaniPay servers using a defined JSON message format. These fields identify the request, operation, merchant, and transaction.
channelNameIdentifies the request origin, such as
WEB.serviceNameDefines the requested operation:
API_PURCHASE,API_CANCELPURCHASE,API_PREAUTHORIZE,API_PREAUTHORIZE_COMMIT, orAPI_PREAUTHORIZE_CANCEL.serviceParamsContains
merchantUid,apiUserId,apiKey,paymentMethod,referenceId, anddescription.referenceIdA unique merchant order or transaction identifier used to prevent duplicates and support accurate tracking.
Decimal precision policy
Amounts may have up to two decimal places. Values with more than two decimal places are truncated—not rounded—during processing.
1010.210.2310.237 → 10.2399.999 → 99.99Sandbox and production endpoints
Sandbox
https://sandbox.yakanipay.com/asmProduction
https://api.yakanipay.net/asmResponse codes
| Code | Name | Description |
|---|---|---|
2001 | RCS_SUCCESS | Request processed successfully |
5301 | RCS_INVALID_HPPKEY | Incorrect API credentials |
5302 | RCS_INVALID_HPPTOKEN | Invalid HPP token |
5303 | RCS_INVALID_HPPRESULTTOKEN | Invalid HPP result token |
5304 | RCS_HPP_MERCHANT_REFERENCEID_MISMATCH | Transaction reference mismatch |
5305 | RCS_HPP_REQUESTID_MISMATCH | Transaction request ID mismatch |
5306 | RCS_HPP_USERACTION_CANCELLED | Customer cancelled the transaction |
5307 | RCS_HPPTOKEN_EXPIRED | HPP token expired |
5308 | RCS_HPP_SUBSCRIPTION_ISNOT_ENABLED | Merchant is not enabled for this service |
5309 | RCS_HPP_USERACTION_TIMEOUT | Customer did not complete the transaction within five minutes |