SecurePay
  • Introduction
  • API
    • Introduction
    • Validate
    • Merchant
      • Bank List
      • FPX Payment
    • Partner
      • List
      • Bank List
      • FPX Payment
    • Payment Session (beta)
      • Introduction
      • Create Payment Session
    • Callback and Redirect URL
    • Transactions
      • Status
      • List
      • Search
      • List (deprecated and no longer available)
  • Guides
    • Create Account
    • Referral
    • Premium Domain
    • Settlement
    • FPX Credit Card
    • Payment Form
      • Create a form to receive payment
      • Create custom fields
      • Enable Quantity, Billing/Shipping fields
      • Payment mode
      • Enable amount selection
    • API
  • Settlement
  • Plugins
    • WooCommerce
  • Payment Service Agent (PSA)
  • Change Logs
Powered by GitBook
On this page
  • Endpoint URL
  • Credentials
  • API Credentials
  • Example command
  • Result

Was this helpful?

  1. API

Validate

Validate the merchant credentials

PreviousIntroductionNextMerchant

Last updated 4 years ago

Was this helpful?

Endpoint URL

Environment

URL

Method

Sandbox

https://sandbox.securepay.my/api/v1/merchants/validate

Post

Production

https://securepay.my/api/v1/merchants/validate

Post

Credentials

There are 3 types of credential values

Type

Format

API UID

2aaa1633-e63f-4371-9b85-91d936aa56a1

Auth Token

ZyUfF8EmyabcMWPcaocX

Checksum Token

159026b3b7348e2390e5a2e7a1c8466073db239c1e6800b8c27e36946b1f8713

API Credentials

Example command

curl -d checksum_token={checksum_token} -u {api_uid}:{auth_token} https://sandbox.securepay.my/api/v1/merchants/validate 
curl -d checksum_token=159026b3b7338e2390e5a2e7a1c8466073db259c1e6800b8c27e36946b1f8713 -u 2aaa1633-e63f-4371-9b85-91d936aa56a1:ZyUfF8EmyabcMWPcaocB https://sandbox.securepay.my/api/v1/merchants/validate 

Result

Invalid token will return 401 Unauthorized

{"error":"Unauthorized. Invalid or expired token."}

Verified token will return 200

{"credential":true,"api_name":"Sandbox Test1","merchant_name":"DNSVAULT SDN BHD"}
API credentials from SecurePay dashboard