🏢Merchant Status API
The Merchant Status API allows you to retrieve the current status of a specific merchant. This API can return details such as the merchant's status and protocol.
Note:
Ensure that you pass a validmerchant_idwhen making a request. If the merchant does not exist or is not found, you will receive a404 Not Founderror.
- 🔹 The API requires anAPI Keyfor authentication.
- 🔹 Themerchant_idshould be passed as a query parameter in the request.
💡 Example Request
GET https://core.dinakel.com/api/gateway/v1/merchants/<merchant_id>/status
Headers:
Authorization: Bearer <your_api_key>
🔍 Example Response
{
"status": true,
"statusCode": 200,
"data": {
"merchantStatus": "active"
}
}
⚠️ Error Handling
The API provides the following error responses:
{
"status": false,
"statusCode": 400,
"message": "Invalid or missing merchant_id"
}
400 Bad Request:The merchant_id parameter is invalid. Ensure the correct ID format is used.
{
"status": false,
"statusCode": 404,
"message": "Merchant not found"
}
404 Not Found:The merchant with the provided ID does not exist in the system. Double-check the merchant ID.
{
"status": false,
"statusCode": 500,
"message": "Internal server error"
}
500 Internal Server Error:An unexpected error occurred on the server. Try again later or contact support.