Request Details

Method Controller Resource Parameters
GET platform currencies  country_id

Parameters Guide

Parameter Accepts
country_id int id of country in Beep Database (See get all countries - to retrieve ids)

Example Request Format

Direct Url https://api.beepxtra.com/platform/currencies/3
Curl CURL -A "YOURAPPNAME|1.0|AppID|AppKEY|platform" -X GET https://api.beepxtra.com/platform/currencies/3
PHP SDK $beepapi->request('get', 'card', 'currencies/3');

Sample Response

Success
{  
   "success":true,
   "request":{  
      "method":"GET",
      "controller":"platform",
      "resource":"currencies",
      "parameters":{  
         "\/platform\/currencies\/3":""
      },
      "url_elements":[  
         "platform",
         "currencies",
         "3"
      ]
   },
   "error":{  
      "errorid":0,
      "message":0
   },
   "data":{  
      "name":"United Kingdom",
      "currency":"GBP"
   }
}
Error
{  
   "success":false,
   "request":{  
      "method":"GET",
      "controller":"platform",
      "resource":"currencies",
      "parameters":{  
         "\/platform\/currencies\/0":""
      },
      "url_elements":[  
         "platform",
         "currencies",
         "0"
      ]
   },
   "error":{  
      "errorid":1000,
      "message":"There is no active country with id 0"
   },
   "data":{  
      "error":"There is no active country with id 0"
   }
}

Response Guide

Parameter Type Details
error String Contains the error message returned
name string Country name
currency string Currency code