Prices2
{
"data": {
[key: string]: decimal // Represents dynamic keys (currency symbol) with decimal values.
},
"message": string, // A message containing additional information about the result of the request.
"error": {
"type": string,
"key": string,
"message": string
} || {}, // An object that provides details about any errors that occurred.
"status": integer, // The status of the request response. Typically provided as a numeric code (e.g., 200 for success or other codes for errors).
"version": string // The version of the API being used.
}API Request Sample Codes
curl -X GET https://api.oxapay.com/v1/common/prices <?php
$url = 'https://api.oxapay.com/v1/common/prices';
$options = array(
'http' => array(
'method' => 'GET'
),
);
$context = stream_context_create($options);
$response = file_get_contents($url, false, $context);
if ($response === FALSE) {
die('Error occurred');
}
$result = json_decode($response, true);
var_dump($result);
?>const axios = require('axios');
const url = 'https://api.oxapay.com/v1/common/prices';
axios.get(url)
.then((response) => {
console.log(response.data);
})
.catch((error) => {
console.error(error);
});API Response Example
Last updated