⚡Fetch Sale
Fetches details of a specific sale using the sale ID. This is useful for viewing complete sale details.
Endpoint
GET https://api.keepup.store/v2.0/sales/{sale_id}
Headers
Authorization: Bearer API_KEY
Path Parameters
sales_id
number
required
The ID of the sale whose details are being requested. This should be passed as part of the URL
Sample Requests
const axios = require('axios');
const sale_id = 'YOUR_SALE_ID'; // Replace 'YOUR_SALE_ID' with your actual sale ID
const config = {
method: 'get',
url: `https://api.keepup.store/v2.0/sales/{sale_id}`,
headers: {
'Authorization': 'Bearer API_KEY' // Replace 'API_KEY' with your actual API key
}
};
axios(config).then(function(response) {
console.log(JSON.stringify(response.data));
}).catch(function(error) {
console.error(error);
});<?php
$sale_id = 'YOUR_SALE_ID'; // Replace 'YOUR_SALE_ID' with your actual sale ID
$url = 'https://api.keepup.store/v2.0/sales/' . $sale_id;
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => $url,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer API_KEY' // Replace 'API_KEY' with your actual API key
],
]);
$response = curl_exec($curl);
if (curl_errno($curl)) {
echo 'Error:' . curl_error($curl);
} else {
echo $response;
}
curl_close($curl);
?>
Sample Response
Last updated