Skip to content

Get Merchant Logo

Request URL

GET /payment-link/merchant/logo/:logoId

Description

This endpoint will allow you (the client/platform) to retrieve a previouly uploaded merchant logo image.

Snippet Examples

javascript

const axios = require('axios');
const config = {
  method: 'GET',
  url: '${CONNECTFI_BASE_URL}/payment-link/merchant/logo/:logoId',
  headers: {
    'x-connectfi-token': "A long random string token received from /auth/get-token request"
  },
};

let result;
try {
  result = await axios.request(config);
  if (result.status === 200) {
    console.log(JSON.stringify(result.data));
  }
} catch (err) {
  console.log({
    errCode: err.code,
    responseStatus: err.response && err.response.status,
    data: err.response && JSON.stringify(err.response.data)
  });
}

cURL

curl --location "CONNECTFI_BASE_URL/payment-link/merchant/logo/:logoId"  --header "x-connectfi-token: A long random string token received from /auth/get-token request" 

Successful Response Examples

200 SUCCESSFUL RESPONSE

HEADERS

Header Value
x-connectfi-token A long random string token received from /auth/get-token request

PARAMETERS

Parameter Description Value
logoId 1DpCjl6uBEyNLmnGNepALE

REQUEST BODY

none

RESPONSE BODY

//Logo image will appear as a resized media type response