Merchant Configurations

merchants.configurations.info

Fetches the configuration items for the target merchant.

HTTP Request

GET https://centrapay.com/api/merchants.configurations.info

Parameters

Name Example Required Description
merchantId “1525295d-3d9…” Required The unique reference of the merchant entity that owns the required configurations
clientId “1df56043-309…” Optional The unique reference to the merchant-specific client’s configuration

Response (200)

{
    "merchantId": "1525295d-3d9c-452f-9a0f-1f83fd9c34b8",
    "name": "My Merchant",
    "items": [
        {
            "label": "CENNZ",
            "asset": "g.crypto.cennznet.testnet.plugnet.assets.models.Account.CENNZ",
            "account": "1EAY8y1cDLCwHRAAEw5VJpukrkEK3AceHW",
            "index": 0,
            "methods": [
                "qr_code"
            ],
            "icon": {
                "image": "base64 encoded image",
                "mimeType": "image/png"
            },
            "units": {
                "label": "CENNZ",
                "factor": 1000000000000000000
            },
            "fractionalDigits": 18,
            "precision": 8
        },
        {
            "label": "Voucher 1",
            "asset": "g.centrapay.pocketvouchers.voucher1",
            "index": 1,
            "methods": [
                "auth_alphanumeric"
            ],
            "icon": {
                "image": "base64 encoded image",
                "mimeType": "image/png"
            },
            "units": {
                "label": "Vouchers",
                "factor": 1
            },
            "fractionalDigits": 0,
            "precision": 0
        }
    ],
    "clientId": "1df56043-309..."
}

Sample Request

curl -d "merchantId=1525295d-3d9c-452f-9a0f-1f83fd9c34b8" -X GET https://centrapay.com/api/merchants.configurations.info