Skip to content

API v2 Overview

API v2 is the latest version of the EasySlip Developer API, offering improved features, better error handling, and a standardized response format.

Base URL

https://api.easyslip.com/v2

Key Features

Standardized Response Format

All responses follow a consistent structure:

Success Response:

json
{
  "success": true,
  "data": { ... },
  "message": "Operation completed successfully"
}

Error Response:

json
{
  "success": false,
  "error": {
    "code": "ERROR_CODE",
    "message": "Human-readable error message"
  }
}

Account Matching

Match slip receiver against your registered bank accounts:

json
{
  "payload": "QR_PAYLOAD",
  "matchAccount": true
}

Response includes matched account details:

json
{
  "matchedAccount": {
    "bank": {
      "nameTh": "กสิกรไทย",
      "nameEn": "KASIKORNBANK",
      "code": "004",
      "shortCode": "KBANK"
    },
    "nameTh": "บริษัท ตัวอย่าง จำกัด",
    "nameEn": "EXAMPLE CO., LTD.",
    "type": "JURISTIC",
    "bankNumber": "123-4-56789-0"
  }
}

Amount Validation

Verify that slip amount matches expected amount:

json
{
  "payload": "QR_PAYLOAD",
  "matchAmount": 1500.50
}

Response includes validation result:

json
{
  "amountInOrder": 1500.50,
  "amountInSlip": 1500.50,
  "isAmountMatched": true
}

Multi-Branch Support

Create multiple API branches with:

  • Separate API keys per branch
  • Per-branch quota tracking
  • Different IP restrictions

Endpoints

EndpointMethodDescription
/verify/bankPOSTVerify bank slip
/infoGETGet application information
/healthGETHealth check

Authentication

API v2 requires HMAC-SHA256 signature authentication. For verification and info endpoints, use your branch UUID as X-API-Key. Each request must include the following headers:

HeaderDescription
X-API-KeyYour branch UUID (e.g., a1b2c3d4-e5f6-7890-abcd-ef1234567890)
X-TimestampUnix timestamp (seconds)
X-NonceUUID v4, unique per request
X-SignatureHMAC-SHA256 signature

TIP

HMAC authentication is required for all API endpoints. The signature is computed using your B2B client secret key.

See Authentication Guide for implementation details and code examples.

Quick Examples

See Authentication Guide for complete request examples with HMAC signature headers.

Error Codes

CodeHTTP StatusDescription
MISSING_API_KEY401X-API-Key header missing
INVALID_API_KEY401API key is invalid
MISSING_SIGNATURE401X-Signature header missing
INVALID_SIGNATURE401HMAC signature verification failed
TIMESTAMP_EXPIRED401X-Timestamp is too old or too far in the future
NONCE_REUSED401X-Nonce has already been used
BRANCH_INACTIVE403API branch is deactivated
SERVICE_BANNED403Service has been banned
USER_BANNED403User has been banned
IP_NOT_ALLOWED403Client IP not in whitelist
QUOTA_EXCEEDED403API quota exceeded
VALIDATION_ERROR400Request validation failed
SLIP_NOT_FOUND404Slip not found or invalid
API_SERVER_ERROR500External API error

See Error Codes Reference for full list.

Next Steps

Bank Slip Verification API for Thai Banking