Skip to main content

Get Tenant

Retrieve tenant information for the merchant account. Requires JWT authentication.

Request

GET /merchant/tenant

Headers

KeyValueDescription
AuthorizationBearer YOUR_JWT_TOKENJWT access token
Content-Typeapplication/jsonRequest content type

Responses

200 OK

{
"status": true,
"data": {
"id": "tenant_id",
"name": "Tenant Name",
"domain": "tenant-domain",
"description": "Tenant description",
"merchant_id": "merchant_id",
"active": true,
"settings": {
"timezone": "UTC",
"currency": "USD"
},
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
},
"error": [],
"message": "success!"
}

401 Unauthorized

{
"status": false,
"data": {},
"error": ["Invalid or expired token"],
"message": "Unauthorized"
}

404 Not Found

{
"status": false,
"data": {},
"error": ["Tenant not found"],
"message": "No tenant found for this merchant"
}