General Configurations

Get general configs of emart. It will update with time if something new added eg : payment methods or currencies.

This endpoint allows you to get general configuration of emart.

GET https://castleindia.in/emart/public /api/configs?secret=xxxx /api/configs

Query Parameters

NameTypeDescription

secret*

String

Client secret key which obtain from admin panel.

Headers

NameTypeDescription

Accept*

String

application/jsonResponses200

{
  "available_currency": [
    {
      "code": "USD",
      "name": "US Dollar",
      "symbol": "$",
      "rate": "1",
      "is_default": 0
    },
    {
      "code": "INR",
      "name": "Indian Rupee",
      "symbol": "₹",
      "rate": "73.023491",
      "is_default": 0
    },
    {
      "code": "BDT",
      "name": "Bangladesh, Taka",
      "symbol": "৳",
      "rate": "84.878427",
      "is_default": 0
    },
    {
      "code": "KES",
      "name": "Kenyan Shilling",
      "symbol": "S",
      "rate": "110.11",
      "is_default": 0
    },
    {
      "code": "TRY",
      "name": "Turkish Lira",
      "symbol": "TL",
      "rate": "7.428925",
      "is_default": 0
    },
    {
      "code": "GHS",
      "name": "Ghana Cedi",
      "symbol": "₵",
      "rate": "5.825713",
      "is_default": 0
    }
  ],
  "pincode_enable": 0
}

IF response fail

{
  "msg": {
      
      "The secret field is required."
    
  },
  "status": "fail"
}

Last updated