Merchants

This section of the documentation goes through merchants resource to access information about your merchant account, e.g. business name, currency, support email etc.


Retrieve merchant

The about() method uses GET /v1/merchants/ to return information about the current authorized merchant.

Example request using Commerce.js:

import Commerce from '@chec/commerce.js';

const commerce = new Commerce('{your_public_key}');

commerce.merchants.about().then((merchant) => console.log(merchant.business_name));

Example request using cURL:

$ curl -X GET \
    -G "https://api.chec.io/v1/merchants" \
    -H "X-Authorization: {key}"
Method Description
about() Gets information about the current authorized merchant
Info

For more information, refer to the full response for retrieving the merchant details.


Edit this page on GitHub