Get Merchant Information

This will return a filtered down information for a given merchant.

https://app.senangpay.my/openapi/get_merchant_info

 

API Consideration

  • Only merchant with Advance Package/Advance Package (Classic) can use this API (subject to a more specific API access rules. Refer to API Access Availability section)

 

Parameters

Name Type Description
merchant_id string Your account merchant ID. Available from Dashboard > Settings > Profile > Shopping Cart Integration Link.
secret_key string Your account secret key. Available from Dashboard > Settings > Profile > Shopping Cart Integration Link.
merchant_id_verify string The merchant ID for the account your want to check. Available from merchant’s Dashboard > Settings > Profile > Shopping Cart Integration Link.
secret_key_verify string The¬†secret key for the account your want to check. Available from merchant’s Dashboard > Settings > Profile > Shopping Cart Integration Link.

 

API Access Availability

Your account would need special privilege for this API else you will encountered the following message.

Unauthorized API usage. Please contact senangPay for further details.

 

Example

curl https://app.senangpay.my/openapi/get_merchant_info \
 -d merchant_id=1111111111 \
 -d secret_key=111-111 \
 -d merchant_id_verify=2222222222 \
 -d secret_key_verify=222-222

 

Successful Response

{
    "data": {
        "merchant": {
            "name": "Foo Bar",
            "access_email": "foo@bar.com",
            "shop_name": "Foo Bar Enterprise",
            "phone": "0109876543",
            "status": "active",
            "date_registered": "2017-02-14T14:37:14+08:00"
        },
        "package": {
            "name": "Advance Package"
        }
    },
    "http_status_code": 200
}

 

Failed Response

 

Unknown API or API is inactive.

API does not exist or the API have been disabled globally.
 

Invalid parameter(s). Please make sure parameter required was set correctly.

Either one of the above parameters are missing or of incorrect type.
 

Unauthorized API usage. Please contact senangPay for further details.

It could be any of below:

  • Merchant is inactive
  • Merchant ID and secret key was incorrectly supplied
  • Merchant is not authorized for this specific API usage

 

Merchant not exist. Please check if the merchant ID and secret key to be verified is correct.

Either the merchant you are checking does not exist, or you have supplied an incorrect merchant ID and secret key for the merchant you want to check.

Leave a Reply