Partner APIs: Merchant Onboarding
Get Business Categories
Returns the complete list of supported business category codes and subcategory codes. Use subcategory codes (e.g., BUS.IT_SERVICES) as the value for the natureOfBusiness field in Update Business Details.
GET
/
gcc
/
v2
/
partner
/
merchant
/
onboard
/
business-category
Get Business Categories
curl --request GET \
--url https://api.onboard.payglocal.in/gcc/v2/partner/merchant/onboard/business-category \
--header 'x-gl-auth: <api-key>' \
--header 'x-gl-digest: <api-key>'import requests
url = "https://api.onboard.payglocal.in/gcc/v2/partner/merchant/onboard/business-category"
headers = {
"x-gl-auth": "<api-key>",
"x-gl-digest": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)HttpResponse<String> response = Unirest.get("https://api.onboard.payglocal.in/gcc/v2/partner/merchant/onboard/business-category")
.header("x-gl-auth", "<api-key>")
.header("x-gl-digest", "<api-key>")
.asString();const url = 'https://api.onboard.payglocal.in/gcc/v2/partner/merchant/onboard/business-category';
const options = {method: 'GET', headers: {'x-gl-auth': '<api-key>', 'x-gl-digest': '<api-key>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));{
"gid": "gl_9c2645ed09edb22e",
"timestamp": "10/01/2026 15:00:00",
"reasonCode": "",
"data": {
"categories": [
{
"categoryCode": "AGRI",
"categoryName": "Agricultural Services",
"subcategories": [
{
"categoryCode": "AGRI.VET",
"categoryName": "Veterinary Services"
},
{
"categoryCode": "AGRI.COOP",
"categoryName": "Agricultural Cooperatives"
}
]
},
{
"categoryCode": "BUS",
"categoryName": "Business Services",
"subcategories": [
{
"categoryCode": "BUS.IT_SERVICES",
"categoryName": "IT & Programming Services"
},
{
"categoryCode": "BUS.CONSULTING",
"categoryName": "Consulting & Management"
}
]
}
]
}
}{
"gid": "gl_9c2645ed09edb22e",
"timestamp": "10/01/2026 15:00:00",
"reasonCode": "UNAUTHORIZED",
"data": {},
"errors": null,
"errorDetails": [
{
"fieldName": "authorization",
"message": "Invalid x-gl-token-external"
}
]
}When to Use
Returns the full list of supported business category codes and their subcategory codes. Use the subcategory code (dotted format, e.g.,BUS.IT_SERVICES) as the value for natureOfBusiness in Update Business Details.
For a static reference, see Business Categories.Authorizations
Static API Key generated from the PayGlocal Partner Dashboard.
Per-request HmacSHA256 signature, Base64-encoded, using your API Secret as the HMAC key.
- For GET requests: sign the request URI path (e.g.
/gcc/v2/partner/merchant/onboard/business-category), including query string if present. - For POST/PUT requests: sign the exact raw request body.
Get Business Categories
curl --request GET \
--url https://api.onboard.payglocal.in/gcc/v2/partner/merchant/onboard/business-category \
--header 'x-gl-auth: <api-key>' \
--header 'x-gl-digest: <api-key>'import requests
url = "https://api.onboard.payglocal.in/gcc/v2/partner/merchant/onboard/business-category"
headers = {
"x-gl-auth": "<api-key>",
"x-gl-digest": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)HttpResponse<String> response = Unirest.get("https://api.onboard.payglocal.in/gcc/v2/partner/merchant/onboard/business-category")
.header("x-gl-auth", "<api-key>")
.header("x-gl-digest", "<api-key>")
.asString();const url = 'https://api.onboard.payglocal.in/gcc/v2/partner/merchant/onboard/business-category';
const options = {method: 'GET', headers: {'x-gl-auth': '<api-key>', 'x-gl-digest': '<api-key>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));{
"gid": "gl_9c2645ed09edb22e",
"timestamp": "10/01/2026 15:00:00",
"reasonCode": "",
"data": {
"categories": [
{
"categoryCode": "AGRI",
"categoryName": "Agricultural Services",
"subcategories": [
{
"categoryCode": "AGRI.VET",
"categoryName": "Veterinary Services"
},
{
"categoryCode": "AGRI.COOP",
"categoryName": "Agricultural Cooperatives"
}
]
},
{
"categoryCode": "BUS",
"categoryName": "Business Services",
"subcategories": [
{
"categoryCode": "BUS.IT_SERVICES",
"categoryName": "IT & Programming Services"
},
{
"categoryCode": "BUS.CONSULTING",
"categoryName": "Consulting & Management"
}
]
}
]
}
}{
"gid": "gl_9c2645ed09edb22e",
"timestamp": "10/01/2026 15:00:00",
"reasonCode": "UNAUTHORIZED",
"data": {},
"errors": null,
"errorDetails": [
{
"fieldName": "authorization",
"message": "Invalid x-gl-token-external"
}
]
}
