Skip to main content

Get Stock

This endpoint returns the current stock available on our platform.

warning

You can still create orders on our platform even when we're out of stock! Our systems will fulfill your orders as soon as possible once stock becomes available.

Endpoint: /stock

Request type: GET

const axios = require('axios');

const apiKey = 'YOUR_API_KEY';

axios.get('https://rocheap.com/business/api/stock', {
headers: {
'rocheap-api-key': apiKey
}
})
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error('Error:', error);
});

Example response:

{ success: true, stock: 837292 }